]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/user-subscription/subscribe-button.component.scss
Improve channel and account display on medium devices
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / user-subscription / subscribe-button.component.scss
CommitLineData
22a16e36
C
1@import '_variables';
2@import '_mixins';
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
39ba2e8e
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
947d0102
RK
23 & > button:first-child {
24 width: 175px;
25 }
26
9270ccf6
RK
27 button .extra-text {
28 span:first-child {
29 line-height: 80%;
30 }
31
32 span:not(:first-child) {
33 font-size: 75%;
34 }
35 }
36 }
37
39ba2e8e
C
38 // Unlogged
39 & > .dropdown > .dropdown-toggle span {
40 padding-right: 3px;
41 }
42
43 // Logged
44 & > .btn {
45 padding-right: 4px;
46
47 & + .dropdown > button {
48 padding-left: 2px;
49
50 &::after {
51 position: relative;
52 top: 1px;
53 }
54 }
660d11e9 55 }
22a16e36 56
660d11e9
RK
57 &.subscribe-button {
58 .btn {
59 @include orange-button;
60 font-weight: 600;
61 }
f37dc0dd 62
660d11e9 63 span.followers-count {
39ba2e8e 64 padding-left: 5px;
660d11e9 65 }
f37dc0dd 66 }
660d11e9
RK
67 &.unsubscribe-button {
68 .btn {
69 @include grey-button;
70 font-weight: 600;
71 }
f37dc0dd 72 }
22a16e36 73
39ba2e8e
C
74 .dropdown-menu {
75 cursor: default;
76
77 button {
78 cursor: pointer;
79 }
9b82d49d
RK
80
81 .dropdown-item-neutral {
82 cursor: default;
83
84 &:hover,
85 &:focus {
86 background-color: inherit;
87 }
88 }
39ba2e8e
C
89 }
90
660d11e9
RK
91 .dropdown-header {
92 padding-left: 1rem;
22a16e36
C
93 }
94
03652b31 95 ::ng-deep form {
660d11e9 96 padding: 0.25rem 1rem;
22a16e36
C
97 }
98
660d11e9
RK
99 input {
100 @include peertube-input-text(100%);
22a16e36 101 }
660d11e9 102}
b061c8ed
RK
103
104.extra-text {
105 display: flex;
106 flex-direction: column;
107
108 span:first-child {
109 line-height: 75%;
110 }
111
112 span:not(:first-child) {
113 font-size: 60%;
9270ccf6 114 text-align: left;
b061c8ed
RK
115 }
116}