Skip to content

定制主题

  • swal-overlay

示例:

css
.swal-overlay {
  background-color: rgba(43, 165, 137, 0.45);
}

示例:

css
.swal-modal {
  background-color: rgba(63, 255, 106, 0.69);
  border: 3px solid white;
}

示例:

css
.swal-title {
  margin: 0px;
  font-size: 16px;
  box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.21);
  margin-bottom: 28px;
}

示例:

css
.swal-text {
  background-color: #fefae3;
  padding: 17px;
  border: 1px solid #f0e1a1;
  display: block;
  margin: 22px;
  text-align: center;
  color: #61534e;
}

示例:

css
.swal-footer {
  background-color: rgb(245, 248, 250);
  margin-top: 32px;
  border-top: 1px solid #e9eef1;
  overflow: hidden;
}
  • swal-button

描述:

弹窗的按钮(s)。它有一个额外的类,根据按钮的类型变化,格式为swal-button--{type}。例如,确认按钮的额外类是swal-button--confirm

示例:

css
.swal-button {
  padding: 7px 19px;
  border-radius: 2px;
  background-color: #4962b3;
  font-size: 12px;
  border: 1px solid #3e549a;
  text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.3);
}

赣ICP备2023003243号