aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+accounts/accounts.component.scss
blob: cdd00487b2706add34fdbb2681e6a9ca97239cdb (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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
@use '_variables' as *;
@use '_mixins' as *;
@use '_account-channel-page' as *;
@use '_miniature' as *;

.root {
  --myGlobalTopPadding: 60px;
  --myImgMargin: 30px;
  --myFontSize: 16px;
  --myGreyFontSize: 16px;
}

.section-label {
  @include section-label-responsive;
}

.links {
  @include grid-videos-miniature-margins;

  display: flex;
  justify-content: space-between;
  align-items: center;

  &.on-channel-page {
    max-width: $max-channels-width;
  }

  simple-search-input {
    @include margin-left(auto);
  }
}

my-user-moderation-dropdown,
.badge {
  @include margin-left(10px);

  position: relative;
  top: 3px;
}

.badge {
  font-size: 13px;
}

.copy-button {
  border: 0;
}

.account-info {
  @include grid-videos-miniature-margins(false, 15px);

  display: grid;
  grid-template-columns: 1fr min-content;
  grid-template-rows: auto auto;

  background-color: pvar(--submenuBackgroundColor);
  margin-bottom: 45px;
  padding-top: var(--myGlobalTopPadding);
  padding-bottom: var(--myGlobalTopPadding);
  font-size: var(--myFontSize);
}

.account-avatar-row {
  @include avatar-row-responsive(var(--myImgMargin), var(--myGreyFontSize));
}

.description {
  grid-column: 1 / 3;
  max-width: 1000px;
  word-break: break-word;
}

.show-more {
  @include show-more-description;

  display: none;
  text-align: center;
}

.buttons {
  grid-column: 2;
  grid-row: 1;

  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: flex-start;

  > *:not(:last-child) {
    margin-bottom: 15px;
  }

  > a {
    white-space: nowrap;
  }
}

@media screen and (max-width: $small-view) {
  .root {
    --myGlobalTopPadding: 45px;
    --myChannelImgMargin: 15px;
  }

  .account-info {
    display: block;
    padding-bottom: 60px;
  }

  .description:not(.expanded) {
    @include fade-text(30px, pvar(--submenuBackgroundColor));

    max-height: 70px;
  }

  .show-more {
    display: block;
  }

  .buttons {
    justify-content: center;
  }
}

@media screen and (max-width: $mobile-view) {
  .root {
    --myGlobalTopPadding: 15px;
    --myFontSize: 14px;
    --myGreyFontSize: 13px;
  }

  .account-info {
    display: block;
    padding-bottom: 30px;
  }

  .links {
    margin: auto !important;
    width: min-content;
  }

  .show-more {
    margin-bottom: 30px;
  }
}