octophant('scss/**/*.scss', {
title: 'Foundation for Emails Settings',
output: 'testing/src/assets/scss/_settings.scss',
- sort: ['global', 'grid', 'block-grid', 'media-query', 'type']
+ sort: ['global', 'grid', 'block-grid', 'type']
});
});
/// @type Length
$global-width-small: 95% !default;
-/// Gutter for grid elements.
-/// @type length
-$global-gutter: 16px !default;
+/// Body background color.
+/// @type Length
+$body-background: $light-gray !default;
/// Color for the container background
/// @type Color
$container-background-color: $white !default;
+/// Global font color.
+/// @type Color
+$global-font-color: $black !default;
+
+/// Global font family.
+/// @type Font
+$body-font-family: Helvetica, Arial, sans-serif !default;
+
+/// Global padding.
+/// @type Number
+$global-padding: 16px !default;
+
+/// Global margin. Margin requires a capital 'M' to workin Outlook.com
+/// @type Number
+$global-margin: 32px !default;
+
/// Global raidus of radius-corners.
/// @type Number
$global-radius: 3px !default;
/// @type Weight
$button-font-weight: bold !default;
+/// Margin around buttons.
+/// @type List
+$button-margin: 0 0 $global-margin 0 !default;
+
/// Background color of buttons.
/// @type Color
$button-background: $primary-color !default;
/// @type Border
$button-border: 2px solid $button-background !default;
+/// Border radius of buttons. Not supported by all email clients.
+/// @type Number
+$button-radius: $global-radius !default;
+
+/// Border radius of rounded buttons. Not supported by all email clients.
+/// @type Number
+$button-rounded: $global-rounded !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);
width: auto !important;
table {
- margin-bottom: 10px;
+ margin-bottom: $button-margin;
td {
width: auto !important;
background: $button-background;
border: 2px solid $button-background;
+ &.radius {
+ border-radius: $button-radius;
+ }
+
+ &.rounded {
+ border-radius: $button-rounded;
+ }
+
a {
font-family: $body-font-family;
font-size: $button-font-size-default;
display: inline-block;
padding: $button-padding-default;
border: 0px solid $button-background;
+ border-radius: $button-radius;
}
}
}
// Licensed under MIT Open Source
////
-/// @group inline-list
+/// @group menu
////
/// Padding inside a menu item.
/// @group normalize
////
-/// Color of a divider.
-/// @type Color
-$hr-background: $medium-gray !default;
-
-/// Height of a divider.
-/// @type Length
-$hr-height: 1px !default;
-
-$paragraph-margin-bottom: 10px !default;
-
#outlook a {
padding: 0;
}
text-align: left;
}
-hr {
- color: $hr-background;
- background-color: $hr-background;
- height: $hr-height;
- border: none;
-}
+
/// @group typography
////
-/// Global font color.
-/// @type Color
-$global-font-color: $black !default;
-
-/// Global font family.
-/// @type Font
-$body-font-family: Helvetica, Arial, sans-serif !default;
-
/// Global font weight.
/// @type Keyword
$global-font-weight: normal !default;
+/// Global font weight.
+/// @type Keyword
+$header-color: inherit !default;
+
/// Global line height.
/// @type Number
$global-line-height: 1.3 !default;
/// Font size of body text.
/// @type Number
-$body-font-size: 14px !default;
+$global-font-size: 14px !default;
/// Line height of body text.
/// @type Number
/// @type Number
$h6-font-size: 20px !default;
+/// Margin bottom of `<h1>` through `<h6>` elements.
+/// @type Number
+$header-margin-bottom: 10px !default;
+
/// Margin bottom of paragraphs.
/// @type Number
$paragraph-margin-bottom: 10px !default;
/// Font size of lead paragraphs.
/// @type Number
-$lead-font-size: 18px !default;
+$lead-font-size: $global-font-size * 1.25 !default;
/// Line height of lead paragraphs.
/// @type Number
-$lead-line-height: 21px !default;
+$lead-line-height: 1.6 !default;
/// Padding inside paragraphs.
/// @type Number
$text-padding: 10px !default;
+/// Default line height for subheaders.
+/// @type Number
+$subheader-lineheight: 1.4 !default;
+
+/// Default font color for subheaders.
+/// @type Color
+$subheader-color: $dark-gray !default;
+
+/// Default font weight for subheaders.
+/// @type String
+$subheader-font-weight: $global-font-weight !default;
+
+/// Default top margin for subhheaders.
+/// @type Number
+$subheader-margin-top: 4px !default;
+
+/// Default bottom margin for subheaders.
+/// @type Number
+$subheader-margin-bottom: 8px !default;
+
+/// Maximum width of a divider.
+/// @type Number
+$hr-width: $global-width !default;
+
+/// Default border for a divider.
+/// @type List
+$hr-border: 1px solid $medium-gray !default;
+
+/// Default margin for a divider.
+/// @type Number | List
+$hr-margin: 20px auto !default;
+
/// Text decoration for anchors.
/// @type Keyword
$anchor-text-decoration: none !default;
/// @type Color
$anchor-color-active: $anchor-color-hover !default;
+/// Default font size for statistic numbers.
+/// @type Number
+$stat-font-size: 40px !default;
+
body,
table.body,
h1,
h4,
h5,
h6 {
+ header: $header-color;
word-break: normal;
font-family: $header-font-family;
+ Margin-bottom: $header-margin-bottom;
}
h1 {
p,
td,
th {
- font-size: $body-font-size;
+ font-size: $global-font-size;
line-height: $body-line-height;
}
p {
- margin-bottom: $paragraph-margin-bottom;
+ Margin-bottom: $paragraph-margin-bottom;
&.lead {
font-size: $lead-font-size;
line-height: $lead-line-height;
}
+
+ &.subheader {
+ Margin-top: $subheader-margin-top;
+ Margin-bottom: $subheader-margin-bottom;
+ font-weight: $subheader-font-weight;
+ line-height: $subheader-lineheight;
+ color: $subheader-color;
+ }
}
small {
}
}
}
+
+// Horizontal rule
+
+hr {
+ max-width: $hr-width;
+ height: 0;
+ border-right: 0;
+ border-top: 0;
+ border-bottom: $hr-border;
+ border-left: 0;
+ Margin: $hr-margin;
+ clear: both;
+}
+
+// Use to style a large number to display a statistic
+.stat {
+ font-size: $stat-font-size;
+ line-height: 1;
+
+ p + & {
+ Margin-top: -16px;
+ }
+}
+
+
/// @type Number
$grid-column-count: 12 !default;
-/// Default padding for the top of the wrapper.
-/// @type Number
-$wrapper-padding-top: 10px !default;
+/// Gutter for grid elements.
+/// @type length
+$global-gutter: 16px !default;
/// Default padding for the bottom of a column.
/// @type Number
-$column-padding-bottom: 16px !default;
+$column-padding-bottom: $global-padding !default;
/// Default padding for the right of a sub-column.
/// @type Number
$sub-column-padding-right: $global-gutter / 2 !default;
-/// Body background color.
-/// @type Length
-$body-background-color: $light-gray !default;
-
//For viewing email in browser
html {
min-height: 100%;
- background: $body-background-color;
+ background: $body-background;
}
table {
&.body {
- background: $body-background-color;
+ background: $body-background;
height: 100%;
width: 100%;
}
th.columns,
th.column {
margin: 0 auto;
- padding-left: $grid-column-gutter;
+ padding-left: $global-gutter;
padding-bottom: $column-padding-bottom;
}
$pre-color: #ff6908;
$global-width: 580px;
$global-width-small: 95%;
+$global-gutter: 16px;
$container-background-color: $white;
+$global-padding: 16px;
+$global-margin: 16px;
$global-radius: 3px;
$global-rounded: 500px;
-$global-breakpoint: '(max-width: 580px)';
+$global-breakpoint: $global-width + $global-gutter;
// 2. Grid
// -------
$grid-column-count: 12;
-$wrapper-padding-top: 10px;
$column-padding-bottom: 16px;
-$grid-column-gutter: 16px;
-$sub-column-padding-right: $grid-column-gutter / 2;
-$body-background-color: $light-gray;
+$sub-column-padding-right: $global-gutter / 2;
+$body-background: $light-gray;
// 3. Block Grid
// -------------
$body-font-family: Helvetica, Arial, sans-serif;
$global-font-weight: normal;
$global-line-height: 1.3;
-$body-font-size: 14px;
+$global-font-size: 14px;
$body-line-height: 19px;
$header-font-family: $body-font-family;
$header-font-weight: $global-font-weight;
$h6-font-size: 20px;
$paragraph-margin-bottom: 10px;
$small-font-size: 10px;
-$lead-font-size: 18px;
-$lead-line-height: 21px;
-$text-padding: 10px;
+$lead-font-size: $global-font-size * 1.25;
+$lead-line-height: 1.6;
+$subheader-lineheight: 1.4;
+$subheader-color: $dark-gray;
+$subheader-font-weight: $global-font-weight;
+$subheader-margin-top: 0.2rem;
+$subheader-margin-bottom: 0.5rem;
+$stat-font-size: 2.5rem;
$anchor-text-decoration: none;
$anchor-color: $primary-color;
$anchor-color-visited: $anchor-color;
default: 16px,
large: 20px,
);
+$button-margin: 0 0 $global-margin 0;
$button-color: $white;
$button-color-alt: $medium-gray;
$button-font-weight: bold;
$button-background: $primary-color;
$button-border: 2px solid $button-background;
+$button-radius: $global-radius;
// 7. Callout
// ----------