From 2716256c665e39b0e217dac1f3bb560a14c101e1 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Sun, 24 Oct 2021 18:19:05 +0200 Subject: chore: add styles --- htdocs/src/scss/layout/_main.scss | 109 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 htdocs/src/scss/layout/_main.scss (limited to 'htdocs/src/scss/layout/_main.scss') diff --git a/htdocs/src/scss/layout/_main.scss b/htdocs/src/scss/layout/_main.scss new file mode 100644 index 0000000..9adb18d --- /dev/null +++ b/htdocs/src/scss/layout/_main.scss @@ -0,0 +1,109 @@ +@use "../abstracts/functions" as fun; +@use "../abstracts/mixins" as mix; +@use "../abstracts/placeholders"; + +.main { + display: flex; + flex-flow: column nowrap; + + @include mix.media("screen") { + @include mix.dimensions("lg") { + display: grid; + grid-template-columns: 5fr 2fr; + } + + @include mix.dimensions("xl") { + grid-template-columns: 4fr 1fr; + } + } +} + +.instructions { + align-items: center; + background: fun.get-var(color-bg); + display: flex; + height: 100%; + justify-content: center; + padding: fun.get-var(spacing-md); + + @include mix.media("screen") { + @include mix.dimensions("lg") { + grid-column: 1 / -1; + } + } +} + +.project-preview { + background: fun.get-var(color-bg); + flex: 1; + width: 100%; + + @include mix.media("screen") { + @include mix.dimensions("lg") { + height: 100%; + } + } + + iframe { + border: 0; + height: 100%; + width: 100%; + } +} + +.project-details { + background: fun.get-var(color-bg-secondary); + display: flex; + flex-flow: column nowrap; + font-size: fun.get-var(font-size-sm); + padding: fun.get-var(spacing-md) fun.get-var(spacing-md) + calc(#{fun.get-var(toolbar-height)} + #{fun.get-var(spacing-md)}); + + @include mix.media("screen") { + @include mix.dimensions("lg") { + font-size: fun.get-var(font-size-md); + } + } + + .list { + &--tech { + padding-left: fun.get-var(spacing-sm); + } + + &--repos { + @extend %flex-list; + + gap: fun.get-var(spacing-xs); + } + + &__link { + background-repeat: no-repeat; + background-size: contain; + box-shadow: 0 0 0 0 fun.get-var(color-shadow); + display: block; + height: fun.convert-px(50); + transition: transform 0.3s ease-in-out 0s, + box-shadow 0.15s ease-in-out 0.15s; + width: fun.convert-px(50); + + &--github { + background: url(#{fun.encode-svg('')}); + } + + &--gitlab { + background: url(#{fun.encode-svg('')}); + } + + &:hover, + &:focus { + box-shadow: fun.convert-px(-1) fun.convert-px(1) fun.convert-px(4) + fun.convert-px(2) fun.get-var(color-shadow-light); + transform: scale(1.15); + } + + &:active { + opacity: 1; + } + } + } +} -- cgit v1.2.3