X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fsass%2Fbootstrap.scss;h=6a5d366394985b036a85215e6cbebce5fc667b97;hb=5b0ec7cddb1ae6dbd2057f067382866f846b882c;hp=2df2d0680ac67cb1a969447bab11ddcebfb00053;hpb=0164fc112a98897849a8eda2f0b5d208e813e014;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/sass/bootstrap.scss b/client/src/sass/bootstrap.scss index 2df2d0680..6a5d36639 100644 --- a/client/src/sass/bootstrap.scss +++ b/client/src/sass/bootstrap.scss @@ -1,5 +1,3 @@ -$icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/'; - @use '_variables' as *; @use '_mixins' as *; @@ -26,17 +24,11 @@ $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/'; @import '~bootstrap/scss/modal'; @import '~bootstrap/scss/tooltip'; @import '~bootstrap/scss/popover'; +@import '~bootstrap/scss/spinners'; @import '~bootstrap/scss/helpers'; @import '~bootstrap/scss/utilities/api'; -@import '~@neos21/bootstrap3-glyphicons/assets/stylesheets/bootstrap3-glyphicons'; - -// Thanks https://gist.github.com/alexandrevicenzi/680147013e902a4eaa5d -.glyphicon-refresh-animate { - animation: spin 0.7s infinite linear; -} - .flex-auto { flex: auto; } @@ -45,18 +37,11 @@ $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/'; cursor: pointer !important; } -@keyframes spin { - from { - transform: scale(1) rotate(0deg); - } - - to { - transform: scale(1) rotate(360deg); - } -} +// --------------------------------------------------------------------------- +// Dropdown +// --------------------------------------------------------------------------- .dropdown-menu { - font-size: 15px; color: pvar(--mainForegroundColor); background-color: pvar(--mainBackgroundColor); @@ -83,6 +68,24 @@ $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/'; } } +.dropdown-divider { + margin: 0.3rem 0; +} + +// --------------------------------------------------------------------------- +// Alert +// --------------------------------------------------------------------------- + +.alert { + p:last-child { + margin-bottom: 0; + } +} + +// --------------------------------------------------------------------------- +// Modal +// --------------------------------------------------------------------------- + @media screen and (min-width: #{breakpoint(md)}) { .modal::before { vertical-align: middle; @@ -121,18 +124,10 @@ $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/'; my-global-icon { @include icon(22px); - position: relative; - top: 5px; - float: right; - - margin: 0; - padding: 0; opacity: 0.5; - &[iconName=cross] { /* stylelint-disable-line selector-max-compound-selectors */ - @include icon(16px); - - top: -3px; + &:hover { + opacity: 0.8; } } } @@ -171,14 +166,15 @@ $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/'; opacity: 0.75; content: ''; display: block; - position: fixed; - z-index: z(overlay); } } } } -// Nav customizations +// --------------------------------------------------------------------------- +// Nav +// --------------------------------------------------------------------------- + .nav .nav-link { display: flex !important; align-items: center; @@ -231,6 +227,10 @@ $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/'; } } +// --------------------------------------------------------------------------- +// Card, collapse and accordion +// --------------------------------------------------------------------------- + .card { background-color: pvar(--mainBackgroundColor); border-color: #dee2e6; @@ -249,8 +249,13 @@ $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/'; } } -.dropdown-divider { - margin: 0.3rem 0; +// --------------------------------------------------------------------------- +// Buttons & form controls +// --------------------------------------------------------------------------- + +.btn:not(.btn-sm) { + font-size: $button-font-size; + line-height: 1.2; } .btn-outline-secondary { @@ -264,18 +269,6 @@ $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/'; } } -.btn-outline-tertiary { - color: pvar(--secondaryColor); - border-color: pvar(--secondaryColor); - - &:focus-within, - &:focus, - &:hover { - color: pvar(--mainBackgroundColor); - background-color: pvar(--secondaryColor); - } -} - .btn-group.select-button { font-weight: $font-semibold; @@ -304,13 +297,12 @@ $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/'; } } -// input box-shadow on focus .form-control { - font-size: 15px; color: pvar(--mainForegroundColor); background-color: pvar(--inputBackgroundColor); outline: none; + // Input box-shadow on focus &:focus-within, &:focus { box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest); @@ -328,7 +320,6 @@ $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/'; } > .input-group-text { - font-size: 15px; line-height: normal; opacity: 0.9; } @@ -344,8 +335,6 @@ $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/'; } .has-clear { - position: relative; - input { @include padding-right(1.5rem !important); } @@ -355,10 +344,10 @@ $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/'; display: flex; justify-content: center; align-items: center; - position: absolute; - right: .5rem; height: 95%; font-size: 14px; + position: absolute; + right: .5rem; &:hover { color: rgba(0, 0, 0, 0.7);