-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
92 lines (76 loc) · 1.66 KB
/
styles.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
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
:root {
--wp: url('./wallpaper/day.jpg'); /*used as fallback if wallpaper.js fails*/
--columns: 6;
--clock-start: 1;
--clock-end: 4;
--weather-start: 4;
--weather-end: 7;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background-color: rgba(255, 255, 255, 0.671);
color: #fff;
font-family: 'Roboto', sans-serif;
}
.container {
display: grid;
grid-template-columns: repeat(var(--columns), 1fr);
height: 100vh;
}
.card {
background-image: var(--wp);
background-size: cover;
background-attachment: fixed;
background-position: center;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
transition: all .25s;
}
.container > div:nth-of-type(1) {
grid-column: var(--clock-start) / var(--clock-end);
grid-row: 1 / 2;
}
.container > div:nth-of-type(2) {
grid-column: var(--weather-start) / var(--weather-end);
grid-row: 1 / 2;
}
.clickable:hover {
transform: scale(.98);
transition-timing-function: ease-in-out;
}
.weather {
flex-direction: row;
}
#time {
font-size: 5em;
}
a {
display: block;
height: 100%;
width: 100%;
text-decoration: none;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
}
.clickable img {
height: auto;
width: auto;
-webkit-filter: drop-shadow(5px 5px 5px #222);
filter: drop-shadow(5px 5px 5px #222);
}
hr {
border-top: 2px solid white;
width: 50%;
margin-bottom: 10px;
}