All files / src/version2/GlobalNotification GlobalNotification.module.css

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 1301x                                                                                                                                                                                                                                                                  
.varClass {
  /* globalnotfication default variables */
  --commonalert_border_color: var(--zdt_commonalert_default_border);
  --globalnotification_bg_color: var(--zdt_globalnotification_default_bg);
  --globalnotification_text_color: var(--zdt_globalnotification_default_text);
}
 
.message {
  composes: varClass;
  position: absolute;
  top: 0;
  z-index: 1000;
  text-align: center;
  width: 420px;
  margin: auto;
  left: 0;
  right: 0;
}
 
.stackShadowOne::after,
.stackShadowTwo::before {
  content: '';
  position: absolute;
  background-color: var(--globalnotification_bg_color);
  height: 20px;
  left: 50%;
  right: 50%;
  transform: translate(-50%);
  border-radius: 0 0 6px 6px;
  box-shadow: var(--zd_bs_globalnotification_container);
  animation: behindInfo 0.8s forwards;
}
 
.stackShadowTwo::before {
  width: 90%;
  bottom: -10px;
}
 
.stackShadowOne::after {
  width: 95%;
  bottom: -5px;
}
 
@keyframes behindInfo {
 
  0%,
  40% {
    opacity: 0;
  }
 
  100% {
    opacity: 1;
  }
}
 
.container {
  padding: 18px 70px 19px 75px;
  position: relative;
  pointer-events: initial;
  box-shadow: var(--zd_bs_globalnotification_container);
  border-radius: 0 0 var(--zd_size10) var(--zd_size10);
  background-color: var(--globalnotification_bg_color);
  border-style: solid;
  border-color: var(--commonalert_border_color);
  border-width: 2px 1px 1px 1px;
  color: var(--globalnotification_text_color);
  z-index: 1;
  composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
  width: 100%;
}
 
.icon {
  width: 44px;
  height: 44px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 18px;
  margin: auto 0;
}
 
.success {
  --commonalert_border_color: var(--zdt_commonalert_success_border);
  --globalnotification_bg_color: var(--zdt_globalnotification_success_bg);
  --globalnotification_text_color: var(--zdt_globalnotification_success_text);
}
 
.info {
  --commonalert_border_color: var(--zdt_commonalert_info_border);
  --globalnotification_bg_color: var(--zdt_globalnotification_info_bg);
  --globalnotification_text_color: var(--zdt_globalnotification_info_text);
}
 
.danger,.error {
  --commonalert_border_color: var(--zdt_commonalert_danger_border);
  --globalnotification_bg_color: var(--zdt_globalnotification_danger_bg);
  --globalnotification_text_color: var(--zdt_globalnotification_danger_text);
}
 
 
.warning {
  --commonalert_border_color: var(--zdt_commonalert_warning_border);
  --globalnotification_bg_color: var(--zdt_globalnotification_warning_bg);
  --globalnotification_text_color: var(--zdt_globalnotification_warning_text);
}
 
.primary {
  --commonalert_border_color: var(--zdt_commonalert_primary_border);
  --globalnotification_bg_color: var(--zdt_globalnotification_primary_bg);
  --globalnotification_text_color: var(--zdt_globalnotification_primary_text);
}
 
 
.text {
  font-size: 14px;
  font-family: var(--zd_semibold);
  composes: ftsmooth from '~@zohodesk/components/lib/common/common.module.css';
  text-align: left;
  line-height: 1.4286;
  overflow: hidden;
}
 
.close {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 12px;
  margin: auto 0 auto 25px;
  height: 25px;
}