]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Adding variables and SCSS to allow specifying font-style for body and header text 1014/head
authorGrant Gaduet <grant@greylabel.net>
Thu, 11 Oct 2012 16:44:47 +0000 (09:44 -0700)
committerGrant Gaduet <grant@greylabel.net>
Thu, 11 Oct 2012 16:44:47 +0000 (09:44 -0700)
scss/foundation/_settings.scss
scss/foundation/common/_globals.scss
scss/foundation/common/_typography.scss
scss/foundation/components/modules/_buttons.scss
templates/project/scss/_settings.scss
test/scss/_settings.scss

index dadddf9560e54bdc1e72e2c6a37c17cf5396b8c2..86e25f438abbd856932805aae0fe68cfc42572c1 100644 (file)
@@ -38,9 +38,11 @@ $darkEdge: rgba(#000, .2) !default;
 
 $headerFontFamily: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif !default;
 $headerFontWeight: bold !default;
+$headerFontStyle: normal !default;
 $headerFontColor: #222 !default;
 $bodyFontFamily: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif !default;
 $bodyFontWeight: normal !default;
+$bodyFontStyle: normal !default;
 $bodyFontColor: $txtColor !default;
 
 // Button Settings
index 08cb408a8c5d5ca0ca37f70abddf12566cb68783..3529c4d36b5e63a2a1683febeec3a8aa21f4135c 100644 (file)
@@ -4,7 +4,7 @@
 
   * { @include box-sizing(border-box); }
   html { font-size: 62.5%; }
-  body { background: $white; font-family: $bodyFontFamily; font-size: ms(0); line-height: 1; color: $bodyFontColor; position: relative; -webkit-font-smoothing: antialiased; }
+  body { background: $white; font-family: $bodyFontFamily; font-weight: $bodyFontWeight; font-style: $bodyFontStyle; font-size: ms(0); line-height: 1; color: $bodyFontColor; position: relative; -webkit-font-smoothing: antialiased; }
 
 /* Links ---------------------- */
 
index ba476edfda9c596372f968cb8b1a163d907353cf..01f940661b9a4b84f1836a497cd39430b124b75c 100644 (file)
@@ -7,7 +7,7 @@
     direction: $textDirection;
   }
 
-  p { font-family: $bodyFontFamily; font-weight: $bodyFontWeight; font-size: ms(0); line-height: 1.6; margin-bottom: ms(1);
+  p { font-family: $bodyFontFamily; font-weight: $bodyFontWeight; font-style: $bodyFontStyle; font-size: ms(0); line-height: 1.6; margin-bottom: ms(1);
     &.lead { font-size: ms(0) * 1.25; line-height: 1.6; margin-bottom: ms(1); }
   }
   aside p { font-size: ms(0) - 1; line-height: 1.35; font-style: italic; }
@@ -15,6 +15,7 @@
   h1, h2, h3, h4, h5, h6 {
     font-family: $headerFontFamily;
     font-weight: $headerFontWeight;
+    font-style: $headerFontStyle;
     color: $headerFontColor;
     text-rendering: optimizeLegibility;
     line-height: 1.1;
index 22ab0a7eaa28cf60cab74597d7118621bc8c2060..8dc420b3561938b423a58805789c186a0e4ee3c1 100644 (file)
@@ -3,7 +3,7 @@
 
 /* Normal Buttons ---------------------- */
 
-  .button { width: auto; background: $mainColor; border: 1px solid darken(($mainColor), 15%); @include box-shadow(0 1px 0 $shinyEdge inset); color: $white; cursor: pointer; display: inline-block; font-family: $bodyFontFamily; font-size: ms(0); font-weight: bold; line-height: 1; margin: 0; outline: none; padding: $btnBase ($btnBase * 2) ($btnBase + 1); position: relative; text-align: center; text-decoration: none; @include single-transition(background-color, .15s, ease-in-out);
+  .button { width: auto; background: $mainColor; border: 1px solid darken(($mainColor), 15%); @include box-shadow(0 1px 0 $shinyEdge inset); color: $white; cursor: pointer; display: inline-block; font-family: $bodyFontFamily; font-weight: $bodyFontWeight; font-style: $bodyFontStyle; font-size: ms(0); line-height: 1; margin: 0; outline: none; padding: $btnBase ($btnBase * 2) ($btnBase + 1); position: relative; text-align: center; text-decoration: none; @include single-transition(background-color, .15s, ease-in-out);
 
     /* Hovers */
     &:hover { color: $white; background-color: darken(($mainColor), 10%); }
index 685e7c6ca8fb5079a1b687b4bae7a2e49bb83366..4e9c06368d5e76454cdbea982e007d0d8aa82e85 100644 (file)
 
 // $headerFontFamily: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
 // $headerFontWeight: bold;
+// $headerFontStyle: normal !default;
 // $headerFontColor: #222;
 // $bodyFontFamily: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
 // $bodyFontWeight: normal;
+// $bodyFontStyle: normal !default;
 // $bodyFontColor: $txtColor;
 
 // Button Settings
index c766b82d59d54b8214e5010130e16e0c4867c084..a081cd7e4cb02de34a63ae99ae8f40c106df980c 100644 (file)
 
 // $headerFontFamily: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif !default;
 // $headerFontWeight: bold !default;
+// $headerFontStyle: normal !default;
 // $headerFontColor: #222 !default;
 // $bodyFontFamily: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif !default;
 // $bodyFontWeight: normal !default;
+// $bodyFontStyle: normal !default;
 // $bodyFontColor: $txtColor !default;
 
 // // Button Settings