-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
121 lines (91 loc) · 1.87 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
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
120
121
main {
margin-top: 10vh;
padding: 0 .8em;
text-align: center;
}
h1 {
font-family: 'Mate SC', serif;
text-transform: capitalize;
}
.img-container {
max-width: 100%;
width: 35em;
height: 18em;
margin: 0 auto;
overflow: hidden;
position: relative;
border: 2px solid #6A5ACD;
-webkit-border-radius: .2em;
-moz-border-radius: .2em;
border-radius: .2em;
}
.slide {
position: absolute;
width: 100%;
height: 100%;
overflow: hidden;
-webkit-transition: all .5s ease-in-out;
-o-transition: all .5s ease-in-out;
transition: all .5s ease-in-out;
transform: translateX(0%);
}
.slide:first-child {
left: 0%;
}
.slide:nth-child(2) {
left: 100%;
}
.slide:nth-child(3) {
left: 200%;
}
.slide:nth-child(4) {
left: 300%;
}
.slide:nth-child(5) {
left: 400%;
}
.slide:nth-child(6) {
left: 500%;
}
.image {
-o-object-fit: fill;
object-fit: fill;
width: 100%;
height: 100%;
}
.control-container {
margin-top: 1em;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
}
.control {
margin: .4em;
background: transparent;
border: none;
outline: none;
cursor: pointer;
font-family: 'Nunito', sans-serif;
color: #483D8B;
display: none;
}
.control:hover {
color: #fff;
background-color: #6A5ACD;
-webkit-border-radius: .15em;
-moz-border-radius: .15em;
border-radius: .15em;
}
.show { display: inline-block; }
/* Media queries */
@media only screen and (max-width: 768px) {
main { margin-top: 2em; }
h1 { margin: 0; }
.img-container { height: 11em; }
@media only screen and (orientation: landscape) {
.img-container { width: 23em; }
}
}