X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fsass%2Fapplication.scss;h=560414e90fa60200356f4afb2c4b2321adf8afd1;hb=c2777c1dfe688c8fab1ef2fed50e360100fa9198;hp=5386e3bb30f369a7603e42ffbcee98b01276309b;hpb=cdbfd2b00324705a172a1985b8da218f1a67fc7d;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/sass/application.scss b/client/src/sass/application.scss index 5386e3bb3..560414e90 100644 --- a/client/src/sass/application.scss +++ b/client/src/sass/application.scss @@ -1,5 +1,6 @@ $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/'; +@import '_bootstrap-variables'; @import '_variables'; @import '_mixins'; @@ -26,12 +27,20 @@ body { --mainHoverColor: #{$orange-hover-color}; --mainBackgroundColor: #{$bg-color}; --mainForegroundColor: #{$fg-color}; + --secondaryColor: #{$cyan-color}; + --menuBackgroundColor: #{$menu-background}; --menuForegroundColor: #{$menu-color}; --submenuColor: #{$sub-menu-color}; - --inputColor: #{$input-background-color}; + + --inputBackgroundColor: #{$input-background-color}; --inputPlaceholderColor: #{$input-placeholder-color}; + --actionButtonColor: #{$grey-foreground-color}; + --supportButtonBackgroundColor: #{transparent}; + --supportButtonColor: #{var(--actionButtonColor)}; + --supportButtonHeartColor: #{$support-button-heart}; + font-family: $main-fonts; font-weight: $font-regular; color: var(--mainForegroundColor); @@ -39,6 +48,11 @@ body { font-size: 14px; } +::selection { + color: var(--mainBackgroundColor); + background-color: var(--mainHoverColor); +} + #incompatible-browser { display: none; text-align: center; @@ -53,7 +67,7 @@ strong { input.readonly { /* Force blank on readonly inputs */ - background-color: var(--inputColor) !important; + background-color: var(--inputBackgroundColor) !important; } input, textarea { @@ -137,17 +151,24 @@ label { @include disable-default-a-behaviour; &.active, &.title-page-single { - border-bottom: 2px solid var(--mainColor); - font-weight: $font-bold; margin-top: 30px; margin-bottom: 25px; } + &.active { + font-weight: $font-bold; + border-bottom: 2px solid var(--mainColor); + } + + &.title-page-single { + font-size: 125%; + } + &:hover, &:active, &:focus { color: var(--mainForegroundColor); } - @media screen and (max-width: 500px) { + @media screen and (max-width: $mobile-view) { margin-right: 15px; } } @@ -187,26 +208,6 @@ label { to { transform: scale(1) rotate(360deg);} } -.orange-button { - @include peertube-button; - @include orange-button; -} - -.orange-button-link { - @include peertube-button-link; - @include orange-button; -} - -.grey-button { - @include peertube-button; - @include grey-button; -} - -.grey-button-link { - @include peertube-button-link; - @include grey-button; -} - // In tables, don't have a hover different background table { .action-button-edit, .action-button-delete { @@ -225,7 +226,16 @@ table { font-weight: $font-semibold; } -@media screen and (max-width: 1600px) { +.dropdown-item { + @include dropdown-with-icon-item; + + my-global-icon { + width: 22px; + height: 22px; + } +} + +@media screen and (max-width: #{map-get($grid-breakpoints, xxl)}) { .main-col { &.expanded { .margin-content { @@ -236,7 +246,7 @@ table { } } -@media screen and (max-width: 900px) { +@media screen and (max-width: #{map-get($grid-breakpoints, lg)}) { .main-col { &.expanded { .margin-content { @@ -248,7 +258,7 @@ table { padding-left: 50px; .title-page { - font-size: 15px; + font-size: 17px; } } }