/// @group button
////
-/// Default padding for button.
-/// @type List
-$button-padding: 12px 10px 12px 10px !default;
-
-/// Default padding for a tiny button.
-/// @type List
-$button-padding-tiny: 5px 4px 4px 4px !default;
-
-/// Default padding for a small button.
-/// @type List
-$button-padding-small: 8px 3px 7px 3px !default;
-
-/// Default padding for a large button.
-/// @type List
-$button-padding-large: 13px 26px 12px 26px!default;
+/// Padding inside buttons at various sizes.
+/// @type Map
+$button-padding: (
+ default: 12px 10px 12px 10px,
+ tiny: 5px 4px 4px 4px,
+ small: 8px 3px 7px 3px,
+ large: 13px 26px 12px 26px,
+) !default;
+
+/// Font sizes of buttons at various sizes.
+/// @type Map
+$button-font-size: (
+ default: 20px,
+ tiny: 12px,
+ small: 16px,
+ large: 24px,
+) !default;
/// Default color of the font in a button.
/// @type Color
-$button-font-color: $white !default;
+$button-color: $white !default;
/// Default color of the font in an alternate button.
/// @type Color
-$button-font-color-alt: $medium-gray !default;
+$button-color-alt: $medium-gray !default;
/// Default font weight for a button.
/// @type String
$button-font-weight: bold !default;
-/// Default font size for a button.
-/// @type Number
-$button-font-size: 20px !default;
-
-/// Default font size for a tiny button.
-/// @type Number
-$button-font-size-tiny: 12px !default;
-
-/// Default font size for a small button.
-/// @type Number
-$button-font-size-small: 16px !default;
-
-/// Default font size for a large button.
-/// @type Number
-$button-font-size-large: 24px !default;
-
/// Default backgrounnd color for a button.
/// @type Color
-$button-background-color: $primary-color !default;
+$button-background: $primary-color !default;
/// Default border color for a button.
/// @type Color
-$button-border: 2px solid $button-background-color !default;
+$button-border: 2px solid $button-background !default;
+
+// Internal values for button font size
+// [TODO] Replace references below with map-get() calls
+$button-font-size-default: map-get($button-font-size, default);
+$button-font-size-tiny: map-get($button-font-size, tiny);
+$button-font-size-small: map-get($button-font-size, small);
+$button-font-size-large: map-get($button-font-size, large);
+
+// Internal values for button padding
+// [TODO] Replace references below with map-get() calls
+$button-padding-default: map-get($button-padding, default);
+$button-padding-tiny: map-get($button-padding, tiny);
+$button-padding-small: map-get($button-padding, small);
+$button-padding-large: map-get($button-padding, large);
table.button {
table {
td {
width: auto !important;
text-align: left;
- color: $button-font-color;
- background: $button-background-color;
- border: 2px solid $button-background-color;
+ color: $button-color;
+ background: $button-background;
+ border: 2px solid $button-background;
a {
font-family: $global-font-family;
- font-size: $button-font-size;
+ font-size: $button-font-size-default;
font-weight: $button-font-weight;
- color: $button-font-color;
+ color: $button-color;
text-decoration: none;
display: inline-block;
- padding: $button-padding;
- border: 0px solid $button-background-color;
+ padding: $button-padding-default;
+ border: 0px solid $button-background;
}
}
}
table.button.large:hover table tr td a,
table.button.large:active table tr td a,
table.button.large table tr td a:visited {
- color: $button-font-color;
+ color: $button-color;
}
table.button.tiny {
table.button:active {
table {
td {
- background: darken($button-background-color, 10%);
- color: $button-font-color;
+ background: darken($button-background, 10%);
+ color: $button-color;
}
}
}
table.button:active {
table {
a {
- border: 0px solid darken($button-background-color, 10%);
+ border: 0px solid darken($button-background, 10%);
}
}
}
table {
td {
background: $secondary-color;
- color: $button-font-color-alt;
+ color: $button-color-alt;
border: 2px solid $secondary-color;
}
a {
- color: $button-font-color-alt;
+ color: $button-color-alt;
border: 0px solid $secondary-color;
}
}
table {
td {
background: lighten($secondary-color, 10%);
- color: $button-font-color-alt;
+ color: $button-color-alt;
}
a {
table.button.secondary:hover {
table {
td a {
- color: $button-font-color-alt;
+ color: $button-color-alt;
}
}
}
table.button.secondary:active {
table {
td a {
- color: $button-font-color-alt;
+ color: $button-color-alt;
}
}
}
table.button.secondary {
table {
td a:visited {
- color: $button-font-color-alt;
+ color: $button-color-alt;
}
}
}
/// @group callout
////
-/// Defualt background color of a callout.
+/// Background color of a callout.
/// @type Color
-$callout-background-color: $light-gray !default;
+$callout-background: $light-gray !default;
-/// Defualt padding color of a callout.
-/// @type Number
+/// Padding inside a callout.
+/// @type Length
$callout-padding: 10px !default;
-/// Default border for a callout.
-/// @type List
-$callout-border: 1px solid darken($callout-background-color, 20%) !default;
+/// Border around a callout.
+/// @type Border
+$callout-border: 1px solid darken($callout-background, 20%) !default;
-/// Default border for a success callout.
-/// @type List
+/// Border around a callout with the `.success` class.
+/// @type Border
$callout-border-success: 1px solid darken($success-color, 20%) !default;
-/// Default border for a warning callout.
-/// @type List
+/// Border around a callout with the `.warning` class.
+/// @type Border
$callout-border-warning: 1px solid darken($warning-color, 20%) !default;
-/// Default border for a alert callout.
-/// @type List
+/// Border around a callout with the `.alert` class.
+/// @type Border
$callout-border-alert: 1px solid darken darken($alert-color, 20%) !default;
td.callout {
width: 100%;
border: $callout-border;
padding: $callout-padding !important;
- background: $callout-background-color;
+ background: $callout-background;
&.success {
background: $success-color !important;
/// @group media-query
////
-/// Default container width for small screens.
+/// Container width for small screens.
/// @type Number
-$small-container-width: 95% !default;
+$container-width-small: 95% !default;
-/// Default small break point.
+/// Small breakpoint.
/// @type Number
$small-range: $container-width !default;
}
table.body .container {
- width: $small-container-width !important;
+ width: $container-width-small !important;
}
//If it supports border-box, why not? Am I right?
/// @group inline-list
////
-/// Default padding for a menu item.
+/// Padding inside a menu item.
/// @type Number
$menu-item-padding: 20px !default;
-/// Default padding for a menu item.
+/// Right-hand spacing of menus with the `.simple` class.
/// @type Number
-$menu-simple-item-gutter: 10px !default;
+$menu-simple-item-spacing: 10px !default;
table.menu {
td,
th {
padding: 0;
- padding-right: $menu-simple-item-gutter;
+ padding-right: $menu-simple-item-spacing;
}
}
/// @group normalize
////
-/// Defualt color of an hr.
+/// Color of a divider.
/// @type Color
-$hr-color: $medium-gray !default;
+$hr-background: $medium-gray !default;
-/// Default height for an hr.
+/// Height of a divider.
/// @type Number
$hr-height: 1px !default;
}
hr {
- color: $hr-color;
- background-color: $hr-color;
+ color: $hr-background;
+ background-color: $hr-background;
height: $hr-height;
border: none;
}
/// Defualt font size for lead paragraphs.
/// @type Number
-$paragraph-lead-font-size: 18px !default;
+$lead-font-size: 18px !default;
/// Defualt line height for lead paragraphs.
/// @type Number
-$paragraph-lead-line-height: 21px !default;
+$lead-line-height: 21px !default;
/// Default margin bottom for paragraphs.
/// @type Number
/// Defualt anchor font color.
/// @type Color
-$anchor-font-color: $primary-color !default;
+$anchor-color: $primary-color !default;
/// Defualt font color for a visited anchor.
/// @type Color
-$anchor-font-color-visited: $anchor-font-color !default;
+$anchor-color-visited: $anchor-color !default;
/// Defualt font color for an anchor on hover.
/// @type Color
-$anchor-font-color-hover: darken($primary-color, 10%) !default;
+$anchor-color-hover: darken($primary-color, 10%) !default;
/// Defualt font color for an active anchor.
/// @type Color
-$anchor-font-color-active: $anchor-font-color-hover !default;
+$anchor-color-active: $anchor-color-hover !default;
body,
table.body,
margin-bottom: $paragraph-margin-bottom;
&.lead {
- font-size: $paragraph-lead-font-size;
- line-height: $paragraph-lead-line-height;
+ font-size: $lead-font-size;
+ line-height: $lead-line-height;
}
}
}
a {
- color: $anchor-font-color;
+ color: $anchor-color;
text-decoration: none;
&:hover {
- color: $anchor-font-color-hover;
+ color: $anchor-color-hover;
}
&:active {
- color: $anchor-font-color-active;
+ color: $anchor-color-active;
}
&:visited {
- color: $anchor-font-color-visited;
+ color: $anchor-color-visited;
}
}
h5 a:visited,
h6,
h6 a:visited {
- color: $anchor-font-color;
+ color: $anchor-color;
}
pre {
/// @group block-grid
////
-///Defualt number of elements in the block grid per row.
-///@type Number
-$block-grid-elements: 8 !default;
+/// The highest number of `.x-up` classes available when using the block grid CSS.
+/// @type Number
+$block-grid-max: 8 !default;
-///Defualt gutter between elements in the block grid.
-///@type Number
-$block-grid-spacing: $grid-column-gutter !default;
+/// Gutter between elements in a block grid.
+/// @type Number
+$block-grid-gutter: $grid-column-gutter !default;
///Creates all of the block-grid classes.
@mixin block-grid {
- @for $i from 2 through $block-grid-elements {
+ @for $i from 2 through $block-grid-max {
.up-#{$i} td {
- width: floor(($container-width - $i * $block-grid-spacing) / $i) !important;
+ width: floor(($container-width - $i * $block-grid-gutter) / $i) !important;
}
}
}
td {
display: inline-block;
- padding: $block-grid-spacing / 2;
+ padding: $block-grid-gutter / 2;
}
}
// 4. Button
// ---------
-$button-padding: 12px 10px 12px 10px;
-$button-padding-tiny: 5px 4px 4px 4px;
-$button-padding-small: 8px 3px 7px 3px;
-$button-padding-large: 13px 26px 12px 26px!default;
+// $button-padding: 12px 10px 12px 10px;
+// $button-padding-tiny: 5px 4px 4px 4px;
+// $button-padding-small: 8px 3px 7px 3px;
+// $button-padding-large: 13px 26px 12px 26px!default;
$button-font-color: $white;
$button-font-color-alt: $medium-gray;
$button-font-weight: bold;
-$button-font-size: 20px;
-$button-font-size-tiny: 12px;
-$button-font-size-small: 16px;
-$button-font-size-large: 24px;
+// $button-font-size: 20px;
+// $button-font-size-tiny: 12px;
+// $button-font-size-small: 16px;
+// $button-font-size-large: 24px;
$button-background-color: $primary-color;
$button-border: 1px solid $button-background-color;
$anchor-font-color-visited: $anchor-font-color;
$anchor-font-color-hover: darken($primary-color, 10%);
$anchor-font-color-active: $anchor-font-color-hover;
-