date-picker.scss
1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
56
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
93
94
95
96
97
@import "../common/var";
@import "../mixins/mixins";
@import "./picker-panel.scss";
@include b(date-picker) {
width: 322px;
&.has-sidebar.has-time {
width: 434px;
}
&.has-sidebar {
width: 438px;
}
&.has-time .el-picker-panel__body-wrapper {
position: relative;
}
.el-picker-panel__content {
width: 292px;
}
table {
table-layout: fixed;
width: 100%;
}
@include e(editor-wrap) {
position: relative;
display: table-cell;
padding: 0 5px;
}
@include e(time-header) {
position: relative;
border-bottom: 1px solid $--datepicker-inner-border-color;
font-size: 12px;
padding: 8px 5px 5px 5px;
display: table;
width: 100%;
box-sizing: border-box;
}
@include e(header) {
margin: 12px;
text-align: center;
@include m(bordered) {
margin-bottom: 0;
padding-bottom: 12px;
border-bottom: solid 1px $--border-color-lighter;
& + .el-picker-panel__content {
margin-top: 0;
}
}
}
@include e(header-label) {
font-size: 16px;
font-weight: 500;
padding: 0 5px;
line-height: 22px;
text-align: center;
cursor: pointer;
color: $--color-text-regular;
&:hover {
color: $--datepicker-text-hover-color;
}
&.active {
color: $--datepicker-active-color;
}
}
@include e(prev-btn) {
float: left;
}
@include e(next-btn) {
float: right;
}
@include e(time-wrap) {
padding: 10px;
text-align: center;
}
@include e(time-label) {
float: left;
cursor: pointer;
line-height: 30px;
margin-left: 10px;
}
}