From 17de1b1d2fc474633a34a71f903f3d334a507763 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Wed, 29 Mar 2017 21:42:41 +0300 Subject: [PATCH] Updated core module's variables The variables in core have been moved to the top of the file and the corresponding values and descriptions in the falvor files updated as required. --- docs/v2/DEVLOG.md | 8 ++ src/flavors/mini-default.scss | 173 +++++++++++++++++----------------- src/flavors/mini-sucroa.scss | 165 ++++++++++++++++---------------- src/mini/_core.scss | 28 ++++-- 4 files changed, 195 insertions(+), 179 deletions(-) diff --git a/docs/v2/DEVLOG.md b/docs/v2/DEVLOG.md index b7a052a..ebaf300 100644 --- a/docs/v2/DEVLOG.md +++ b/docs/v2/DEVLOG.md @@ -881,3 +881,11 @@ - Updated `mini-sucroa`: Removed `horizontal` tables, added `sticky` for `header` and `footer`, added `tooltip`, disabled legacy support in `utility`. Updated the rest of the components as required (minor changes). - Updated `mini-sucroa` flavor description. - Decided to drop `mini-classic`, not worth it in the long run. See #57 for details. + +# v2.1.1 Development log + +## 20170329 + +- Started code cleanup and updating. +- Updated `core` by moving all of the variable definitions and defaults at the top of the module's file. +- Updated both flavor files to deal with the indentation and column problems (only for the `core` module so far). Readability is a lot better, but consistency is a little bit worse. For all intents and purposes, this is the way to go for this release, as the previous styling was impossible to read for the most part in many setups. diff --git a/src/flavors/mini-default.scss b/src/flavors/mini-default.scss index 23f9356..a3a22c3 100644 --- a/src/flavors/mini-default.scss +++ b/src/flavors/mini-default.scss @@ -7,107 +7,106 @@ mini.css version: v2.1.0 (Fermion) */ // Basic rules for body and typography -$fore-color: #212121; // Text and general foreground color -$back-color: #f5f5f5; // Body background color +$fore-color: #212121; // Text and general foreground color +$back-color: #f5f5f5; // Body background color $base-font-family: // Default font stack for all elements: '-apple-system, BlinkMacSystemFont,\"Segoe UI\",\"Roboto\", \"Droid Sans\",\"Helvetica Neue\", Helvetica, Arial, sans-serif'; // OS X and iOS system fonts (San Francisco) -> Windows system fonts -> Android system fonts (newer and older) -> Fallback fonts -$base-root-font-size: 16px; // Root font sizing for all elements [1] +$base-root-font-size: 16px; // Root font sizing for all elements [1] $base-font-size: 1em; // Default font sizing for all elements [2] -$base-line-height: 1.5; // Default line height for all elements. -$body-margin: 0; // Margin for the body -$apply-defaults-to-all: true; // Should default values be applied to all - // elements? (`true` or `false`) [3] +$base-line-height: 1.5; // Default line height for all elements. +$body-margin: 0; // Margin for the body +$apply-defaults-to-all: true; // Should default values be applied to all + // elements? (`true` or `false`) [3] $h1-font-size: 2em; // Font size of h1 -$h2-font-size: 1.5em; // Font size for h2 -$h3-font-size: 1.25em; // Font size for h3 -$h4-font-size: 1.1em; // Font size for h4 +$h2-font-size: 1.5em; // Font size for h2 +$h3-font-size: 1.25em; // Font size for h3 +$h4-font-size: 1.1em; // Font size for h4 $h5-font-size: 1em; // Font size for h5 -$h6-font-size: 0.85em; // Font size for h6 -$heading-line-height: 1.2em; // Line height for all headings -$heading-margin: 12px 8px; // Margin for all headings -$heading-font-weight: 500; // Font weight for all headings -$heading-smalltext-fore-color: #424242; // color in headings -$make-heading-smalltext-block: true; // Should elements in headings - // be displayed as blocks (`true`/`false`) [4] -$heading-smalltext-b-font-size: 75%; // Font size of block elements in headings -$heading-smalltext-b-top-margin:-4px; // Top margin of block elements in headings -$paragraph-margin: 1px 8px; // Margin for

elements -$list-margin: 1px 8px 10px; // Margin for

    and