]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+accounts/accounts.component.scss
Refactor button components
[github/Chocobozzz/PeerTube.git] / client / src / app / +accounts / accounts.component.scss
1 @use '_variables' as *;
2 @use '_mixins' as *;
3 @use '_account-channel-page' as *;
4 @use '_miniature' as *;
5
6 .root {
7 --myGlobalTopPadding: 60px;
8 --myImgMargin: 30px;
9 --myFontSize: 16px;
10 --myGreyFontSize: 16px;
11 }
12
13 .section-label {
14 @include section-label-responsive;
15 }
16
17 .links {
18 @include grid-videos-miniature-margins;
19
20 display: flex;
21 justify-content: space-between;
22 align-items: center;
23
24 &.on-channel-page {
25 max-width: $max-channels-width;
26 }
27
28 simple-search-input {
29 @include margin-left(auto);
30 }
31 }
32
33 my-user-moderation-dropdown {
34 margin: 0 10px;
35
36 height: fit-content;
37 }
38
39 .copy-button {
40 border: 0;
41 }
42
43 .account-info {
44 @include grid-videos-miniature-margins(false, 15px);
45
46 display: grid;
47 grid-template-columns: 1fr min-content;
48 grid-template-rows: auto auto;
49
50 background-color: pvar(--submenuBackgroundColor);
51 margin-bottom: 45px;
52 padding-top: var(--myGlobalTopPadding);
53 padding-bottom: var(--myGlobalTopPadding);
54 font-size: var(--myFontSize);
55 }
56
57 .account-avatar-row {
58 @include avatar-row-responsive(var(--myImgMargin), var(--myGreyFontSize));
59 }
60
61 .actor-display-name {
62 align-items: center;
63 }
64
65 .description {
66 grid-column: 1 / 3;
67 max-width: 1000px;
68 word-break: break-word;
69 }
70
71 .show-more {
72 @include show-more-description;
73
74 display: none;
75 text-align: center;
76 }
77
78 .buttons {
79 grid-column: 2;
80 grid-row: 1;
81
82 display: flex;
83 flex-wrap: wrap;
84 justify-content: flex-end;
85 align-content: flex-start;
86
87 > *:not(:last-child) {
88 margin-bottom: 15px;
89 }
90
91 > a {
92 white-space: nowrap;
93 }
94 }
95
96 .pt-badge {
97 @include margin-right(5px);
98 }
99
100 @media screen and (max-width: $small-view) {
101 .root {
102 --myGlobalTopPadding: 45px;
103 --myChannelImgMargin: 15px;
104 }
105
106 .account-info {
107 display: block;
108 padding-bottom: 60px;
109 }
110
111 .description:not(.expanded) {
112 @include fade-text(30px, pvar(--submenuBackgroundColor));
113
114 max-height: 70px;
115 }
116
117 .show-more {
118 display: block;
119 }
120
121 .buttons {
122 justify-content: center;
123 }
124 }
125
126 @media screen and (max-width: $mobile-view) {
127 .root {
128 --myGlobalTopPadding: 15px;
129 --myFontSize: 14px;
130 --myGreyFontSize: 13px;
131 }
132
133 .account-info {
134 display: block;
135 padding-bottom: 30px;
136 }
137
138 .links {
139 margin: auto !important;
140 width: min-content;
141 }
142
143 .show-more {
144 margin-bottom: 30px;
145 }
146 }