-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.scss
135 lines (119 loc) · 1.95 KB
/
style.scss
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
* {
box-sizing: border-box;
}
html {
font-family: Arial, Helvetica, sans-serif;
line-height: 1.4;
}
body {
display: flex;
justify-content: center;
}
p {
margin-top: 0;
}
.container {
width: 100%;
max-width: 1280px;
padding: 0 72px;
}
.carousel-cards {
overflow-x: hidden;
padding-bottom: 0.5rem;
.card-list {
display: inline-flex;
width: 100%;
gap: 2rem;
overflow-x: auto;
overflow-y: hidden;
scroll-snap-type: x mandatory;
padding: 0;
@media (min-width: 40em) {
overflow-x: hidden;
}
}
.carousel-wrapper {
position: relative;
padding: 0 2.5rem;
}
&-controls {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0;
position: absolute;
width: 100%;
left: 0;
top: calc(50% - 1rem);
&-button {
all: unset;
cursor: pointer;
color: #fff;
width: 2rem;
height: 2rem;
border-radius: 50%;
background-color: #13335f;
display: flex;
justify-content: center;
align-items: center;
img {
filter: invert(1);
width: 1.5rem;
height: 1.5rem;
}
&:hover {
background-color: #0f2c4a;
}
}
}
}
.card {
display: grid;
grid-template-rows: 118px auto;
width: 308px;
flex-shrink: 0;
scroll-snap-align: start;
&-title {
padding: 1rem 2rem;
display: flex;
justify-content: center;
align-items: center;
background: #27add9;
}
&-content {
padding: 2rem 1rem;
background-color: #f7f7f7;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.card-btn {
border-radius: 8px;
border: solid 1px #27add9;
text-align: center;
color: #27add9;
padding: 16px 25px;
text-decoration: none !important;
cursor: pointer;
}
}
.dots {
display: flex;
justify-content: center;
}
.dot {
all: unset;
margin-right: 5px;
height: 10px;
width: 10px;
border-radius: 10px;
background: gray;
margin-top: 10px;
&.active {
outline: 2px solid #13335f;
outline-offset: 2px;
}
}
.dot:focus {
outline: 1px solid blue;
}