From: harry Date: Fri, 24 Feb 2017 04:10:59 +0000 (+0530) Subject: Rounded Utility: Removed unneccessary css ! X-Git-Tag: v6.4.0-rc1~23^2~20^2~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9558600a8ecfd2b5b34c7fa1627a5a5265eb6334;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Rounded Utility: Removed unneccessary css ! Better to keep it simple for now even for sass mixins! --- diff --git a/docs/pages/prototyping.md b/docs/pages/prototyping.md index f2c14991e..18d80e81d 100644 --- a/docs/pages/prototyping.md +++ b/docs/pages/prototyping.md @@ -72,19 +72,11 @@ These `.rounded` & `.bordered` classes helps to make an element round its corner ```html - - - - -``` - -
- - - - - - +``` + +
+ +
#### Cards diff --git a/scss/prototype/_rounded.scss b/scss/prototype/_rounded.scss index e6bfb70f8..0219e5c7c 100644 --- a/scss/prototype/_rounded.scss +++ b/scss/prototype/_rounded.scss @@ -22,42 +22,6 @@ $prototype-border-radius: rem-calc(4px) !default; border-radius: $radius; } -/// Rounded utility (top corner): Adds rounded corner (top corner) to an element by default. -/// @param {Number} $radius [$prototype-border-radius] Border radius (top corner) -@mixin border-top-radius( - $radius: $prototype-border-radius -) { - border-top-right-radius: $radius; - border-top-left-radius: $radius; -} - -/// Rounded utility (right corner): Adds rounded corner (right corner) to an element by default. -/// @param {Number} $radius [$prototype-border-radius] Border radius (right corner) -@mixin border-right-radius( - $radius: $prototype-border-radius -) { - border-bottom-right-radius: $radius; - border-top-right-radius: $radius; -} - -/// Rounded utility (bottom corner): Adds rounded corner (bottom corner) to an element by default. -/// @param {Number} $radius [$prototype-border-radius] Border radius (bottom corner) -@mixin border-bottom-radius( - $radius: $prototype-border-radius -) { - border-bottom-right-radius: $radius; - border-bottom-left-radius: $radius; -} - -/// Rounded utility (left corner): Adds rounded corner (left corner) to an element by default. -/// @param {Number} $radius [$prototype-border-radius] Border radius (left corner) -@mixin border-left-radius( - $radius: $prototype-border-radius -) { - border-bottom-left-radius: $radius; - border-top-left-radius: $radius; -} - /// Rounded circle utility @mixin rounded-circle { border-radius: 50% !important; @@ -67,18 +31,6 @@ $prototype-border-radius: rem-calc(4px) !default; .rounded { @include border-radius; } - .rounded-top { - @include border-top-radius; - } - .rounded-right { - @include border-right-radius; - } - .rounded-bottom { - @include border-bottom-radius; - } - .rounded-left { - @include border-left-radius; - } .rounded-circle { @include rounded-circle; } @@ -91,18 +43,6 @@ $prototype-border-radius: rem-calc(4px) !default; .#{$size}-rounded { @include border-radius; } - .#{$size}-rounded-top { - @include border-top-radius; - } - .#{$size}-rounded-right { - @include border-right-radius; - } - .#{$size}-rounded-bottom { - @include border-bottom-radius; - } - .#{$size}-rounded-left { - @include border-left-radius; - } .#{$size}-rounded-circle { @include rounded-circle; } diff --git a/test/visual/prototype/rounded-bordered.html b/test/visual/prototype/rounded-bordered.html index f2ac3e0ea..407b78aa2 100644 --- a/test/visual/prototype/rounded-bordered.html +++ b/test/visual/prototype/rounded-bordered.html @@ -11,7 +11,7 @@
-

Buttons

+

Buttons

@@ -19,16 +19,12 @@
-

Images

- - - - - - +

Images

+ +
-

Cards

+

Cards

@@ -41,7 +37,7 @@
-

Tables

+

Tables

@@ -79,7 +75,7 @@
-

 

+