-
Notifications
You must be signed in to change notification settings - Fork 4
/
style.css
234 lines (200 loc) · 6.23 KB
/
style.css
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
135
136
137
138
139
140
141
142
143
144
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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
/* CSS variables. */
:root {
--standard-text-color-headline: #dbafe0;
--standard-border-radius: 10px;
--standard-border-style: ridge;
--border-style-buttons: solid;
--standard-border-color: rgb(209, 82, 203);
--standard-background-color-selector: rgb(88, 36, 80);
--standard-margin-selector: 5px;
--standard-font-color-selector: black;
--day-year-font-color-selector: white;
--standard-font-weight: bold;
--week-number-table-left-right-margin: 20px;
--week-number-table-cell-padding: 5px;
}
* {
box-sizing: border-box;
}
body {
background-color: rgb(138, 153, 170);
}
.navbar {
display: flex;
}
.navbar a {
flex-basis: 300px;
line-height: 30px;
text-decoration: none;
text-align: center;
font-weight: var(--standard-font-weight);
color: var(--standard-font-color-selector);
}
.navbar a:hover {
background-color: var(--standard-background-color-selector);
border-radius: var(--standard-border-radius);
}
/* wrapper is the container of all objects of the website. */
.wrapper {
background-color: rgb(178, 162, 180);
width: 80%;
margin-left: 10%;
margin-right: 10%;
margin-top: 30px;
border-radius: var(--standard-border-radius);
border-style: var(--standard-border-style);
border-color: var(--standard-border-color);
}
/* The head line of the website. */
#ThemeTitle {
background-color: var(--standard-background-color-selector);
margin: 5px;
margin-bottom: 10px;
color: var(--standard-text-color-headline);
border-color: var(--standard-border-color);
border-radius: var(--standard-border-radius);
border-style: var(--standard-border-style);
padding: 5px;
font-size: 20px;
font-weight: var(--standard-font-weight);
text-align: center;
text-shadow: 2px 2px rgb(65, 33, 68);
font-style: oblique;
}
/* the container for the input elements for the year, month and button for the current month. */
#Selector {
display: grid;
grid-template-columns: 1fr auto 20ch auto;
column-gap: 10px;
background-color: var(--standard-background-color-selector);
border-radius: var(--standard-border-radius);
border-style: var(--standard-border-style);
border-color: var(--standard-border-color);
margin: var(--standard-margin-selector);
}
/* Id "month": the drop down list to choose the month. */
#monthSelector {
color: var(--standard-font-color-selector);
font-weight: bold;
margin: var(--standard-margin-selector);
border-style: var(--border-style-buttons);
border-color: var(--standard-border-color);
}
/* Text lable before the input field for the year */
#markerYear {
font-size: var(--font-size);
font-weight: var(--standard-font-weight);
color: var(--day-year-font-color-selector);
}
/* Id "year": field in which the year as number is entered. */
#yearInput {
color: var(--standard-font-color-selector);
margin: var(--standard-margin-selector);
border-style: var(--border-style-buttons);
border-color: var(--standard-border-color);
}
/* Id "showButton": Button to click to show the current month of today. */
#showButton {
--font-size: 13px;
margin: var(--standard-margin-selector);
color: var(--standard-font-color-selector);
font-size: var(--font-size);
height: calc(var(--font-size) + 25px);
border-style: var(--border-style-buttons);
border-radius: var(--standard-border-radius);
border-color: var(--standard-border-color);
}
/* End of the elements inside the selector element.*/
/* The container of the day boxes */
#dayList {
display: grid;
margin: var(--standard-margin-selector);
grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
grid-gap: var(--standard-margin-selector);
}
/* Styling of the error messages displayed instead of the days of a month */
#unvalidYear {
margin: var(--standard-margin-selector);
border-radius: var(--standard-border-radius);
border-style: var(--border-style-buttons);
color: white;
background-color: red;
text-align: center;
font-weight: bold;
font-size: 30px;
}
/* How a box for a day looks like. A Day box shows the number of the day in the month and
which weekday it is. */
.day {
background-color: var(--standard-background-color-selector);
color: var(--day-year-font-color-selector);
padding-left: 5px;
padding-top: 5px;
height: 50px;
border-style: var(--standard-border-style);
border-radius: var(--standard-border-radius);
border-color: var(--standard-border-color);
}
#calenderWeeks {
--left-right-margin: auto;
margin-top : var(--week-number-table-left-right-margin);
margin-bottom: var(--week-number-table-left-right-margin);
margin-left: var(--left-right-margin);
margin-right: var(--left-right-margin);
}
.calenderWeekHeader, .calenderWeekRow {
background-color: var(--standard-background-color-selector);
color: var(--day-year-font-color-selector);
}
.calenderWeekHeader th, .calenderWeekRow td {
border-style: var(--standard-border-style);
padding: var(--week-number-table-cell-padding);
border-color: var(--standard-border-color);
}
.weekNumber {
text-align: center;
}
#noScriptText {
text-align: center;
font-weight: bold;
border-radius: 10px;
background-color: orange;
margin-left: var(--standard-margin-selector);
margin-right: var(--standard-margin-selector);
}
/* Handling for smartphones. */
@media screen and (max-width: 700px) {
#wrapper {
width: 95%;
min-width: 330px;
--margin: 2%;
margin-left: var(--margin);
margin-right: var(--margin);
margin-top: 2%;
}
#ThemeTitle {
font-size: 18px;
}
#monthSelector {
grid-area: monthSelector;
}
#markerYear {
grid-area: markerYear;
margin-left: 5px;
}
#yearInput {
grid-area: yearInput;
}
#showButton {
grid-area: showButton;
}
/* For better usability the dropdown menu for the months are placed below every other
element of the selector */
#Selector {
grid-template-columns: auto 1fr 1fr;
grid-template-areas: "markerYear yearInput showButton"
"monthSelector monthSelector monthSelector" ;
grid-auto-flow: column;
column-gap: 2px;
}
}