Blame view

src/components/date-picker/date-picker.scss 3.14 KB
simon committed
1 2
@import '@/styles/_support';

simon committed
3 4 5 6
.comp {
  position: relative;
}

simon committed
7 8 9 10 11 12
// 日历容器
.date-wrap {

  font-family: Arial;
  font-size: 14px;

simon committed
13

simon committed
14 15
  // 日历
  .calendar-wrap {
simon committed
16 17 18

    position: absolute;
    // position: relative;
simon committed
19
    z-index: 800;
simon committed
20 21 22
    margin-top: 12px;
    margin-left: 0px;

simon committed
23
    @extend .bb;
1  
joe committed
24 25
    max-width: 37.5rem;
    min-width: 25rem;
simon committed
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
    height: 320px;
    border-radius: $borderRadius;
    background-color: wheat;
    border: solid 1px #dcdddd;
    padding: 28px 36px 18px 36px;
    background-color: #ffffff;

    // 年月标题
    .nav-wrap {
      @extend .flc;
      align-items: center;
      color: $cOrange;

      .date-wrap {
        @extend .flb;
        align-items: center;

        .date {
          // margin: 0 40px;
          width: 154px;
          text-align: center;
        }
      }

      .nav-btn2 {
        color: #959595;
      }
    }

    .con {
simon committed
56
      @extend .bb;
simon committed
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
      margin: 12px auto 0;

      // 表头
      .th {
        @extend .flb;

        // 单元格
        .td {
          color: $cOrange;
        }
      }

      // 表体
      .tr {
        @extend .flb;
        justify-content: flex-start;
        flex-wrap: wrap;

        .td {
          text-align: center;
          width: calc(100%/7);
          height: 34px;
          @extend .flb;
          justify-content: center;
          align-items: center;
        }
      }

      .point {
        width: 28px;
        height: 28px;
        line-height: 28px;
        text-align: center;
        border-radius: 100%;
      }

simon committed
93
      // 不需要选择状态
simon committed
94 95 96 97 98
      .sel {
        color: #ffffff;
        background-color: $cOrange;
      }
    }
simon committed
99 100 101 102

    // 日
    .day {}

simon committed
103 104
    .month,
    .year {
simon committed
105 106 107 108 109 110 111 112 113 114 115

      margin: 36px auto 0;

      .tr {
        .td {
          width: calc(100%/4);
          height: 64px;
        }
      }

      .point {
116 117 118
        width: 120px;
        height: 64px;
        line-height: 64px;
simon committed
119 120
      }
    }
simon committed
121 122 123 124 125 126 127
  }
}

.disable {
  color: #dcdddd !important;
  cursor: default !important;
}
simon committed
128

simon committed
129
.gray {
simon committed
130 131 132
  color: #dcdddd !important;
}

simon committed
133 134 135 136
.ipt-wrap {
  position: relative;
  display: flex;
  justify-content: space-between;
simon committed
137
  z-index: 900;
simon committed
138 139 140 141

  // input和下拉
  .ipt {
    flex: 1;
simon committed
142 143 144
  }

  .ipt:lang(zh) {
simon committed
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195
    letter-spacing: .1rem;
  }

  // 长文本
  .textarea {
    min-height: 8.75rem;
    border-radius: 1rem;
  }

  .down-arrow {
    position: absolute;
    top: 2.2rem;
    right: 2rem;
  }


  .verify-btn {
    @extend .fcc;
    // font-family: Arial;
    font-size: 18px;
    width: 8.5rem;
    border: solid 1px #dcdddd;
    background-color: #f2f2f2;
    flex: none;
    margin-left: 1.5rem;
    color: $cFontGray;
  }


  // 框内按钮
  .ipt2 {
    display: flex;
    justify-content: space-between;
    align-items: center;

    .ipt-code {
      flex: 1;
      padding-right: 1.75rem;
    }

    .veri-btn {
      color: $cOrange;
      text-decoration: underline;
    }

    .veri-btn-default {
      color: #aaaaaa;
    }
  }
}

simon committed
196
.readonly {
simon committed
197 198 199
  z-index: 1;
}

simon committed
200 201 202 203 204
// 遮罩
.date-mask {
  width: 100%;
  height: 100%;
  position: fixed;
simon committed
205
  z-index: 800;
simon committed
206 207 208
  left: 0;
  top: 0;
}
simon committed
209 210 211 212 213 214 215 216 217


@media (max-width: 768px) {
  .date-wrap {
    .calendar-wrap {
      padding: 24px 12px 12px;
    }
  }
}