diff options
| author | WriterV2 <primary-v2@protonmail.com> | 2022-11-04 14:30:22 +0100 |
|---|---|---|
| committer | WriterV2 <primary-v2@protonmail.com> | 2022-11-04 14:30:22 +0100 |
| commit | fc6f793d007b3b24fa97069fc0caf12bcf8eac60 (patch) | |
| tree | 8c9a4602064173730828fdcf2116f3735ccac718 /sass/style.scss | |
| parent | d5fe9b65696e1f11540521d74608a213cfd4f767 (diff) | |
Add styling and content
Diffstat (limited to 'sass/style.scss')
| -rw-r--r-- | sass/style.scss | 109 |
1 files changed, 109 insertions, 0 deletions
diff --git a/sass/style.scss b/sass/style.scss new file mode 100644 index 0000000..83755e4 --- /dev/null +++ b/sass/style.scss @@ -0,0 +1,109 @@ +$background-color: #131313; +$box-color: #333; +$font-color: lightgray; +$accent-color: #a29d7f; + +* { + box-sizing: border-box; + padding: 0; + margin: 0; + &:focus, &::selection { + background-color: inherit; + outline: none !important; + color: lighten($color: $font-color, $amount: 10); + } +} + +body { + background-color: $background-color; + color: $font-color; + font-family: Arial, Helvetica, sans-serif; + line-height: 1.6; +} + +header { + text-align: center; + padding: 1em 0em; + h1 { + font-family: 'Times New Roman', Times, serif; + letter-spacing: 0.1em; + } +} + +nav { + display: flex; + justify-content: space-evenly; + align-items: center; + padding: 0em 2em; + background-color: $background-color; +} + +main { + margin: 2em; + min-height: calc(100vh - 108.8px - 25.6px - 25.6px); + .work-card:nth-child(even) { + background-position: left; + align-items: flex-end; + } + display: grid; + row-gap: 2em; + column-gap: 2em; + + @media screen and (min-width: 992px) { + grid-template-columns: 1fr 1fr; + } +} + +footer { + text-align: center; +} + +a { + text-decoration: none; + color: inherit; + &:hover { + border-color: $accent-color; + color: lighten($color: $font-color, $amount: 10); + } +} + +.work-card { + padding: 2em; + background-color: $box-color; + border-radius: 0.3em; + background-repeat: no-repeat; + background-size: contain; + background-position: right; + border: 1px solid $background-color; + height: 250px; + display: flex; + flex-direction: column; + justify-content: space-between; + background-blend-mode: overlay; + .title-and-description, .info { + max-width: 50%; + h3 { + font-weight: lighter; + color: $accent-color; + } + @media screen and (max-width: 650px) { + font-size: 0.8em; + max-width: 70%; + } + @media screen and (max-width: 500px) { + font-size: 0.7em; + max-width: 100%; + } + + } + .info { + span { + background-color: $background-color; + padding: 0.5em; + margin: 0 0.5em; + } + } + &:hover { + border: 1px solid $accent-color; + } +} |
