]>
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 | 18 | :host { |
b16e0cf2 | 19 | display: inline-block; |
30814423 K |
20 | } |
21 | ||
292c17b8 | 22 | a[class$=-button], |
2b587cad RK |
23 | span[class$=-button] { |
24 | > span { | |
27bc9586 | 25 | @include margin-left(5px); |
2b587cad RK |
26 | } |
27 | } | |
28 | ||
cd83ea1b | 29 | .action-button { |
b16e0cf2 | 30 | width: 100%; // useful for ellipsis, allow to define a max-width on host component |
db129781 | 31 | |
3267d381 | 32 | my-loader.displayed { |
f87efecf C |
33 | @include margin-right(3px); |
34 | ||
35 | display: inline-flex; | |
36 | vertical-align: middle; | |
37 | margin-top: -1px; | |
38 | } | |
39 | ||
db66f391 C |
40 | &.has-icon { |
41 | @include button-with-icon(21px); | |
42 | } | |
43 | ||
44 | &.icon-only my-global-icon { | |
45 | margin: 0 !important; | |
db129781 | 46 | } |
14aa8556 | 47 | } |
61875048 | 48 | |
db66f391 C |
49 | .orange-button, |
50 | .grey-button { | |
14aa8556 | 51 | @include peertube-button; |
14aa8556 C |
52 | } |
53 | ||
db66f391 C |
54 | .orange-button-link, |
55 | .grey-button-link { | |
14aa8556 | 56 | @include peertube-button-link; |
14aa8556 C |
57 | } |
58 | ||
db66f391 C |
59 | .orange-button, |
60 | .orange-button-link { | |
61 | @include orange-button; | |
14aa8556 C |
62 | } |
63 | ||
db66f391 | 64 | .grey-button, |
14aa8556 | 65 | .grey-button-link { |
14aa8556 | 66 | @include grey-button; |
cd83ea1b | 67 | } |
b17e8d89 | 68 | |
b16e0cf2 MK |
69 | .button-label { |
70 | @include ellipsis; | |
71 | } | |
72 | ||
b17e8d89 C |
73 | // In a table, try to minimize the space taken by this button |
74 | @media screen and (max-width: 1400px) { | |
75 | :host-context(td) { | |
faf7eab7 C |
76 | @include responsive-label; |
77 | } | |
78 | } | |
b17e8d89 | 79 | |
faf7eab7 C |
80 | @media screen and (max-width: $small-view) { |
81 | .responsive-label { | |
82 | @include responsive-label; | |
b17e8d89 C |
83 | } |
84 | } |