]>
Commit | Line | Data |
---|---|---|
8cbc40b2 C |
1 | @use '_variables' as *; |
2 | @use '_mixins' as *; | |
63c4db6d | 3 | |
faf7eab7 C |
4 | @mixin responsive-label { |
5 | .action-button { | |
6 | padding: 0 13px; | |
7 | } | |
8 | ||
9 | .button-label { | |
10 | display: none; | |
11 | } | |
db66f391 C |
12 | |
13 | my-global-icon { | |
14 | margin: 0 !important; | |
15 | } | |
faf7eab7 C |
16 | } |
17 | ||
30814423 K |
18 | :host { |
19 | outline: none; | |
b16e0cf2 | 20 | display: inline-block; |
30814423 K |
21 | } |
22 | ||
292c17b8 | 23 | a[class$=-button], |
2b587cad RK |
24 | span[class$=-button] { |
25 | > span { | |
27bc9586 | 26 | @include margin-left(5px); |
2b587cad RK |
27 | } |
28 | } | |
29 | ||
cd83ea1b | 30 | .action-button { |
b16e0cf2 | 31 | width: 100%; // useful for ellipsis, allow to define a max-width on host component |
db129781 | 32 | |
db66f391 C |
33 | &.has-icon { |
34 | @include button-with-icon(21px); | |
35 | } | |
36 | ||
37 | &.icon-only my-global-icon { | |
38 | margin: 0 !important; | |
db129781 | 39 | } |
14aa8556 | 40 | } |
61875048 | 41 | |
db66f391 C |
42 | .orange-button, |
43 | .grey-button { | |
14aa8556 | 44 | @include peertube-button; |
14aa8556 C |
45 | } |
46 | ||
db66f391 C |
47 | .orange-button-link, |
48 | .grey-button-link { | |
14aa8556 | 49 | @include peertube-button-link; |
14aa8556 C |
50 | } |
51 | ||
db66f391 C |
52 | .orange-button, |
53 | .orange-button-link { | |
54 | @include orange-button; | |
14aa8556 C |
55 | } |
56 | ||
db66f391 | 57 | .grey-button, |
14aa8556 | 58 | .grey-button-link { |
14aa8556 | 59 | @include grey-button; |
cd83ea1b | 60 | } |
b17e8d89 | 61 | |
b16e0cf2 MK |
62 | .button-label { |
63 | @include ellipsis; | |
64 | } | |
65 | ||
b17e8d89 C |
66 | // In a table, try to minimize the space taken by this button |
67 | @media screen and (max-width: 1400px) { | |
68 | :host-context(td) { | |
faf7eab7 C |
69 | @include responsive-label; |
70 | } | |
71 | } | |
b17e8d89 | 72 | |
faf7eab7 C |
73 | @media screen and (max-width: $small-view) { |
74 | .responsive-label { | |
75 | @include responsive-label; | |
b17e8d89 C |
76 | } |
77 | } |