X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fsass%2Fapplication.scss;h=2356f98371a4ad64c88cdb68f58ed2fe46106a25;hb=71e318b4fe66175d03c7c82357d60062eb68af81;hp=c380fe5bfc900dfc8e29961609a7b559bc444feb;hpb=46ae6f67249dea59176488ad1775f80109b8b8db;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/sass/application.scss b/client/src/sass/application.scss index c380fe5bf..2356f9837 100644 --- a/client/src/sass/application.scss +++ b/client/src/sass/application.scss @@ -1,15 +1,15 @@ +$icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/'; +@import '_bootstrap'; + @import '_variables'; @import '_mixins'; -$icon-font-path: '../../node_modules/@neos21/bootstrap3-glyphicons/assets/fonts/'; -@import '_bootstrap'; - @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; } } @@ -217,7 +244,6 @@ label { } .inputs { - margin-top: 40px; margin-bottom: 0; text-align: right; @@ -269,6 +295,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; @@ -307,7 +338,7 @@ table { font-weight: $font-semibold; } -@media screen and (max-width: 1000px) { +@media screen and (max-width: 1600px) { .main-col { &.expanded { .margin-content { @@ -337,7 +368,7 @@ table { } } -@media screen and (max-width: 600px) { +@media screen and (max-width: $small-view) { .main-col { margin-left: 0;