Skip to content

Commit

Permalink
Added extra large screen size
Browse files Browse the repository at this point in the history
- Added extra large (XL) styles and classes
- Refactor: breakpoints from map to list
- Added XL breakpoint
- Refactor: Added max-width for media queries
  • Loading branch information
akmaldju committed Jan 12, 2021
1 parent 6e71666 commit f61a091
Show file tree
Hide file tree
Showing 13 changed files with 8,855 additions and 1,310 deletions.
10,117 changes: 8,831 additions & 1,286 deletions dist/freedom.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/freedom.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "css-freedom",
"version": "0.1.0",
"version": "0.1.1",
"description": "CSS FreeDOM - a light-weight simplified and improved version of Bootstrap.",
"main": "index.js",
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions scss/partials/_block.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
}

@each $breakpoint,
$width in $breakpoints {
@media screen and (max-width: $width) {
$minWidth, $maxWidth in $breakpoints {
@media screen and (min-width: $minWidth) and (max-width: $maxWidth) {

/*Block Styles*/
.fixed {
Expand Down
4 changes: 2 additions & 2 deletions scss/partials/_border.scss
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@
}

@each $breakpoint,
$width in $breakpoints {
@media screen and (max-width: $width) {
$minWidth, $maxWidth in $breakpoints {
@media screen and (min-width: $minWidth) and (max-width: $maxWidth) {

/*Borders*/
.b {
Expand Down
8 changes: 4 additions & 4 deletions scss/partials/_breakpoints.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$breakpoints: (
t:1000px,
m:576px
);
$breakpoints:
"xl" 2500px none,
"t" 577px 1000px,
"m" 0 576px;
4 changes: 2 additions & 2 deletions scss/partials/_display.scss
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@
}

@each $breakpoint,
$width in $breakpoints {
@media screen and (max-width: $width) {
$minWidth, $maxWidth in $breakpoints {
@media screen and (min-width: $minWidth) and (max-width: $maxWidth) {

/*Display*/
.d {
Expand Down
4 changes: 2 additions & 2 deletions scss/partials/_image.scss
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@
}

@each $breakpoint,
$width in $breakpoints {
@media screen and (max-width: $width) {
$minWidth, $maxWidth in $breakpoints {
@media screen and (min-width: $minWidth) and (max-width: $maxWidth) {

/*Image Styles*/
.img {
Expand Down
4 changes: 2 additions & 2 deletions scss/partials/_margin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@
}

@each $breakpoint,
$width in $breakpoints {
$minWidth, $maxWidth in $breakpoints {

@media screen and (max-width: $width) {
@media screen and (min-width: $minWidth) and (max-width: $maxWidth) {

/*Margin*/
.m {
Expand Down
4 changes: 2 additions & 2 deletions scss/partials/_outline.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
}

@each $breakpoint,
$width in $breakpoints {
@media screen and (max-width: $width) {
$minWidth, $maxWidth in $breakpoints {
@media screen and (min-width: $minWidth) and (max-width: $maxWidth) {

/*outlines*/
.o {
Expand Down
4 changes: 2 additions & 2 deletions scss/partials/_padding.scss
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@
}

@each $breakpoint,
$width in $breakpoints {
$minWidth, $maxWidth in $breakpoints {

@media screen and (max-width: $width) {
@media screen and (min-width: $minWidth) and (max-width: $maxWidth) {

/*Padding*/
.p {
Expand Down
4 changes: 2 additions & 2 deletions scss/partials/_sizing.scss
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@
}

@each $breakpoint,
$width in $breakpoints {
@media screen and (max-width: $width) {
$minWidth, $maxWidth in $breakpoints {
@media screen and (min-width: $minWidth) and (max-width: $maxWidth) {

/*Sizing*/
/*Width*/
Expand Down
4 changes: 2 additions & 2 deletions scss/partials/_text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@
}

@each $breakpoint,
$width in $breakpoints {
@media screen and (max-width: $width) {
$minWidth, $maxWidth in $breakpoints {
@media screen and (min-width: $minWidth) and (max-width: $maxWidth) {

/*Headings*/
.h1 {
Expand Down

1 comment on commit f61a091

@vercel
Copy link

@vercel vercel bot commented on f61a091 Jan 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.