Skip to content
read-learn.scss 3.18 KiB
Newer Older
wangqinghua's avatar
wangqinghua committed
page-read-learn {
  .main-container{
    height: calc(100% - 8rem);
    background: #e6e8ed url(../../../../assets/imgs/learn/learning_background.png) no-repeat;
    padding: 1.5rem;
  }
  .swiper-slide,.slide-zoom{
    text-align: left;
  }
  .swiper-slide{
    justify-content: normal;
    align-items: normal;
  }
  .learn-item{
    height: 100%;
  }
  .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: 100%;
    border-radius: .8rem;
    overflow: auto;
  }
  .test + .test{
    border-top: 1px solid #eee;
    margin: .8rem 0;
  }
  .right,.error{
    color: #a6b8d9;
    position: relative;
  }
  .right::before{
    content: '\2714';
    position: absolute;
    left: -20px;
    top: 0px;
    color:  #a6b8d9;
  }
  .check.right,
  .check.right::before{
    color:  #4bb825;
  }
  .error::before{
    content: '\2716';
    position: absolute;
    left: -20px;
    top: 0px;
    color:  #a6b8d9;
  }
  .check.error,
  .check.error::before{
    color:  #f95f5f;
  }
  .item-title{
    padding: 1rem;
    font-size: 1.5rem;
  }
  .item-content{
    padding: 1rem;
    font-size: 1.6rem;

    div{
      p{
        margin-bottom: .8rem;
        margin-left: .8rem;
      }
    }
  }
  .footer-subject {
    padding: 0 1rem;
    position: absolute;
    left: 0;
    bottom: 5rem;
    height: 5rem;
    width: 100%;
    background-color: #e6e8ed;
    display: flex;
    div {
      line-height: 5rem;
    }
    .prev {
      flex: 3;
    }
    .next {
      flex: 3;
      text-align: right;
    }
    .index {
      flex: 1;
      text-align: center;
    }
  }
  .footer-submit {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 5rem;
    width: 100%;
    border-top: .1rem solid #34b4fc;
    display: flex;
    div {
      line-height: 5rem;
    }
    .time {
      text-align: center;
      flex: 4;
    }
    .submit {
      background-color: #34b4fc;
      color: #ffffff;
      text-align: center;
      flex: 1;
    }
  }

  .item-ios p {
    margin: 15px 0;
    white-space: normal;
  }
  .input-radio {
    border: 1px solid #ddd;
    display: inline-block;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 8px;
    vertical-align: sub;
    position: absolute;
    top: 1px;
    left: -30px;
  }
  label {
    position: relative;
    input {
      display: none;
    }
  }
  input:checked + .input-radio::after {
    content: '';
    position: absolute;
    width: 1rem;
    top: 2px;
    height: 1rem;
    border-radius: 50%;
    background-color: #14608e;
    left: 2px;
  }

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

  input:checked + .input-check::after {
    content: '\2713';
    position: absolute;
    width: 10px;
    top: -4px;
    left: 0px;
    height: 10px;
    font-size: 2rem;
    font-weight: bold;
    color: #14608e;
  }
  .content-textarea {

  }
}