-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
88 lines (73 loc) · 1.94 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
@import url('https://fonts.googleapis.com/css?family=Lato&display=swap');
* {
box-sizing: border-box;
}
body {
/* background-image: url('https://images.unsplash.com/photo-1467810563316-b5476525c0f9?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1349&q=80'); */
/* background-image: url('./img/new-year.jpg'); */
background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('./img/new-year.jpg');
background-repeat: no-repeat;
background-size: cover;
background-position: center center;
height: 100vh;
color: #fff;
font-family: 'Lato', sans-serif;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
margin: 0;
overflow: hidden;
}
h1 {
font-size: 60px;
margin: -80px 0 40px;
}
.year {
font-size: 200px;
opacity: 0.2;
position: absolute;
bottom: 20px; /* odozdo odvoji 20px */
}
/*
U startu ne želimo da prikazujemo vreme, dok traje prikaz kružića za učitavanje (spinner)
pa tako postavljamo display na none. Jednom kada želimo da prikažemo vreme postavićemo
display na flex.
*/
.countdown {
display: none;
/* svi elementi u okviru countdown div-a su "fleksibilni" */
/* display: flex; */
/* ređamo fleksibilne elemente tako da budu u jednom redu */
flex-direction: row; /* podrazumevani način ređanja elemenata */
/* ako želimo, row-reverse će poređati elemente tako da imaju obrnuti redosled */
/* flex-direction: row-reverse; */
transform: scale(2); /* prikazano vreme će biti duplo veće veličine (2) */
text-align: center;
}
.time {
margin: 15px;
}
.time h2 {
margin: 0 0 5px;
}
/* ukoliko širina prozora (ekrana) bude manja od 500px primeni sledeća svojstva */
@media (max-width: 500px) {
h1 {
font-size: 45px;
}
.time {
margin: 5px;
}
.time h2 {
font-size: 12px;
margin: 0;
}
.time small {
font-size: 10px;
}
.year {
font-size: 100px;
}
}