diff options
| author | adamhrv <adam@ahprojects.com> | 2018-12-15 19:57:49 +0100 |
|---|---|---|
| committer | adamhrv <adam@ahprojects.com> | 2018-12-15 19:57:49 +0100 |
| commit | 82b2c0b5d6d7baccbe4d574d96e18fe2078047d7 (patch) | |
| tree | a8784b7ec2bc5a0451c252f66a6b786f3a2504f5 /site/assets/css | |
| parent | 8e978af21c2b29f678a09701afb3ec7d65d0a6ab (diff) | |
| parent | c5b02ffab8d388e8a2925e51736b902a48a95e71 (diff) | |
Merge branch 'master' of github.com:adamhrv/megapixels_dev
Diffstat (limited to 'site/assets/css')
| -rw-r--r-- | site/assets/css/css.css | 383 | ||||
| -rw-r--r-- | site/assets/css/fonts.css | 41 |
2 files changed, 424 insertions, 0 deletions
diff --git a/site/assets/css/css.css b/site/assets/css/css.css new file mode 100644 index 00000000..9ac35699 --- /dev/null +++ b/site/assets/css/css.css @@ -0,0 +1,383 @@ +* { box-sizing: border-box; } +html, body { + margin: 0; + padding: 0; + width: 100%; + min-height: 100%; + font-family: 'Roboto', sans-serif; + color: #b8b8b8; +} +html { + background: #191919; +} + +/* header */ + +header { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 70px; + background: #1e1e1e; + display: flex; + flex-direction: row; + align-items: center; + justify-content: space-between; + box-shadow: 0 0 4px rgba(0,0,0,0.3); +} +header .slogan { + display: flex; + flex-direction: row; + align-items: center; + padding-left: 56px; + text-decoration: none; +} +header .logo { + background-image: url(../img/megapixels_logo_white.svg); + background-size: cover; + background-repeat: no-repeat; + margin-top: 7px; + margin-right: 14px; + width: 49px; + height: 30px; +} +header .site_name { + font-weight: bold; + color: #fff; +} +header .sub { + margin-left: 4px; + margin-top: 2px; + transition: color 0.1s cubic-bezier(0,0,1,1); +} +.sub { + color: #666; + font-size: 10pt; +} +.desktop header .slogan:hover .site_name { + color: #fff; +} +.desktop header .slogan:hover .sub { + color: #666; +} +header .links { + display: flex; + flex-direction: row; + font-family: 'Roboto Mono', monospace; +} +header .links a { + display: block; + color: #777; + text-decoration: none; + text-transform: uppercase; + margin-right: 32px; + transition: color 0.1s cubic-bezier(0,0,1,1), border-color 0.1s cubic-bezier(0,0,1,1); + border-bottom: 1px solid rgba(255,255,255,0); +} +header .links a.active { + color: #bbb; +} +.desktop header .links a:hover { + color: #fff; + border-bottom: 1px solid rgba(255,255,255,255); +} +.desktop header .links a.active:hover { + color: #fff; + border-bottom: 1px solid rgba(255,255,255,255); +} + +/* footer */ + +footer { + width: 100%; + background: #000; + display: flex; + flex-direction: row; + justify-content: space-between; + color: #888; + font-size: 9pt; + padding: 20px 75px 20px; +} +footer > div { + display: flex; + flex-direction: row; +} +footer a { + display: inline-block; + color: #888; + transition: color 0.2s cubic-bezier(0,0,1,1); + margin-right: 5px; +} +footer a:hover { + color: #ddd; +} + +/* headings */ + +h1 { + color: #ddd; + font-weight: 300; + font-size: 24pt; + margin: 75px 0 10px; + padding: 0; + transition: color 0.2s cubic-bezier(0,0,1,1); +} +h2, h3 { + margin: 0 0 20px 0; + padding: 0; + font-size: 11pt; + font-weight: 500; + transition: color 0.2s cubic-bezier(0,0,1,1); +} + +th, .gray, h2, h3 { + font-family: 'Roboto Mono', monospace; + font-weight: 400; + text-transform: uppercase; + color: #666; +} +th, .gray { + font-size: 9pt; +} + +/* content */ + +.content { + padding-top: 70px; + padding-bottom: 100px; + min-height: calc(100vh - 55px); + line-height: 1.5; +} +section { + width: 640px; + margin: 0 auto; +} +.content .first_paragraph { + font-weight: 300; + font-size: 18pt; + color: #ccc; +} +p { + margin: 0 0 20px 0; +} +.content a { + color: #ddd; + transition: color 0.2s cubic-bezier(0,0,1,1); +} +.content a:hover { + color: #fff; +} + +/* top of post metadata */ + +.meta { + display: flex; + flex-direction: row; + justify-content: flex-start; + align-items: flex-start; + font-size: 10pt; + margin-bottom: 20px; +} +.meta > div { + margin-right: 30px; +} +.meta .gray { + font-size: 9pt; + padding-bottom: 4px; +} + +/* misc formatting */ + +code { + font-family: 'Roboto Mono', monospace; + font-size: 9pt; + padding: 2px 4px; + background: rgba(255,255,255,0.1); +} +pre { + margin: 0 0 40px 0; + border: 1px solid #666; + border-radius: 2px; +} +pre code { + display: block; + max-height: 400px; + max-width: 640px; + padding: 4px 10px; +} +table { + margin-bottom: 40px; +} +hr { + height: 1px; + background: #888; + border: 0; + width: 80px; +} +blockquote { + margin-left: 28px; + padding: 0 0 0 10px; + border-left: 2px solid #555; +} + +/* footnotes */ + +.footnotes hr { + display: none; +} +.footnotes ol:before { + content: 'Footnotes'; + margin: 0 0 10px -40px; + padding-bottom: 0; + display: block; + font-family: 'Roboto Mono', monospace; + font-weight: 400; + text-transform: uppercase; + color: #666; + font-size: 11pt; +} + +/* images */ + +section img { + max-width: 100%; + display: block; + margin: 0 auto; +} +section .image { + margin-bottom: 40px; +} +section.images { + display: flex; + flex-direction: row; + align-items: flex-start; + justify-content: center; +} +.image:only-child { + width: 100%; +} +.image:first-child { + margin-left: 0; +} +.image:nth-child(2), +.image:nth-child(3) { + margin-left: 40px; +} +.image:first-child:nth-last-child(2), +.image:first-child:nth-last-child(2) ~ .image { + width: 300px; +} +.image:first-child:nth-last-child(3), +.image:first-child:nth-last-child(3) ~ .image { + width: 186px; +} +section.wide { + width: 100%; +} +section.wide .image { + max-width: 100%; +} +.caption { + text-align: center; + font-size: 9pt; + color: #888; + max-width: 620px; + margin: 10px auto 0 auto; +} + +/* blog index */ + +.research_index { + margin-top: 40px; +} +.research_index a { + text-decoration: none; +} +.research_index h1 { + margin-top: 20px; + text-decoration: underline; +} +.desktop .research_index section:hover h1 { + color: #fff; +} +.research_index section:hover h2 { + color: #ddd; +} + +/* home page */ + +.hero { + position: relative; + width: 100%; + max-width: 1200px; + height: 50vw; + max-height: 70vh; + display: flex; + align-items: center; + margin: 0 auto; +} +#face_container { + pointer-events: none; + position: absolute; + width: 50vw; + height: 50vw; + max-height: 70vh; + top: 0; + right: 0; + z-index: -1; + text-align: center; +} +.currentFace { + position: absolute; + bottom: 50px; + width: 100%; + left: 0; + text-align: center; +} +.intro { + max-width: 640px; + padding: 75px 0 75px 10px; + z-index: 1; +} +.intro .headline { + font-family: 'Roboto Mono', monospace; + font-size: 16pt; +} +.intro .buttons { + margin: 40px 0; +} +.intro button { + font-family: 'Roboto', sans-serif; + padding: 8px 12px; + border-radius: 6px; + border: 1px solid transparent; + cursor: pointer; + font-size: 11pt; + margin-right: 10px; + transition: color 0.1s cubic-bezier(0,0,1,1), background-color 0.1s cubic-bezier(0,0,1,1); +} +.intro button.normal { + background: #191919; + border-color: #444; + color: #ddd; +} +.intro button.important { + background: #444; + border-color: #444; + color: #ddd; +} +.desktop .intro button:hover { + background: #666; + border-color: #666; + color: #fff; +} +.intro .under { + color: #888; +} +.intro .under a { + color: #bbb; +} +.desktop .intro .under a:hover { + color: #fff; +}
\ No newline at end of file diff --git a/site/assets/css/fonts.css b/site/assets/css/fonts.css new file mode 100644 index 00000000..8db01fbd --- /dev/null +++ b/site/assets/css/fonts.css @@ -0,0 +1,41 @@ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 300; + src: url("../fonts/Roboto_300.eot?#iefix") format("embedded-opentype"), url("../fonts/Roboto_300.woff") format("woff"), url("../fonts/Roboto_300.woff2") format("woff2"), url("../fonts/Roboto_300.svg#Roboto") format("svg"), url("../fonts/Roboto_300.ttf") format("truetype"); +} + +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 400; + src: url("../fonts/Roboto_400.eot?#iefix") format("embedded-opentype"), url("../fonts/Roboto_400.woff") format("woff"), url("../fonts/Roboto_400.woff2") format("woff2"), url("../fonts/Roboto_400.svg#Roboto") format("svg"), url("../fonts/Roboto_400.ttf") format("truetype"); +} + +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 500; + src: url("../fonts/Roboto_500.eot?#iefix") format("embedded-opentype"), url("../fonts/Roboto_500.woff") format("woff"), url("../fonts/Roboto_500.woff2") format("woff2"), url("../fonts/Roboto_500.svg#Roboto") format("svg"), url("../fonts/Roboto_500.ttf") format("truetype"); +} + +@font-face { + font-family: 'Roboto Mono'; + font-style: normal; + font-weight: 300; + src: url("../fonts/Roboto_Mono_300.eot?#iefix") format("embedded-opentype"), url("../fonts/Roboto_Mono_300.woff") format("woff"), url("../fonts/Roboto_Mono_300.woff2") format("woff2"), url("../fonts/Roboto_Mono_300.svg#RobotoMono") format("svg"), url("../fonts/Roboto_Mono_300.ttf") format("truetype"); +} + +@font-face { + font-family: 'Roboto Mono'; + font-style: normal; + font-weight: 400; + src: url("../fonts/Roboto_Mono_400.eot?#iefix") format("embedded-opentype"), url("../fonts/Roboto_Mono_400.woff") format("woff"), url("../fonts/Roboto_Mono_400.woff2") format("woff2"), url("../fonts/Roboto_Mono_400.svg#RobotoMono") format("svg"), url("../fonts/Roboto_Mono_400.ttf") format("truetype"); +} + +@font-face { + font-family: 'Roboto Mono'; + font-style: normal; + font-weight: 500; + src: local("Roboto-Mono Medium"), local("RobotoMono-Medium"), url("../fonts/Roboto_Mono_500.eot?#iefix") format("embedded-opentype"), url("../fonts/Roboto_Mono_500.woff") format("woff"), url("../fonts/Roboto_Mono_500.woff2") format("woff2"), url("../fonts/Roboto_Mono_500.svg#RobotoMono") format("svg"), url("../fonts/Roboto_Mono_500.ttf") format("truetype"); +} |
