X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fsass%2Fapplication.scss;h=87a21543def802845f89f0133f0f0557cfa1c92c;hb=f1c861727c1d2f9eacf98821c81f0f8cdcb57317;hp=15ca09ec4a1eaee4b6731b389f0584ee49f1d586;hpb=24893b524c47b8f89090192aa38126352a952808;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/sass/application.scss b/client/src/sass/application.scss index 15ca09ec4..87a21543d 100644 --- a/client/src/sass/application.scss +++ b/client/src/sass/application.scss @@ -1,18 +1,22 @@ $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/'; +@use 'sass:math'; + @use '_variables' as *; @use '_mixins' as *; @use '_fonts'; -@use './bootstrap'; -@use './primeng-custom'; -@use './ng-select'; - @use './classes'; @use './custom-markup'; +@use './ng-select'; + +// Needs an import because we extends glyphicon icons in primeng +@import './bootstrap'; +@import './primeng-custom'; + [hidden] { display: none !important; } @@ -88,7 +92,7 @@ strong { font-weight: $font-semibold; } -input.readonly { +input[readonly] { /* Force blank on readonly inputs */ background-color: pvar(--inputBackgroundColor) !important; } @@ -121,12 +125,16 @@ code { vertical-align: middle; } -.form-error { +.form-error, +.form-warning { display: block; - color: $red; margin-top: 5px; } +.form-error { + color: $red; +} + .input-error, my-input-toggle-hidden ::ng-deep input { border-color: $red !important; @@ -254,10 +262,6 @@ my-input-toggle-hidden ::ng-deep input { align-items: center; margin-bottom: 30px; - .form-sub-title { - flex-grow: 1; - } - .admin-sub-nav a { @include disable-default-a-behaviour; @@ -281,11 +285,6 @@ my-input-toggle-hidden ::ng-deep input { } } -.form-sub-title { - font-size: 20px; - font-weight: bold; -} - // In tables, don't have a hover different background table { .action-button-edit, @@ -347,11 +346,11 @@ ngx-loading-bar { @media screen and (max-width: #{breakpoint(xxl)}) { .main-col { - --horizontalMarginContent: #{$not-expanded-horizontal-margins / 2}; + --horizontalMarginContent: #{math.div($not-expanded-horizontal-margins, 2)}; --videosHorizontalMarginContent: 30px; &.expanded { - --horizontalMarginContent: #{$expanded-horizontal-margins / 2}; + --horizontalMarginContent: #{math.div($expanded-horizontal-margins, 2)}; } } } @@ -364,7 +363,7 @@ ngx-loading-bar { /* the following applies from 500px to 900px and is partially overriden from 500px to 800px by changes below to $small-view */ .main-col, .main-col.expanded { - --horizontalMarginContent: #{$expanded-horizontal-margins / 3}; + --horizontalMarginContent: #{math.div($expanded-horizontal-margins, 3)}; .sub-menu { padding: 0 50px; @@ -404,13 +403,6 @@ ngx-loading-bar { .admin-sub-header { flex-direction: column; - .form-sub-title { - @include margin-right(0 !important); - - margin-bottom: 10px; - text-align: center; - } - .admin-sub-nav { display: block; overflow-x: auto;