diff --git a/app/templates/users/settings.html b/app/templates/users/settings.html index 11a8c43..9fbb91b 100644 --- a/app/templates/users/settings.html +++ b/app/templates/users/settings.html @@ -5,44 +5,55 @@ {% set disable_avatar = not is_logged_in() %}

User settings

-
- Set avatar (1mb max) - - -
- - -
-
-
- - - - - - - - - - {{ babycode_editor_component(ta_name='signature', prefill=active_user.signature_original_markup, ta_placeholder='Will be shown under each of your posts', optional=true) }} - -
- -
-
-
-
-
-
- -
+
+
+ Set avatar +
+ + +
+ + +
+ 1MB maximum size. Avatar will be scaled down to fit a square. +
+
+
+ Personalization +
+ + + + + + + + + +
+ + {{ babycode_editor_component(ta_name='signature', prefill=active_user.signature_original_markup, ta_placeholder='Will be shown under each of your posts', optional=true) }} + +
+
+
+ Change password +
+
+
+
+
+ +
+
+
Delete account
diff --git a/data/static/css/style.css b/data/static/css/style.css index 6ca45ac..e6a0e1f 100644 --- a/data/static/css/style.css +++ b/data/static/css/style.css @@ -814,15 +814,13 @@ p { } .login-container > * { - width: 70%; + width: 85%; margin: auto; - max-width: 1000px; } .settings-container > * { - width: 70%; + width: 85%; margin: auto; - max-width: 1000px; } .avatar-form { @@ -1432,3 +1430,18 @@ a.mention:hover, a.mention:visited:hover { background-color: rgb(229.84, 231.92, 227.28); color: black; } + +.settings-grid { + display: grid; + gap: 10px; + --grid-item-max-width: calc((100% - 10px) / 2); + grid-template-columns: repeat(auto-fill, minmax(max(400px, var(--grid-item-max-width)), 1fr)); +} +.settings-grid fieldset { + border: 1px solid white; + border-radius: 4px; +} + +.hfc { + height: fit-content; +} diff --git a/data/static/css/theme-otomotone.css b/data/static/css/theme-otomotone.css index b70566a..add52e3 100644 --- a/data/static/css/theme-otomotone.css +++ b/data/static/css/theme-otomotone.css @@ -814,15 +814,13 @@ p { } .login-container > * { - width: 70%; + width: 85%; margin: auto; - max-width: 1000px; } .settings-container > * { - width: 70%; + width: 85%; margin: auto; - max-width: 1000px; } .avatar-form { @@ -1433,6 +1431,21 @@ a.mention:hover, a.mention:visited:hover { color: #e6e6e6; } +.settings-grid { + display: grid; + gap: 10px; + --grid-item-max-width: calc((100% - 10px) / 2); + grid-template-columns: repeat(auto-fill, minmax(max(400px, var(--grid-item-max-width)), 1fr)); +} +.settings-grid fieldset { + border: 1px solid black; + border-radius: 8px; +} + +.hfc { + height: fit-content; +} + #topnav { margin-bottom: 10px; border: 10px solid rgb(40, 40, 40); diff --git a/data/static/css/theme-peachy.css b/data/static/css/theme-peachy.css index 7da8c13..d47e90c 100644 --- a/data/static/css/theme-peachy.css +++ b/data/static/css/theme-peachy.css @@ -814,15 +814,13 @@ p { } .login-container > * { - width: 70%; + width: 85%; margin: auto; - max-width: 1000px; } .settings-container > * { - width: 70%; + width: 85%; margin: auto; - max-width: 1000px; } .avatar-form { @@ -1433,6 +1431,21 @@ a.mention:hover, a.mention:visited:hover { color: black; } +.settings-grid { + display: grid; + gap: 6px; + --grid-item-max-width: calc((100% - 6px) / 2); + grid-template-columns: repeat(auto-fill, minmax(max(400px, var(--grid-item-max-width)), 1fr)); +} +.settings-grid fieldset { + border: 1px solid white; + border-radius: 16px; +} + +.hfc { + height: fit-content; +} + #topnav { border-top-left-radius: 16px; border-top-right-radius: 16px; diff --git a/sass/_default.scss b/sass/_default.scss index 12da9a4..f6988e9 100644 --- a/sass/_default.scss +++ b/sass/_default.scss @@ -51,8 +51,7 @@ $BIGGER_PADDING: 30px !default; $PAGE_SIDE_MARGIN: 100px !default; -$SETTINGS_WIDTH: 70% !default; -$SETTINGS_MAX_WIDTH: 1000px !default; +$SETTINGS_WIDTH: 85% !default; // ************** // BORDERS @@ -655,19 +654,15 @@ $pagebutton_min_width: $BIG_PADDING !default; } $login_container_width: $SETTINGS_WIDTH !default; -$login_container_max_width: $SETTINGS_MAX_WIDTH !default; .login-container > * { width: $login_container_width; margin: auto; - max-width: $login_container_max_width; } $settings_container_width: $SETTINGS_WIDTH !default; -$settings_container_max_width: $SETTINGS_MAX_WIDTH !default; .settings-container > * { width: $settings_container_width; margin: auto; - max-width: $settings_container_max_width } $avatar_form_padding: $BIG_PADDING $ZERO_PADDING !default; @@ -1405,5 +1400,25 @@ a.mention, a.mention:visited { background-color: $mention_background_color_hover; color: $mention_font_color_hover; } - +} + +$settings_grid_gap: $MEDIUM_PADDING !default; +$settings_grid_item_min_width: 400px !default; +$settings_grid_fieldset_border: 1px solid $DEFAULT_FONT_COLOR_INVERSE !default; +$settings_grid_fieldset_border_radius: $DEFAULT_BORDER_RADIUS !default; +.settings-grid { + display: grid; + gap: $settings_grid_gap; + + --grid-item-max-width: calc((100% - #{$settings_grid_gap}) / 2); + grid-template-columns: repeat(auto-fill, minmax(max($settings_grid_item_min_width, var(--grid-item-max-width)), 1fr)); + + & fieldset { + border: $settings_grid_fieldset_border; + border-radius: $settings_grid_fieldset_border_radius; + } +} + +.hfc { + height: fit-content; }