Skip to content

Commit 408c05e

Browse files
authored
Merge pull request #15 from philippebeck/dev
Release 0.4.7
2 parents 06184fb + df4bc1b commit 408c05e

39 files changed

Lines changed: 409 additions & 489 deletions

dist/index.es.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.umd.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/style.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/assets/_style-mix.scss

Lines changed: 0 additions & 19 deletions
This file was deleted.

lib/assets/_style-var.scss

Lines changed: 0 additions & 54 deletions
This file was deleted.

lib/assets/style.scss

Lines changed: 67 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,80 @@
1-
@import './style-var';
2-
@import './style-mix';
1+
//! ********** VARIABLES **********
32

4-
//! ********** FONTS **********
3+
$xs: 360px; // mobile portrait
4+
$sm: 768px; // mobile landscape & tablet portrait
5+
$md: 1024px; // tablet landscape
6+
$lg: 1366px; // small laptop
7+
$xl: 1920px; // large laptop & desktop
8+
9+
$breakpoints: (
10+
"xs": $xs,
11+
"sm": $sm,
12+
"md": $md,
13+
"lg": $lg,
14+
"xl": $xl
15+
) !default;
16+
17+
$font-families: Geologica, Trocchi, UbuntuMono;
18+
19+
$sans-serif: Geologica, Helvetica, sans-serif;
20+
$serif: Trocchi, Times, serif;
21+
$monospace: UbuntuMono, Courier, monospace;
22+
23+
$primary: hsl(270, 100%, 80%);
24+
$secondary: hsl(120, 100%, 80%);
25+
$white: hsl( 0, 0%, 99%);
26+
$silver: hsl( 0, 0%, 80%);
27+
$gray: hsl( 0, 0%, 20%);
28+
$black: hsl( 0, 0%, 1%);
29+
30+
$transforms: (
31+
"grow-min": scale(0.7, 0.7),
32+
"grow-max": scale(0, 0),
33+
34+
"slide-top": translateY(100%),
35+
"slide-right": translateX(-100%),
36+
37+
"turn-x": rotateX(360deg),
38+
"turn-y": rotateY(360deg),
39+
"turn-z": rotateZ(360deg),
40+
"turn-xy": rotate3d(1, 1, 0, 360deg),
41+
"turn-xz": rotate3d(1, 0, 1, 360deg),
42+
"turn-yz": rotate3d(0, 1, 1, 360deg),
43+
"turn-3d": rotate3d(1, 1, 1, 360deg)
44+
) !default;
45+
46+
//! ********** MIXINS **********
47+
48+
@mixin font-face($font-family) {
49+
@font-face {
50+
font-family: $font-family;
51+
font-style: normal;
52+
font-weight: 400;
53+
font-display: swap;
54+
src:
55+
local("#{$font-family}-Regular"),
56+
url("/fonts/#{$font-family}-Regular.woff2") format("woff2");
57+
}
58+
}
59+
60+
@mixin keyframes($key, $value) {
61+
@keyframes #{$key} {
62+
from {
63+
transform: #{$value};
64+
}
65+
}
66+
}
67+
68+
//! ********** MAIN **********
569

670
@each $font-family in $font-families {
771
@include font-face($font-family);
872
}
973

10-
//! ********** KEYFRAMES **********
11-
1274
@each $key, $value in $transforms {
1375
@include keyframes($key, $value);
1476
}
1577

16-
//! ********** APP **********
17-
1878
body {
1979
margin: 0;
2080
font-family: $sans-serif;

lib/atoms/card/card.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
@import '../../assets/style';
22

3-
//! ********** CARD **********
4-
53
$radius: 10px;
64

75
.card {

lib/atoms/collapse/_collapse-mix.scss

Lines changed: 0 additions & 6 deletions
This file was deleted.

lib/atoms/collapse/_collapse-var.scss

Lines changed: 0 additions & 24 deletions
This file was deleted.

lib/atoms/collapse/collapse.scss

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,36 @@
11
@import '../../assets/style';
2-
@import './collapse-var';
3-
@import './collapse-mix';
42

5-
//! ********** COLLAPSE **********
3+
//! ********** VARIABLES **********
64

7-
.collapse {
5+
$radius: 5px;
6+
$width: 150px;
7+
8+
$radius-ratios: (
9+
"xs": 2,
10+
"sm": 4,
11+
"md": 5,
12+
"lg": 6,
13+
"xl": 7
14+
) !default;
15+
16+
$width-sizes: (
17+
"xs": 10px,
18+
"sm": 40px,
19+
"md": 60px,
20+
"lg": 80px,
21+
"xl": 100px
22+
) !default;
23+
24+
//! ********** MIXIN **********
825

26+
@mixin collapse($ratio, $size) {
27+
border-radius: calc($radius * $ratio);
28+
width: calc($width + $size);
29+
}
30+
31+
//! ********** MAIN **********
32+
33+
.collapse {
934
& > figure {
1035
margin: 20px;
1136
}

0 commit comments

Comments
 (0)