X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fsass%2Fapplication.scss;h=ff6ce394fedeee48063317e8e6821f3c32858877;hb=b15fe00f7409b27573e162192530bc73e3f918b1;hp=560414e90fa60200356f4afb2c4b2321adf8afd1;hpb=2ad9dcda240ee843c5e4a5b98cc94f7b2aab2c89;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/sass/application.scss b/client/src/sass/application.scss index 560414e90..ff6ce394f 100644 --- a/client/src/sass/application.scss +++ b/client/src/sass/application.scss @@ -23,11 +23,13 @@ body { /*** theme ***/ // now beware node-sass requires interpolation // for css custom properties #{$var} - --mainColor: #{$orange-color}; - --mainHoverColor: #{$orange-hover-color}; + --mainColor: #{$main-color}; + --mainColorLighter: #{$main-color-lighter}; + --mainColorLightest: #{$main-color-lightest}; + --mainHoverColor: #{$main-hover-color}; --mainBackgroundColor: #{$bg-color}; --mainForegroundColor: #{$fg-color}; - --secondaryColor: #{$cyan-color}; + --secondaryColor: #{$secondary-color}; --menuBackgroundColor: #{$menu-background}; --menuForegroundColor: #{$menu-color}; @@ -36,6 +38,8 @@ body { --inputBackgroundColor: #{$input-background-color}; --inputPlaceholderColor: #{$input-placeholder-color}; + --textareaBackgroundColor: #{$textarea-background-color}; + --actionButtonColor: #{$grey-foreground-color}; --supportButtonBackgroundColor: #{transparent}; --supportButtonColor: #{var(--actionButtonColor)}; @@ -75,10 +79,6 @@ input, textarea { color: var(--mainForegroundColor); } -.btn-outline-secondary { - border-color: $input-border-color; -} - label { font-weight: $font-bold; font-size: 15px; @@ -105,9 +105,14 @@ label { color: black; } +.row { + margin: 0 !important; +} + .main-col { margin-left: $menu-width; - width: auto; + width: calc(100% - #{$menu-width}); + outline: none; .margin-content { margin-left: $not-expanded-horizontal-margins; @@ -129,6 +134,7 @@ label { // Override some properties if the main content is expanded (no menu on the left) &.expanded { margin-left: 0; + width: 100%; .margin-content { margin-left: $expanded-horizontal-margins; @@ -140,6 +146,16 @@ label { padding-right: $expanded-horizontal-margins; } } + + &.lock-scroll .main-row > router-outlet + * { + // Lock and hide body scrollbars + position: fixed; + + // Lock and hide sub-menu scrollbars + .sub-menu { + overflow-x: hidden; + } + } } .title-page { @@ -173,6 +189,17 @@ label { } } +.title-page-about, +.title-page-settings { + white-space: nowrap; + font-size: 115%; + font-weight: $font-regular; + + &.active { + font-weight: $font-semibold; + } +} + .admin-sub-header { display: flex; align-items: center; @@ -235,6 +262,11 @@ table { } } +.anchor { + position: relative; + top: #{-($header-height + 20px)}; +} + @media screen and (max-width: #{map-get($grid-breakpoints, xxl)}) { .main-col { &.expanded { @@ -256,6 +288,7 @@ table { .sub-menu { padding-left: 50px; + padding-right: 50px; .title-page { font-size: 17px; @@ -280,10 +313,19 @@ table { overflow-x: auto; padding-left: 15px; padding-right: 15px; - margin-bottom: 10px; + margin-bottom: $sub-menu-margin-bottom-small-view; + } + + my-markdown-textarea { + .root { + max-width: 100% !important; + } } - input[type=text], input[type=password] { + input[type=text], + input[type=password], + input[type=email], + textarea { width: 100% !important; } }