mirror of https://github.com/moparisthebest/mail
Add basic layout and styling to styleguide
parent
69ed386765
commit
8807830122
@ -0,0 +1,18 @@
|
||||
// Third party libs
|
||||
@import "lib/scut";
|
||||
|
||||
// Config
|
||||
@import "base/config"; // Modify this for custom colors, font-sizes, etc
|
||||
|
||||
// Mixins
|
||||
@import "mixins/responsive";
|
||||
@import "mixins/scrollbar";
|
||||
|
||||
// Styleguide specific blocks
|
||||
// Namespaced with "sg-"
|
||||
// (BEM-like Naming, see http://cssguidelin.es/#bem-like-naming)
|
||||
|
||||
@import "styleguide/layout";
|
||||
@import "styleguide/typo";
|
||||
@import "styleguide/sections";
|
||||
@import "styleguide/icon-list";
|
@ -0,0 +1,20 @@
|
||||
.sg-icon-list {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
& > li {
|
||||
display: inline-block;
|
||||
padding: 0 10px;
|
||||
margin-bottom: 20px;
|
||||
text-align: center;
|
||||
color: $color-text-light;
|
||||
width: 10em;
|
||||
& > svg {
|
||||
display: block;
|
||||
margin: 0 auto 10px;
|
||||
width: 2em;
|
||||
height: 2em;
|
||||
fill: $color-text;
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,82 @@
|
||||
// Styleguide layout
|
||||
|
||||
.sg-layout {
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
// allow scrolling on iOS
|
||||
-webkit-overflow-scrolling: touch;
|
||||
|
||||
&__canvas {
|
||||
min-height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: $color-bg;
|
||||
color: $color-text;
|
||||
}
|
||||
|
||||
&__header {
|
||||
padding: 50px 20px;
|
||||
background: $color-bg-dark;
|
||||
border-bottom: 1px solid darken($color-bg-dark, 10%);
|
||||
img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
max-width: 300px;
|
||||
max-height: 4em;
|
||||
margin: 0 auto 10px;
|
||||
}
|
||||
}
|
||||
|
||||
&__main {
|
||||
flex-grow: 1;
|
||||
width: 100%;
|
||||
padding: 10px 20px;
|
||||
margin: 0 auto;
|
||||
max-width: 1150px;
|
||||
}
|
||||
|
||||
&__footer {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
font-size: $font-size-small;
|
||||
color: $color-text-light;
|
||||
line-height: 1.5;
|
||||
padding: 10px 20px;
|
||||
|
||||
nav {
|
||||
ul {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
li {
|
||||
display: inline;
|
||||
&:after {
|
||||
display: inline-block;
|
||||
content: ' | ';
|
||||
margin: 0 0.5em;
|
||||
}
|
||||
&:last-child:after {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
&:hover,
|
||||
&:focus {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include respond-to(md) {
|
||||
text-align: left;
|
||||
nav {
|
||||
float: right;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,33 @@
|
||||
.sg-section {
|
||||
margin: 50px 0;
|
||||
}
|
||||
|
||||
.sg-block {
|
||||
margin: 20px 0;
|
||||
padding-top: 20px;
|
||||
border-top: 1px solid $color-border-light;
|
||||
|
||||
&:last-of-type {
|
||||
border-bottom: 1px solid $color-border-light;
|
||||
}
|
||||
|
||||
&__description {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
&__example {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
@include respond-to(lg) {
|
||||
@include scut-clearfix;
|
||||
|
||||
&__description {
|
||||
float: left;
|
||||
width: 25%;
|
||||
padding-right: 30px;
|
||||
}
|
||||
&__example {
|
||||
margin-left: 25%;
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,42 @@
|
||||
// Styleguide typography
|
||||
|
||||
.sg-typo-title {
|
||||
text-transform: uppercase;
|
||||
font-weight: normal;
|
||||
text-align: center;
|
||||
font-size: $font-size-bigger;
|
||||
color: $color-main;
|
||||
margin: 0 0 20px;
|
||||
|
||||
@include respond-to(md) {
|
||||
font-size: $font-size-huge;
|
||||
}
|
||||
}
|
||||
|
||||
.sg-typo-section-title {
|
||||
font-size: $font-size-bigger;
|
||||
font-weight: normal;
|
||||
color: $color-text;
|
||||
margin: 0 0 20px;
|
||||
|
||||
@include respond-to(md) {
|
||||
font-size: $font-size-huge;
|
||||
}
|
||||
}
|
||||
|
||||
.sg-typo-description-title {
|
||||
font-size: $font-size-big;
|
||||
font-weight: bold;
|
||||
color: $color-text;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.sg-typo-code {
|
||||
font-family: monospace;
|
||||
font-weight: bold;
|
||||
border-radius: 0.2em;
|
||||
font-size: $font-size-small;
|
||||
background: $color-bg-dark;
|
||||
color: $color-text;
|
||||
padding: 0.1em 0.3em;
|
||||
}
|
Loading…
Reference in New Issue