Skip to content
review-learn.scss 4.49 KiB
Newer Older
wangqinghua's avatar
wangqinghua committed
page-review-learn {
  .main-container {
    height: calc(100% - 8rem);
    background-color: #e6e8ed ;
    padding: 1.8rem;
  }
  .bgc{
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
  }
  .swiper-slide, .slide-zoom {
    text-align: left;
  }
  ion-slides{
    height: calc(100% - 4rem);
  }
  .swiper-slide {
    justify-content: normal;
    align-items: normal;
  }
  .learn-item {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    padding-bottom: 1rem;
  }
  .learn-title {
    background-color: rgba(18, 28, 52, 0.34);
    font-size: 1.8rem;
    color: #ffffff;
    text-align: center;
    padding: 1rem;
    border-top-left-radius: .8rem;
    border-top-right-radius: .8rem;
  }
  .item-container {
    background-color: #fff;
    height: calc(100% - 4rem);
    border-bottom-left-radius: .8rem;
    border-bottom-right-radius: .8rem;
    overflow-y: scroll;
  }
  .item-title {
    padding: 1rem;
    font-size: 1.5rem;
  }
  .item-content {
    padding: 1rem;
    p {
      margin: 1rem 0;
    }
  }
  .footer-subject {
    padding: 0 1rem;
    position: absolute;
    left: 0;
    bottom: 4rem;
    height: 5rem;
    width: 100%;
    background-color: #e6e8ed;
    display: flex;
    font-size: 1.8rem;
    div {
      line-height: 5rem;
    }
    .prev {
      flex: 3;
    }
    .next {
      flex: 3;
      text-align: right;
    }
    .index {
      flex: 3;
      text-align: center;
    }
  }
  .footer-submit {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4rem;
    width: 100%;
    border-top: .1rem solid #34b4fc;
    display: flex;
    div {
      line-height: 4rem;
    }
    .time {
      text-align: center;
      flex: 4;
    }
    .submit {
      background-color: #34b4fc;
      color: #ffffff;
      text-align: center;
      flex: 1;
    }
  }
  .ans-green {
    font-size: 1.3rem;
    background-color: #50b632;
    color: #ffffff;
    padding: 4px 5px;
    margin-left: 2rem;
    border-radius: 4px;
  }
  .ans-red {
    font-size: 1.3rem;
    background-color: #f76063;
    color: #ffffff;
    padding: 4px 5px;
    margin-left: 2rem;
    border-radius: 4px;
  }
  .selectIndex {
    position: relative;
  }
  .select-right::before {
    content: '\2713';
    position: absolute;
    left: -24px;
    top: -4px;
    transform: rotate(7deg);
    color: #50b632;
    font-size: 2.5rem;
  }
  .select-error::before {
    content: '\2718';
    position: absolute;
    left: -20px;
    top: 0;
    color: #ec1826;
    font-size: 2rem;
  }
  .item-ios p {
    margin: 15px 0;
    white-space: normal;
  }
  .input-radio {
    border: 1px solid #ddd;
    display: inline-block;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: sub;
    position: absolute;
    top: 1px;
    left: -20px;
  }
  label {
    position: relative;
    input {
      display: none;
    }
  }
  input:checked + .input-radio::after {
    content: '\2713';
    position: absolute;
    width: 10px;
    top: 2px;
    height: 10px;
    border-radius: 50%;
    background-color: #333;
    left: 2px;
  }

  .input-check {
    border: 1px solid #ddd;
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 8px;
    vertical-align: text-top;
    border-radius: 2px;
    position: absolute;
    top: 1px;
    left: -20px;
  }

  input:checked + .input-check::after {
    content: '\2713';
    position: absolute;
    width: 10px;
    top: -4px;
    left: 0px;
    height: 10px;
    font-size: 1.5rem;
    font-weight: bold;
  }
  .content-textarea {
    padding: 10px;
    min-height: 100px;
    width: 100%;
    border: 1px solid #ddd;
  }
  .submit-error{
    height: 3rem;
    width: 40%;
    background-color: #5579bb;
    color: #fff;
    line-height: 3rem;
  }
  .button-error{
    line-height: 4rem;
    height: 4rem;
    text-align: center;
    margin-top: .5rem;
  }
  .error-text{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0,0,0,.2);
    z-index: 9;
    display: flex;
    align-items: center;
    justify-content: center;
    .error-flex{
      text-align: center;
      width: 80%;
      background-color: #fff;
      .error-title{
        background-color: #5579bb;
        color: #ffffff;
        padding: 1rem 0;
      }
      .error-footer{
        height: 4rem;
        .sure,.cancel{
          color: #ffffff;
          background-color: #5579bb;
          width: 69%;
          margin-right: 10px;
          height: 3rem;
        }
      }
    }
  }
}