RWD fix for the home page

This commit is contained in:
Kamil Niemczycki 2022-01-06 01:04:14 +01:00
parent 8f3649d141
commit 6c890d03d6
3 changed files with 15 additions and 11 deletions

View File

@ -28,6 +28,8 @@
</template> </template>
<style lang="scss"> <style lang="scss">
@import "scss/media";
.about { .about {
background-color: var(--gray-color) !important; background-color: var(--gray-color) !important;
@ -66,7 +68,7 @@
margin-right: 0; margin-right: 0;
} }
@media screen and (max-width: 600px) { @include media-tablet {
margin: 0 auto 15px; margin: 0 auto 15px;
&:last-child { &:last-child {
@ -75,18 +77,18 @@
} }
} }
@media screen and (max-width: 900px) { @include media-small {
justify-content: center; justify-content: center;
margin-bottom: 25px; margin-bottom: 25px;
} }
@media screen and (max-width: 600px) { @include media-tablet {
display: block; display: block;
margin-bottom: 25px; margin-bottom: 25px;
} }
} }
@media screen and (max-width: 400px) { @include media-mobile() {
.buttons .btn, .buttons .btn,
.buttons a { .buttons a {
min-width: unset; min-width: unset;
@ -110,7 +112,7 @@
} }
} }
} }
@media (max-width: 900px) { @include media-small {
#grid { #grid {
grid-template-columns: 1fr 1fr; grid-template-columns: 1fr 1fr;
grid-template-areas: grid-template-areas:

View File

@ -159,6 +159,8 @@ export default {
</script> </script>
<style lang="scss"> <style lang="scss">
@import "scss/media";
.experiences { .experiences {
.container { .container {
padding-top: 45px; padding-top: 45px;
@ -212,13 +214,13 @@ export default {
} }
} }
@media screen and (max-width: 1100px) { @include media-small {
grid-template-columns: repeat(3, 1fr); grid-template-columns: repeat(3, 1fr);
} }
@media screen and (max-width: 800px) { @include media-tablet {
grid-template-columns: repeat(2, 1fr); grid-template-columns: repeat(2, 1fr);
} }
@media screen and (max-width: 550px) { @include media-mobile {
grid-template-columns: repeat(1, 1fr); grid-template-columns: repeat(1, 1fr);
} }
} }

View File

@ -8,7 +8,7 @@
</projects> </projects>
<div class="more-button"> <div class="more-button">
<GhostButton @click.native="$router.push('projects')"> <GhostButton @click.native="$router.push('projects')">
RESZTA PROJEKTÓW ZOBACZ WIĘCEJ
</GhostButton> </GhostButton>
</div> </div>
</section> </section>
@ -57,12 +57,12 @@ export default {
.btn { .btn {
margin: 0 auto; margin: 0 auto;
@media screen and (max-width: 600px) { @include media-tablet {
width: 100%; width: 100%;
} }
} }
@media screen and (max-width: 600px) { @include media-tablet {
padding: 0 25px; padding: 0 25px;
} }
} }