Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #201: finish style guide design. #1

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 45 additions & 2 deletions core/themes/seven/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
body {
color: #000;
background: #fff;
font: normal 81.3%/1.538em "Lucida Grande", "Lucida Sans Unicode", sans-serif;
font: normal 81.3%/1.538em "Open Sans", "Lucida Grande", "Lucida Sans Unicode", sans-serif;
}
a {
color: #0074bd;
Expand All @@ -31,7 +31,7 @@ h4,
h5,
h6 {
font-weight: bold;
margin: 10px 0;
margin: 20px 0 10px 0;
}
h1 {
font-size: 1.538em;
Expand Down Expand Up @@ -910,6 +910,49 @@ div.add-or-remove-shortcuts {
padding: 0 5px 5px 0; /* LTR */
}

/**
* Style guide.
*/
.styleguide-column1of1-block {
display: inline-block;
width: 100%;
margin-bottom: 10px;
}
.styleguide-column1of2-block,
.styleguide-column2of2-block {
display: inline-block;
float: left;
width: 600px;
height: 570px;
}
/* .styleguide-column1of2-block {
left: 0;
}
.styleguide-column2of2-block {
left: 750px;
} */
.styleguide-column1of4-block,
.styleguide-column2of4-block,
.styleguide-column3of4-block,
.styleguide-column4of4-block {
display: inline-block;
float: left;
width: 300px;
height: 200px;
margin-top: 10px;
}
/* .styleguide-column1of4-block {
left: 0;
}
.styleguide-column2of4-block {
left: 375px;
}
.styleguide-column3of4-block {
left: 750px;
}
.styleguide-column4of4-block {
left: 1025px;
} */
/* Dropbutton */
.js .dropbutton-widget {
background-color: #fff;
Expand Down
39 changes: 28 additions & 11 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<head>
<meta charset="utf-8" />
<link rel="shortcut icon" href="core/misc/favicon.ico" type="image/vnd.microsoft.icon" />
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,700' rel='stylesheet' type='text/css'>
<meta name="Generator" content="Drupal 8 (http://drupal.org)" />
<title>Style guide | backdrop</title>
<style media="all" type="text/css">
Expand Down Expand Up @@ -129,11 +130,9 @@ <h2 class="element-invisible">Secondary tabs</h2>
<div class="region region-content">
<div id="block-system-main" class="block block-system">
<div class="content">
<a name="a"></a>
<h2 class="styleguide">Link</h2>
<div class="styleguide">In eros sit <a href="/node">velit ante iaculis</a> amet aliquam velit consectetur.</div>
<div class="styleguide-column1of2-block">
<a name="b"></a>
<h2 class="styleguide">B</h2>
<h2 class="styleguide">Bold</h2>
<div class="styleguide">Sit massa consequat <b>dui iaculis pellentesque</b> lacinia lorem nunc sit.</div>
<a name="del"></a>
<h2 class="styleguide">Delete</h2>
Expand All @@ -155,16 +154,14 @@ <h2 class="styleguide">Figure</h2>
<figure>dignissim sit dolor</figure>
et lacus neque amet.
</div>
<a name="hr"></a>
<h2 class="styleguide">hr</h2>
<div class="styleguide">
Nec gravida vulputate
<hr>
dictum lorem eros</hr> lacinia magna nisl tempor.
</div>
<a name="i"></a>
<h2 class="styleguide">Italic</h2>
<div class="styleguide">Tincidunt nec consequat <i>lorem ac ante</i> dolor et tincidunt luctus.</div>
</div>
<div class="styleguide-column2of2-block">
<a name="a"></a>
<h2 class="styleguide">Link</h2>
<div class="styleguide">In eros sit <a href="/node">velit ante iaculis</a> amet aliquam velit consectetur.</div>
<a name="q"></a>
<h2 class="styleguide">Quote</h2>
<div class="styleguide">Accumsan nam neque <q>tempor ipsum nunc</q> ac a et nam.</div>
Expand All @@ -186,6 +183,16 @@ <h2 class="styleguide">Superscript</h2>
<a name="u"></a>
<h2 class="styleguide">Underline</h2>
<div class="styleguide">Consectetur malesuada lorem <u>lorem tincidunt eros</u> tortor dictum convallis dignissim.</div>
</div>
<div class="styleguide-column1of1-block">
<a name="hr"></a>
<h2 class="styleguide">hr</h2>
<div class="styleguide">
Nec gravida vulputate
<hr>
dictum lorem eros</hr> lacinia magna nisl tempor.
</div>
</div>
<a name="status-message"></a>
<h2 class="styleguide">Status message</h2>
<div class="styleguide">
Expand All @@ -210,6 +217,7 @@ <h2 class="element-invisible">Status message</h2>
Aenean quis leo sit amet tellus tempus cursus.
</div>
</div>
<div class="styleguide-column1of4-block">
<a name="ul"></a>
<h2 class="styleguide">Unordered list</h2>
<div class="styleguide">
Expand All @@ -223,6 +231,8 @@ <h2 class="styleguide">Unordered list</h2>
</ul>
</div>
</div>
</div>
<div class="styleguide-column2of4-block">
<a name="ol"></a>
<h2 class="styleguide">Ordered list</h2>
<div class="styleguide">
Expand All @@ -236,6 +246,8 @@ <h2 class="styleguide">Ordered list</h2>
</ol>
</div>
</div>
</div>
<div class="styleguide-column3of4-block">
<a name="ul_title"></a>
<h2 class="styleguide">Unordered list, with title</h2>
<div class="styleguide">
Expand All @@ -250,6 +262,8 @@ <h3>Enim erat aliquam</h3>
</ul>
</div>
</div>
</div>
<div class="styleguide-column4of4-block">
<a name="ol_title"></a>
<h2 class="styleguide">Ordered list, with title</h2>
<div class="styleguide">
Expand All @@ -264,6 +278,8 @@ <h3>Nam nec sed</h3>
</ol>
</div>
</div>
</div>
<div class="styleguide-column1of1-block">
<a name="table"></a>
<h2 class="styleguide">Table</h2>
<div class="styleguide">
Expand Down Expand Up @@ -317,6 +333,7 @@ <h2 class="styleguide">Table</h2>
</tbody>
</table>
</div>
</div>
<a name="blockquote"></a>
<h2 class="styleguide">Blockquote</h2>
<div class="styleguide">
Expand Down