Add more styles

This commit is contained in:
Tom Raithel
2017-02-10 21:06:52 +01:00
parent 70ce2feefb
commit 10e6fd89eb
15 changed files with 118 additions and 8 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -27,6 +27,7 @@
"live-server": "1.2.0", "live-server": "1.2.0",
"marked": "0.3.6", "marked": "0.3.6",
"postcss-cli": "2.6.0", "postcss-cli": "2.6.0",
"postcss-css-variables": "0.6.0",
"postcss-easy-import": "2.0.0", "postcss-easy-import": "2.0.0",
"postcss-nested": "1.0.0", "postcss-nested": "1.0.0",
"pug": "2.0.0-beta9", "pug": "2.0.0-beta9",

View File

@@ -2,6 +2,7 @@
"use": [ "use": [
"postcss-easy-import", "postcss-easy-import",
"postcss-nested", "postcss-nested",
"postcss-css-variables",
"autoprefixer" "autoprefixer"
], ],
"autoprefixer": { "autoprefixer": {

View File

@@ -4,12 +4,20 @@ block vars
- var title='Overview' - var title='Overview'
block content block content
ul .hero-headline
| Technology Radar
span.hero-headline__alt
= ' '
| March 2017
div
each quadrant, quadrantName in radar each quadrant, quadrantName in radar
li .quadrant-section
.quadrant-section__header
h4= translate(quadrantName) h4= translate(quadrantName)
ul .quadrant-section__lists
each radarItem, itemName in quadrant each radarItem, itemName in quadrant
li .quadrant-section__list
a(href='/' + quadrantName + '/' + itemName + '.html') a(href='/' + quadrantName + '/' + itemName + '.html')
= radarItem.attributes.title = radarItem.attributes.title
span(class=`badge badge--${radarItem.attributes.ring}`)
= radarItem.attributes.ring

View File

@@ -1,8 +1,33 @@
:root {
--color-gray-dark: #475157;
--color-gray-light: #7D878D;
--color-white: #fff;
--color-green: #5CB449;
--color-orange: #FAA03D;
--color-blue: #40A7D1;
--color-marine: #688190;
}
@font-face {
font-family: 'DIN';
src: url('/assets/fonts/clanot-news.otf');
font-weight: normal;
}
@font-face {
font-family: 'DIN';
src: url('/assets/fonts/clanot-thin.otf');
font-weight: 300;
}
body { body {
background: #475157; background: var(--color-gray-dark);
box-sizing: border-box; box-sizing: border-box;
margin: 0; margin: 0;
padding: 0; padding: 0;
font-family: 'DIN';
font-weight: normal;
font-size: 16px;
& h1 { & h1 {
color: blue; color: blue;

View File

@@ -0,0 +1,24 @@
.badge {
color: var(--color-white);
display: inline-block;
padding: 0 15px;
text-transform: uppercase;
border-radius: 15px;
font-size: 14px;
line-height: 30px;
height: 30px;
overflow: hidden;
&--adopt {
background: var(--color-green);
}
&--trial {
background: var(--color-orange);
}
&--assess {
background: var(--color-blue);
}
&--hold {
background: var(--color-marine);
}
}

View File

@@ -1,3 +1,19 @@
.header { .header {
height: 130px; margin: 40px 0 60px;
display: flex;
align-items: center;
&__logo {
flex: 1 0 auto;
& img {
display: block;
width: 150px;
height: 60px;
}
}
&__nav {
flex: 0 0 auto;
height: 20px;
}
} }

View File

@@ -0,0 +1,9 @@
.hero-headline {
font-size: 30px;
font-weight: 300;
color: var(--color-white);
&__alt {
color: var(--color-gray-light);
}
}

View File

@@ -1,4 +1,5 @@
.page { .page {
width: 1200px; width: 1200px;
margin: 0 auto; margin: 0 auto;
padding: 0 10px;
} }

View File

@@ -0,0 +1,13 @@
.quadrant-section {
&__header {
}
&__lists {
display: flex;
}
&__list {
flex: 0 0 20%;
}
}

View File

@@ -0,0 +1,10 @@
.ring-list {
&__header {
margin-bottom: 10px;
}
&__item {
display: block;
color: var(--color-white);
margin-bottom: 10px;
}
}

View File

@@ -6,8 +6,10 @@ html
body body
.page .page
.header .header
a(href='/') a.header__logo(href='/')
img(src='/assets/logo.svg') img(src='/assets/logo.svg')
.header__nav
| How to Use Technology Radar?
block content block content
block scripts block scripts