💡 Update style

This commit is contained in:
Mattéo Delabre 2015-12-16 23:05:25 +01:00
parent c99f8bf49d
commit 01667751d8
2 changed files with 100 additions and 0 deletions

36
styles/common.css Normal file
View File

@ -0,0 +1,36 @@
/**
* Common styles
*/
html, body {
margin: 0;
padding: 0;
height: 100%;
font: 16px 'Source Sans Pro', sans-serif;
}
h1 {
font-size: 2em;
font-weight: bold;
}
h2 {
font-size: 1.6em;
font-weight: bold;
}
h3 {
font-size: 1.2em;
font-weight: normal;
}
a {
color: inherit;
}
*:before, *:after, * {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}

64
styles/subsite.css Normal file
View File

@ -0,0 +1,64 @@
/**
* Subsite styles
* (hosted demos, ...)
*/
/**
* Split view
* (sidebar + content)
*/
.split {
display: flex;
}
.split aside {
width: 350px;
flex-shrink: 4;
padding: 8px 16px;
color: white;
background: #F44336;
}
.split aside header {
margin: -8px -16px 0 -16px;
background: #D32F2F;
}
.split aside header a {
padding: 8px 16px;
display: block;
text-decoration: none;
}
.split aside header:hover {
background: #C62828;
}
.split aside header img {
width: 2.5em;
float: left;
margin-right: 0.5em;
border-radius: 100%;
border: 2px solid white;
}
.split aside header span {
font-weight: bold;
}
.split aside header:after {
content: '';
display: table;
clear: both;
}
.split aside h1 + h3 {
margin-top: -1.3em;
}
.split #content {
width: calc(100% - 350px);
flex-shrink: 1;
}