diff --git a/src/App.scss b/src/App.scss index d83965621..acaf282a0 100644 --- a/src/App.scss +++ b/src/App.scss @@ -2,12 +2,11 @@ @import './_variables.scss'; :root { - --navbar-height: 50px; + --navbar-height: 3.5rem; } html { font-size: 14px; - overflow-x: clip; } body { @@ -159,8 +158,8 @@ nav { } .app-layout { - --miniColumn: 25em; - --maxiColumn: minmax(var(--miniColumn), 45em); + --miniColumn: 25rem; + --maxiColumn: minmax(var(--miniColumn), 45rem); --columnGap: 1em; --status-margin: 0.75em; @@ -227,7 +226,7 @@ nav { &.-has-new-post-button { .column { - padding-bottom: 20em; + padding-bottom: 10rem; } } @@ -301,7 +300,7 @@ nav { cursor: pointer; box-shadow: $fallback--buttonShadow; box-shadow: var(--buttonShadow); - font-size: 14px; + font-size: 1em; font-family: sans-serif; font-family: var(--interfaceFont, sans-serif); @@ -429,7 +428,7 @@ textarea, color: var(--inputText, $fallback--lightText); font-family: sans-serif; font-family: var(--inputFont, sans-serif); - font-size: 14px; + font-size: 1em; margin: 0; box-sizing: border-box; display: inline-block; @@ -730,7 +729,7 @@ i[class*=icon-], } .btn.button-default { - min-height: 28px; + min-height: 2em; } .new-status-notification { diff --git a/src/components/attachment/attachment.scss b/src/components/attachment/attachment.scss index dfda15bf8..b2dea98d5 100644 --- a/src/components/attachment/attachment.scss +++ b/src/components/attachment/attachment.scss @@ -173,7 +173,7 @@ margin: 8px; word-break: break-all; h1 { - font-size: 14px; + font-size: 1rem; margin: 0px; } } diff --git a/src/components/desktop_nav/desktop_nav.scss b/src/components/desktop_nav/desktop_nav.scss index 1e731c703..3c2e70b51 100644 --- a/src/components/desktop_nav/desktop_nav.scss +++ b/src/components/desktop_nav/desktop_nav.scss @@ -9,7 +9,7 @@ .inner-nav { display: grid; - grid-template-rows: 50px; + grid-template-rows: var(--navbar-height); grid-template-columns: 2fr auto 2fr; grid-template-areas: "sitename logo actions"; box-sizing: border-box; @@ -75,7 +75,7 @@ img { display: inline-block; - height: 50px; + height: var(--navbar-height); } } @@ -101,8 +101,8 @@ .item { flex: 1; - line-height: 50px; - height: 50px; + line-height: var(--navbar-height); + height: var(--navbar-height); overflow: hidden; display: flex; flex-wrap: wrap; diff --git a/src/components/emoji_picker/emoji_picker.scss b/src/components/emoji_picker/emoji_picker.scss index ec7117587..1a696584e 100644 --- a/src/components/emoji_picker/emoji_picker.scss +++ b/src/components/emoji_picker/emoji_picker.scss @@ -7,7 +7,7 @@ right: 0; left: 0; margin: 0 !important; - z-index: 1; + z-index: 100; background-color: $fallback--bg; background-color: var(--popover, $fallback--bg); color: $fallback--link; diff --git a/src/components/media_modal/media_modal.vue b/src/components/media_modal/media_modal.vue index c7dcd007f..8b76aafb5 100644 --- a/src/components/media_modal/media_modal.vue +++ b/src/components/media_modal/media_modal.vue @@ -234,7 +234,7 @@ $modal-view-button-icon-margin: 0.5em; position: absolute; height: $modal-view-button-icon-height; width: $modal-view-button-icon-width; - font-size: 14px; + font-size: 1rem; line-height: $modal-view-button-icon-height; color: #FFF; text-align: center; diff --git a/src/components/popover/popover.vue b/src/components/popover/popover.vue index 3f2a81f54..973625d15 100644 --- a/src/components/popover/popover.vue +++ b/src/components/popover/popover.vue @@ -65,7 +65,7 @@ .dropdown-menu { display: block; padding: .5rem 0; - font-size: 1rem; + font-size: 1em; text-align: left; list-style: none; max-width: 100vw; diff --git a/src/components/post_status_form/post_status_form.vue b/src/components/post_status_form/post_status_form.vue index 0fdb6dc73..d6595354a 100644 --- a/src/components/post_status_form/post_status_form.vue +++ b/src/components/post_status_form/post_status_form.vue @@ -509,6 +509,7 @@ flex-direction: column; padding: 0.25em 0.5em 0.5em; line-height:24px; + z-index: 50; } form textarea.form-cw { diff --git a/src/components/user_panel/user_panel.vue b/src/components/user_panel/user_panel.vue index 50949b988..243de3870 100644 --- a/src/components/user_panel/user_panel.vue +++ b/src/components/user_panel/user_panel.vue @@ -24,5 +24,6 @@ diff --git a/src/hocs/with_load_more/with_load_more.scss b/src/hocs/with_load_more/with_load_more.scss index 1a26eb8d6..de86ed4a5 100644 --- a/src/hocs/with_load_more/with_load_more.scss +++ b/src/hocs/with_load_more/with_load_more.scss @@ -10,7 +10,7 @@ border-top-color: var(--border, $fallback--border); .error { - font-size: 14px; + font-size: 1rem; } a { diff --git a/src/hocs/with_subscription/with_subscription.scss b/src/hocs/with_subscription/with_subscription.scss index 52c7d94c0..7fd838021 100644 --- a/src/hocs/with_subscription/with_subscription.scss +++ b/src/hocs/with_subscription/with_subscription.scss @@ -4,7 +4,7 @@ text-align: center; .error { - font-size: 14px; + font-size: 1rem; } } } \ No newline at end of file diff --git a/src/panel.scss b/src/panel.scss index 049144ba1..57059cb9e 100644 --- a/src/panel.scss +++ b/src/panel.scss @@ -28,11 +28,16 @@ .panel-body:empty::before { content: "¯\\_(ツ)_/¯"; // Could use words but it'd require translations - display: block; margin: 1em; + display: block; + margin: 1em; text-align: center; } .panel-heading { + --panel-heading-height: 3.2em; + --panel-heading-height-padding: 0.6em; + --__panel-heading-height-inner: calc(var(--panel-heading-height) - 2 * var(--panel-heading-height-padding)); + position: relative; box-sizing: border-box; display: flex; @@ -42,18 +47,16 @@ background-size: cover; padding: 0.6em 0.6em; text-align: left; - line-height: 28px; + line-height: var(--__panel-heading-height-inner); color: var(--panelText); background-color: $fallback--bg; background-color: var(--bg, $fallback--bg); align-items: baseline; - height: var(--panelHeadingHeight); + height: var(--panel-heading-height); z-index: -2; - --panelHeadingHeight: 45px; - &.-flexible-height { - --panelHeadingHeight: auto; + --panel-heading-height: auto; &::after, &::before { @@ -92,7 +95,7 @@ z-index: -1; border-radius: $fallback--panelRadius $fallback--panelRadius 0 0; border-radius: var(--panelRadius, $fallback--panelRadius) var(--panelRadius, $fallback--panelRadius) 0 0; - mask: linear-gradient(to bottom, white var(--panelHeadingHeight), transparent var(--panelHeadingHeight)); + mask: linear-gradient(to bottom, white var(--panel-heading-height), transparent var(--panel-heading-height)); } .title { @@ -119,14 +122,12 @@ .button-default, .alert { - // height: 100%; - line-height: 21px; + height: var(--__panel-heading-height-inner); min-height: 0; box-sizing: border-box; margin: 0; margin-left: 0.5em; min-width: 1px; - align-self: stretch; } .button-default {