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