Newer
Older
#home-page {
display: flex;
flex-direction: column;
gap: 20px;
margin-bottom: 60px;
.section-title {
padding: 10px;
margin: 0;
background-color: $light_0;
color: $medium_grey;
}
.articles-displayer {
margin: 0 auto 40px;
display: grid;
grid-template-columns: 50px auto 50px;
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
.prev-btn,
.next-btn {
border: none;
background-image: url("/assets/images/wallpaper_binary.png");
&.disabled {
pointer-events: none;
}
&.active {
cursor: pointer;
color: $medium_grey;
&:hover {
color: $light_0;
}
}
}
.next-btn {
&.active {
&::before {
content: " ";
border-style: solid;
border-width: 4px 4px 0 0;
width: 20px;
height: 20px;
transform: rotate(45deg);
@include flex-center;
position: relative;
}
}
}
.prev-btn {
&.active {
&::before {
content: " ";
border-style: solid;
border-width: 4px 4px 0 0;
width: 20px;
height: 20px;
transform: rotate(-135deg);
@include flex-center;
position: relative;
left: 8px;
}
}
}
article {
display: grid;
gap: 5px 20px;
grid-template-columns: 1fr 1fr;
grid-template-rows: auto auto auto 1fr;
position: relative;
padding-left: 20px;
.date {
grid-column: 1;
grid-row: 1;
text-align: right;
span {
color: $medium_grey;
font-style: italic;
font-size: 12px;
}
}
.title {
grid-column: 1;
grid-row: 2;
h3 {
margin: 0 0 10px;
}
}
.subtitle {
grid-column: 1;
grid-row: 3;
font-style: italic;
font-size: 15px;
}
.body {
grid-column: 1;
grid-row: 4;
min-height: 250px;
padding-bottom: 40px;
}
.image-carousel {
grid-row: 1 / span 4;
grid-column: 2;
overflow: hidden;
@include flex-center;
background-color: black;
position: relative;
img {
position: absolute;
max-width: 100%;
}
.carousel-bullets {
position: absolute;
bottom: 0;
padding: 20px;
display: flex;
gap: 10px;
.bullet {
cursor: pointer;
width: 8px;
height: 8px;
background-color: $medium_grey;
border-radius: 100%;
box-shadow: 0 0 3px black;
&.active {
background-color: $light_0;
}
}
}
}
&.article-placeholder {
* {
background-color: $light_0;
}
.date {
height: 10px;
}
.title {
height: 40px;
}
.subtitle {
height: 30px;
}
}
}
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
@media screen and (max-width: $screen_l) {
grid-template-columns: 40px auto 40px;
article {
gap: 5px;
grid-template-columns: 1fr;
grid-template-rows: 300px auto auto auto 1fr;
padding: 0;
.date {
grid-row: 2;
padding: 0 10px;
}
.title {
grid-row: 3;
padding: 0 10px;
}
.subtitle {
grid-row: 4;
padding: 0 10px;
}
.body {
grid-row: 5;
padding: 0 10px 30px;
}
.image-carousel {
grid-row: 1;
grid-column: 1;
img {
max-height: 100%;
}
.carousel-bullets {
gap: 15px;
.bullet {
width: 12px;
height: 12px;
}
}
}
}
}
}
.grid-3 {
gap: 30px;
.theme-card {
display: flex;
flex-direction: column;
width: 100%;
cursor: pointer;
.card-img {
width: 100%;
height: 240px;
overflow: hidden;
@include flex-center-col;
position: relative;
img {
position: absolute;
min-width: 100%;
min-height: 100%;
}
}
.card-title {
h2 {
margin: 0;
text-align: center;
padding: 10px 20px;
color: $blue_2;
}
}
.card-description {
background-image: url("/assets/images/wallpaper_binary.png");
flex: 1;
padding: 20px 30px 30px;
p {
margin: 0;
color: $blue_3;
text-align: center;
}
}
transition: transform 0.3s;
&:hover {
transform: scale(1.03);
}
}
}
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
@media screen and (max-width: $screen_l) {
.grid-3 {
grid-template-columns: 1fr;
gap: 40px;
.theme-card {
.card-img {
height: 300px;
img {
min-width: unset;
height: 100%;
}
}
.card-title {
h2 {
padding: 5px 20px;
}
}
.card-description {
background-image: url("/assets/images/wallpaper_binary.png");
flex: 1;
padding: 10px 10px 20px;
p {
margin: 0;
color: $blue_3;
text-align: center;
}
}
transition: transform 0.3s;
&:hover {
transform: none;
}
}
}
}
@media screen and (max-width: $page_contents_center_width) {
.articles-displayer,
.grid-3 {
padding: 0 20px;
}
.section-title {
margin: 0 20px;
}
}