]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/shared-main/buttons/button.component.scss
fix(doc): fix links to 'anchors' in install doc
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-main / buttons / button.component.scss
CommitLineData
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 19my-small-loader ::ng-deep .root {
b5f919ac
C
20 display: inline-block;
21 margin: 0 3px 0 0;
22 width: 20px;
23}
24
292c17b8 25a[class$=-button],
2b587cad
RK
26span[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
db129781
C
37
38 &.icon-only {
39 my-global-icon {
40 margin: 0;
41 }
42 }
14aa8556 43}
61875048 44
14aa8556
C
45.orange-button {
46 @include peertube-button;
47 @include orange-button;
48}
49
50.orange-button-link {
51 @include peertube-button-link;
52 @include orange-button;
53}
54
55.grey-button {
56 @include peertube-button;
57 @include grey-button;
58}
59
60.grey-button-link {
61 @include peertube-button-link;
62 @include grey-button;
cd83ea1b 63}
b17e8d89 64
b16e0cf2
MK
65.button-label {
66 @include ellipsis;
67}
68
b17e8d89
C
69// In a table, try to minimize the space taken by this button
70@media screen and (max-width: 1400px) {
71 :host-context(td) {
faf7eab7
C
72 @include responsive-label;
73 }
74}
b17e8d89 75
faf7eab7
C
76@media screen and (max-width: $small-view) {
77 .responsive-label {
78 @include responsive-label;
b17e8d89
C
79 }
80}