$popUp-header-height:20px;
$popUp-footer-height:20px;
$popUp-border-radius:5px;
$popUp-footer-funcs-width:50px;
$popUp-footer-index-total-width:50px;

.sipsd-map-openlayer-popup-host {
  display: block;
  width: 270px;
  border-radius: $popUp-border-radius;
}

.sipsd-map-openlayer-popUp {
  width: 100%;
  height: 100%;
  padding-bottom: 2px;
  -webkit-filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2));
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2));
  border-radius: $popUp-border-radius;
  border: 1px solid #cccccc;
  background-color: #fff;
  font-size: 13px;
  user-select: text;

  /* 左侧的小三角 */
  &:before,
  &:after {
    height: 0;
    width: 0;
    position: absolute;
    top: 50%;
    margin-left: -10px;
    content: " ";
    border-style: solid;
    border-color: transparent;
    border-width: 10px 10px 10px 0;
    pointer-events: none;
  }

  &:after {
    border-right-color: white;
  }

  &:before {
    border-right-color: #cccccc;
  }
}

.popUp-header {
  width: 100%;
  height: $popUp-header-height;
  background-color: #333;
  overflow: hidden;
  border-radius: $popUp-border-radius $popUp-border-radius 0 0;
  color: #fff;
  font-size: 12px;
}

.header-title {
  width: calc(100% - 30px);
  height: $popUp-header-height;
  float: left;
  padding-left: 6px;
  line-height: $popUp-header-height;
}

.header-close {
  width: 30px;
  height: $popUp-header-height;
  float: right;
  line-height: $popUp-header-height;
  text-align: center;
  cursor: pointer;
}

.popUp-content {
  width: 100%;
  height: calc(100% - #{$popUp-header-height} - #{$popUp-footer-height});
  border-bottom: 1px solid #d3d3d3;
}

.content-item {
  width: 100%;
  display: flex;
  align-items: center;
}

.item-background-color {
  background-color: #f5f5f5;
}

.item-key {
  width: 100px;
  display: inline-block;
  text-align: right;
  white-space: normal;
  word-wrap: break-word;
}

.item-delimiter {
  width: 10px;
  display: inline-block;
  text-align: center;
}

.item-value {
  width: calc(100% - 100px - 10px);
  display: inline-block;
  word-wrap: break-word;
  text-align: left;
}

.popUp-footer {
  width: 100%;
  height: $popUp-footer-height;
  overflow: hidden;
}

.footer-funcs {
  width: $popUp-footer-funcs-width;
  height: 100%;
  float: left;
  overflow: hidden;
}

.funcs-prev,
.funcs-next {
  width: 50%;
  height: 100%;
  float: left;
  border-width: 0;
  background-color: #fff;
  text-align: center;
  line-height: $popUp-footer-height;
  font-size: 18px;
  cursor: pointer;

  &:focus {
    outline-width: 0;
  }
}

.funcs-disabled {
  cursor: not-allowed;

  .ion-md-arrow-dropleft,
  .ion-md-arrow-dropright {
    color: #d3d3d3;
  }
}

.footer-index-total {
  width: $popUp-footer-index-total-width;
  height: 100%;
  float: left;
  border-width: 0;
  background-color: #fff;
  text-align: center;
  line-height: $popUp-footer-height;
  font-size: 12px;
}

.footer-others {
  width: calc(100% - #{$popUp-footer-funcs-width} - #{$popUp-footer-index-total-width});
  height: 100%;
  float: right;
  line-height: $popUp-footer-height;
  text-align: right;
}

.footer-item {
  margin-right: 4px;
  color: #108ee9;
  cursor: pointer;
}
