}
}
-@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) {
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;
}
&::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 {
}
}
-@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.