variable $utilities
This commit is contained in:
parent
3182e3088f
commit
271ff3acd5
5 changed files with 28 additions and 20 deletions
|
@ -73,7 +73,10 @@ $weight-medium : 500 !default;
|
|||
$weight-bold : 700 !default;
|
||||
|
||||
// Activate hyphenation on small screens
|
||||
$hyphens: false !default;
|
||||
$hyphens: true !default;
|
||||
|
||||
// Activate Utility classes
|
||||
$utilities: true !default;
|
||||
|
||||
// Activate WordPress reset and styles
|
||||
$wordpress: false !default;
|
||||
|
|
|
@ -473,6 +473,23 @@ figure {
|
|||
margin-right: 0;
|
||||
}
|
||||
|
||||
@if variable-exists(hyphens) and $hyphens==true {
|
||||
@media (max-width: ($small - 1)) {
|
||||
body,
|
||||
div,
|
||||
textarea,
|
||||
table,
|
||||
td,
|
||||
th,
|
||||
code,
|
||||
pre,
|
||||
samp {
|
||||
word-wrap: break-word;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@if variable-exists(ie) and $ie==true {
|
||||
|
||||
|
|
|
@ -74,23 +74,6 @@
|
|||
text-align: center;
|
||||
}
|
||||
|
||||
@if variable-exists(hyphens) and $hyphens==true {
|
||||
@media (max-width: ($small - 1)) {
|
||||
div,
|
||||
textarea,
|
||||
table,
|
||||
td,
|
||||
th,
|
||||
code,
|
||||
pre,
|
||||
samp {
|
||||
word-wrap: break-word;
|
||||
overflow-wrap: break-word;
|
||||
hyphens: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* blocks that need to be placed under floats */
|
||||
|
||||
.clear,
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
/* ----------------------------- */
|
||||
|
||||
/*
|
||||
1- Reboot (basic reset)
|
||||
1- Abstracts (variables and mixins)
|
||||
2- Base :
|
||||
- Reset
|
||||
- Print
|
||||
|
@ -40,9 +40,13 @@
|
|||
@import "base/reset"; // basic styles
|
||||
@import "base/print"; // print quick reset
|
||||
@import "base/layout"; // alignment, modules, positionning
|
||||
@import "base/utilities"; // width and spacer helpers
|
||||
@import "base/responsive"; // Responsive Web Design helpers
|
||||
|
||||
// Utilities (loaded if $utilities variable is true).
|
||||
@if variable-exists(utilities) and $utilities==true {
|
||||
@import "base/utilities"; // width and spacer helpers
|
||||
}
|
||||
|
||||
// WordPress reset and basics (loaded if $wordpress variable is true).
|
||||
@if variable-exists(wordpress) and $wordpress==true {
|
||||
@import "base/wordpress"; // WordPress reset and basic styles
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue