aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-user-subscription/subscribe-button.component.scss
blob: a39ce90e3475627794d0c46986912f3db98130f8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
@use '_variables' as *;
@use '_mixins' as *;

.btn-group-subscribe {
  @include peertube-button;

  padding: 0;

  button.dropdown-toggle {
    font-size: $button-font-size;
    line-height: 1.2;
  }

  &:not(.big) {
    white-space: nowrap;
  }

  &.big {
    height: 35px;

    > button:first-child {
      width: max-content;
      min-width: 175px;
    }

    button .extra-text {
      span:first-child {
        line-height: 80%;
      }

      span:not(:first-child) {
        font-size: 75%;
      }
    }
  }

  // Unlogged
  > .dropdown > .dropdown-toggle span {
    @include padding-right(5px);
  }

  // Logged
  > .btn {
    @include padding-right(4px);

    + .dropdown > button {
      @include padding-left(2px);

      &::after {
        position: relative;
        top: 1px;
      }
    }
  }

  &.subscribe-button {
    .btn {
      @include orange-button;
      font-weight: 600;
    }

    span.followers-count {
      @include padding-left(5px);
    }
  }

  &.unsubscribe-button {
    .btn {
      @include grey-button;

      font-weight: 600;
    }
  }

  .dropdown-menu {
    cursor: default;

    button {
      cursor: pointer;
    }

    .dropdown-item {
      @media screen and (max-width: $mobile-view) {
        white-space: normal;
      }
    }

    .dropdown-item-neutral {
      cursor: default;

      &:hover,
      &:focus {
        background-color: inherit;
      }
    }
  }

  ::ng-deep form {
    padding: 0.25rem 1rem;
  }

  input {
    @include peertube-input-text(100%);
  }
}

.extra-text {
  display: flex;
  flex-direction: column;

  span:first-child {
    line-height: 75%;
  }

  span:not(:first-child) {
    font-size: 60%;
    text-align: start;
  }
}