X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fsass%2Fapplication.scss;h=4f753e04120a34da126cc52ce0d13e0a424fc9dc;hb=d567632952545c28820ab9c65452a06c86998ebb;hp=0e486eab2ef168d8db691b89a434afed50253308;hpb=1f6d2449707f0ebcbc4c890d98bc0cd74f579889;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/sass/application.scss b/client/src/sass/application.scss index 0e486eab2..4f753e041 100644 --- a/client/src/sass/application.scss +++ b/client/src/sass/application.scss @@ -31,30 +31,37 @@ body { --mainForegroundColor: #{$fg-color}; --secondaryColor: #{$secondary-color}; + --greyForegroundColor: #{$grey-foreground-color}; + --menuBackgroundColor: #{$menu-background}; --menuForegroundColor: #{$menu-color}; --submenuColor: #{$sub-menu-color}; + --inputForegroundColor: #{$input-foreground-color}; --inputBackgroundColor: #{$input-background-color}; --inputPlaceholderColor: #{$input-placeholder-color}; + --textareaForegroundColor: #{$textarea-foreground-color}; --textareaBackgroundColor: #{$textarea-background-color}; + --markdownTextareaBackgroundColor: #{$markdown-textarea-background-color}; --actionButtonColor: #{$grey-foreground-color}; --supportButtonBackgroundColor: #{transparent}; - --supportButtonColor: #{var(--actionButtonColor)}; + --supportButtonColor: #{pvar(--actionButtonColor)}; --supportButtonHeartColor: #{$support-button-heart}; + --activatedActionButtonColor: #{$activated-action-button-color}; + font-family: $main-fonts; font-weight: $font-regular; - color: var(--mainForegroundColor); - background-color: var(--mainBackgroundColor); + color: pvar(--mainForegroundColor); + background-color: pvar(--mainBackgroundColor); font-size: 14px; } ::selection { - color: var(--mainBackgroundColor); - background-color: var(--mainHoverColor); + color: pvar(--mainBackgroundColor); + background-color: pvar(--mainHoverColor); } #incompatible-browser { @@ -71,12 +78,17 @@ strong { input.readonly { /* Force blank on readonly inputs */ - background-color: var(--inputBackgroundColor) !important; + background-color: pvar(--inputBackgroundColor) !important; } input, textarea { outline: none; - color: var(--mainForegroundColor); + color: pvar(--mainForegroundColor); +} + +button { + background: unset; + @include disable-outline; } label { @@ -121,7 +133,7 @@ label { } .sub-menu { - background-color: var(--submenuColor); + background-color: pvar(--submenuColor); width: 100%; height: 81px; margin-bottom: $sub-menu-margin-bottom; @@ -159,7 +171,7 @@ label { } .title-page { - color: var(--mainForegroundColor); + color: pvar(--mainForegroundColor); font-size: 16px; display: inline-block; margin-right: 55px; @@ -173,7 +185,7 @@ label { &.active { font-weight: $font-bold; - border-bottom: 2px solid var(--mainColor); + border-bottom: 2px solid pvar(--mainColor); } &.title-page-single { @@ -181,7 +193,7 @@ label { } &:hover, &:active, &:focus { - color: var(--mainForegroundColor); + color: pvar(--mainForegroundColor); } @media screen and (max-width: $mobile-view) { @@ -213,7 +225,7 @@ label { @include disable-default-a-behaviour; font-size: 16px; - color: var(--mainForegroundColor); + color: pvar(--mainForegroundColor); padding: 5px 15px; border-radius: 0.25rem; @@ -246,6 +258,8 @@ table { .no-results { height: 40vh; + max-height: 500px; + display: flex; align-items: center; justify-content: center; @@ -267,7 +281,7 @@ table { top: #{-($header-height + 20px)}; } -@media screen and (max-width: #{map-get($grid-breakpoints, xxl)}) { +@media screen and (max-width: #{breakpoint(xxl)}) { .main-col { &.expanded { .margin-content { @@ -278,19 +292,22 @@ table { } } -@media screen and (max-width: #{map-get($grid-breakpoints, lg)}) { +@media screen and (max-width: #{breakpoint(lg)}) { + /* the following applies from 500px to 900px and is partially overriden from 500px to 800px by changes below to $small-view */ .main-col { - .margin-content { - margin-left: $expanded-horizontal-margins/3; - margin-right: $expanded-horizontal-margins/3; - } + &, &.expanded { + .margin-content { + margin-left: $expanded-horizontal-margins/3; + margin-right: $expanded-horizontal-margins/3; + } - .sub-menu { - padding-left: 50px; - padding-right: 50px; + .sub-menu { + padding-left: 50px; + padding-right: 50px; - .title-page { - font-size: 17px; + .title-page { + font-size: 17px; + } } } } @@ -314,10 +331,14 @@ table { .sub-menu { width: 100vw; - overflow-x: auto; padding-left: 15px; padding-right: 15px; margin-bottom: $sub-menu-margin-bottom-small-view; + overflow-x: auto; + } + + .admin-sub-header { + @include admin-sub-header-responsive(15px*2); } my-markdown-textarea { @@ -329,9 +350,64 @@ table { input[type=text], input[type=password], input[type=email], - textarea { + textarea, + .peertube-select-container { width: 100% !important; } + + .caption input[type=text] { + width: unset !important; + flex-grow: 1; + } + } + } +} + +// overflow-databale responsive rules +@media screen and (min-width: #{breakpoint(lg)}) { + .main-col { + &.expanded { + @include overflow-datatable(breakpoint(lg), $expanded-horizontal-margins/2, $mobile-paginator: false); + } + + &:not(.expanded) { + @include overflow-datatable(breakpoint(lg), $not-expanded-horizontal-margins + $menu-width/2, $mobile-paginator: false); + } + } +} + +@media screen and (max-width: #{breakpoint(lg)}) { + .main-col { + &.expanded { + @include overflow-datatable(breakpoint(lg), $expanded-horizontal-margins/3); + } + + &:not(.expanded) { + @include overflow-datatable(breakpoint(lg), $expanded-horizontal-margins/3 + $menu-width/2); + } + } +} + +@media screen and (max-width: $small-view) { + .main-col { + &:not(.expanded), + &.expanded { + @include overflow-datatable(breakpoint(lg), 15px); + } + } +} + +@media screen and (min-width: $small-view) and (max-width: #{$small-view + $menu-width}) { + .main-col { + &:not(.expanded) { + .admin-sub-header { + @include admin-sub-header-responsive($expanded-horizontal-margins/3 + $menu-width/2); + } + + .sub-menu { + overflow-x: auto; + width: calc(100vw - #{$menu-width}); + } } } }