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