From 5b0ec7cddb1ae6dbd2057f067382866f846b882c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 15 Jun 2022 14:59:25 +0200 Subject: Increase global font size --- client/src/sass/include/_actor.scss | 8 +++----- client/src/sass/include/_mixins.scss | 28 +++++++++++++--------------- client/src/sass/include/_nav.scss | 1 - client/src/sass/include/_variables.scss | 3 +++ 4 files changed, 19 insertions(+), 21 deletions(-) (limited to 'client/src/sass/include') diff --git a/client/src/sass/include/_actor.scss b/client/src/sass/include/_actor.scss index aa2331efe..bf73b52dc 100644 --- a/client/src/sass/include/_actor.scss +++ b/client/src/sass/include/_actor.scss @@ -36,18 +36,16 @@ .actor-owner { @include disable-default-a-behaviour; - font-size: 13px; color: pvar(--mainForegroundColor); + display: flex; + align-items: center; span:hover { opacity: 0.8; } my-actor-avatar { - @include margin-left(7px); - - display: inline-block; - vertical-align: top; + @include margin-left(5px); } } diff --git a/client/src/sass/include/_mixins.scss b/client/src/sass/include/_mixins.scss index 565012717..1b460b723 100644 --- a/client/src/sass/include/_mixins.scss +++ b/client/src/sass/include/_mixins.scss @@ -94,7 +94,8 @@ background-color: pvar(--inputBackgroundColor); border: 1px solid $input-border-color; border-radius: 3px; - font-size: 15px; + font-size: $form-input-font-size; + line-height: $form-input-line-height; &::placeholder { color: pvar(--inputPlaceholderColor); @@ -116,7 +117,6 @@ background-color: pvar(--textareaBackgroundColor) !important; height: $height; padding: 5px 15px; - font-size: 15px; } @mixin orange-button { @@ -249,7 +249,6 @@ border: 0; font-weight: $font-semibold; - font-size: 15px; height: $button-height; line-height: $button-height; @@ -259,6 +258,8 @@ text-align: center; cursor: pointer; + font-size: $button-font-size; + my-global-icon + * { @include margin-right(4px); } @@ -292,10 +293,6 @@ } @mixin button-with-icon($width: 20px, $margin-right: 3px, $top: -1px) { - display: inline-flex; - align-items: center; - line-height: normal !important; - my-global-icon { @include margin-right($margin-right); @@ -361,7 +358,6 @@ color: pvar(--inputForegroundColor); background: pvar(--inputBackgroundColor); position: relative; - font-size: 15px; height: min-content; &.disabled { @@ -403,6 +399,8 @@ height: $button-height; text-overflow: ellipsis; color: pvar(--mainForegroundColor); + font-size: $form-input-font-size; + line-height: $form-input-line-height; &:focus { outline: none; @@ -435,6 +433,10 @@ // Thanks: https://codepen.io/manabox/pen/raQmpL @mixin peertube-radio-container { + label { + font-size: $form-input-font-size; + } + [type=radio]:checked, [type=radio]:not(:checked) { position: absolute; @@ -448,7 +450,6 @@ cursor: pointer; line-height: 20px; display: inline-block; - font-size: 15px; font-weight: $font-regular; } @@ -540,7 +541,6 @@ + span + span { @include margin-left(5px); - font-size: 15px; font-weight: $font-regular; cursor: pointer; display: inline; @@ -563,7 +563,6 @@ @mixin actor-counters ($separator-margin: 10px) { color: pvar(--greyForegroundColor); - font-size: 16px; display: flex; align-items: center; @@ -585,7 +584,7 @@ text-transform: uppercase; color: pvar(--mainColor); font-weight: $font-bold; - font-size: 110%; + font-size: 1rem; margin-bottom: 10px; } @@ -675,11 +674,10 @@ @mixin breadcrumb { display: flex; flex-wrap: wrap; - padding: 0.75rem 1rem; + padding: 0; margin-bottom: 1rem; list-style: none; - background-color: pvar(--submenuBackgroundColor); - border-radius: 0.25rem; + font-weight: $font-semibold; .breadcrumb-item { display: flex; diff --git a/client/src/sass/include/_nav.scss b/client/src/sass/include/_nav.scss index d069ac9ae..5fd32df45 100644 --- a/client/src/sass/include/_nav.scss +++ b/client/src/sass/include/_nav.scss @@ -20,7 +20,6 @@ margin-bottom: -$border-width; height: $nav-link-height !important; padding: 0 30px !important; - font-size: 15px; border: $border-width $border-type transparent; diff --git a/client/src/sass/include/_variables.scss b/client/src/sass/include/_variables.scss index 476a4ee52..3fe1f74a2 100644 --- a/client/src/sass/include/_variables.scss +++ b/client/src/sass/include/_variables.scss @@ -39,6 +39,7 @@ $grey-actor-name: #777272; $expanded-horizontal-margins: 150px; $not-expanded-horizontal-margins: 30px; +$button-font-size: 15px; $button-height: 30px; $header-height: 50px; @@ -97,6 +98,8 @@ $sub-menu-margin-bottom-small-view: 10px; $activated-action-button-color: #212529; $focus-box-shadow-form: 0 0 0 .2rem; +$form-input-font-size: 15px; +$form-input-line-height: 1.4; $video-watch-player-factor: math.div(16, 9); $video-watch-info-margin-left: 44px; -- cgit v1.2.3