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;
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;
59 @mixin peertube-input-text($width) {
60 display: inline-block;
61 height: $button-height;
63 background: var(--inputColor);
64 border: 1px solid #C6C6C6;
70 color: var(--inputPlaceholderColor);
74 @mixin peertube-input-group($width) {
76 height: $button-height;
86 @mixin peertube-textarea ($width, $height) {
87 @include peertube-input-text($width);
94 @mixin orange-button {
95 &, &:active, &:focus {
97 background-color: var(--mainColor);
102 background-color: var(--mainHoverColor);
105 &[disabled], &.disabled {
108 background-color: #C6C6C6;
113 &, &:active, &:focus {
114 background-color: $grey-color;
118 &:hover, &:active, &:focus, &[disabled], &.disabled {
120 background-color: $grey-hoover-color;
123 &[disabled], &.disabled {
128 @mixin peertube-button {
130 font-weight: $font-semibold;
132 height: $button-height;
133 line-height: $button-height;
136 padding: 0 17px 0 13px;
141 @mixin peertube-button-link {
142 display: inline-block;
144 @include disable-default-a-behaviour;
145 @include peertube-button;
148 @mixin peertube-button-file ($width) {
151 display: inline-block;
154 @include peertube-button;
155 @include orange-button;
165 filter: alpha(opacity=0);
174 @mixin icon ($size) {
175 display: inline-block;
176 background-repeat: no-repeat;
177 background-size: contain;
180 vertical-align: middle;
184 @mixin peertube-select-container ($width) {
187 border: 1px solid #C6C6C6;
191 background: var(--inputColor);
197 right: calc(0% + 15px);
202 pointer-events: none;
203 border: 5px solid rgba(0, 0, 0, 0);
204 border-top-color: #000;
210 padding: 0 35px 0 12px;
211 width: calc(100% + 2px);
216 background: transparent none;
219 height: $button-height;
220 text-overflow: ellipsis;
228 text-shadow: 0 0 0 #000;
233 @mixin peertube-select-disabled-container ($width) {
234 @include peertube-select-container($width);
236 background-color: #E5E5E5;
243 // Thanks: https://codepen.io/triss90/pen/XNEdRe/
244 @mixin peertube-radio-container {
245 input[type="radio"] {
249 font-weight: $font-regular;
258 border: 1px solid #000;
259 display: inline-block;
262 vertical-align: middle;
269 &:checked + label:before {
270 background-color: #000;
271 box-shadow: inset 0 0 0 4px #fff;
274 &:focus + label:before {
281 @mixin peertube-checkbox ($border-width) {
288 border: $border-width solid var(--mainForegroundColor);
290 vertical-align: middle;
296 top: calc(2px - #{$border-width});
301 transform: rotate(45deg) scale(0);
302 border-right: 2px solid var(--mainBackgroundColor);
303 border-bottom: 2px solid var(--mainBackgroundColor);
308 border-color: transparent;
309 background: var(--mainColor);
310 animation: jelly 0.6s ease;
314 transform: rotate(45deg) scale(1);
320 font-weight: $font-regular;
327 &[disabled] + span + span{
334 @mixin avatar ($size) {
341 @mixin chevron ($size, $border-width) {
343 border-width: $border-width $border-width 0 0;
345 display: inline-block;
346 transform: rotate(-45deg);
351 @mixin chevron-right ($size, $border-width) {
352 @include chevron($size, $border-width);
355 transform: rotate(45deg);
358 @mixin chevron-left ($size, $border-width) {
359 @include chevron($size, $border-width);
362 transform: rotate(-135deg);
365 @mixin in-content-small-title {
366 text-transform: uppercase;
367 color: var(--mainColor);
368 font-weight: $font-bold;
373 @include disable-default-a-behaviour;
375 display: inline-table;
378 color: var(--mainForegroundColor);
385 @include avatar(18px);
393 @mixin sub-menu-with-actor {
396 flex-direction: column;
405 @include avatar(80px);
412 flex-direction: column;
413 justify-content: center;
419 .actor-display-name {
421 font-weight: $font-bold;
429 color: $grey-actor-name;
438 @include actor-owner;
454 @mixin create-button ($imageUrl) {
455 @include peertube-button-link;
456 @include orange-button;
464 background-image: url($imageUrl);
471 padding-bottom: 20px;
473 border-bottom: 1px solid #C6C6C6;
475 @media screen and (max-width: 800px) {
476 flex-direction: column;
483 @mixin video-miniature-small-screen {
486 /deep/ .video-miniature {
492 .video-miniature-information {
493 width: 100% !important;