Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: scss/_content.scss

Issue 29361647: Issue 4607 - Default content styles (Closed)
Patch Set: Addressed comments, removed unnessisary components, simplified content Created Nov. 17, 2016, 4:08 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « package.json ('k') | scss/_reset.scss » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scss/_content.scss
===================================================================
new file mode 100644
--- /dev/null
+++ b/scss/_content.scss
@@ -0,0 +1,264 @@
+/*!
+ * This file is part of universal-design-language
+ * Copyright (C) 2016 Eyeo GmbH
+ *
+ * universal-design-language is free software: you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * universal-design-language is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with web.starter-kit. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+/* UDL content styles
+ *******************************************************************************
+ * - Global
+ * - Headings
+ * - Body content
+ * - Alignment
+ ******************************************************************************/
+
+/* Global
+ ******************************************************************************/
+
+html
+{
+ font-family: $primary-font;
+ font-size: $medium-font;
+ line-height: 1.15;
+}
+
+/**
+ * Center content within a (responsive) fixed width
+ */
+.container
+{
+ width: $mobile-width;
+ max-width: 100%;
+ margin: 0px auto;
+ padding: 0px $small-space;
+}
+
+@media(min-width: $tablet-breakpoint)
+{
+ .container
+ {
+ width: $tablet-width;
+ }
+}
+
+@media(min-width: $desktop-breakpoint)
+{
+ .container
+ {
+ width: $desktop-width;
+ }
+}
+
+p,
+ol,
+ul,
+dl,
+pre,
+blockquote
+{
+ /* Set consistent margins (opinionated) */
+ margin: $small-space 0px;
+}
+
+/* Headings
+ ******************************************************************************/
+
+h1,
+h2,
+h3,
+h4,
+h5,
+h6
+{
+ margin: $medium-space 0 $small-space 0;
+}
+
+h1
+{
+ font-size: round($large-font * 1.6);
+}
+
+h2
+{
+ font-size: round($large-font * 1.4);
+}
+
+h3
+{
+ font-size: round($large-font * 1.2);
+}
+
+h4
+{
+ font-size: $large-font;
+}
+
+h5
+{
+ font-size: $medium-font;
+}
+
+h6
+{
+ font-size: $small-font;
+}
+
+/* Body content
+ ******************************************************************************/
+
+abbr
+{
+ text-decoration: underline dotted;
+ cursor: help;
+}
+
+b,
+strong
+{
+ font-weight: $bold-weight;
+}
+
+small
+{
+ font-size: $small-font;
+}
+
+sup
+{
+ position: relative;
+ font-size: 75%;
+ vertical-align: super;
+}
+
+a,
+a:visited
+{
+ color: $accent;
+ /* Remove the gray background on active links in IE 10. */
+ background-color: transparent;
+ text-decoration: none;
+}
+
+a:hover,
+a:active,
+a:focus
+{
+ text-decoration: underline;
+}
+
+img
+{
+ /* Make fixed width images responsive */
+ max-width: 100%;
+ /* Remove the border on images inside links in IE 10-. */
+ border-style: none;
+}
+
+hr
+{
+ border: 1px solid $secondary-light;
+}
+
+[dir="ltr"] blockquote
+{
+ padding-left: $small-space;
+ border-left: 5px solid $secondary-light;
+}
+
+[dir="rtl"] blockquote
+{
+ padding-right: $small-space;
+ border-right: 5px solid $secondary-light;
+}
+
+[dir="ltr"] ol,
+[dir="ltr"] ul
+{
+ padding-left: $small-space * 1.5;
+}
+
+[dir="rtl"] ol,
+[dir="rtl"] ul
+{
+ padding-right: $small-space * 1.5;
+}
+
+li
+{
+ margin: $small-space / 2 0px;
+}
+
+ol ol,
+ul ul,
+ol ul,
+ul ol
+{
+ /* prevent double spacing lists */
+ margin: 0px;
+}
+
+ol ol
+{
+ list-style-type: lower-alpha;
+}
+
+dt
+{
+ /* undo browser default (opinionated)*/
+ font-weight: $bold-weight;
+}
+
+dd
+{
+ margin: $small-space / 2 0px $small-space 0px;
+}
+
+/**
+ * Remove list style from vertical lists
+ */
+.unstyled-list,
+{
+ list-style-type: none;
+}
+
+[dir="ltr"] .unstyled-list
+{
+ padding-left: 0px;
+}
+
+[dir="rtl"] .unstyled-list
+{
+ padding-right: 0px;
+}
+
+[dir="ltr"] .unstyled-list .unstyled-list
+{
+ padding-left: $medium-space;
+}
+
+[dir="rtl"] .unstyled-list .unstyled-list
+{
+ padding-right: $small-space;
+}
+
+/* Alignment
+ ******************************************************************************/
+
+.full-width
+{
+ display: block;
+ width: 100%;
+ margin: $small-space 0px;
+}
« no previous file with comments | « package.json ('k') | scss/_reset.scss » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld