TopToolbarPopup.wxss 1.28 KB
/* components/TopToolbarPopup/TopToolbarPopup.wxss */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 998;
  transform: translateZ(2px);
}

.popup-bg {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: rgba(0, 0, 0, .6);
}

.popup-content {
  position: absolute;
  left: 0;
  width: 100%;
  background: #FFFFFF;
  border-radius: var(--fontSize20) var(--fontSize20) 0 0;
  animation: show-popup .5s forwards;
  box-sizing: border-box;
  padding: 0 var(--fontSize40);
  display: flex;
  flex-direction: column;
}

.popup-header {
  height: var(--fontSize112);
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* border-bottom: var(--fontSize2) solid #EBEDF0; */
  flex-shrink: 0;
}

.popup-header .title {
  font-size: var(--fontSize34);
  color: #333333;
  font-weight: bold;
}

.popup-header .action-btn {
  font-size: var(--fontSize32);
  padding: 0 var(--fontSize10);
}

.popup-header .cancel {
  color: #666666;
}

.popup-header .confirm {
  color: #2C66F7;
}

.popup-slot {
  flex: 1;
  overflow-y: auto;
  /* height: calc(100% - var(--fontSize98)); */
}

.popup-slot.isFullSucreen {
  padding-bottom: var(--fontSize68);
}

@keyframes show-popup {
  0% {
    bottom: -100%;
  }

  100% {
    bottom: 0;
  }
}