Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/picturepan2/spectre.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Grindley <ian@ignition-studios.com>2019-08-09 14:38:46 +0300
committerIan Grindley <ian@ignition-studios.com>2019-08-09 14:38:46 +0300
commit26ffd50381fed6db672b265990caa12d4d98d272 (patch)
tree8a53a199bfd4ff6138f910e740e0f701b36bba16
parent32a122385b3e78c532e770ff669798a2c8d36f66 (diff)
Make column classes less verbose
.cols shorthand for .columns [class~="col-"] Removes the need to add 'column' to the column class attribute
-rw-r--r--src/_layout.scss2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/_layout.scss b/src/_layout.scss
index 1f6b77c..e6bad9a 100644
--- a/src/_layout.scss
+++ b/src/_layout.scss
@@ -39,6 +39,7 @@
}
// Responsive grid system
+.cols,
.columns {
display: flex;
flex-wrap: wrap;
@@ -59,6 +60,7 @@
overflow-x: auto;
}
}
+[class~="col-"],
.column {
flex: 1;
max-width: 100%;