Skip to content

Commit

Permalink
Merge pull request #72 from deriv-com/generate-css-form-tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
prince-deriv authored Jun 13, 2024
2 parents 74a19bf + 0731917 commit 4586972
Show file tree
Hide file tree
Showing 7 changed files with 19,856 additions and 23,862 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
node_modules
coverage
/dist
dist/*
25 changes: 25 additions & 0 deletions lib/styles/breakpoints.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
@mixin breakpoint($breakpoint) {
@if $breakpoint == 'sm' {
@media (min-width: 640px) {
@content;
}
} @else if $breakpoint == 'md' {
@media (min-width: 768px) {
@content;
}
} @else if $breakpoint == 'lg' {
@media (min-width: 1024px) {
@content;
}
} @else if $breakpoint == 'xl' {
@media (min-width: 1280px) {
@content;
}
} @else if $breakpoint == '2xl' {
@media (min-width: 1440px) {
@content;
}
} @else {
@warn "Unknown breakpoint: #{$breakpoint}.";
}
}
Loading

0 comments on commit 4586972

Please sign in to comment.