-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.css
101 lines (86 loc) · 1.83 KB
/
index.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
*, *::before, *::after {
box-sizing: border-box;
}
body {
margin: 0;
background: #000;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
/**
* the cool thing about Web components is that
* we can provide a fully functional no-js fallback of the component
*/
image-slider {
position: absolute;
top: 0;
left: 0;
display: flex;
width: 100vw;
height: 100vh;
justify-content: center;
align-items: center;
}
image-slider ul {
list-style: none;
padding: 0;
margin: 0;
}
image-slider ul li {
margin: 0;
padding: 0;
}
image-slider ul li img {
display: block;
width: 100vmin;
height: 100vmin;
}
image-slider:not([index]) ul li:not(:first-child),
image-slider[index="1"] ul li:not(:nth-child(1)),
image-slider[index="2"] ul li:not(:nth-child(2)),
image-slider[index="3"] ul li:not(:nth-child(3)),
image-slider[index="4"] ul li:not(:nth-child(4)),
image-slider[index="5"] ul li:not(:nth-child(5)),
image-slider[index="6"] ul li:not(:nth-child(6)),
image-slider[index="7"] ul li:not(:nth-child(7)),
image-slider[index="8"] ul li:not(:nth-child(8)),
image-slider[index="9"] ul li:not(:nth-child(9)) {
display: none;
}
nav {
position: absolute;
bottom: 16px;
left: 0;
right: 0;
display: block;
}
nav ul {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-wrap: wrap-reverse;
justify-content: center;
}
nav ul li {
padding: 0;
margin: 16px;
}
nav ul li a {
font-variant-numeric: tabular-nums;
display: block;
padding: 8px;
width: 40px;
font-size: 16px;
border: 2px solid #fff;
background: #127;
text-align: center;
border-radius: 50%;
color: #fff;
text-decoration: none;
font-weight: bold;
}
nav ul li a.active {
background: #fff;
color: #127;
border: 2px solid #fff;
}