-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
136 lines (120 loc) · 2.2 KB
/
style.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
.stories-container {
display: flex;
background: #fff;
box-shadow: 0 3px 24px -8px rgba(0, 0, 0, 0.3);
width: 640px;
margin: 0 auto;
padding: 20px 36px;
border-radius: 8px;
gap: 48px;
overflow: hidden;
overflow-x: scroll;
box-sizing: border-box;
}
.stories-container .content img {
height: 90px;
width: 90px;
border-radius: 50%;
object-fit: cover;
z-index: 300;
position: relative;
vertical-align: middle;
}
.stories-container .content {
position: relative;
cursor: pointer;
}
.stories-container .content::before {
content: "";
height: 98px;
width: 98px;
background: #fff;
border-radius: 50%;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 101;
}
.stories-container .content::after {
content: "";
height: 106px;
width: 106px;
background: linear-gradient(#dd2a7b, #f58529);
border-radius: 50%;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 100;
}
.story-full {
background: #222;
position: fixed;
left: 0;
top: 0;
height: 100vh;
width: 100%;
z-index: 500;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
pointer-events: none;
transition: all 100ms ease;
}
.story-full.active {
opacity: 1;
pointer-events: auto;
}
.story-full .close-btn {
position: fixed;
right: 32px;
top: 32px;
width: 32px;
cursor: pointer;
}
.story-full .content .left-arrow,
.story-full .content .right-arrow {
width: 60px;
cursor: pointer;
}
.story-full .content {
height: 100%;
display: flex;
align-items: center;
position: relative;
}
.story-full img {
height: 90%;
}
.story-full .content .title {
position: absolute;
bottom: 26px;
left: 50%;
transform: translateX(-50%);
background: #fff;
font-family: "Roboto", sans-serif;
line-height: 2;
padding: 8px 32px;
}
@media (max-width: 700px) {
.stories-container {
width: 90%;
}
.stories-container .content img {
width: 60px;
height: 60px;
}
.stories-container .content::before {
height: 70px;
width: 70px;
}
.stories-container .content::after {
width: 80px;
height: 80px;
}
.story-full .content img {
height: 65%;
}
}