]>
Commit | Line | Data |
---|---|---|
8cbc40b2 C |
1 | @use '_variables' as *; |
2 | @use '_mixins' as *; | |
22a16e36 | 3 | |
660d11e9 | 4 | .btn-group-subscribe { |
22a16e36 | 5 | @include peertube-button; |
660d11e9 | 6 | @include disable-default-a-behaviour; |
39ba2e8e | 7 | |
660d11e9 RK |
8 | float: right; |
9 | padding: 0; | |
22a16e36 | 10 | |
931d3430 C |
11 | > .btn, |
12 | > .dropdown > .dropdown-toggle { | |
660d11e9 RK |
13 | font-size: 15px; |
14 | } | |
39ba2e8e | 15 | |
947d0102 RK |
16 | &:not(.big) { |
17 | white-space: nowrap; | |
18 | } | |
19 | ||
9270ccf6 RK |
20 | &.big { |
21 | height: 35px; | |
22 | ||
931d3430 | 23 | > button:first-child { |
490109c7 RK |
24 | width: max-content; |
25 | min-width: 175px; | |
947d0102 RK |
26 | } |
27 | ||
9270ccf6 RK |
28 | button .extra-text { |
29 | span:first-child { | |
30 | line-height: 80%; | |
31 | } | |
931d3430 | 32 | |
9270ccf6 RK |
33 | span:not(:first-child) { |
34 | font-size: 75%; | |
35 | } | |
36 | } | |
37 | } | |
38 | ||
39ba2e8e | 39 | // Unlogged |
931d3430 | 40 | > .dropdown > .dropdown-toggle span { |
27bc9586 | 41 | @include padding-right(3px); |
39ba2e8e C |
42 | } |
43 | ||
44 | // Logged | |
931d3430 | 45 | > .btn { |
27bc9586 | 46 | @include padding-right(4px); |
39ba2e8e | 47 | |
931d3430 | 48 | + .dropdown > button { |
27bc9586 | 49 | @include padding-left(2px); |
39ba2e8e C |
50 | |
51 | &::after { | |
52 | position: relative; | |
53 | top: 1px; | |
54 | } | |
55 | } | |
660d11e9 | 56 | } |
22a16e36 | 57 | |
660d11e9 RK |
58 | &.subscribe-button { |
59 | .btn { | |
60 | @include orange-button; | |
61 | font-weight: 600; | |
62 | } | |
f37dc0dd | 63 | |
660d11e9 | 64 | span.followers-count { |
27bc9586 | 65 | @include padding-left(5px); |
660d11e9 | 66 | } |
f37dc0dd | 67 | } |
660d11e9 RK |
68 | &.unsubscribe-button { |
69 | .btn { | |
70 | @include grey-button; | |
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 RK |
81 | |
82 | .dropdown-item-neutral { | |
83 | cursor: default; | |
84 | ||
85 | &:hover, | |
86 | &:focus { | |
87 | background-color: inherit; | |
88 | } | |
89 | } | |
39ba2e8e C |
90 | } |
91 | ||
03652b31 | 92 | ::ng-deep form { |
660d11e9 | 93 | padding: 0.25rem 1rem; |
22a16e36 C |
94 | } |
95 | ||
660d11e9 RK |
96 | input { |
97 | @include peertube-input-text(100%); | |
22a16e36 | 98 | } |
660d11e9 | 99 | } |
b061c8ed RK |
100 | |
101 | .extra-text { | |
102 | display: flex; | |
103 | flex-direction: column; | |
104 | ||
105 | span:first-child { | |
106 | line-height: 75%; | |
107 | } | |
108 | ||
109 | span:not(:first-child) { | |
110 | font-size: 60%; | |
27bc9586 | 111 | text-align: start; |
b061c8ed RK |
112 | } |
113 | } |