` element represents the main content of the page.
main {
- // Add the correct display in IE.
- display: block;
+ // Add your styles.
}
// Body copy
@@ -126,13 +115,10 @@ main {
// The default `font-size` and `line-height` properties are applied to the
// `` element and all paragraphs. In addition, `` (paragraphs) receive
// a top and bottom margin.
-//
-// Weight: -2
p,
pre {
- // Set 1 unit of vertical rhythm on the top and bottom margin.
- @include margin(1 0);
+ @include margin(.75 0);
}
// Preformatted text
diff --git a/assets/sass/base/hidden/_hidden.scss b/assets/sass/base/hidden/_hidden.scss
deleted file mode 100644
index fe6153b..0000000
--- a/assets/sass/base/hidden/_hidden.scss
+++ /dev/null
@@ -1,8 +0,0 @@
-// Hidden
-//
-// Some older browsers do not hide elements that have a `hidden` attribute.
-
-[hidden] {
- // Add the correct display in IE 10-.
- display: none;
-}
diff --git a/assets/sass/base/interactive/_interactive.scss b/assets/sass/base/interactive/_interactive.scss
index 9e95523..541c505 100644
--- a/assets/sass/base/interactive/_interactive.scss
+++ b/assets/sass/base/interactive/_interactive.scss
@@ -17,8 +17,6 @@ summary {
menu {
// Set 1 unit of vertical rhythm on the top and bottom margin.
@include margin(1 0);
- // Add the correct display in IE 9-.
- display: block;
// Set consistent space for the list style image.
padding: 0 0 0 $indent-amount;
diff --git a/assets/sass/base/links/_links.scss b/assets/sass/base/links/_links.scss
index 035f9f3..4981153 100644
--- a/assets/sass/base/links/_links.scss
+++ b/assets/sass/base/links/_links.scss
@@ -33,9 +33,4 @@ a:focus {
a:active {
color: $link-active;
-
- &:not(.button) {
- // Remove the gray background on active links in IE 10.
- background-color: transparent;
- }
}
diff --git a/assets/sass/base/scripting/_scripting.scss b/assets/sass/base/scripting/_scripting.scss
index 31ba2b0..a97c2ed 100644
--- a/assets/sass/base/scripting/_scripting.scss
+++ b/assets/sass/base/scripting/_scripting.scss
@@ -3,16 +3,11 @@
// Canvas
canvas {
- // Add the correct display in IE 9-.
- display: inline-block;
+ // Add your styles.
}
// Template
-//
-// Some older browsers do not hide elements the web components' `template`
-// element.
template {
- // Add the correct display in IE.
- display: none;
+ // Add your styles.
}
diff --git a/assets/sass/base/sections/_sections.scss b/assets/sass/base/sections/_sections.scss
index cc6f9cc..f981210 100644
--- a/assets/sass/base/sections/_sections.scss
+++ b/assets/sass/base/sections/_sections.scss
@@ -11,16 +11,6 @@ body {
padding: 0;
}
-// Add the correct display in IE 9-.
-article,
-aside,
-footer,
-header,
-nav,
-section {
- display: block;
-}
-
// Headings
//
// All HTML headings, `
` through ``, are available. `%h1` through `%h6`
diff --git a/assets/sass/base/tables/_tables.scss b/assets/sass/base/tables/_tables.scss
index 7868cdf..abfcc06 100644
--- a/assets/sass/base/tables/_tables.scss
+++ b/assets/sass/base/tables/_tables.scss
@@ -1,8 +1,6 @@
// Tables
//
// The `
` element displays tabular data in rows, columns, and cells.
-//
-// Weight: 1
table {
// Add vertical rhythm margins.
diff --git a/assets/sass/base/text/_text.scss b/assets/sass/base/text/_text.scss
index 4423c4d..c0b8601 100644
--- a/assets/sass/base/text/_text.scss
+++ b/assets/sass/base/text/_text.scss
@@ -1,8 +1,6 @@
// Text-level semantics
//
// The elements in this section give semantics to inline text.
-//
-// Weight: 1
// Abbreviation / Acroynym
//
@@ -25,8 +23,6 @@ abbr[title] {
//
// Feel free to use `` in HTML5. `` is meant to highlight words or phrases
// without conveying additional importance.
-//
-// Weight: -1
// Prevent the duplicate application of `bolder` by the next rule in Safari 6.
@@ -76,8 +72,7 @@ del {
// The `` element represents the defining instance of a term.
dfn {
- // Add the correct font style in Android 4.3-.
- font-style: italic;
+ // Add your styles.
}
// Italics
@@ -87,8 +82,6 @@ dfn {
//
// Feel free to use `` element in HTML5. `` is meant to convey voice,
// technical terms, etc.
-//
-// Weight: -1
i,
em {
@@ -109,9 +102,7 @@ ins {
// context.
mark {
- // Add the correct background and color in IE 9-.
- background-color: $mark-bg;
- color: $text;
+ // Add your styles.
}
// Quote
diff --git a/assets/sass/components/button/_button.scss b/assets/sass/components/button/_button.scss
index 23a5be1..826a658 100644
--- a/assets/sass/components/button/_button.scss
+++ b/assets/sass/components/button/_button.scss
@@ -8,21 +8,6 @@
// :hover - Hover styling.
// :active - Depressed button styling.
-// 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
-// controls in Android 4.
-// 2. Correct the inability to style clickable types in iOS and Safari.
-.button,
-%button,
-button,
-// 1
-html [type='button'],
-[type='reset'],
-[type='submit'] {
- // sass-lint:disable no-vendor-prefixes
- -moz-appearance: button;
- -webkit-appearance: button; // 2
-}
-
.button,
%button,
button,
@@ -53,8 +38,11 @@ button,
border-bottom-color: #b4b4b4;
border-radius: 2px;
-
// sass-lint:disable no-vendor-prefixes
+ // Correct the inability to style clickable types in iOS and Safari.
+ -moz-appearance: button;
+ -webkit-appearance: button;
+
// Remove the inner border and padding in Firefox.
&::-moz-focus-inner {
border-style: none;
diff --git a/assets/sass/components/language-selector/_language-selector.scss b/assets/sass/components/language-selector/_language-selector.scss
new file mode 100644
index 0000000..873db04
--- /dev/null
+++ b/assets/sass/components/language-selector/_language-selector.scss
@@ -0,0 +1,15 @@
+// Language selector
+
+.language-selector {
+ .navbar {
+ &::before {
+ content: '';
+ background-image: url('../images/language-icon.png');
+ background-size: 24px;
+ background-repeat: no-repeat;
+ height: 24px;
+ width: 24px;
+ margin-right: 8px;
+ }
+ }
+}
diff --git a/assets/sass/components/messages/_messages.scss b/assets/sass/components/messages/_messages.scss
new file mode 100644
index 0000000..6b1d40e
--- /dev/null
+++ b/assets/sass/components/messages/_messages.scss
@@ -0,0 +1,26 @@
+// Messages
+
+.message {
+ padding: 10px;
+ border-width: 1px;
+ border-style: solid;
+ width: 95%;
+
+ &.status {
+ background-color: $status-bg;
+ color: $status;
+ border-color: $status;
+ }
+
+ &.warning {
+ background-color: $warning-bg;
+ color: $warning;
+ border-color: $warning;
+ }
+
+ &.error {
+ background-color: $error-bg;
+ color: $error;
+ border-color: $error;
+ }
+}
diff --git a/assets/sass/init/_variables.scss b/assets/sass/init/_variables.scss
index c095e1c..5e16761 100644
--- a/assets/sass/init/_variables.scss
+++ b/assets/sass/init/_variables.scss
@@ -148,8 +148,6 @@ $zen-gutters: 20px;
// `$indent-amount` controls the amount lists, blockquotes and comments are indented.
//
// `$include-rtl` controls whether RTL styles are output.
-//
-// weight: 10
$indent-amount: 2 * $base-font-size;
diff --git a/assets/sass/print.scss b/assets/sass/print.scss
index 26baccc..c6475c7 100644
--- a/assets/sass/print.scss
+++ b/assets/sass/print.scss
@@ -4,14 +4,10 @@
// Colors and Sass
//
// Documentation for colors and Sass mixins and variables.
-//
-// Weight: -1
@import 'init';
// Components
-//
-// Weight: 1
@import 'components/print-none/print-none';
diff --git a/assets/sass/styles.scss b/assets/sass/styles.scss
index b35d306..67c0dd4 100644
--- a/assets/sass/styles.scss
+++ b/assets/sass/styles.scss
@@ -4,12 +4,9 @@
// We categorize our components by creating headings in this file. See the
// description on the style guide home page for more information.
-
// Colors and Sass
//
// Documentation for colors and Sass mixins and variables.
-//
-// Weight: -1
@import 'init';
@@ -36,8 +33,6 @@
//
// Design components are reusable designs that can be applied using just the CSS
// class names specified in the component.
-//
-// Weight: 1
@import 'components/box/box';
@import 'components/clearfix/clearfix';
@@ -47,7 +42,9 @@
@import 'components/inline-links/inline-links';
@import 'components/inline-sibling/inline-sibling';
@import 'components/inverted-box/inverted-box';
+@import 'components/language-selector/language-selector';
@import 'components/list-straight-left/list-straight-left';
+@import 'components/messages/messages';
@import 'components/responsive-video/responsive-video';
@import 'components/visually-hidden/visually-hidden';
@import 'components/watermark/watermark';
@@ -57,8 +54,6 @@
//
// Navigation components are specialized design components that are used for
// page navigation.
-//
-// Weight: 2
@import 'navigation/more-link/more-link';
@import 'navigation/navbar/navbar';