-
peter_rabbit authoredpeter_rabbit authored
homepage.scss 9.12 KiB
#home-page {
display: flex;
flex-direction: column;
gap: 20px;
.section-title {
padding: 10px;
margin: 0;
background-color: $light_0;
color: $medium_grey;
}
.page-header {
.philo-bubbles {
@include flex-center;
flex-wrap: wrap;
gap: 40px;
@media screen and (max-width: $screen_m) {
gap: 20px;
}
margin: 30px 20px;
li {
border-radius: 100%;
@include flex-center;
background-color: $light_0;
* {
color: $medium_grey;
}
width: 100px;
height: 100px;
@media screen and (max-width: $screen_s) {
width: 75px;
height: 75px;
* {
font-size: 12px;
}
}
&:first-child {
background-color: $medium_grey;
* {
color: white;
}
}
&:last-child {
background-color: $dark_1;
* {
color: $light_1;
}
}
}
}
}
.articles-displayer {
margin: 0 auto 40px;
.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;
}
}
}
}
article {
display: grid;
gap: 5px 20px;
grid-template-columns: 1fr 1fr;
grid-template-rows: auto auto auto 1fr;
position: relative;
padding-left: 20px;
background-color: $dark_2;
*:not(a) {
color: $light_0;
}
.date {
grid-column: 1;
grid-row: 1;
text-align: right;
time {
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: 200px;
padding-bottom: 40px;
text-align: justify;
}
.image-carousel {
grid-row: 1 / span 4;
grid-column: 2;
img {
max-height: 100%;
}
}
&.article-placeholder {
padding: 0;
* {
background-color: $light_0;
}
.date {
height: 10px;
}
.title {
height: 40px;
}
.subtitle {
height: 30px;
}
}
}
@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;
}
}
}
}
.poles {
display: grid;
grid-template-columns: 1fr 1fr;
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-color: black;
position: relative;
img {
position: absolute;
max-width: 100%;
height: 100%;
padding: 10px;
}
}
.card-title {
h2 {
margin: 0;
text-align: center;
padding: 10px 20px;
color: $blue_2;
display: block;
background-color: white;
}
}
.card-description {
background-image: url("/assets/images/wallpaper_binary.png");
flex: 1;
padding: 30px 20px;
p {
margin: 0;
color: $blue_3;
text-align: center;
}
}
transition: transform 0.3s;
&:hover {
transform: scale(1.03);
}
}
}
.kuadrado-values {
background-image: url("/assets/images/wallpaper_binary_light.png");
padding: 100px 0 120px;
*:not(a, blue) {
color: $light_0;
}
h2 {
@include flex-center;
margin: 0 auto 60px;
width: 120px;
height: 120px;
background-image: url("/assets/images/wallpaper_binary.png");
border-radius: 100%;
color: $blue_3;
}
ul.values-list {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 30px;
li {
background-image: url("/assets/images/wallpaper_binary.png");
padding: 30px 20px 40px;
h3 {
text-align: center;
}
p {
text-align: justify;
}
}
}
}
@media screen and (max-width: $screen_l) {
.poles {
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: 20px 30px;
p {
margin: 0;
color: $blue_3;
text-align: center;
}
}
transition: transform 0.3s;
&:hover {
transform: none;
}
}
}
.kuadrado-values {
ul.values-list {
grid-template-columns: 1fr;
}
}
}
@media screen and (max-width: $page_contents_center_width) {
.poles {
padding: 0 20px;
}
.articles-displayer {
padding: 0;
}
}
}