X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fsass%2Finclude%2F_mixins.scss;h=1b460b7231d2fe29de9609dabb3cc14d9e4c1cbc;hb=4e56f0fff12ab9840574e7a27277fc78b195b3e2;hp=22c3b2a2f6196bc2a939f3535efac782bd9de429;hpb=93c728a25a87cf6dae5fc49d42d6af52ff7f7ff2;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/sass/include/_mixins.scss b/client/src/sass/include/_mixins.scss index 22c3b2a2f..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,11 +258,25 @@ text-align: center; cursor: pointer; + font-size: $button-font-size; + my-global-icon + * { @include margin-right(4px); } } +@mixin peertube-button-big { + height: auto; + padding: 10px 25px; + font-size: 18px; + line-height: 1.2; + border: 0; + font-weight: $font-semibold; + + // Because of primeng that redefines border-radius of all input[type="..."] + border-radius: 3px !important; +} + @mixin peertube-button-link { @include disable-default-a-behaviour; @include peertube-button; @@ -280,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); @@ -349,7 +358,6 @@ color: pvar(--inputForegroundColor); background: pvar(--inputBackgroundColor); position: relative; - font-size: 15px; height: min-content; &.disabled { @@ -391,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; @@ -423,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; @@ -436,7 +450,6 @@ cursor: pointer; line-height: 20px; display: inline-block; - font-size: 15px; font-weight: $font-regular; } @@ -528,7 +541,6 @@ + span + span { @include margin-left(5px); - font-size: 15px; font-weight: $font-regular; cursor: pointer; display: inline; @@ -551,7 +563,6 @@ @mixin actor-counters ($separator-margin: 10px) { color: pvar(--greyForegroundColor); - font-size: 16px; display: flex; align-items: center; @@ -573,7 +584,7 @@ text-transform: uppercase; color: pvar(--mainColor); font-weight: $font-bold; - font-size: 110%; + font-size: 1rem; margin-bottom: 10px; } @@ -663,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;