aboutsummaryrefslogtreecommitdiffstats
path: root/english/startpage.css
blob: b62ce5cf6189fa714d519436128c02e5b613998a (plain) (blame)
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
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
/*
  This stylesheet file is used within the intro website.

  https://www.debian.org Stylesheet

  Copyright Debian WebTeam 2019

  This stylesheet is free software; you can redistribute it and/or modify it
  under the terms of the GNU General Public License, version 2, as published by
  the Free Software Foundation.

  This program is distributed in the hope that it will be useful, but WITHOUT ANY
  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  PARTICULAR PURPOSE. See the GNU General Public License for more details.

  You should have received a copy of the GNU General Public License along with
  this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
  Street, Fifth Floor, Boston, MA 02110-1301 USA.

  The license text can also be found at http://www.gnu.org/copyleft/gpl.html and
  /usr/share/common-licenses/GPL-2 on Debian.
*/

html {
	font-size: 16px;
}
h1 {
	font-size: 2.2em;
}
hr {
	margin: 1em;
}

/* 
	Basically taken from https://www.yudiz.com/3-easiest-ways-to-make-equal-height-blocks-using-css/
	Method 3: Using CSS Flex Box
	and https://dev.to/drews256/ridiculously-easy-row-and-column-layouts-with-flexbox-1k01
*/
.row {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	width: 100%;
}
.column {
	display: flex;
	flex-direction: column;
	flex-basis: 100%;
	flex: 1;
	padding: 20px;
	border: 1px solid #fff;
	transition: all .2s ease-in-out;
	width: 50%;
}
.column-left, .column-right {
	/* Currently not used and empty. */
}

/* 
	CSS classes for columns greater than 50%.
  Only useful in combination with the base class 'column'.
*/
.column-2-parts {
	display: flex;
	flex-direction: column;
	flex-basis: 100%;
	flex: 2;
}
.column-3-parts {
	display: flex;
	flex-direction: column;
	flex-basis: 100%;
	flex: 3;
}
.column-4-parts {
	display: flex;
	flex-direction: column;
	flex-basis: 100%;
	flex: 4;
}
.community img {
	height: 60px;
}
div .community {
	padding: 10px 0;
	color: #fff;
}
.column-2-parts > h2,
.column-3-parts > h2,
.column-4-parts > h2 {
	padding-top: 20px;
}
.column-2-parts > p,
.column-3-parts > p,
.column-4-parts > p {
	margin-top: 10px;
}
.community.column:focus img {
	border: none;
	outline: 0;
}
.community.column:hover {
	border: 1px solid #fcfcfc;
}
.column:hover {
	border: 1px solid #e2e2e2;
	background: #fcfcfc;
}
.column h1 {
	text-transform: uppercase;
	text-align: center;
	letter-spacing: 0.08em;
	font-weight: bold;
}
.column h2 {
	margin: .2em;
}
.column img {
	object-fit: contain;
	max-width: 96%;
	max-height: 400px;
	padding: 10px 0;
}

/* Classes used within 'The Operating System' */
.os-img-container {
	position: relative;
	width: 100%;
}
.os-img-container img {
	max-width: 100%;
	height: auto;
}
.os-dl-btn {
	width: 8em;
	text-decoration: none;
}

/* 
	Unfortunately the 'backdrop-filter' element isn't working even in FF >= 60.x,
	which would be a nice use case here, using the classical CSS button method then.
	For more info see: https://webkit.org/blog/3632/introducing-backdrop-filters/ 
*/
.os-img-container .os-dl-btn {
	position: absolute;
	top: 82%;
	left: 50%;
	transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	background-color: #090909C0;
	color: #fff;
	font-size: 2.3em;
	padding: 10px 40px;
	border: none;
	cursor: pointer;
	border-radius: 10px;
	text-decoration: none;
}
.os-img-container .os-dl-btn:hover {
	background-color: #000;
	color: #fff;
}

.os-img-container .os-other-download {
	position: absolute;
        top: 95%;
        width: 100%;
        display: block;
        text-align: center;
}
/* END Classes used within 'The Operating System' */

.styled-href-blue a,
.project-news-content a,
.styled-href-blue a:hover,
.project-news-content a:hover {
	text-decoration: none;
	position: relative;
	color: #3366FF;
}
.styled-href-blue a::after,
.project-news-content a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	border-bottom: 2px solid currentColor;
	transition: 0.35s;
}
.styled-href-blue a:focus::after,
.styled-href-blue a:hover::after,
.project-news-content a:focus::after,
.project-news-content a:hover::after {
	width: 100%;
}

