3 @mixin disable-default-a-behaviour {
4 &:hover, &:focus, &:active {
5 text-decoration: none !important;
6 outline: none !important;
10 @mixin disable-outline {
11 &:focus:not(.focus-visible) {
22 * This mixin will crop text in block for needed amount of lines and put ellipsis at the end
24 * @param $font-size font-size property
25 * @param $line-height line-height property
26 * @param $lines-to-show amount of lines to show
28 @mixin ellipsis-multiline($font-size: 1rem, $line-height: 1, $lines-to-show: 2) {
30 /* Fallback for non-webkit */
32 max-height: $font-size*$line-height*$lines-to-show + 0.2;
33 /* Fallback for non-webkit */
34 font-size: $font-size;
35 line-height: $line-height;
36 -webkit-line-clamp: $lines-to-show;
37 -webkit-box-orient: vertical;
39 text-overflow: ellipsis;
42 @mixin prefix($property, $parameters...) {
43 @each $prefix in -webkit-, -moz-, -ms-, -o-, "" {
44 #{$prefix}#{$property}: $parameters;
48 @mixin peertube-word-wrap {
50 word-wrap: break-word;
51 overflow-wrap: break-word;
52 -webkit-hyphens: auto;
58 @mixin peertube-input-text($width) {
59 display: inline-block;
60 height: $button-height;
62 background: var(--inputColor);
63 border: 1px solid #C6C6C6;
69 color: var(--inputPlaceholderColor);
72 @media screen and (max-width: $width) {
77 @mixin peertube-input-group($width) {
79 height: $button-height;
89 @mixin peertube-textarea ($width, $height) {
90 @include peertube-input-text($width);
97 @mixin orange-button {
98 &, &:active, &:focus {
100 background-color: var(--mainColor);
105 background-color: var(--mainHoverColor);
108 &[disabled], &.disabled {
111 background-color: #C6C6C6;
116 &, &:active, &:focus {
117 background-color: $grey-color;
121 &:hover, &:active, &:focus, &[disabled], &.disabled {
123 background-color: $grey-hoover-color;
126 &[disabled], &.disabled {
131 @mixin peertube-button {
133 font-weight: $font-semibold;
135 height: $button-height;
136 line-height: $button-height;
139 padding: 0 17px 0 13px;
144 @mixin peertube-button-link {
145 display: inline-block;
147 @include disable-default-a-behaviour;
148 @include peertube-button;
151 @mixin peertube-button-file ($width) {
154 display: inline-block;
157 @include peertube-button;
158 @include orange-button;
168 filter: alpha(opacity=0);
177 @mixin icon ($size) {
178 display: inline-block;
179 background-repeat: no-repeat;
180 background-size: contain;
183 vertical-align: middle;
187 @mixin peertube-select-container ($width) {
190 border: 1px solid #C6C6C6;
194 background: var(--inputColor);
200 right: calc(0% + 15px);
205 pointer-events: none;
206 border: 5px solid rgba(0, 0, 0, 0);
207 border-top-color: #000;
213 padding: 0 35px 0 12px;
214 width: calc(100% + 2px);
219 background: transparent none;
222 height: $button-height;
223 text-overflow: ellipsis;
224 color: var(--mainForegroundColor);
232 text-shadow: 0 0 0 #000;
237 @mixin peertube-select-disabled-container ($width) {
238 @include peertube-select-container($width);
240 background-color: #E5E5E5;
247 // Thanks: https://codepen.io/triss90/pen/XNEdRe/
248 @mixin peertube-radio-container {
249 input[type="radio"] {
253 font-weight: $font-regular;
262 border: 1px solid #000;
263 display: inline-block;
266 vertical-align: middle;
273 &:checked + label:before {
274 background-color: #000;
275 box-shadow: inset 0 0 0 4px #fff;
278 &:focus + label:before {
285 @mixin peertube-checkbox ($border-width) {
292 border: $border-width solid var(--mainForegroundColor);
294 vertical-align: middle;
300 top: calc(2px - #{$border-width});
305 transform: rotate(45deg) scale(0);
306 border-right: 2px solid var(--mainBackgroundColor);
307 border-bottom: 2px solid var(--mainBackgroundColor);
312 border-color: transparent;
313 background: var(--mainColor);
314 animation: jelly 0.6s ease;
318 transform: rotate(45deg) scale(1);
324 font-weight: $font-regular;
331 &[disabled] + span + span{
338 @mixin avatar ($size) {
345 @mixin chevron ($size, $border-width) {
347 border-width: $border-width $border-width 0 0;
349 display: inline-block;
350 transform: rotate(-45deg);
355 @mixin chevron-right ($size, $border-width) {
356 @include chevron($size, $border-width);
359 transform: rotate(45deg);
362 @mixin chevron-left ($size, $border-width) {
363 @include chevron($size, $border-width);
366 transform: rotate(-135deg);
369 @mixin in-content-small-title {
370 text-transform: uppercase;
371 color: var(--mainColor);
372 font-weight: $font-bold;
377 @include disable-default-a-behaviour;
379 display: inline-table;
382 color: var(--mainForegroundColor);
389 @include avatar(18px);
397 @mixin sub-menu-with-actor {
400 flex-direction: column;
409 @include avatar(80px);
416 flex-direction: column;
417 justify-content: center;
423 .actor-display-name {
425 font-weight: $font-bold;
433 color: $grey-actor-name;
442 @include actor-owner;
458 @mixin create-button ($imageUrl) {
459 @include peertube-button-link;
460 @include orange-button;
468 background-image: url($imageUrl);
475 padding-bottom: 20px;
477 border-bottom: 1px solid #C6C6C6;
479 @media screen and (max-width: 800px) {
480 flex-direction: column;
487 @mixin video-miniature-small-screen {
490 /deep/ .video-miniature {
496 .video-miniature-information {
497 width: 100% !important;