-
Notifications
You must be signed in to change notification settings - Fork 287
/
Copy pathindex.scss
102 lines (87 loc) · 2.06 KB
/
index.scss
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
98
99
100
101
102
@import '../../../../styles-var/devui-var.scss';
$panel-width: 230px;
$panel-height: 210px;
$panel-padding: 5px;
$panel-row-height: 24px;
$panel-cell-bg: transparent;
$panel-cell-color: $devui-text;
$panel-cell-active-bg: $devui-list-item-active-bg;
$panel-cell-active-color: $devui-list-item-active-text;
$panel-cell-active-hover-bg: $devui-list-item-active-bg;
$panel-cell-active-hover-color: $devui-list-item-active-text;
.#{$devui-prefix}-calendar-panel {
width: $panel-width;
padding: $panel-padding;
box-sizing: border-box;
overflow: hidden;
.row {
display: flex;
flex-direction: row;
justify-content: space-between;
height: $panel-row-height;
.cell {
width: 100%;
text-align: center;
flex-grow: 1;
flex-shrink: 1;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
border-radius: $devui-border-radius;
background-color: $panel-cell-bg;
color: $panel-cell-color;
&:hover {
background-color: $devui-range-item-hover-bg;
}
&.selected {
background-color: $panel-cell-active-bg;
color: $panel-cell-active-color;
&:hover {
background-color: $panel-cell-active-hover-bg;
color: $panel-cell-active-hover-color;
}
}
&.innerday {
background-color: $devui-disabled-bg;
}
&.disabled,
&.not-current {
color: $devui-disabled-text;
}
&.disabled {
cursor: not-allowed;
}
}
}
.head {
cursor: default;
padding: 0;
margin: 0;
}
.body {
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
cursor: pointer;
list-style: none;
}
.today-container {
padding: 8px 8px;
display: flex;
flex-direction: row;
justify-content: flex-end;
&.disabled {
.today-button {
cursor: not-allowed;
}
}
.today-button {
border-radius: 3px;
padding: 2px 20px;
font-size: 12px;
color: $devui-brand-active;
}
}
}