Newer
Older
#home-page {
display: flex;
flex-direction: column;
gap: 20px;
margin-bottom: 60px;
.section-title {
padding: 10px;
margin: 0;
}
.articles-displayer {
margin: 0 auto 40px;
display: grid;
grid-template-columns: 50px auto 50px;
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
.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 {
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
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
183
184
185
186
187
* {
background-color: $light_0;
}
.date {
height: 10px;
}
.title {
height: 40px;
}
.subtitle {
height: 30px;
}
}
}
}
.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;
background-image: url("/assets/images/wallpaper_binary.png");
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);
}
}
}
@media screen and (max-width: $page_contents_center_width) {
.articles-displayer,
.grid-3 {
padding: 0 20px;
}
.section-title {
margin: 0 20px;
}