... | ... |
@@ -5,7 +5,7 @@ |
5 | 5 |
/** |
6 | 6 |
* Layout |
7 | 7 |
*/ |
8 |
-@mixin centered($max-width: $breakpoint-desktop, $resp-padding: 15px) { |
|
8 |
+@mixin centered($max-width: $breakpoint-desktop, $resp-padding: 25px) { |
|
9 | 9 |
max-width: $max-width; |
10 | 10 |
margin: 0 auto; |
11 | 11 |
position: relative; |
... | ... |
@@ -197,6 +197,13 @@ |
197 | 197 |
font-family: $font-family-alternate-sc; |
198 | 198 |
} |
199 | 199 |
|
200 |
+@mixin font-alt { |
|
201 |
+ font-weight: 700; |
|
202 |
+ text-transform: uppercase; |
|
203 |
+ letter-spacing: 0.125em; |
|
204 |
+ font-family: $font-family-alternate; |
|
205 |
+} |
|
206 |
+ |
|
200 | 207 |
@mixin iconfont { |
201 | 208 |
display: inline-block; |
202 | 209 |
font-family: $font-family-icon !important; |
... | ... |
@@ -353,11 +360,12 @@ |
353 | 360 |
@mixin button($color: $button-color, $border-color: $button-border-color, $background-color: $button-background-color, $font-size: $font-size-button, $color-hover: $button-color-hl, $border-color-hover: $button-border-color-hl, $background-color-hover: $button-background-color-hl, $button-height: $button-height, $button-padding-vertical: $button-padding-vertical, $button-padding-horizontal: $button-padding-horizontal) { |
354 | 361 |
$button-padding: $button-padding-vertical $button-padding-horizontal; |
355 | 362 |
position: relative; |
356 |
- font-family: $font-family-form; |
|
363 |
+ letter-spacing: 0.125em; |
|
364 |
+ font-family: $font-family-alternate; |
|
365 |
+ font-weight: 700; |
|
357 | 366 |
background: $background-color; |
358 | 367 |
color: $color; |
359 | 368 |
font-size: $font-size; |
360 |
- font-weight: 400; |
|
361 | 369 |
display: inline-block; |
362 | 370 |
padding: $button-padding; |
363 | 371 |
height: $button-height; |
... | ... |
@@ -391,6 +399,12 @@ |
391 | 399 |
} |
392 | 400 |
} |
393 | 401 |
|
402 |
+@mixin button-big ($color: $button-color, $border-color: $button-border-color, $background-color: $button-background-color, $font-size: $font-size-button, $color-hover: $button-color-hl, $border-color-hover: $button-border-color-hl, $background-color-hover: $button-background-color-hl, $button-height: $button-height, $button-padding-vertical: $button-padding-vertical, $button-padding-horizontal: $button-padding-horizontal) { |
|
403 |
+ @include button($color, $border-color, $background-color, $font-size, $color-hover, $border-color-hover, $background-color-hover, $button-height, $button-padding-vertical, $button-padding-horizontal); |
|
404 |
+ height: 45px; |
|
405 |
+ line-height: #{45px - (2*$button-border-width) - (2*$button-padding-vertical)}; |
|
406 |
+} |
|
407 |
+ |
|
394 | 408 |
@mixin button-text { |
395 | 409 |
@include button($color: $color-text, $color-hover: $color-text, $background-color-hover: none); |
396 | 410 |
background: none; |
... | ... |
@@ -506,4 +520,16 @@ |
506 | 520 |
max-height: $size; |
507 | 521 |
border: $stroke-width $color-stroke-grey solid; |
508 | 522 |
} |
509 |
-} |
|
510 | 523 |
\ No newline at end of file |
524 |
+} |
|
525 |
+ |
|
526 |
+ |
|
527 |
+@mixin font-size($size,$ascendant-font-size: $font-size-default, $mm: 0.7, $tm: 0.8) { |
|
528 |
+ $fz: $size / $ascendant-font-size * 1rem; |
|
529 |
+ font-size: $fz; |
|
530 |
+ @include for-tablet { |
|
531 |
+ font-size: $fz * $tm; |
|
532 |
+ } |
|
533 |
+ @include for-mobile { |
|
534 |
+ font-size: $fz * $mm; |
|
535 |
+ } |
|
536 |
+} |
... | ... |
@@ -179,8 +179,9 @@ |
179 | 179 |
/** |
180 | 180 |
* Object Fit |
181 | 181 |
*/ |
182 |
-@mixin object-fit($mode: cover) { |
|
182 |
+@mixin object-fit($mode: cover, $position: 50% 50%) { |
|
183 | 183 |
object-fit: $mode; |
184 |
+ object-position: $position; |
|
184 | 185 |
font-family: 'object-fit: #{$mode};'; |
185 | 186 |
display: block; |
186 | 187 |
width: 100%; |
... | ... |
@@ -251,7 +251,7 @@ |
251 | 251 |
/** |
252 | 252 |
* Text-Styling |
253 | 253 |
*/ |
254 |
-@mixin headline($font-size: 100%, $font-weight: 400, $color: $color-headline, $font-family: $font-family) { |
|
254 |
+@mixin headline($font-size: 100%, $font-weight: 700, $color: $color-headline, $font-family: $font-family) { |
|
255 | 255 |
font-family: $font-family-alternate; |
256 | 256 |
color: $color; |
257 | 257 |
font-weight: $font-weight; |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,508 @@ |
1 |
+@if not-imported("import_once_func") { @import "import_once_func"; } |
|
2 |
+@if not-imported("settings") { @import "settings"; } |
|
3 |
+@if not-imported("functions") { @import "functions"; } |
|
4 |
+ |
|
5 |
+/** |
|
6 |
+ * Layout |
|
7 |
+ */ |
|
8 |
+@mixin centered($max-width: $breakpoint-desktop, $resp-padding: 15px) { |
|
9 |
+ max-width: $max-width; |
|
10 |
+ margin: 0 auto; |
|
11 |
+ position: relative; |
|
12 |
+ |
|
13 |
+ @media screen and (max-width: $max-width + 2 * $resp-padding) { |
|
14 |
+ -webkit-box-sizing: border-box; |
|
15 |
+ -moz-box-sizing: border-box; |
|
16 |
+ box-sizing: border-box; |
|
17 |
+ padding-left: $resp-padding; |
|
18 |
+ padding-right: $resp-padding; |
|
19 |
+ } |
|
20 |
+} |
|
21 |
+@mixin centered-1200 { |
|
22 |
+ @include centered(); |
|
23 |
+} |
|
24 |
+ |
|
25 |
+/** |
|
26 |
+ * Responsive |
|
27 |
+ */ |
|
28 |
+@mixin for-max-size($size) { |
|
29 |
+ @media screen and (max-width: $size) { @content; } |
|
30 |
+} |
|
31 |
+@mixin for-min-size($size) { |
|
32 |
+ @media screen and (min-width: $size) { @content; } |
|
33 |
+} |
|
34 |
+@mixin for-tablet { |
|
35 |
+ @include for-max-size($breakpoint-tablet) { @content; } |
|
36 |
+} |
|
37 |
+@mixin for-mobile { |
|
38 |
+ @include for-max-size($breakpoint-mobile) { @content; } |
|
39 |
+} |
|
40 |
+@mixin for-tablet-up { |
|
41 |
+ @include for-min-size($breakpoint-mobile+1) { @content; } |
|
42 |
+} |
|
43 |
+@mixin for-desktop-up { |
|
44 |
+ @include for-min-size($breakpoint-tablet+1) { @content; } |
|
45 |
+} |
|
46 |
+ |
|
47 |
+/** |
|
48 |
+ * Shorthand |
|
49 |
+ */ |
|
50 |
+@mixin transform($transform...) { |
|
51 |
+ -webkit-transform: $transform; |
|
52 |
+ -moz-transform: $transform; |
|
53 |
+ -ms-transform: $transform; |
|
54 |
+ -o-transform: $transform; |
|
55 |
+ transform: $transform; |
|
56 |
+} |
|
57 |
+ |
|
58 |
+@mixin transition($transition...) { |
|
59 |
+ -webkit-transition: $transition; |
|
60 |
+ -moz-transition: $transition; |
|
61 |
+ -ms-transition: $transition; |
|
62 |
+ -o-transition: $transition; |
|
63 |
+ transition: $transition; |
|
64 |
+} |
|
65 |
+ |
|
66 |
+@mixin box-sizing($boxval) { |
|
67 |
+ -webkit-box-sizing: $boxval; |
|
68 |
+ -moz-box-sizing: $boxval; |
|
69 |
+ box-sizing: $boxval; |
|
70 |
+} |
|
71 |
+ |
|
72 |
+@mixin box-shadow($shadow...) { |
|
73 |
+ -webkit-box-shadow: $shadow; |
|
74 |
+ -moz-box-shadow: $shadow; |
|
75 |
+ box-shadow: $shadow; |
|
76 |
+} |
|
77 |
+ |
|
78 |
+@mixin border-radius($radius) { |
|
79 |
+ -webkit-border-radius: $radius; |
|
80 |
+ -moz-border-radius: $radius; |
|
81 |
+ border-radius: $radius; |
|
82 |
+} |
|
83 |
+ |
|
84 |
+@mixin filter($filter) { |
|
85 |
+ -webkit-filter: $filter; |
|
86 |
+ -ms-filter: $filter; |
|
87 |
+ filter: $filter; |
|
88 |
+} |
|
89 |
+ |
|
90 |
+@mixin placeholder { |
|
91 |
+ &::-webkit-placeholder { |
|
92 |
+ @content; |
|
93 |
+ } |
|
94 |
+ &:-moz-placeholder { |
|
95 |
+ @content; |
|
96 |
+ } |
|
97 |
+ &::-moz-placeholder { |
|
98 |
+ @content; |
|
99 |
+ } |
|
100 |
+ &:-ms-input-placeholder { |
|
101 |
+ @content; |
|
102 |
+ } |
|
103 |
+ &::-ms-input-placeholder { |
|
104 |
+ @content; |
|
105 |
+ } |
|
106 |
+ &:-ms-placeholder { |
|
107 |
+ @content; |
|
108 |
+ } |
|
109 |
+ &:-o-placeholder { |
|
110 |
+ @content; |
|
111 |
+ } |
|
112 |
+ &::placeholder { |
|
113 |
+ @content; |
|
114 |
+ } |
|
115 |
+} |
|
116 |
+ |
|
117 |
+@mixin aspect-ratio($width, $height, $float: false) { |
|
118 |
+ position: relative; |
|
119 |
+ @if $float { |
|
120 |
+ overflow: hidden; |
|
121 |
+ &:before { |
|
122 |
+ display: table; |
|
123 |
+ content: ""; |
|
124 |
+ padding-top: ($height / $width) * 100%; |
|
125 |
+ float: left; |
|
126 |
+ } |
|
127 |
+ } @else { |
|
128 |
+ &:before { |
|
129 |
+ display: block; |
|
130 |
+ content: ""; |
|
131 |
+ width: 100%; |
|
132 |
+ padding-top: ($height / $width) * 100%; |
|
133 |
+ } |
|
134 |
+ > * { |
|
135 |
+ position: absolute; |
|
136 |
+ top: 0; |
|
137 |
+ left: 0; |
|
138 |
+ right: 0; |
|
139 |
+ bottom: 0; |
|
140 |
+ } |
|
141 |
+ } |
|
142 |
+} |
|
143 |
+ |
|
144 |
+/// Mixin printing a linear-gradient |
|
145 |
+/// as well as a plain color fallback |
|
146 |
+/// and the `-webkit-` prefixed declaration |
|
147 |
+/// @access public |
|
148 |
+/// @param {String | List | Angle} $direction - Linear gradient direction |
|
149 |
+/// @param {Arglist} $color-stops - List of color-stops composing the gradient |
|
150 |
+@mixin linear-gradient($direction, $color-stops...) { |
|
151 |
+ @if is-direction($direction) == false { |
|
152 |
+ $color-stops: ($direction, $color-stops); |
|
153 |
+ $direction: 180deg; |
|
154 |
+ } |
|
155 |
+ |
|
156 |
+ background: nth(nth($color-stops, 1), 1); |
|
157 |
+ background: -webkit-linear-gradient(legacy-direction($direction), $color-stops); |
|
158 |
+ background: linear-gradient($direction, $color-stops); |
|
159 |
+} |
|
160 |
+ |
|
161 |
+@mixin column-classes($gutter-width, $max-columns, $class-name) { |
|
162 |
+ @for $cols from 1 through $max-columns { |
|
163 |
+ @for $span from 1 through $cols { |
|
164 |
+ &.-#{unquote($class-name)}-col-#{$cols}-#{$span} { |
|
165 |
+ flex-basis: 100% / $cols * $span - ($gutter-width * 100%); |
|
166 |
+ max-width: 100% / $cols * $span - ($gutter-width * 100%); |
|
167 |
+ order: 6; |
|
168 |
+ } |
|
169 |
+ } |
|
170 |
+ } |
|
171 |
+ |
|
172 |
+ @for $cols from 1 through $max-columns { |
|
173 |
+ &.-#{unquote($class-name)}-order-#{$cols} { |
|
174 |
+ order: $cols; |
|
175 |
+ } |
|
176 |
+ } |
|
177 |
+} |
|
178 |
+ |
|
179 |
+/** |
|
180 |
+ * Object Fit |
|
181 |
+ */ |
|
182 |
+@mixin object-fit($mode: cover) { |
|
183 |
+ object-fit: $mode; |
|
184 |
+ font-family: 'object-fit: #{$mode};'; |
|
185 |
+ display: block; |
|
186 |
+ width: 100%; |
|
187 |
+ height: 100%; |
|
188 |
+} |
|
189 |
+ |
|
190 |
+/** |
|
191 |
+ * Fonts |
|
192 |
+ */ |
|
193 |
+@mixin small-caps { |
|
194 |
+ font-weight: 400; |
|
195 |
+ text-transform: lowercase; |
|
196 |
+ font-family: $font-family-alternate-sc; |
|
197 |
+} |
|
198 |
+ |
|
199 |
+@mixin iconfont { |
|
200 |
+ display: inline-block; |
|
201 |
+ font-family: $font-family-icon !important; |
|
202 |
+ speak: none; |
|
203 |
+ font-style: normal; |
|
204 |
+ font-weight: normal; |
|
205 |
+ font-variant: normal; |
|
206 |
+ text-transform: none; |
|
207 |
+ line-height: 1; |
|
208 |
+ -webkit-font-smoothing: antialiased; |
|
209 |
+ -moz-osx-font-smoothing: grayscale; |
|
210 |
+ vertical-align: -0.1em; |
|
211 |
+} |
|
212 |
+ |
|
213 |
+@mixin icon($content: "", $font-size: 100%, $line-height: 1) { |
|
214 |
+ @include iconfont; |
|
215 |
+ font-size: $font-size; |
|
216 |
+ line-height: $line-height; |
|
217 |
+ @if $content != "" { |
|
218 |
+ content: $content; |
|
219 |
+ } |
|
220 |
+ -webkit-font-smoothing: antialiased; |
|
221 |
+ font-smoothing: antialiased; |
|
222 |
+ text-rendering: geometricPrecision; |
|
223 |
+ text-indent: 0; |
|
224 |
+ display: inline-block; |
|
225 |
+ position: relative; |
|
226 |
+} |
|
227 |
+ |
|
228 |
+/** |
|
229 |
+ * Clearfix |
|
230 |
+ */ |
|
231 |
+@mixin cf { |
|
232 |
+ &:before, |
|
233 |
+ &:after { |
|
234 |
+ content: " "; /* 1 */ |
|
235 |
+ display: table; /* 2 */ |
|
236 |
+ } |
|
237 |
+ |
|
238 |
+ &:after { |
|
239 |
+ clear: both; |
|
240 |
+ } |
|
241 |
+ |
|
242 |
+ /** |
|
243 |
+ * For IE 6/7 only |
|
244 |
+ * Include this rule to trigger hasLayout and contain floats. |
|
245 |
+ */ |
|
246 |
+ & { |
|
247 |
+ *zoom: 1; |
|
248 |
+ } |
|
249 |
+} |
|
250 |
+ |
|
251 |
+/** |
|
252 |
+ * Text-Styling |
|
253 |
+ */ |
|
254 |
+@mixin headline($font-size: 100%, $font-weight: 400, $color: $color-headline, $font-family: $font-family) { |
|
255 |
+ font-family: $font-family-alternate; |
|
256 |
+ color: $color; |
|
257 |
+ font-weight: $font-weight; |
|
258 |
+ font-size: $font-size; |
|
259 |
+} |
|
260 |
+ |
|
261 |
+@mixin text-overflow-ellipsis { |
|
262 |
+ white-space: nowrap; |
|
263 |
+ overflow: hidden; |
|
264 |
+ text-overflow: ellipsis; |
|
265 |
+} |
|
266 |
+ |
|
267 |
+/** |
|
268 |
+ * Boxes |
|
269 |
+ */ |
|
270 |
+ |
|
271 |
+@mixin box { |
|
272 |
+ &:not(.rs-columns) { |
|
273 |
+ background-color: $color-bg-primary; |
|
274 |
+ padding: 20px 35px; |
|
275 |
+ @include box-sizing(border-box); |
|
276 |
+ |
|
277 |
+ .-has-buttons&, |
|
278 |
+ &.-has-button { |
|
279 |
+ position: relative; |
|
280 |
+ padding-bottom: 65px; |
|
281 |
+ } |
|
282 |
+ |
|
283 |
+ .cta-button:last-child { |
|
284 |
+ position: absolute; |
|
285 |
+ bottom: 20px; |
|
286 |
+ left: 35px; |
|
287 |
+ right: 35px; |
|
288 |
+ } |
|
289 |
+ } |
|
290 |
+ |
|
291 |
+ &.rs-columns { |
|
292 |
+ margin-left: -10px; |
|
293 |
+ margin-top: 0; |
|
294 |
+ > * { |
|
295 |
+ flex-shrink: 1; |
|
296 |
+ flex-grow: 1; |
|
297 |
+ background-color: $color-bg-primary; |
|
298 |
+ margin-left: 10px; |
|
299 |
+ margin-top: 20px; |
|
300 |
+ padding: 20px 35px; |
|
301 |
+ @include box-sizing(border-box); |
|
302 |
+ position: relative; |
|
303 |
+ |
|
304 |
+ .-has-buttons&, |
|
305 |
+ &.-has-button { |
|
306 |
+ padding-bottom: 65px; |
|
307 |
+ } |
|
308 |
+ |
|
309 |
+ .cta-button:last-child { |
|
310 |
+ position: absolute; |
|
311 |
+ bottom: 20px; |
|
312 |
+ left: 35px; |
|
313 |
+ right: 35px; |
|
314 |
+ } |
|
315 |
+ } |
|
316 |
+ } |
|
317 |
+} |
|
318 |
+@mixin box-black{ |
|
319 |
+ @include box; |
|
320 |
+ &:not(.rs-columns) { |
|
321 |
+ background-color: $color-bg-secondary; |
|
322 |
+ color: $color-text-invert; |
|
323 |
+ } |
|
324 |
+ |
|
325 |
+ &.rs-columns { |
|
326 |
+ > * { |
|
327 |
+ background-color: $color-bg-secondary; |
|
328 |
+ color: $color-text-invert; |
|
329 |
+ } |
|
330 |
+ } |
|
331 |
+} |
|
332 |
+@mixin box-white{ |
|
333 |
+ @include box; |
|
334 |
+ border: 1px $color-stroke-grey solid; |
|
335 |
+} |
|
336 |
+@mixin box-yellow { |
|
337 |
+ @include box; |
|
338 |
+ background-color: $color-bg-primary; |
|
339 |
+ border: 1px $color-stroke-light solid; |
|
340 |
+ padding: 10px; |
|
341 |
+} |
|
342 |
+@mixin box-grey { |
|
343 |
+ @include box; |
|
344 |
+ background-color: $color-bg-footer; |
|
345 |
+ padding: 10px; |
|
346 |
+} |
|
347 |
+ |
|
348 |
+/** |
|
349 |
+ * Buttons |
|
350 |
+ */ |
|
351 |
+ |
|
352 |
+@mixin button($color: $button-color, $border-color: $button-border-color, $background-color: $button-background-color, $font-size: $font-size-button, $color-hover: $button-color-hl, $border-color-hover: $button-border-color-hl, $background-color-hover: $button-background-color-hl, $button-height: $button-height, $button-padding-vertical: $button-padding-vertical, $button-padding-horizontal: $button-padding-horizontal) { |
|
353 |
+ $button-padding: $button-padding-vertical $button-padding-horizontal; |
|
354 |
+ position: relative; |
|
355 |
+ font-family: $font-family-form; |
|
356 |
+ background: $background-color; |
|
357 |
+ color: $color; |
|
358 |
+ font-size: $font-size; |
|
359 |
+ font-weight: 400; |
|
360 |
+ display: inline-block; |
|
361 |
+ padding: $button-padding; |
|
362 |
+ height: $button-height; |
|
363 |
+ line-height: #{$button-height - (2*$button-border-width) - (2*$button-padding-vertical)}; |
|
364 |
+ white-space: nowrap; |
|
365 |
+ -webkit-box-sizing: border-box; |
|
366 |
+ -moz-box-sizing: border-box; |
|
367 |
+ box-sizing: border-box; |
|
368 |
+ border: $button-border-width $border-color solid; |
|
369 |
+ cursor: pointer; |
|
370 |
+ text-align: center; |
|
371 |
+ -webkit-transition: all 0.2s ease-in; |
|
372 |
+ -moz-transition: all 0.2s ease-in; |
|
373 |
+ -ms-transition: all 0.2s ease-in; |
|
374 |
+ -o-transition: all 0.2s ease-in; |
|
375 |
+ transition: all 0.2s ease-in; |
|
376 |
+ text-transform: uppercase; |
|
377 |
+ |
|
378 |
+ &[data-icon]:not([data-icon=""]) { |
|
379 |
+ &:after { |
|
380 |
+ @include icon(attr(data-icon),font-size(20px),inherit); |
|
381 |
+ vertical-align: bottom; |
|
382 |
+ margin-left: 1ex; |
|
383 |
+ } |
|
384 |
+ } |
|
385 |
+ |
|
386 |
+ &:hover { |
|
387 |
+ color: $color-hover; |
|
388 |
+ border-color: $border-color-hover; |
|
389 |
+ background: $background-color-hover; |
|
390 |
+ } |
|
391 |
+} |
|
392 |
+ |
|
393 |
+@mixin button-text { |
|
394 |
+ @include button($color: $color-text, $color-hover: $color-text, $background-color-hover: none); |
|
395 |
+ background: none; |
|
396 |
+ border: none; |
|
397 |
+ height: auto; |
|
398 |
+ padding: 0; |
|
399 |
+ margin-right: auto; |
|
400 |
+ color: $color-text; |
|
401 |
+ text-transform: uppercase; |
|
402 |
+ font-size: font-size(14px); |
|
403 |
+ font-weight: 600; |
|
404 |
+ letter-spacing: 0.1em; |
|
405 |
+} |
|
406 |
+ |
|
407 |
+@mixin button-icon-only($color: $button-color, $border-color: $button-border-color, $background-color: $button-background-color, $font-size: $font-size-default, $color-hover: $color, $border-color-hover: $border-color, $border-background-hover: mix($background-color,#000,70%)) { |
|
408 |
+ @include button($color,$border-color,$background-color,$font-size,$color-hover,$border-color-hover,$border-background-hover); |
|
409 |
+ min-width: $button-height; |
|
410 |
+ text-indent: -9999px; |
|
411 |
+ overflow: hidden; |
|
412 |
+ font-size: 100%; |
|
413 |
+ |
|
414 |
+ &:after { |
|
415 |
+ text-indent: 0; |
|
416 |
+ float: left; |
|
417 |
+ margin: 0; |
|
418 |
+ width: #{$button-height - (2*$button-padding-horizontal) - (2*$button-border-width)}; |
|
419 |
+ } |
|
420 |
+} |
|
421 |
+ |
|
422 |
+@mixin button-no-icon { |
|
423 |
+ &:after { |
|
424 |
+ display: none; |
|
425 |
+ } |
|
426 |
+} |
|
427 |
+ |
|
428 |
+@mixin button-block { |
|
429 |
+ display: block; |
|
430 |
+ width: 100%; |
|
431 |
+ -webkit-box-sizing: border-box; |
|
432 |
+ -moz-box-sizing: border-box; |
|
433 |
+ box-sizing: border-box; |
|
434 |
+} |
|
435 |
+ |
|
436 |
+@mixin button-outline($color: $button-o-color, $border-color: $button-o-border-color, $font-size: $font-size-default, $color-hover: $button-o-color-hl, $border-color-hover: $button-o-border-color-hl, $border-background-hover: $button-o-background-color-hl) { |
|
437 |
+ @include button($color,$border-color,transparent,$font-size,$color-hover,$border-color-hover,$border-background-hover); |
|
438 |
+} |
|
439 |
+ |
|
440 |
+/** |
|
441 |
+ * Avatar + Profiles |
|
442 |
+ */ |
|
443 |
+@mixin avatar($size: 50px, $stroke-width: 3px) { |
|
444 |
+ position: relative; |
|
445 |
+ width: $size+2*$stroke-width; |
|
446 |
+ height: $size+2*$stroke-width; |
|
447 |
+ margin-right: 1em; |
|
448 |
+ margin-bottom: 0.5em; |
|
449 |
+ display: inline-block; |
|
450 |
+ vertical-align: middle; |
|
451 |
+ &:before { |
|
452 |
+ position: absolute; |
|
453 |
+ left: 0; |
|
454 |
+ right: 0; |
|
455 |
+ content: ""; |
|
456 |
+ display: inline-block; |
|
457 |
+ width: $size; |
|
458 |
+ height: $size; |
|
459 |
+ border-radius: $size; |
|
460 |
+ vertical-align: middle; |
|
461 |
+ /*-webkit-box-shadow: 0 0 5px 0 rgba(0, 0, 0, .3); |
|
462 |
+ -moz-box-shadow: 0 0 5px 0 rgba(0, 0, 0, .3); |
|
463 |
+ box-shadow: 0 0 5px 0 rgba(0, 0, 0, .3);*/ |
|
464 |
+ } |
|
465 |
+ &[data-letters]:before { |
|
466 |
+ content: attr(data-letters); |
|
467 |
+ font-size: font-size($size*0.4); |
|
468 |
+ font-weight: 400; |
|
469 |
+ line-height: $size; |
|
470 |
+ text-align: center; |
|
471 |
+ color: white; |
|
472 |
+ background: $color-bg-tertiary; |
|
473 |
+ border: $stroke-width $color-stroke-grey solid; |
|
474 |
+ } |
|
475 |
+ &[data-staff] { |
|
476 |
+ margin-right: #{$size*0.56-(($size+2*$stroke-width)*0.14*2)}; |
|
477 |
+ &:after { |
|
478 |
+ @include icon("\ec66",font-size($size*0.14),4em); |
|
479 |
+ position: absolute; |
|
480 |
+ left: 100%; |
|
481 |
+ bottom: -0.5em; |
|
482 |
+ margin-left: -#{($size+2*$stroke-width)*0.14*2}; |
|
483 |
+ padding: 0; |
|
484 |
+ width: 4em; |
|
485 |
+ height: 4em; |
|
486 |
+ -webkit-border-radius: 4em; |
|
487 |
+ -moz-border-radius: 4em; |
|
488 |
+ border-radius: 4em; |
|
489 |
+ color: $color-bg-tertiary; |
|
490 |
+ background-color: $color-bg-secondary; |
|
491 |
+ border: $size*0.02 $color-stroke-grey solid; |
|
492 |
+ text-align: center; |
|
493 |
+ vertical-align: middle; |
|
494 |
+ -webkit-box-sizing: border-box; |
|
495 |
+ -moz-box-sizing: border-box; |
|
496 |
+ box-sizing: border-box; |
|
497 |
+ } |
|
498 |
+ } |
|
499 |
+ > * { |
|
500 |
+ position: relative; |
|
501 |
+ -webkit-border-radius: $size; |
|
502 |
+ -moz-border-radius: $size; |
|
503 |
+ border-radius: $size; |
|
504 |
+ max-width: $size; |
|
505 |
+ max-height: $size; |
|
506 |
+ border: $stroke-width $color-stroke-grey solid; |
|
507 |
+ } |
|
508 |
+} |
|
0 | 509 |
\ No newline at end of file |