aboutsummaryrefslogtreecommitdiff
path: root/static/widgets/month-select/index.css
blob: 25ed5d25aeb13dd688e66454d554a8ce69dcb476 (plain)
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
:host {
	position: fixed;
	top: 0;
	left: 0;
}

#container {
	z-index: 1000;
	position: fixed;
	bottom: -100%;
	left: 5px;
	right: 5px;
	background: #fff9;
	backdrop-filter: blur(10px);
	border-radius: var(--border-radius);
	transition: bottom 0.2s ease;
	height: calc(100% - 10px);
	box-shadow: var(--shadow);
	padding: 10px;
}

#container.visible {
	bottom: 5px;
}

#close-button {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 25px;
	height: 25px;
	border-radius: 100%;
	background: var(--page-background);
	cursor: pointer;
}

#title {
	font-size: 1.2em;
	user-select: none;
	margin-bottom: 10px;
}

#month-container {
	height: calc(100% - 30px);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.month-item {
	padding: 10px;
	padding-left: 20px;
	margin: 5px;
	border-radius: var(--border-radius);
	user-select: none;
	cursor: pointer;
	position: relative;
}

.month-item.none {
	font-style: italic;
}

.month-item:before {
	content: '';
	display: block;
	position: absolute;
	background: var(--primary);
	top: 0px;
	left: 0px;
	width: 4px;
	height: 47px;
}

.month-item:after {
	content: '';
	display: block;
	position: absolute;
	background: var(--primary);
	top: 50%;
	transform: translate(0, -50%);
	left: 0px;
	width: 12px;
	height: 4px;
}

.month-item:first-child:before {
	top: 50%;
	height: 27px;
}

.month-item.none:before {
	top: 0;
	height: 20px;
}

.month-item:hover {
	background: var(--primary);
	color: var(--fg-primary);
}

.year-item {
	padding: 10px 20px;
	font-size: 1.1em;
	margin: 5px;
	position: relative;
	font-weight: bold;
	background: #fffa;
	border-radius: var(--border-radius);
	box-shadow: #22322355 1px 1px 2px;
}

.year-item:before {
	content: '';
	display: block;
	position: absolute;
	background: var(--primary);
	top: 0px;
	left: 0px;
	width: 4px;
	height: 50px;
}

.year-item:after {
	content: '';
	display: block;
	position: absolute;
	background: var(--primary);
	top: 50%;
	transform: translate(0, -50%);
	left: -4px;
	width: 12px;
	height: 12px;
	border-radius: 100%;
}