diff --git a/assets/sass/_theme/blocks/projects.sass b/assets/sass/_theme/blocks/projects.sass index 0adf3b77aef09cf37381ef2bdc1fe60c66c5f927..dac01d97b0968deb5762c2138fdaabb568dd885f 100644 --- a/assets/sass/_theme/blocks/projects.sass +++ b/assets/sass/_theme/blocks/projects.sass @@ -35,15 +35,21 @@ @include media-breakpoint-down(desktop) .project + .project margin-top: $spacing-4 - @include in-page-with-sidebar - article - width: columns(5) - @include in-page-without-sidebar - .top - .description - @include body-text - article - width: columns(7) + @include media-breakpoint-up(desktop) + article + + article + margin-top: $spacing-6 + &:nth-child(odd) + margin-left: auto + @include in-page-with-sidebar + article + width: columns(5) + @include in-page-without-sidebar + .top + .description + @include body-text + article + width: columns(7) .large .project diff --git a/assets/sass/_theme/design-system/layout.sass b/assets/sass/_theme/design-system/layout.sass index 40b2dca9426e41c34f550f32835376c167cde7d3..ef3d798639e53ded1f2c1a0b9a55cadd68a3126f 100644 --- a/assets/sass/_theme/design-system/layout.sass +++ b/assets/sass/_theme/design-system/layout.sass @@ -126,23 +126,24 @@ details top: 0 .alternate - article - @include media-breakpoint-up(desktop) - &:not(:first-child) - margin-top: -5% - &:nth-child(odd) - margin-left: auto - &.portrait - + .portrait - margin-top: -30% - + .square, - + .landscape - margin-top: -15% - + article:not(.portrait, .square, .landscape) + .block:not(.block-projects) & + article + @include media-breakpoint-up(desktop) + &:not(:first-child) margin-top: -5% - &.square + .square - margin-top: -10% - @include in-page-without-sidebar - width: columns(10) - margin-left: auto - margin-right: auto \ No newline at end of file + &:nth-child(odd) + margin-left: auto + &.portrait + + .portrait + margin-top: -30% + + .square, + + .landscape + margin-top: -15% + + article:not(.portrait, .square, .landscape) + margin-top: -5% + &.square + .square + margin-top: -10% + @include in-page-without-sidebar + width: columns(10) + margin-left: auto + margin-right: auto \ No newline at end of file