msfjarvis.dev/static/css/about.css
2020-06-05 20:50:34 +10:00

434 lines
6.4 KiB
CSS

button,
button[type="button"],
button[type="reset"],
button[type="submit"] {
-webkit-appearance: button
}
input,
input[type=text],
input[type=email] {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none
}
html,
body {
background-color: #fff;
color: #111;
height: 100%
}
html {
-webkit-box-sizing: border-box;
box-sizing: border-box
}
*,
*:before,
*:after {
padding: 0;
margin: 0;
-webkit-box-sizing: inherit;
box-sizing: inherit
}
html {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
-webkit-font-smoothing: antialiased;
font-size: 95%;
}
@media screen and (min-width:800px) {
html {
font-size: 100%
}
}
@media screen and (min-width:1400px) {
html {
font-size: 115%
}
}
h1,
h2,
h3,
h4,
h5,
h6 {
margin-top: 1.5rem;
margin-bottom: 0;
line-height: 1.5rem;
}
h1 {
font-size: 2.121rem;
line-height: 2.25rem;
margin-top: 2.25rem
}
h2 {
font-size: 1.414rem
}
h3 {
font-size: 1.414/2rem
}
h4 {
font-size: 1.414/3rem
}
h5 {
font-size: 1.414/4rem
}
p {
margin-top: 1.5rem;
margin-bottom: 0;
line-height: 1.5rem
}
ul,
ol {
padding-left: 1.5rem;
margin-top: 1.5rem;
margin-bottom: 1.5rem;
}
ul li,
ol li {
line-height: 1.5rem
}
ul ul,
ol ul,
ul ol,
ol ol {
margin-top: 0;
margin-bottom: 0
}
blockquote {
font-family: medium-content-title-font, Georgia, Cambria, "Times New Roman", Times, serif;
margin-top: 1.5rem;
margin-bottom: 1.5rem;
line-height: 1.5rem;
color: #717171;
font-style: italic;
}
pre {
line-height: 1.45;
margin-top: 1.5rem;
padding: 16px;
word-wrap: normal;
overflow: auto;
background-color: #f6f8fa;
border-radius: 3px
}
code {
font-size: 85%;
font-family: "SFMono-Regular", Consolas, Menlo, monospace;
padding: .2em .4em;
margin: 0;
background-color: rgba(27, 31, 35, 0.05);
border-radius: 3px
}
pre>code {
word-break: normal;
white-space: pre
}
pre code {
display: inline;
padding: 0;
margin: 0;
overflow: visible;
line-height: inherit;
word-wrap: normal;
background-color: transparent;
border: 0
}
.lead {
font-size: 1.414rem
}
.burger__container {
height: 4rem;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
padding: 0 1.5rem;
position: fixed;
width: 100%;
background: #fff;
z-index: 2;
}
@media screen and (min-width:800px) {
.burger__container {
display: none
}
}
.burger {
position: relative;
width: 28px;
height: 28px;
cursor: pointer
}
.burger__meat {
position: absolute;
width: 28px;
height: 2px;
background: #111;
top: calc(50% - 2px / 2);
left: calc(50% - 28px / 2);
-webkit-transition: all 150ms ease-in;
transition: all 150ms ease-in
}
.burger__meat--1 {
-webkit-transform: translateY(-10px);
transform: translateY(-10px)
}
.burger__meat--2 {
width: calc(28px - 6px)
}
.burger__meat--3 {
-webkit-transform: translateY(10px);
transform: translateY(10px)
}
.nav--active .burger__meat--1 {
-webkit-transform: rotate(45deg);
transform: rotate(45deg)
}
.nav--active .burger__meat--2 {
opacity: 0
}
.nav--active .burger__meat--3 {
-webkit-transform: rotate(-45deg);
transform: rotate(-45deg)
}
.nav {
font-size: 16px;
position: fixed;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
background: #fff;
visibility: hidden;
z-index: 1;
}
@media screen and (min-width:800px) {
.nav {
display: block;
visibility: visible;
padding-top: 3em;
width: 100px
}
}
.nav--active .nav {
visibility: visible;
height: 100%;
width: 100%
}
.nav__list {
text-align: right;
list-style: none;
margin: 0;
padding: 0;
width: 50%;
}
@media screen and (min-width:800px) {
.nav__list {
width: auto
}
}
@media screen and (max-width:799px) {
.nav__list {
-webkit-transform: translateY(-25px);
transform: translateY(-25px);
opacity: 0
}
.nav--active .nav__list {
-webkit-transform: translateY(0);
transform: translateY(0);
opacity: 1;
-webkit-transition: all 500ms ease;
transition: all 500ms ease
}
}
.nav__list li {
margin-bottom: 3em;
line-height: 1.5em;
}
.nav__list li:last-of-type {
margin-bottom: 0
}
@media screen and (min-width:800px) {
.nav__list li {
margin-bottom: 1.75em
}
}
.nav__list a {
color: #9b9b9b;
text-decoration: none;
font-size: 2em;
}
.nav__list a.active {
color: #111
}
.nav__list a:hover {
color: #111
}
@media screen and (min-width:800px) {
.nav__list a {
font-size: 1em
}
}
body.nav--active {
overflow: hidden
}
main {
padding: 3rem 1.5rem;
}
@media screen and (min-width:800px) {
main {
padding-left: calc(1.5rem + 100px)
}
}
@media screen and (max-width:799px) {
main {
padding-top: calc(3rem + 4rem)
}
}
.social-icons {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center
}
.social-icons__icon {
width: 1.2rem;
height: 1.2rem;
background-size: contain;
background-repeat: no-repeat
}
.social-icons__icon--twitter {
background-image: url("/icons/twitter.svg");
margin-right: 2rem
}
.social-icons__icon--github {
background-image: url("/icons/github.svg")
}
.splash-container {
height: 100%;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
font-size: 14px;
}
@media screen and (min-width:800px) {
.splash-container {
font-size: 18px
}
}
.splash h1 {
font-size: 3em;
line-height: 1;
letter-spacing: -.03em;
margin: 0
}
.splash h2 {
font-size: 2.25em;
font-weight: 500;
line-height: 1.25;
max-width: 22em;
letter-spacing: -.03em
}
.fancy {
color: #9013fe
}
.handle {
display: inline-block;
margin-top: .275em;
color: #9b9b9b;
letter-spacing: .5px
}
.writing {
text-decoration: none;
color: #9013fe
}
main {
padding-top: 0;
padding-bottom: 0;
height: 100%
}
.social-icons {
-webkit-box-pack: start;
-ms-flex-pack: start;
justify-content: flex-start;
padding-top: 2rem
}