]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/shared-main/buttons/button.component.scss
Upgrade oauth2-server
[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 }
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 22a[class$=-button],
2b587cad
RK
23span[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
db66f391
C
32 &.has-icon {
33 @include button-with-icon(21px);
34 }
35
36 &.icon-only my-global-icon {
37 margin: 0 !important;
db129781 38 }
14aa8556 39}
61875048 40
db66f391
C
41.orange-button,
42.grey-button {
14aa8556 43 @include peertube-button;
14aa8556
C
44}
45
db66f391
C
46.orange-button-link,
47.grey-button-link {
14aa8556 48 @include peertube-button-link;
14aa8556
C
49}
50
db66f391
C
51.orange-button,
52.orange-button-link {
53 @include orange-button;
14aa8556
C
54}
55
db66f391 56.grey-button,
14aa8556 57.grey-button-link {
14aa8556 58 @include grey-button;
cd83ea1b 59}
b17e8d89 60
b16e0cf2
MK
61.button-label {
62 @include ellipsis;
63}
64
b17e8d89
C
65// In a table, try to minimize the space taken by this button
66@media screen and (max-width: 1400px) {
67 :host-context(td) {
faf7eab7
C
68 @include responsive-label;
69 }
70}
b17e8d89 71
faf7eab7
C
72@media screen and (max-width: $small-view) {
73 .responsive-label {
74 @include responsive-label;
b17e8d89
C
75 }
76}