This repository was archived by the owner on Nov 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make big changes and upgrade to v2.0.0
1 parent
b2b9ec4
commit 1a92a8f
Showing
17 changed files
with
219 additions
and
545 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/* | ||
== RESPONSIVE / MEDIA QUERIES == | ||
*/ | ||
|
||
/* ***** | ||
@name : ._tablet, ._phone and others media queries | ||
@description : A way for responsive integration. Apply rules for media queries tablet, phone, ... | ||
@params : @rules (CSS rules) | ||
@exemple : | ||
el { | ||
background-color:white; // Default : Apply a white bg-color to the <el> | ||
._tablet({ | ||
background-color:black; // Apply a black bg-color to the <el> on max-width:@tablet-mw screens <= @tablet-mw defined in settings.less | ||
}); // don't forget the ; | ||
._phone({ | ||
background-color:red; // Apply a red bg-color to the <el> on max-width:@phone-mw screens <= @phone-mw defined in settings.less | ||
}); // don't forget the ; | ||
} | ||
***** */ | ||
// For screens <= 767px | ||
._phone(@rules) { | ||
@media screen and (max-width: @phone-mw) { | ||
@rules(); | ||
} | ||
} | ||
// For screens <= 1200px | ||
._tablet(@rules) { | ||
@media screen and (max-width: @tablet-mw) { | ||
@rules(); | ||
} | ||
} | ||
// For screens >= 768px | ||
._tabletUp(@rules) { | ||
@media screen and (min-width: (@phone-mw+1)) { | ||
@rules(); | ||
} | ||
} | ||
// For screens >= 1201px | ||
._desktop(@rules) { | ||
@media screen and (min-width: (@tablet-mw+1)) { | ||
@rules(); | ||
} | ||
} | ||
// For IE only | ||
._ie(@rules) { | ||
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) { | ||
@rules(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters