Skip to content

Commit

Permalink
fix: portfolio stacking
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderdavide committed Feb 17, 2022
1 parent 0a690aa commit 1d65174
Showing 1 changed file with 27 additions and 22 deletions.
49 changes: 27 additions & 22 deletions assets/scss/partials/components/_portfolio.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
}

&::before {
@include themed() {
border: t('border');
}
content: '';
position: absolute;
top: 10%;
Expand All @@ -21,6 +18,12 @@
right: 10%;
background: transparent;
border-radius: 0.5em;

@include desktop_and_print {
@include themed() {
border: t('border');
}
}
}

&__title {
Expand All @@ -34,12 +37,13 @@
&__image {
max-width: 100%;
min-width: 100%;
box-shadow: #000;
box-shadow: t('shadow');
overflow: hidden;
transition: box-shadow 0.3s ease;
object-fit: cover;
border-bottom: 0px;
display: block;
position: relative;

&-wrapper {
display: block;
Expand All @@ -49,21 +53,21 @@

&--right,
&--left {
@include themed() {
background-color: t('accent');
}
margin-right: auto;
margin-left: auto;
width: calc(100% - 64px);
padding: 32px 32px 0px 32px;
max-width: inherit;

@include themed() {
background-color: t('accent');
}

@include desktop_and_print {
width: 60%;
object-fit: contain;
max-width: none;
border-top-right-radius: 0.5em;
border-top-left-radius: 0.5em;
border-radius: 0.5em;
padding: 0;
}
}
Expand All @@ -72,39 +76,42 @@
@include desktop_and_print {
margin-right: auto;
margin-left: 0;
border-bottom-left-radius: 0.5em;
}
}

&--right {
@include desktop_and_print {
margin-right: 0;
margin-left: auto;
border-bottom-right-radius: 0.5em;
}
}
}
}

&__description {
padding: 32px;
position: relative;

@include themed() {
background-color: t('accent');
}
padding: 32px;

@include desktop_and_print {
padding: 48px;
border-radius: 0.5em;

@include themed() {
box-shadow: t('shadow');
}
padding: 48px;
border-radius: 0.5em;
}

&--left,
&--right {
margin-top: -24px;

@include themed() {
border-bottom: t('border');
}
margin-top: -24px;

@include desktop_and_print {
@include themed() {
Expand All @@ -124,10 +131,6 @@
}

&__button {
@include themed() {
border: 1px solid t('primary-light');
color: t('info');
}
font-weight: 400;
display: inline-block;
position: relative;
Expand All @@ -142,10 +145,12 @@
border-radius: 999em;
padding: 10px;

@include themed() {
border: 1px solid t('primary-light');
color: t('info');
}

&:hover {
@include themed() {
border: 1px solid t('primary');
}
display: inline-block;
position: relative;
outline: 0px;
Expand Down

0 comments on commit 1d65174

Please sign in to comment.