X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fsass%2Finclude%2F_mixins.scss;h=06e55532ac09c526688bea1eed9567ec3173ef4b;hb=bc4c9cc1d75d591c217d61ab22a107b7f1044c76;hp=718e36f2ca37843b10183e205cce0a07809527f9;hpb=931d3430184143ebd88e5243def6eb1d7acfdbf4;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/sass/include/_mixins.scss b/client/src/sass/include/_mixins.scss index 718e36f2c..06e55532a 100644 --- a/client/src/sass/include/_mixins.scss +++ b/client/src/sass/include/_mixins.scss @@ -50,11 +50,14 @@ } } -@mixin peertube-word-wrap { +@mixin peertube-word-wrap ($with-hyphen: true) { word-break: break-word; word-wrap: break-word; overflow-wrap: break-word; - hyphens: auto; + + @if $with-hyphen { + hyphens: auto; + } } @mixin apply-svg-color ($color) { @@ -333,20 +336,6 @@ cursor: pointer; } -@mixin select-arrow-down { - top: 50%; - right: calc(0% + 15px); - content: ' '; - height: 0; - width: 0; - position: absolute; - pointer-events: none; - border: 5px solid rgba(0, 0, 0, 0); - border-top-color: #000; - margin-top: -2px; - z-index: 100; -} - @mixin responsive-width ($width) { width: $width; @@ -378,7 +367,17 @@ } &::after { - @include select-arrow-down; + top: 50%; + right: calc(0% + 15px); + content: ' '; + height: 0; + width: 0; + position: absolute; + pointer-events: none; + border: 5px solid rgba(0, 0, 0, 0); + border-top-color: #000; + margin-top: -2px; + z-index: 100; } select { @@ -821,7 +820,7 @@ --chip-padding: .2rem .3rem; } - ::ng-deep .avatar { + my-actor-avatar { margin-left: -.4rem; margin-right: .2rem; } @@ -831,9 +830,8 @@ height: $avatar-height; - .avatar { - height: $avatar-height; - width: $avatar-height; + my-actor-avatar { + @include actor-avatar-size($avatar-height); } div { @@ -847,29 +845,6 @@ } } -@mixin admin-sub-header-responsive { - flex-direction: column; - - .form-sub-title { - margin-right: 0 !important; - margin-bottom: 10px; - text-align: center; - } - - .admin-sub-nav { - display: block; - overflow-x: auto; - white-space: nowrap; - height: 50px; - padding: 10px 0; - width: 100%; - - a { - margin-left: 5px; - } - } -} - // applies ratio (default to 16:9) to a child element (using $selector) only using // an immediate's parent size. This allows to set a ratio without explicit // dimensions, as width/height cannot be computed from each other. @@ -897,15 +872,17 @@ padding-bottom: 15px; margin-bottom: $sub-menu-margin-bottom; + > span > my-global-icon, > my-global-icon { margin-right: 10px; - vertical-align: bottom; width: 24px; height: 24px; + vertical-align: top; } .badge { margin-left: 7px; + vertical-align: top; } } }