X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fsass%2Fapplication.scss;h=0029c22ef6bcc04dff1afc4c2d5bc9c4872fc167;hb=660d11e91e1643927028d2d6870a911f569b34d8;hp=fd0d5e4586ca87b21744d1586e01d0e51a4230fc;hpb=8ff3f88347cb733ca8a3978ba6eb9763fb3ea294;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/sass/application.scss b/client/src/sass/application.scss index fd0d5e458..0029c22ef 100644 --- a/client/src/sass/application.scss +++ b/client/src/sass/application.scss @@ -1,15 +1,15 @@ -@import '_variables'; -@import '_mixins'; - $icon-font-path: '../../node_modules/@neos21/bootstrap3-glyphicons/assets/fonts/'; @import '_bootstrap'; +@import '_variables'; +@import '_mixins'; + @import '_fonts'; @import '~video.js/dist/video-js.css'; $assets-path: '../assets/'; -@import './player/player'; +@import './player/index'; @import './loading-bar'; @import './primeng-custom'; @@ -19,6 +19,19 @@ $assets-path: '../assets/'; } body { + /*** theme ***/ + // now beware node-sass requires interpolation + // for css custom properties #{$var} + --mainColor: #{$orange-color}; + --mainHoverColor: #{$orange-hoover-color}; + --mainBackgroundColor: #{$bg-color}; + --mainForegroundColor: #{$fg-color}; + --menuBackgroundColor: #{$menu-background}; + --menuForegroundColor: #{$menu-color}; + --submenuColor: #{$sub-menu-color}; + --inputColor: #{$input-background-color}; + --inputPlaceholderColor: #{$input-placeholder-color}; + font-family: $main-fonts; font-weight: $font-regular; color: var(--mainForegroundColor); @@ -39,11 +52,16 @@ strong { input.readonly { /* Force blank on readonly inputs */ - background-color: #fff !important; + background-color: var(--inputColor) !important; } input, textarea { outline: none; + color: var(--mainForegroundColor); +} + +.btn-outline-secondary { + border-color: $input-border-color; } label { @@ -181,9 +199,18 @@ label { .dropdown-item { padding: 3px 15px; + + &:active { + color: #000 !important; + } + } + + button { + @include disable-default-a-behaviour; } a { + @include disable-default-a-behaviour; color: #000 !important; } } @@ -269,6 +296,11 @@ ngb-tabset.bootstrap { } } +.nav-tabs .nav-link.active { + background-color: var(--mainBackgroundColor) !important; + border-bottom: none; +} + .orange-button { @include peertube-button; @include orange-button;