]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/sass/_mixins.scss
Design second video upload step
[github/Chocobozzz/PeerTube.git] / client / src / sass / _mixins.scss
1 @mixin disable-default-a-behaviour {
2 &:hover, &:focus, &:active {
3 text-decoration: none !important;
4 outline: none !important;
5 }
6 }
7
8 @mixin peertube-input-text($width) {
9 display: inline-block;
10 height: $button-height;
11 width: $width;
12 background: #fff;
13 border: 1px solid #C6C6C6;
14 border-radius: 3px;
15 padding-left: 15px;
16
17 &::placeholder {
18 color: #585858;
19 }
20 }
21
22 @mixin orange-button {
23 color: #fff;
24 background-color: $orange-color;
25
26 &:hover, &:active, &:focus {
27 color: #fff;
28 background-color: $orange-hoover-color;
29 }
30
31 &[disabled], &.disabled {
32 cursor: default;
33 color: #fff;
34 background-color: #C6C6C6;
35 }
36 }
37
38 @mixin grey-button {
39 background-color: $grey-color;
40 color: #585858;
41
42 &:hover, &:active, &:focus, &[disabled], &.disabled {
43 color: #585858;
44 background-color: $grey-hoover-color;
45 }
46
47 &[disabled], &.disabled {
48 cursor: default;
49 }
50 }
51
52 @mixin peertube-button {
53 border: none;
54 font-weight: $font-semibold;
55 font-size: 15px;
56 height: $button-height;
57 line-height: $button-height;
58 border-radius: 3px;
59 text-align: center;
60 padding: 0 17px 0 13px;
61 cursor: pointer;
62 }
63
64 @mixin peertube-button-link {
65 display: inline-block;
66
67 @include disable-default-a-behaviour;
68 @include peertube-button;
69 }
70
71 @mixin avatar ($size) {
72 width: $size;
73 height: $size;
74 }
75
76 @mixin icon ($size) {
77 display: inline-block;
78 background-repeat: no-repeat;
79 background-size: contain;
80 width: $size;
81 height: $size;
82 vertical-align: middle;
83 cursor: pointer;
84 }
85
86
87 @mixin peertube-select ($width) {
88 background-color: #fff;
89 border: 1px solid #C6C6C6;
90 height: $button-height;
91 width: $width;
92 border-radius: 3px;
93 padding-left: 15px;
94 }