Skip to content

Commit 4586972

Browse files
authored
Merge pull request #72 from deriv-com/generate-css-form-tokens
2 parents 74a19bf + 0731917 commit 4586972

File tree

7 files changed

+19856
-23862
lines changed

7 files changed

+19856
-23862
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
node_modules
22
coverage
3-
/dist
3+
dist/*

lib/styles/breakpoints.scss

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
@mixin breakpoint($breakpoint) {
2+
@if $breakpoint == 'sm' {
3+
@media (min-width: 640px) {
4+
@content;
5+
}
6+
} @else if $breakpoint == 'md' {
7+
@media (min-width: 768px) {
8+
@content;
9+
}
10+
} @else if $breakpoint == 'lg' {
11+
@media (min-width: 1024px) {
12+
@content;
13+
}
14+
} @else if $breakpoint == 'xl' {
15+
@media (min-width: 1280px) {
16+
@content;
17+
}
18+
} @else if $breakpoint == '2xl' {
19+
@media (min-width: 1440px) {
20+
@content;
21+
}
22+
} @else {
23+
@warn "Unknown breakpoint: #{$breakpoint}.";
24+
}
25+
}

0 commit comments

Comments
 (0)