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;
.prev-next-buttons {
display: flex;
justify-content: space-between;
.prev-btn,
.next-btn {
border: none;
background: none;
display: flex;
align-items: center;
gap: 10px;
padding: 5px 0;
&.disabled {
visibility: hidden;
pointer-events: none;
}
&.active {
cursor: pointer;
color: $medium_grey;
&:hover {
color: $dark_2;
}
.next-btn {
&.active {
&::after {
content: " ";
border-style: solid;
border-width: 2px 2px 0 0;
width: 8px;
height: 8px;
transform: rotate(45deg);
@include flex-center;
}
.prev-btn {
&.active {
&::before {
content: " ";
border-style: solid;
border-width: 2px 2px 0 0;
width: 8px;
height: 8px;
transform: rotate(-135deg);
@include flex-center;
}
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
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;
}
&.article-placeholder {
* {
background-color: $light_0;
}
.date {
height: 10px;
}
.title {
height: 40px;
}
.subtitle {
height: 30px;
}
}
}
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
@media screen and (max-width: $screen_l) {
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;
}
}
}
}
.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;
}
}
.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;
p {
margin: 0;
color: $blue_3;
text-align: center;
}
}
transition: transform 0.3s;
&:hover {
transform: scale(1.03);
}
}
}
@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;
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;
}
}