3 @mixin disable-default-a-behaviour {
4 &:hover, &:focus, &:active {
5 text-decoration: none !important;
6 outline: none !important;
10 @mixin disable-outline {
20 * This mixin will crop text in block for needed amount of lines and put ellipsis at the end
22 * @param $font-size font-size property
23 * @param $line-height line-height property
24 * @param $lines-to-show amount of lines to show
26 @mixin ellipsis-multiline($font-size: 1rem, $line-height: 1, $lines-to-show: 2) {
28 /* Fallback for non-webkit */
30 max-height: $font-size*$line-height*$lines-to-show;
31 /* Fallback for non-webkit */
32 font-size: $font-size;
33 line-height: $line-height;
34 -webkit-line-clamp: $lines-to-show;
35 -webkit-box-orient: vertical;
37 text-overflow: ellipsis;
40 @mixin prefix($property, $parameters...) {
41 @each $prefix in -webkit-, -moz-, -ms-, -o-, "" {
42 #{$prefix}#{$property}: $parameters;
46 @mixin peertube-word-wrap {
48 word-wrap: break-word;
49 overflow-wrap: break-word;
50 -webkit-hyphens: auto;
57 @mixin peertube-input-text($width) {
58 display: inline-block;
59 height: $button-height;
61 background: var(--inputColor);
62 border: 1px solid #C6C6C6;
68 color: var(--inputPlaceholderColor);
72 @mixin peertube-input-group($width) {
74 height: $button-height;
84 @mixin peertube-textarea ($width, $height) {
85 @include peertube-input-text($width);
92 @mixin orange-button {
93 &, &:active, &:focus {
95 background-color: var(--mainColor);
100 background-color: var(--mainHoverColor);
103 &[disabled], &.disabled {
106 background-color: #C6C6C6;
111 &, &:active, &:focus {
112 background-color: $grey-color;
116 &:hover, &:active, &:focus, &[disabled], &.disabled {
118 background-color: $grey-hoover-color;
121 &[disabled], &.disabled {
126 @mixin peertube-button {
128 font-weight: $font-semibold;
130 height: $button-height;
131 line-height: $button-height;
134 padding: 0 17px 0 13px;
139 @mixin peertube-button-link {
140 display: inline-block;
142 @include disable-default-a-behaviour;
143 @include peertube-button;
146 @mixin peertube-button-file ($width) {
149 display: inline-block;
152 @include peertube-button;
153 @include orange-button;
163 filter: alpha(opacity=0);
172 @mixin icon ($size) {
173 display: inline-block;
174 background-repeat: no-repeat;
175 background-size: contain;
178 vertical-align: middle;
182 @mixin peertube-select-container ($width) {
185 border: 1px solid #C6C6C6;
189 background: var(--inputColor);
195 right: calc(0% + 15px);
200 pointer-events: none;
201 border: 5px solid rgba(0, 0, 0, 0);
202 border-top-color: #000;
208 padding: 0 35px 0 12px;
209 width: calc(100% + 2px);
214 background: transparent none;
217 height: $button-height;
218 text-overflow: ellipsis;
226 text-shadow: 0 0 0 #000;
231 @mixin peertube-select-disabled-container ($width) {
232 @include peertube-select-container($width);
234 background-color: #E5E5E5;
241 // Thanks: https://codepen.io/triss90/pen/XNEdRe/
242 @mixin peertube-radio-container {
243 input[type="radio"] {
247 font-weight: $font-regular;
256 border: 1px solid #000;
257 display: inline-block;
260 vertical-align: middle;
267 &:checked + label:before {
268 background-color: #000;
269 box-shadow: inset 0 0 0 4px #fff;
272 &:focus + label:before {
279 @mixin peertube-checkbox ($border-width) {
286 border: $border-width solid var(--mainForegroundColor);
288 vertical-align: middle;
294 top: calc(2px - #{$border-width});
299 transform: rotate(45deg) scale(0);
300 border-right: 2px solid var(--mainForegroundColor);
301 border-bottom: 2px solid var(--mainForegroundColor);
306 border-color: transparent;
307 background: var(--mainColor);
308 animation: jelly 0.6s ease;
312 transform: rotate(45deg) scale(1);
318 font-weight: $font-regular;
325 &[disabled] + span + span{
332 @mixin avatar ($size) {
339 @mixin chevron ($size, $border-width) {
341 border-width: $border-width $border-width 0 0;
343 display: inline-block;
344 transform: rotate(-45deg);
349 @mixin chevron-right ($size, $border-width) {
350 @include chevron($size, $border-width);
353 transform: rotate(45deg);
356 @mixin chevron-left ($size, $border-width) {
357 @include chevron($size, $border-width);
360 transform: rotate(-135deg);
363 @mixin in-content-small-title {
364 text-transform: uppercase;
365 color: var(--mainColor);
366 font-weight: $font-bold;
371 @include disable-default-a-behaviour;
373 display: inline-table;
376 color: var(--mainForegroundColor);
383 @include avatar(18px);
391 @mixin sub-menu-with-actor {
394 flex-direction: column;
403 @include avatar(80px);
410 flex-direction: column;
411 justify-content: center;
417 .actor-display-name {
419 font-weight: $font-bold;
427 color: $grey-actor-name;
436 @include actor-owner;
452 @mixin create-button ($imageUrl) {
453 @include peertube-button-link;
454 @include orange-button;
462 background-image: url($imageUrl);
469 padding-bottom: 20px;
471 border-bottom: 1px solid #C6C6C6;
473 @media screen and (max-width: 800px) {
474 flex-direction: column;
481 @mixin video-miniature-small-screen {
484 /deep/ .video-miniature {
490 .video-miniature-information {
491 width: 100% !important;