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;
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;
231 text-shadow: 0 0 0 #000;
236 @mixin peertube-select-disabled-container ($width) {
237 @include peertube-select-container($width);
239 background-color: #E5E5E5;
246 // Thanks: https://codepen.io/triss90/pen/XNEdRe/
247 @mixin peertube-radio-container {
248 input[type="radio"] {
252 font-weight: $font-regular;
261 border: 1px solid #000;
262 display: inline-block;
265 vertical-align: middle;
272 &:checked + label:before {
273 background-color: #000;
274 box-shadow: inset 0 0 0 4px #fff;
277 &:focus + label:before {
284 @mixin peertube-checkbox ($border-width) {
291 border: $border-width solid var(--mainForegroundColor);
293 vertical-align: middle;
299 top: calc(2px - #{$border-width});
304 transform: rotate(45deg) scale(0);
305 border-right: 2px solid var(--mainBackgroundColor);
306 border-bottom: 2px solid var(--mainBackgroundColor);
311 border-color: transparent;
312 background: var(--mainColor);
313 animation: jelly 0.6s ease;
317 transform: rotate(45deg) scale(1);
323 font-weight: $font-regular;
330 &[disabled] + span + span{
337 @mixin avatar ($size) {
344 @mixin chevron ($size, $border-width) {
346 border-width: $border-width $border-width 0 0;
348 display: inline-block;
349 transform: rotate(-45deg);
354 @mixin chevron-right ($size, $border-width) {
355 @include chevron($size, $border-width);
358 transform: rotate(45deg);
361 @mixin chevron-left ($size, $border-width) {
362 @include chevron($size, $border-width);
365 transform: rotate(-135deg);
368 @mixin in-content-small-title {
369 text-transform: uppercase;
370 color: var(--mainColor);
371 font-weight: $font-bold;
376 @include disable-default-a-behaviour;
378 display: inline-table;
381 color: var(--mainForegroundColor);
388 @include avatar(18px);
396 @mixin sub-menu-with-actor {
399 flex-direction: column;
408 @include avatar(80px);
415 flex-direction: column;
416 justify-content: center;
422 .actor-display-name {
424 font-weight: $font-bold;
432 color: $grey-actor-name;
441 @include actor-owner;
457 @mixin create-button ($imageUrl) {
458 @include peertube-button-link;
459 @include orange-button;
467 background-image: url($imageUrl);
474 padding-bottom: 20px;
476 border-bottom: 1px solid #C6C6C6;
478 @media screen and (max-width: 800px) {
479 flex-direction: column;
486 @mixin video-miniature-small-screen {
489 /deep/ .video-miniature {
495 .video-miniature-information {
496 width: 100% !important;