]>
Commit | Line | Data |
---|---|---|
1 | @mixin disable-default-a-behaviour { | |
2 | &:hover, &:focus { | |
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, &[disabled], &.disabled { | |
27 | color: #fff; | |
28 | background-color: $orange-hoover-color; | |
29 | } | |
30 | ||
31 | &[disabled], &.disabled { | |
32 | cursor: default; | |
33 | } | |
34 | } | |
35 | ||
36 | @mixin grey-button { | |
37 | background-color: $grey-color; | |
38 | color: #585858; | |
39 | ||
40 | &:hover, &:active, &:focus, &[disabled], &.disabled { | |
41 | color: #585858; | |
42 | background-color: $grey-hoover-color; | |
43 | } | |
44 | ||
45 | &[disabled], &.disabled { | |
46 | cursor: default; | |
47 | } | |
48 | } | |
49 | ||
50 | @mixin peertube-button { | |
51 | border: none; | |
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; | |
58 | padding: 0 17px 0 13px; | |
59 | cursor: pointer; | |
60 | } | |
61 | ||
62 | @mixin peertube-button-link { | |
63 | display: inline-block; | |
64 | ||
65 | @include disable-default-a-behaviour; | |
66 | @include peertube-button; | |
67 | } | |
68 | ||
69 | @mixin avatar ($size) { | |
70 | width: $size; | |
71 | height: $size; | |
72 | } | |
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 | } | |
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 | } |