/* Classes used within 'Project News' */
.project-news {
	margin-left: 15%;
	padding: 20px;
}
.project-news-content {
	padding-left: 110px;
	margin-top: -40px;
	font-size: 1.1em;
}
.project-news-content-end {
	position: relative;
	top: 38px;
	margin-bottom: 25px;
}
.end-of-list-arrow {
	width: 0;
	height: 0;
	-webkit-transform: rotate(360deg);
	-moz-transform: rotate(360deg);
	border-style: solid;
	border-width: 15px 0 15px 26px;
	border-color: transparent transparent transparent #999;
	position: relative;
	left: 3.5em;
	top: 24px;
}

/*
	The following rules are taken from https://codepen.io/denilsonsa/pen/Etrba
	but are modified to fit better into our design. 
*/
.date-as-calendar {
	font-variant: normal;
	font-style: normal;
	font-weight: normal;
	font-family: "Helvetica", "Arial", sans-serif;
	/* It seems vertical-align: baseline does not work correctly with display: inline-flex. */
	vertical-align: top;
	color: #000;
	background: #fff;
	background: linear-gradient(to bottom right, #fff 0%, #eee 100%);
	border: 1px solid #888;
	border-radius: 3px;
	overflow: hidden;
	box-shadow: 2px 2px 2px -2px #000;
}
.date-as-calendar .day,
.date-as-calendar .month,
.date-as-calendar .year {
	text-align: center;
	line-height: 1.0;
}
.date-as-calendar .month {
	font-family: "Oswald", sans-serif;
	text-transform: uppercase;
	background: #a00;
	background: linear-gradient(to bottom right, #b60109 0%, #a00 100%);
	color: #fff;
}

/* Layout rules using position: absolute and relative dimensions using em. */
.position-em.date-as-calendar {
	display: inline-block;
	position: relative;
	width: 4.4em;
	height: 2.6em;
}
.position-em.date-as-calendar .day,
.position-em.date-as-calendar .month,
.position-em.date-as-calendar .year {
	display: block;
	position: absolute;
	left: 0;
	right: 0;
	width: 100%;
	height: 1em;
}
.position-em.date-as-calendar .month {
	top: 0;
	font-size: 0.6em;
	padding: 0.2em 0;
	margin-top: -0.1em;
	line-height: 1.1em;
}
.position-em.date-as-calendar .day {
	top: .6em;
	font-size: 1.2em;
	margin-top: 0.1em;
}
.position-em.date-as-calendar .year {
	bottom: 0;
	font-size: 0.6em;
}

/* Multiple sizes. */
.date-as-calendar.size0_5x {
	font-size: 8px;
}
.date-as-calendar.size0_75x {
	font-size: 12px;
}
.date-as-calendar.size1x {
	font-size: 16px;
}
.date-as-calendar.size1_25x {
	font-size: 20px;
}
.date-as-calendar.size1_5x {
	font-size: 24px;
}
.date-as-calendar.size1_75x {
	font-size: 28px;
}
.date-as-calendar.size2x {
	font-size: 32px;
}
.date-as-calendar.size3x {
	font-size: 48px;
}
/* END Classes used within 'Project News' */

/* Classes used within 'Why Debian' */
ol.why-debian {
	list-style-type: none;
	list-style-type: decimal !ie; /*IE 7- hack*/
	margin: 0;
	font-size: 1.1em;
	padding-left: 15%;
	counter-reset: li-counter;
}
ol.why-debian > li {
	position: relative;
	margin: 1.5em 0 2.5em;
	padding: 1.3em;
	background-color: #eaeaea;
	max-width: 75%;
}

ol.why-debian > li:before {
	position: absolute;
	top: -0.5em;
	left: -0.8em;
	width: 1.8em;
	height: 1.2em;
	font-size: 2em;
	line-height: 1.2;
	font-weight: bold;
	text-align: center;
	color: #fff;
	background-color: #a80030;	/* The color of the swirl. */
	transform: rotate(-15deg);
	-ms-transform: rotate(-15deg);
	-webkit-transform: rotate(-15deg);
	z-index: 99;
	overflow: hidden;
	content: counter(li-counter);
	counter-increment: li-counter;
}
/* END Classes used within 'Why Debian' */

@media screen and (min-width: 800px) {
	.column {
		flex: 1;
	}
	.column-2-parts {
		flex: 2;
	}
	.column-3-parts {
		flex: 3;
	}
	.column-4-parts {
		flex: 4;
	}
}
@media(max-width: 1580px) {
	html {
		font-size: 15px;
	}
}
@media(max-width: 1250px) {
	html {
		font-size: 14px;
	}
}
@media(max-width: 980px) {
	html {
		font-size: 13px;
	}
}
@media(max-width: 800px) {
	html {
		font-size: 12px;
	}
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy