diff options
author | Freya Murphy <freya@freyacat.org> | 2024-12-20 04:15:58 -0500 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2024-12-20 04:17:05 -0500 |
commit | 4334596d4bebc9a76f5ca8400813847eef5b3bb7 (patch) | |
tree | 4bd2229fd48715bcf4ae96bc3d070b7f3c29aa58 /src/scss/profile.scss | |
parent | add lang column to user (diff) | |
download | xssbook2-4334596d4bebc9a76f5ca8400813847eef5b3bb7.tar.gz xssbook2-4334596d4bebc9a76f5ca8400813847eef5b3bb7.tar.bz2 xssbook2-4334596d4bebc9a76f5ca8400813847eef5b3bb7.zip |
rework styles with scss
Diffstat (limited to 'src/scss/profile.scss')
-rw-r--r-- | src/scss/profile.scss | 121 |
1 files changed, 121 insertions, 0 deletions
diff --git a/src/scss/profile.scss b/src/scss/profile.scss new file mode 100644 index 0000000..ec271e4 --- /dev/null +++ b/src/scss/profile.scss @@ -0,0 +1,121 @@ +@import "./variables"; +@import "./mixins"; + +main#main { + padding-top: 0; +} + +$pfp-size: 12.5em; + +#profile-header-container { + width: 100%; + display: flex; + flex-direction: row; + justify-content: center; + background-color: $surface0; + border-bottom: 1px solid $surface1; +} + +#profile-header { + min-width: 0; + max-width: 80rem; + flex-grow: 1; + + .banner { + width: 100%; + max-width: 100%; + min-height: 30em; + aspect-ratio: 5; + + img { + object-fit: cover; + } + } + + .info { + position: relative; + margin-bottom: 6em; + + .pfp-wrapper { + padding: $inner-gap / 2; + background-color: $surface0; + height: fit-content; + border-radius: 100%; + position: absolute; + top: -2.5rem; + left: $inner-gap; + + .pfp { + height: $pfp-size; + } + } + + .content { + margin-left: $pfp-size + 5em; + margin-top: 2em; + + .name { + font-size: 2em;; + } + + .follow { + margin-left: auto; + margin-right: 2rem; + + a { + width: 10rem; + padding: $inner-gap / 2; + } + } + + } + } + + > hr { + margin: 0; + border-bottom: 1px solid $surface1; + } + + .options { + height: 3rem; + + .btn { + width: 10rem; + } + } +} + +@media(max-width: 800px) { + #profile-header { + .info { + .pfp-wrapper { + .pfp { + height: $pfp-size * 0.7; + } + } + + .content { + margin-left: ($pfp-size + 5em) * 0.7; + } + } + } +} + +#tab-container { + width: 100%; + @include column; + align-items: center; +} + +#tab-posts, +#tab-about { + width: 100%; + max-width: $content-width; +} + +#tab-about { + td:nth-child(1) { + padding-right: 2rem; + } +} + |