]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/sass/class-helpers.scss
42e41c96f17777fc4700b52314416a958e80bf70
[github/Chocobozzz/PeerTube.git] / client / src / sass / class-helpers.scss
1 @use '_variables' as *;
2 @use '_mixins' as *;
3 @use '_badges' as *;
4 @use '_icons' as *;
5
6 .link-orange {
7 color: pvar(--mainForegroundColor);
8 font-weight: $font-bold;
9 border-bottom: 0.20em solid pvar(--mainColor);
10
11 &:hover {
12 color: pvar(--mainForegroundColor);
13 opacity: 0.8;
14 }
15 }
16
17 .underline-orange {
18 display: inline-block;
19 border-bottom: 0.20em solid pvar(--mainColor);
20 }
21
22 // ---------------------------------------------------------------------------
23
24 .peertube-button {
25 @include peertube-button;
26 }
27
28 .peertube-button-link {
29 @include peertube-button-link;
30 }
31
32 .orange-button {
33 @include orange-button;
34 }
35
36 .orange-button-inverted {
37 @include orange-button-inverted;
38 }
39
40 .grey-button {
41 @include grey-button;
42 }
43
44 .tertiary-button {
45 @include tertiary-button;
46 }
47
48 .peertube-radio-container {
49 @include peertube-radio-container;
50 }
51
52 // ---------------------------------------------------------------------------
53
54 .muted {
55 color: pvar(--greyForegroundColor) !important;
56 }
57
58 // ---------------------------------------------------------------------------
59
60 .pt-badge {
61 @include peertube-badge;
62 }
63
64 // ---------------------------------------------------------------------------
65
66 .form-group {
67 margin-bottom: 1rem;
68 }
69
70 .form-error,
71 .form-warning {
72 display: block;
73 margin-top: 5px;
74 }
75
76 .form-error {
77 color: $red;
78 }
79
80 .input-error {
81 border-color: $red !important;
82 }
83
84 .form-group-description {
85 @extend .muted !optional;
86
87 font-size: 90%;
88 margin-top: 10px;
89 }
90
91 label + .form-group-description {
92 margin-bottom: 10px;
93 margin-top: 0;
94 }
95
96 // ---------------------------------------------------------------------------
97
98
99 .title-page {
100 @include disable-default-a-behaviour;
101 @include margin-right(55px);
102
103 opacity: 0.6;
104 color: pvar(--mainForegroundColor);
105 font-size: 16px;
106 display: inline-block;
107 font-weight: $font-semibold;
108 border-bottom: 2px solid transparent;
109
110 &.title-page-single {
111 margin-top: 30px;
112 margin-bottom: 25px;
113 }
114
115 &.active {
116 border-bottom-color: pvar(--mainColor);
117 }
118
119 &.title-page-single {
120 font-size: 125%;
121 }
122
123 &:hover,
124 &:active,
125 &:focus {
126 color: pvar(--mainForegroundColor);
127 }
128
129 &.active,
130 &:hover,
131 &:active,
132 &:focus,
133 &.title-page-single {
134 opacity: 1;
135 outline: 0 hidden !important;
136 }
137
138 @media screen and (max-width: $mobile-view) {
139 @include margin-left(15px);
140 }
141 }
142
143 .title-page-v2 {
144 font-weight: normal;
145 font-size: 15px;
146 padding: 35px 25px;
147 }
148
149 .title-page-about,
150 .title-page-settings {
151 white-space: nowrap;
152 font-size: 115%;
153 }
154
155 .admin-sub-header {
156 display: flex;
157 align-items: center;
158 margin-bottom: 30px;
159
160 @media screen and (max-width: $small-view) {
161 flex-direction: column;
162 }
163 }
164
165 // ---------------------------------------------------------------------------
166
167 .no-results {
168 height: 40vh;
169 max-height: 500px;
170
171 display: flex;
172 flex-direction: column;
173 align-items: center;
174 justify-content: center;
175 font-size: 16px;
176 font-weight: $font-semibold;
177 }
178
179 // ---------------------------------------------------------------------------
180
181 .chevron-down {
182 @include chevron-down(0.55rem, 0.15rem);
183
184 margin: 0 8px;
185 }
186
187 .chevron-up {
188 @include chevron-up(0.55rem, 0.15rem);
189
190 margin: 0 8px;
191 }
192
193 .chevron-right {
194 @include chevron-right(0.55rem, 0.15rem);
195
196 margin: 0 8px;
197 }
198
199 .chevron-left {
200 @include chevron-left(0.55rem, 0.15rem);
201
202 margin: 0 8px;
203 }
204
205 // ---------------------------------------------------------------------------
206
207 .callout {
208 padding: 1.25rem;
209 border: 1px solid #eee;
210 border-radius: .25rem;
211 position: relative;
212
213 > label {
214 position: relative;
215 top: -5px;
216 left: -10px;
217 color: #6c757d !important;
218 }
219
220 &:not(.callout-light) {
221 border-left-width: .25rem;
222 }
223
224 &.callout-orange {
225 border-color: pvar(--mainColorLightest);
226
227 &:not(.callout-light) {
228 border-left-color: pvar(--mainColor);
229 }
230 }
231 }
232
233 // ---------------------------------------------------------------------------
234
235 .anchor {
236 position: relative;
237 top: #{-($header-height + 20px)};
238 }
239
240 .offset-content { // if sub-menu fixed
241 .anchor {
242 top: #{-($header-height + $sub-menu-height + 20px)};
243 }
244 }
245
246 // ---------------------------------------------------------------------------
247
248 .alert {
249 p:last-child {
250 margin-bottom: 0;
251 }
252
253 &.pt-alert-primary {
254 background-color: pvar(--mainColorVeryLight);
255 border: 2px solid pvar(--mainColorLightest);
256 }
257 }