-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstyles.css
81 lines (70 loc) · 1.28 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
overflow: hidden;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.slider {
position: relative;
width: 100%;
height: 100%;
overflow: hidden;
}
.blog-post {
width: 100%;
height: 100%;
background-size: cover;
background-position: center;
display: flex;
flex-direction: column;
justify-content: space-between;
position: absolute;
transition: opacity 1s ease;
opacity: 0;
}
.blog-post.active {
opacity: 1;
}
.overlay {
background-color: rgba(0, 0, 0, 0.5);
color: white;
padding: 20px;
}
.overlay h2 {
font-size: 2.5em;
margin: 20px;
}
.overlay p {
font-size: 1.2em;
margin: 20px;
}
.dots {
position: absolute;
bottom: 20px;
width: 100%;
display: flex;
justify-content: center;
}
.dot {
height: 15px;
width: 15px;
margin: 0 5px;
background-color: #bbb;
border-radius: 50%;
display: inline-block;
cursor: pointer;
}
.dot.active {
background-color: #717171;
}
#small-texts{
text-align: right;
}