-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.css
119 lines (105 loc) · 2.01 KB
/
main.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
:root {
--main-img-size-width: 320px;
--main-img-size-height: 180px;
--theme-color-red: #f15c42;
--theme-color-green: #448371;
--theme-color-blue: #327b96;
--theme-color-gray: #2E2E2E;
}
.red {
background-color: var(--theme-color-red);
}
.green {
background-color: var(--theme-color-green);
}
.blue {
background-color: var(--theme-color-blue);
}
.active {
font-weight: bold;
}
.text {
color: white;
font-size: 16px;
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
text-align: center;
}
body {
background-color: floralwhite;
/*background-color: var(--theme-color-gray);*/
}
header {
padding: 35px;
position: fixed;
color: black;
}
main {
padding-top: 10px;
margin-left: 250px;
text-align: left;
height: 100%;
display: block;
overflow: hidden;
}
a {
text-decoration: none;
}
a:link, a:visited, a:hover {
color: black;
}
a:active {
color: darkslategrey;
}
ul.menu {
padding-left: 0px;
cursor: pointer;
list-style-type: none;
text-transform: uppercase;
}
li.menu-item {
border-top: solid black 1px;
padding-top: 5px;
}
/* Alignment
https://kyusuf.com/post/almost-complete-guide-to-flexbox-without-flexbox/
*/
article.container {
display: inline-block;
position: relative;
vertical-align: middle;
width: var(--main-img-size-width);
height: var(--main-img-size-height);
cursor: pointer;
transition: height 1s ease;
transition-delay: 0.5s;
}
article.container:hover {
height: var(--main-img-size-width);
}
img.image {
object-fit: cover;
display: inline-block;
width: var(--main-img-size-width);
height: var(--main-img-size-height);
transition: height 1s ease;
transition-delay: 0.4s;
}
img.image:hover {
height: var(--main-img-size-width);
}
@media screen and (max-width: 600px) {
header {
text-align: center;
float: none;
position: relative;
}
main {
text-align: center;
margin-left: 0px;
}
}