summaryrefslogtreecommitdiff
path: root/src/scss/people.scss
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-12-20 04:15:58 -0500
committerFreya Murphy <freya@freyacat.org>2024-12-20 04:17:05 -0500
commit4334596d4bebc9a76f5ca8400813847eef5b3bb7 (patch)
tree4bd2229fd48715bcf4ae96bc3d070b7f3c29aa58 /src/scss/people.scss
parentadd lang column to user (diff)
downloadxssbook2-4334596d4bebc9a76f5ca8400813847eef5b3bb7.tar.gz
xssbook2-4334596d4bebc9a76f5ca8400813847eef5b3bb7.tar.bz2
xssbook2-4334596d4bebc9a76f5ca8400813847eef5b3bb7.zip
rework styles with scss
Diffstat (limited to 'src/scss/people.scss')
-rw-r--r--src/scss/people.scss46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/scss/people.scss b/src/scss/people.scss
new file mode 100644
index 0000000..4511aa8
--- /dev/null
+++ b/src/scss/people.scss
@@ -0,0 +1,46 @@
+@import "./variables";
+@import "./mixins";
+
+$profile-width: 16em;
+
+main#main {
+ .title {
+ margin-top: $outer-gap;
+ font-size: 3rem;
+ margin-bottom: 0;
+ }
+}
+
+#people-container {
+ display: grid;
+ width: 100%;
+ padding: $inner-gap;
+ margin-bottom: $outer-gap;
+ grid-template-columns: repeat(auto-fill, minmax($profile-width, 1fr) );
+ grid-auto-rows: max-content;
+ grid-gap: 2em;
+
+ .profile {
+ width: $profile-width;
+ text-decoration: none;
+ margin-left: auto;
+ margin-right: auto;
+
+ &:hover {
+ outline: 1px solid $blue;
+ }
+
+ .name {
+ font-weight: bold;
+ font-size: 1.5em;
+ }
+
+ .pfp {
+ border-radius: $inner-gap / 4;
+ width: 100%;
+ height: 100%;
+ margin-bottom: $inner-gap;
+ }
+ }
+
+}