]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/sass/class-helpers.scss
Fix login input size
[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);
8 font-weight: $font-bold;
9 border-bottom: 3px 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: 3px solid pvar(--mainColor);
20}
21
22// ---------------------------------------------------------------------------
23
f72c78b2
C
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
6f03f944
C
91label + .form-group-description {
92 margin-bottom: 10px;
93 margin-top: 0;
94}
95
f72c78b2
C
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-about,
144.title-page-settings {
145 white-space: nowrap;
146 font-size: 115%;
147}
148
149.admin-sub-header {
150 display: flex;
151 align-items: center;
152 margin-bottom: 30px;
153
154 @media screen and (max-width: $small-view) {
155 flex-direction: column;
156 }
157}
158
159// ---------------------------------------------------------------------------
160
161.no-results {
162 height: 40vh;
163 max-height: 500px;
164
165 display: flex;
166 flex-direction: column;
167 align-items: center;
168 justify-content: center;
169 font-size: 16px;
170 font-weight: $font-semibold;
171}
172
173// ---------------------------------------------------------------------------
174
175.chevron-down {
176 @include chevron-down(0.55rem, 0.15rem);
177
178 margin: 0 8px;
179}
180
181.chevron-up {
182 @include chevron-up(0.55rem, 0.15rem);
183
184 margin: 0 8px;
185}
186
187.chevron-right {
188 @include chevron-right(0.55rem, 0.15rem);
189
190 margin: 0 8px;
191}
192
193.chevron-left {
194 @include chevron-left(0.55rem, 0.15rem);
195
196 margin: 0 8px;
197}
198
199// ---------------------------------------------------------------------------
200
201.callout {
202 padding: 1.25rem;
203 border: 1px solid #eee;
204 border-radius: .25rem;
205 position: relative;
206
207 > label {
208 position: relative;
209 top: -5px;
210 left: -10px;
211 color: #6c757d !important;
212 }
213
214 &:not(.callout-light) {
215 border-left-width: .25rem;
216 }
217
6f03f944 218 &.callout-orange {
f72c78b2 219 border-color: pvar(--mainColorLightest);
6f03f944
C
220
221 &:not(.callout-light) {
222 border-left-color: pvar(--mainColor);
223 }
f72c78b2
C
224 }
225}
226
227// ---------------------------------------------------------------------------
228
229.anchor {
230 position: relative;
231 top: #{-($header-height + 20px)};
232}
233
234.offset-content { // if sub-menu fixed
235 .anchor {
236 top: #{-($header-height + $sub-menu-height + 20px)};
237 }
238}
6f03f944
C
239
240// ---------------------------------------------------------------------------
241
242.alert {
243 p:last-child {
244 margin-bottom: 0;
245 }
246
247 &.pt-alert-primary {
248 background-color: pvar(--mainColorVeryLight);
249 border: 2px solid pvar(--mainColorLightest);
250 }
251}