Add more styles
This commit is contained in:
BIN
assets/fonts/clanot-bold.otf
Normal file
BIN
assets/fonts/clanot-bold.otf
Normal file
Binary file not shown.
BIN
assets/fonts/clanot-medium.otf
Normal file
BIN
assets/fonts/clanot-medium.otf
Normal file
Binary file not shown.
BIN
assets/fonts/clanot-news.otf
Normal file
BIN
assets/fonts/clanot-news.otf
Normal file
Binary file not shown.
BIN
assets/fonts/clanot-thin.otf
Normal file
BIN
assets/fonts/clanot-thin.otf
Normal file
Binary file not shown.
@@ -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",
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
"use": [
|
"use": [
|
||||||
"postcss-easy-import",
|
"postcss-easy-import",
|
||||||
"postcss-nested",
|
"postcss-nested",
|
||||||
|
"postcss-css-variables",
|
||||||
"autoprefixer"
|
"autoprefixer"
|
||||||
],
|
],
|
||||||
"autoprefixer": {
|
"autoprefixer": {
|
||||||
|
|||||||
@@ -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
|
||||||
h4= translate(quadrantName)
|
.quadrant-section__header
|
||||||
ul
|
h4= translate(quadrantName)
|
||||||
|
.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
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
24
styles/components/badge.css
Normal file
24
styles/components/badge.css
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
9
styles/components/hero-headline.css
Normal file
9
styles/components/hero-headline.css
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
.hero-headline {
|
||||||
|
font-size: 30px;
|
||||||
|
font-weight: 300;
|
||||||
|
color: var(--color-white);
|
||||||
|
|
||||||
|
&__alt {
|
||||||
|
color: var(--color-gray-light);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
.page {
|
.page {
|
||||||
width: 1200px;
|
width: 1200px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
padding: 0 10px;
|
||||||
}
|
}
|
||||||
|
|||||||
13
styles/components/quadrant-section.css
Normal file
13
styles/components/quadrant-section.css
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
.quadrant-section {
|
||||||
|
&__header {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
&__lists {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__list {
|
||||||
|
flex: 0 0 20%;
|
||||||
|
}
|
||||||
|
}
|
||||||
10
styles/components/ring-list.css
Normal file
10
styles/components/ring-list.css
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
.ring-list {
|
||||||
|
&__header {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
&__item {
|
||||||
|
display: block;
|
||||||
|
color: var(--color-white);
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user