UNPKG

2.62 kBSCSSView Raw
1//
2// date-picker 样式
3//
4#{$range-picker-prefix} {
5
6 display: inline-block;
7 width: calc(#{$s-28} * 3);
8
9 &-input {
10 width: 100%;
11 }
12
13 &-trigger {
14 // Extend next-input
15 border: $input-border-width solid $input-border-color;
16 background-color: $input-bg-color;
17
18 // Extend next-input
19 &:hover {
20 border-color: $input-hover-border-color;
21 background-color: $input-hover-bg-color;
22 }
23
24 // Extend next-input
25 &.#{$css-prefix}error {
26 border-color: $input-feedback-error-border-color;
27 }
28
29 &-separator {
30 @extend %input-separator;
31 }
32
33 &-input#{$date-picker-input-prefix} {
34 height: auto;
35 width: calc((100% - #{$date-picker-input-separator-width}) / 2);
36 }
37 }
38
39 &.#{$css-prefix}disabled {
40 #{$range-picker-prefix}-trigger {
41 @include input-disabled();
42 }
43 }
44
45 &.#{$css-prefix}large {
46 @include range-picker-input-corner($form-element-large-corner);
47 }
48
49 &.#{$css-prefix}medium {
50 @include range-picker-input-corner($form-element-medium-corner);
51 }
52
53 &.#{$css-prefix}small {
54 @include range-picker-input-corner($form-element-small-corner);
55 }
56
57 &-body {
58 width: calc(#{$s-30} * 5);
59 }
60
61 &-panel {
62 &-input-separator {
63 @extend %input-separator;
64 }
65
66 &-input-start-date#{$date-picker-input-prefix},
67 &-input-end-date#{$date-picker-input-prefix} {
68 width: calc((100% - #{$date-picker-input-separator-width}) / 2);
69 }
70 }
71}
72
73#{$range-picker-prefix}-body#{$range-picker-prefix}-body-show-time {
74 #{$range-picker-prefix}-panel {
75 &-input-start-date,
76 &-input-end-date,
77 &-input-start-time,
78 &-input-end-time {
79 width: calc((100% - #{$date-picker-input-separator-width} - #{$s-4}) / 4);
80 }
81
82 &-input-start-date {
83 margin-right: $s-2;
84 }
85
86 &-input-end-time {
87 margin-left: $s-2;
88 }
89
90 // time-panel
91 &-time {
92 @include clearfix;
93 }
94
95 &-time-start, &-time-end {
96 width: 50%;
97 float: left;
98 }
99
100 &-time-start {
101 // Extend time-picker border
102 border-right: $line-1 $line-solid $date-picker-panel-time-panel-separator-color;
103 }
104
105 &-time-end {
106 // Extend time-picker border
107 border-left: $line-1 $line-solid $date-picker-panel-time-panel-separator-color;
108 }
109 }
110}