]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame_incremental - client/src/app/shared/user-subscription/subscribe-button.component.scss
Make subscribe buttons observe subscription statuses to synchronise
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / user-subscription / subscribe-button.component.scss
... / ...
CommitLineData
1@import '_variables';
2@import '_mixins';
3
4.btn-group-subscribe {
5 @include peertube-button;
6 @include disable-default-a-behaviour;
7
8 float: right;
9 padding: 0;
10
11 & > .btn,
12 & > .dropdown > .dropdown-toggle {
13 font-size: 15px;
14 }
15
16 &.big {
17 height: 35px;
18
19 button .extra-text {
20 span:first-child {
21 line-height: 80%;
22 }
23
24 span:not(:first-child) {
25 font-size: 75%;
26 }
27 }
28 }
29
30 // Unlogged
31 & > .dropdown > .dropdown-toggle span {
32 padding-right: 3px;
33 }
34
35 // Logged
36 & > .btn {
37 padding-right: 4px;
38
39 & + .dropdown > button {
40 padding-left: 2px;
41
42 &::after {
43 position: relative;
44 top: 1px;
45 }
46 }
47 }
48
49 &.subscribe-button {
50 .btn {
51 @include orange-button;
52 font-weight: 600;
53 }
54
55 span.followers-count {
56 padding-left: 5px;
57 }
58 }
59 &.unsubscribe-button {
60 .btn {
61 @include grey-button;
62 font-weight: 600;
63 }
64 }
65
66 .dropdown-menu {
67 cursor: default;
68
69 button {
70 cursor: pointer;
71 }
72 }
73
74 .dropdown-header {
75 padding-left: 1rem;
76 }
77
78 ::ng-deep form {
79 padding: 0.25rem 1rem;
80 }
81
82 input {
83 @include peertube-input-text(100%);
84 }
85}
86
87.extra-text {
88 display: flex;
89 flex-direction: column;
90
91 span:first-child {
92 line-height: 75%;
93 }
94
95 span:not(:first-child) {
96 font-size: 60%;
97 text-align: left;
98 }
99}