From 526336bb1f2acff07669b179a5b9e88a9589f8fc Mon Sep 17 00:00:00 2001 From: Marco Biedermann Date: Thu, 5 Feb 2015 23:16:59 +0100 Subject: [PATCH] prepend opening curly brace by one space --- scss/foundation/_functions.scss | 8 ++++---- scss/foundation/components/_accordion.scss | 6 +++--- scss/foundation/components/_offcanvas.scss | 2 +- scss/foundation/components/_top-bar.scss | 16 ++++++++-------- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/scss/foundation/_functions.scss b/scss/foundation/_functions.scss index 9572a77ad..c28d14489 100644 --- a/scss/foundation/_functions.scss +++ b/scss/foundation/_functions.scss @@ -26,7 +26,7 @@ $modules: () !default; // RANGES // We use these functions to define ranges for various things, like media queries. -@function lower-bound($range){ +@function lower-bound($range) { @if length($range) <= 0 { @return 0; } @@ -88,7 +88,7 @@ $modules: () !default; } // CONVERT TO REM -@function convert-to-rem($value, $base-value: $rem-base) { +@function convert-to-rem($value, $base-value: $rem-base) { $value: strip-unit($value) / strip-unit($base-value) * 1rem; @if ($value == 0rem) { $value: 0; } // Turn 0rem into 0 @return $value; @@ -135,12 +135,12 @@ $modules: () !default; // OLD EM CALC // Deprecated: We'll drop support for this in 5.1.0, use rem-calc() -@function emCalc($values){ +@function emCalc($values) { @return rem-calc($values); } // OLD EM CALC // Deprecated: We'll drop support for this in 5.1.0, use rem-calc() -@function em-calc($values){ +@function em-calc($values) { @return rem-calc($values); } diff --git a/scss/foundation/components/_accordion.scss b/scss/foundation/components/_accordion.scss index fb5750957..f068ecaa8 100644 --- a/scss/foundation/components/_accordion.scss +++ b/scss/foundation/components/_accordion.scss @@ -32,7 +32,7 @@ $accordion-content-active-bg-color: $white !default; margin-bottom: 0; } -// Mixin: accordion-navigation( $bg, $hover-bg, $active-bg, $padding, $active_class, $font-color, $font-size, $font-family){ +// Mixin: accordion-navigation( $bg, $hover-bg, $active-bg, $padding, $active_class, $font-color, $font-size, $font-family) { // @params $bg-color: [ color or string ]: Specify the background color for the navigation element // @params $hover-bg-color [ color or string ]: Specify the background color for the navigation element when hovered // @params $active-bg [ color or string ]: Specify the background color for the navigation element when clicked and not released. @@ -41,7 +41,7 @@ $accordion-content-active-bg-color: $white !default; // @params $font-size [ number ]: Specifiy the font-size of the text inside the navigation element // @params $font-family [ string ]: Specify the font family for the text of the navigation of the accorion -@mixin accordion-navigation( $bg: $accordion-navigation-bg-color, $hover-bg: $accordion-navigation-hover-bg-color, $active-bg: $accordion-navigation-active-bg-color, $padding: $accordion-navigation-padding, $active_class: 'active', $font-color: $accordion-navigation-font-color, $font-size: $accordion-navigation-font-size, $font-family: $accordion-navigation-font-family ){ +@mixin accordion-navigation( $bg: $accordion-navigation-bg-color, $hover-bg: $accordion-navigation-hover-bg-color, $active-bg: $accordion-navigation-active-bg-color, $padding: $accordion-navigation-padding, $active_class: 'active', $font-color: $accordion-navigation-font-color, $font-size: $accordion-navigation-font-size, $font-family: $accordion-navigation-font-family ) { display: block; margin-bottom: 0 !important; @if type-of($active_class) != "string" { @@ -98,7 +98,7 @@ $accordion-content-active-bg-color: $white !default; // @params $bg [ color ]: Background color for the content when it's visible // @params $active_class [ string ]: Class name used to keep track of which accordion tab should be visible. -@mixin accordion-content($bg: $accordion-content-active-bg-color, $padding: $accordion-content-padding, $active_class: 'active'){ +@mixin accordion-content($bg: $accordion-content-active-bg-color, $padding: $accordion-content-padding, $active_class: 'active') { display: none; @if type-of($padding) != "number" { @warn "#{$padding} was read as a #{type-of($padding)}"; diff --git a/scss/foundation/components/_offcanvas.scss b/scss/foundation/components/_offcanvas.scss index 8c8653203..b74077330 100644 --- a/scss/foundation/components/_offcanvas.scss +++ b/scss/foundation/components/_offcanvas.scss @@ -462,7 +462,7 @@ $menu-slide: "transform 500ms ease" !default; } } //Left double angle quote or Right double angle quote chars -@mixin icon-double-arrows ($position){ +@mixin icon-double-arrows ($position) { @if $position == left { content: "\AB"; @if $text-direction == rtl { diff --git a/scss/foundation/components/_top-bar.scss b/scss/foundation/components/_top-bar.scss index 2ed306888..0a8737557 100644 --- a/scss/foundation/components/_top-bar.scss +++ b/scss/foundation/components/_top-bar.scss @@ -169,11 +169,11 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text form, input { margin-bottom: 0; } - input { - height: $topbar-input-height; - padding-top: .35rem; - padding-bottom: .35rem; - font-size: $topbar-button-font-size; + input { + height: $topbar-input-height; + padding-top: .35rem; + padding-bottom: .35rem; + font-size: $topbar-button-font-size; } .button, button { @@ -379,7 +379,7 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text & > a { &:after { - @if ($topbar-arrows){ + @if ($topbar-arrows) { @include css-triangle($topbar-dropdown-toggle-size, rgba($topbar-dropdown-toggle-color, $topbar-dropdown-toggle-alpha), $default-float); } margin-#{$opposite-direction}: $topbar-link-padding; @@ -540,7 +540,7 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text } .has-dropdown { - @if($topbar-arrows){ + @if($topbar-arrows) { & > a { padding-#{$opposite-direction}: $topbar-link-padding + $topbar-link-dropdown-padding !important; &:after { @@ -568,7 +568,7 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text .dropdown li.has-dropdown { & > a { - @if ($topbar-dropdown-arrows){ + @if ($topbar-dropdown-arrows) { &:after { border: none; content: "\00bb"; -- 2.47.2