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