]>
Commit | Line | Data |
---|---|---|
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; | |
62 | } | |
63 | ||
64 | @mixin peertube-button-link { | |
65 | display: inline-block; | |
66 | ||
c30745f3 | 67 | @include disable-default-a-behaviour; |
ce0e281d | 68 | @include peertube-button; |
c30745f3 | 69 | } |
2295ce6c C |
70 | |
71 | @mixin avatar ($size) { | |
72 | width: $size; | |
73 | height: $size; | |
74 | } | |
0727cab0 C |
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 | } | |
4cc66133 C |
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 | } |