]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Remove some unnecessary code and mixins in documentation, fixes #5680
authorGeoff Kimball <geoff@zurb.com>
Mon, 15 Sep 2014 22:58:45 +0000 (15:58 -0700)
committerGeoff Kimball <geoff@zurb.com>
Mon, 15 Sep 2014 22:58:45 +0000 (15:58 -0700)
doc/assets/scss/_global.scss
doc/assets/scss/docs.scss

index 213efda78f277896b5bfabb73fbbc0b1084e69b0..aa333a35622d1e6b6e25951374b328676461ecbf 100644 (file)
   $shadow-10: false
 ) { }
 
-@mixin border-direction(
-  $direction: top,
-  $style: solid,
-  $width: 2px,
-  $color: darken($panel-bg-color, 1%)) {
-  border-#{$direction}: #{$style} #{$width} #{$color};
-}
-
-@mixin border(
-  $style:solid,
-  $width:2px,
-  $color:darken($panel-bg-color, 1%)) {
-  border: #{$style} #{$width} #{$color};
-}
-
 //
 // @functions
 //
 
-@function image-url($pth) {
-  @return unquote("url(../img/#{$pth})");
+@function image-url($path) {
+  @return unquote("url(../img/#{$path})");
 }
 
-@function font-url($pth) {
-  @return unquote("url(../fonts/#{$pth})");
+@function font-url($path) {
+  @return unquote("url(../fonts/#{$path})");
 }
 
 //
@@ -59,5 +44,4 @@
 
 $body-font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif !important;
 $rem-base: 18;
-// $topbar-arrows: false;
 // $text-direction: rtl;
index 7581f137e9a88174b7d233b9962427321c7d22aa..e8f5c39d9da779e7b0fec20f3214573ddbe3a001 100644 (file)
@@ -147,9 +147,9 @@ table.plugin-options {
 
 // Modified Panel
 .easel {
-  @include panel($bg:$panel-bg-color);
-  @include border(solid, 1px, darken($panel-bg-color, 6%));
+  @include panel($bg: $panel-bg-color);
   @include radius();
+  border: 1px solid darken($panel-bg-color, 6%);
 }
 
 // 12 column grid mixin (would be cool to implement with mixins where possible)
@@ -176,7 +176,7 @@ table.plugin-options {
 .options-bg {
   padding: 18px;
   background-color: darken($panel-bg-color, 0%);
-  @include border(solid, 1px, darken($panel-bg-color, 4%));
+  border: 1px solid darken($panel-bg-color, 4%);
   border-radius: 4px;
   ul {
     margin-#{$default-float}: 20px;
@@ -187,9 +187,6 @@ table.plugin-options {
 pre { margin-bottom: 15px;
   code {
     .code-container {
-      //@include border(solid, 1px, darken($panel-bg-color, 4%));
-      //border-radius: 3px;
-      //background-color: darken($panel-bg-color, 2%);
       margin: 10px 0px;
       padding: 5px;
       overflow-x: auto;