Unification for RWD has been added

This commit is contained in:
2022-01-05 23:21:35 +01:00
parent f3e7b18c34
commit 76d8e59f40
7 changed files with 89 additions and 43 deletions

View File

@@ -60,7 +60,7 @@
margin-right: 5px;
}
@media screen and (max-width: 790px) {
@include media-tablet {
.title {
display: none;
}
@@ -72,16 +72,16 @@
}
}
@media screen and (max-width: 500px) {
@include media-mobile {
padding-right: 15px;
}
}
@media screen and (max-width: 500px) {
@include media-mobile {
padding: 0;
}
}
@media screen and (max-width: 500px) {
@include media-mobile {
padding: 15px 0;
}
}

View File

@@ -18,6 +18,8 @@
</template>
<style lang="scss" scoped>
@import "scss/media";
.sub-page > .container .nav-btn,
.sub-page > .container .nav .site-menu .menu-element a:not([class|=router-link-exact]) {
color: #8D8D8D;
@@ -89,10 +91,13 @@
}
}
}
@media screen and (max-width: 600px) {
@include media-tablet {
margin-left: 0;
.nav-btn {
display: block;
}
.site-menu {
display: none;
width: 100%;
@@ -110,12 +115,13 @@
line-height: 2em;
}
}
.menu-clicked {
display: block;
}
}
}
@media screen and (max-width: 600px) {
@include media-tablet {
.container {
justify-content: space-between;
}

View File

@@ -5,11 +5,11 @@
<div class="project"
v-for="project in projects"
:key="project.title.slug">
<img class="project-image" :src="project.image" :alt="project.title" />
<div class="project-content">
<h3 class="title">{{ project.title }}</h3>
<div class="release">{{ project.version }}</div>
<div class="description">
<img class="project_image" :src="project.image" :alt="project.title" />
<div class="project_content">
<h3 class="project_title">{{ project.title }}</h3>
<div class="project_release">{{ project.version }}</div>
<div class="project_description">
<p>{{ project.short_description }}</p>
</div>
</div>
@@ -26,6 +26,8 @@
</template>
<style lang="scss">
@import "scss/media";
.projects {
padding-top: 45px;
padding-bottom: 45px;
@@ -48,27 +50,27 @@
border-radius: 5px;
animation: load-project 2s forwards;
.project-image {
.project_image {
grid-area: image;
width: 200px;
height: 200px;
object-fit: cover;
}
.project-content {
.project_content {
grid-area: content;
padding: 10px 15px;
height: 200px;
overflow-y: hidden;
position: relative;
.title {
.project_title {
font-size: 1.3em;
font-weight: normal;
line-height: 1.5em;
}
.release {
.project_release {
font-size: .9em;
font-weight: bold;
padding: 5px 0;
@@ -90,7 +92,7 @@
}
}
@media screen and (min-width: 900px) {
@include media-tablet(true) {
.project {
.more-button {
display: flex;
@@ -109,6 +111,7 @@
&:hover {
background: rgba(0, 0, 0, .3);
border-radius: 5px;
.btn {
display: flex;
color: white;
@@ -122,18 +125,17 @@
}
}
@media screen and (max-width: 900px) {
@include media-small {
.project {
display: block;
.project-image {
.project_image {
width: 100%;
height: 250px;
}
.project-content {
height: auto;
max-height: 250px;
.project_content {
height: 125px;
}
.more-button {
@@ -143,6 +145,7 @@
height: auto;
left: unset;
top: unset;
.btn {
display: flex;
width: 100%;
@@ -166,7 +169,7 @@
}
}
@media screen and (max-width: 600px) {
@include media-tablet {
.projects .container {
grid-template-columns: 1fr;
padding: 25px;