css: make TitleBox ready for smartphone

This commit is contained in:
Settel 2022-10-09 16:47:36 +02:00
parent 17372a5417
commit 53e1371cde
3 changed files with 31 additions and 2 deletions

View File

@ -1,4 +1,5 @@
@import './colors.scss'; @import './colors.scss';
@import './media.scss';
$font-primary: 'Wendy One'; $font-primary: 'Wendy One';
$font-secondary: 'Dosis'; $font-secondary: 'Dosis';

View File

@ -0,0 +1,3 @@
$phone-width: 560px;
$phone-max-width: 767px;
$tablet-width: 768px;

View File

@ -19,7 +19,11 @@
padding: 80px 0; padding: 80px 0;
display: flex; display: flex;
justify-content: center; justify-content: center;
@media (max-width: $phone-max-width) {
padding: 40px 0;
} }
}
&__titleborderbox1, &__titleborderbox1,
&__titleborderbox2, &__titleborderbox2,
@ -36,6 +40,11 @@
justify-content: center; justify-content: center;
align-items: center; align-items: center;
z-index: 3; z-index: 3;
@media (max-width: $phone-max-width) {
width: 260px;
height: 140px;
}
} }
&__titleborderbox2 { &__titleborderbox2 {
@ -44,7 +53,13 @@
width: 720px; width: 720px;
height: 120px; height: 120px;
z-index: 2; z-index: 2;
@media (max-width: $phone-max-width) {
top: 75px;
width: 300px;
height: 80px;
} }
}
&__titleborderbox3 { &__titleborderbox3 {
position: absolute; position: absolute;
@ -52,6 +67,11 @@
width: 760px; width: 760px;
height: 40px; height: 40px;
z-index: 1; z-index: 1;
@media (max-width: $phone-max-width) {
top: 95px;
width: 340px;
}
} }
&__title { &__title {
@ -59,6 +79,11 @@
font-family: $font-primary; font-family: $font-primary;
color: $box-primary-text-color; color: $box-primary-text-color;
text-align: center; text-align: center;
@media (max-width: $phone-max-width) {
font-size: 32px;
} }
}
} }
</style> </style>