-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.css
86 lines (71 loc) · 1.4 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
:root {
--font-size: 2.0rem;
--font-size--mobile: 1.6rem;
--line-height: 1.08;
--margin: 6rem;
/*originally 3.2rem*/
--margin--mobile: 1.6rem;
--columns: 4;
--columns--mobile: 2;
--font-family: Arial, sans-serif;
}
*,
*:after,
*:before {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
font-size: 62.5%; /* Now 10px = 1rem! */
-webkit-text-size-adjust: 100%;
}
body {
font-family: var(--font-family);
font-size: var(--font-size);
line-height: var(--line-height);
min-height: 100vh;
background-image: url("./images/background/Car.png");
background-attachment: fixed;
background-repeat: no-repeat;
background-position: center center;
background-size: cover;
}
ul {
list-style-type: none;
}
.images__list {
display: flex;
flex-wrap: wrap;
}
.images__list__item {
width: calc(100vw / var(--columns));
height: calc(100vw / var(--columns));
padding: var(--margin);
}
.images__list__item img {
display: block;
width: 100%;
height: 100%;
object-fit: contain;
object-position: center center;
}
.tooltip {
display: none;
position: fixed;
top: 0;
left: 0;
background: #fff;
color: #000;
padding: calc(0.25 * var(--margin));
}
.tooltip.active {
display: block;
}
@media screen and (max-width: 768px) {
:root {
--margin: var(--margin--mobile);
--font-size: var(--font-size--mobile);
--columns: var(--columns--mobile);
}
}