]>
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 | } | |
12 | } | |
13 | ||
30814423 K |
14 | :host { |
15 | outline: none; | |
b16e0cf2 | 16 | display: inline-block; |
30814423 K |
17 | } |
18 | ||
03652b31 | 19 | my-small-loader ::ng-deep .root { |
b5f919ac C |
20 | display: inline-block; |
21 | margin: 0 3px 0 0; | |
22 | width: 20px; | |
23 | } | |
24 | ||
292c17b8 | 25 | a[class$=-button], |
2b587cad RK |
26 | span[class$=-button] { |
27 | > span { | |
27bc9586 | 28 | @include margin-left(5px); |
2b587cad RK |
29 | } |
30 | } | |
31 | ||
cd83ea1b C |
32 | .action-button { |
33 | @include peertube-button-link; | |
ff0497fe | 34 | @include button-with-icon(21px); |
b16e0cf2 MK |
35 | |
36 | width: 100%; // useful for ellipsis, allow to define a max-width on host component | |
14aa8556 | 37 | } |
61875048 | 38 | |
14aa8556 C |
39 | .orange-button { |
40 | @include peertube-button; | |
41 | @include orange-button; | |
42 | } | |
43 | ||
44 | .orange-button-link { | |
45 | @include peertube-button-link; | |
46 | @include orange-button; | |
47 | } | |
48 | ||
49 | .grey-button { | |
50 | @include peertube-button; | |
51 | @include grey-button; | |
52 | } | |
53 | ||
54 | .grey-button-link { | |
55 | @include peertube-button-link; | |
56 | @include grey-button; | |
cd83ea1b | 57 | } |
b17e8d89 | 58 | |
b16e0cf2 MK |
59 | .button-label { |
60 | @include ellipsis; | |
61 | } | |
62 | ||
b17e8d89 C |
63 | // In a table, try to minimize the space taken by this button |
64 | @media screen and (max-width: 1400px) { | |
65 | :host-context(td) { | |
faf7eab7 C |
66 | @include responsive-label; |
67 | } | |
68 | } | |
b17e8d89 | 69 | |
faf7eab7 C |
70 | @media screen and (max-width: $small-view) { |
71 | .responsive-label { | |
72 | @include responsive-label; | |
b17e8d89 C |
73 | } |
74 | } |