]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/shared-user-subscription/subscribe-button.component.scss
Fix subscribe button responsive
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-user-subscription / subscribe-button.component.scss
CommitLineData
8cbc40b2
C
1@use '_variables' as *;
2@use '_mixins' as *;
22a16e36 3
660d11e9 4.btn-group-subscribe {
22a16e36 5 @include peertube-button;
39ba2e8e 6
b849adf9
C
7 padding: 0;
8
5b0ec7cd
C
9 button.dropdown-toggle {
10 font-size: $button-font-size;
11 line-height: 1.2;
660d11e9 12 }
39ba2e8e 13
947d0102
RK
14 &:not(.big) {
15 white-space: nowrap;
16 }
17
9270ccf6
RK
18 &.big {
19 height: 35px;
20
931d3430 21 > button:first-child {
490109c7
RK
22 width: max-content;
23 min-width: 175px;
947d0102
RK
24 }
25
9270ccf6
RK
26 button .extra-text {
27 span:first-child {
28 line-height: 80%;
29 }
931d3430 30
9270ccf6
RK
31 span:not(:first-child) {
32 font-size: 75%;
33 }
34 }
35 }
36
39ba2e8e 37 // Unlogged
931d3430 38 > .dropdown > .dropdown-toggle span {
5b0ec7cd 39 @include padding-right(5px);
39ba2e8e
C
40 }
41
42 // Logged
931d3430 43 > .btn {
27bc9586 44 @include padding-right(4px);
39ba2e8e 45
931d3430 46 + .dropdown > button {
27bc9586 47 @include padding-left(2px);
39ba2e8e
C
48
49 &::after {
50 position: relative;
51 top: 1px;
52 }
53 }
660d11e9 54 }
22a16e36 55
660d11e9
RK
56 &.subscribe-button {
57 .btn {
58 @include orange-button;
59 font-weight: 600;
60 }
f37dc0dd 61
660d11e9 62 span.followers-count {
27bc9586 63 @include padding-left(5px);
660d11e9 64 }
f37dc0dd 65 }
5b0ec7cd 66
660d11e9
RK
67 &.unsubscribe-button {
68 .btn {
69 @include grey-button;
5b0ec7cd 70
660d11e9
RK
71 font-weight: 600;
72 }
f37dc0dd 73 }
22a16e36 74
39ba2e8e
C
75 .dropdown-menu {
76 cursor: default;
77
78 button {
79 cursor: pointer;
80 }
9b82d49d 81
2f63f629
C
82 .dropdown-item {
83 @media screen and (max-width: $mobile-view) {
84 white-space: normal;
85 }
86 }
87
9b82d49d
RK
88 .dropdown-item-neutral {
89 cursor: default;
90
91 &:hover,
92 &:focus {
93 background-color: inherit;
94 }
95 }
39ba2e8e
C
96 }
97
03652b31 98 ::ng-deep form {
660d11e9 99 padding: 0.25rem 1rem;
22a16e36
C
100 }
101
660d11e9
RK
102 input {
103 @include peertube-input-text(100%);
22a16e36 104 }
660d11e9 105}
b061c8ed
RK
106
107.extra-text {
108 display: flex;
109 flex-direction: column;
110
111 span:first-child {
112 line-height: 75%;
113 }
114
115 span:not(:first-child) {
116 font-size: 60%;
27bc9586 117 text-align: start;
b061c8ed
RK
118 }
119}