From 01667751d8f04874272093b05e7b0e8fbd500d6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matt=C3=A9o=20Delabre?= Date: Wed, 16 Dec 2015 23:05:25 +0100 Subject: [PATCH] :bulb: Update style --- styles/common.css | 36 ++++++++++++++++++++++++++ styles/subsite.css | 64 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 100 insertions(+) create mode 100644 styles/common.css create mode 100644 styles/subsite.css diff --git a/styles/common.css b/styles/common.css new file mode 100644 index 0000000..1c744d2 --- /dev/null +++ b/styles/common.css @@ -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; +} diff --git a/styles/subsite.css b/styles/subsite.css new file mode 100644 index 0000000..1c66622 --- /dev/null +++ b/styles/subsite.css @@ -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; +}