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