Move to Adam's Blog template

This commit is contained in:
Madison Scott-Clary
2017-09-06 13:04:59 -06:00
parent faf67db776
commit a814cdf0ab
58 changed files with 8508 additions and 213 deletions

175
assets/css/main.scss Executable file
View File

@ -0,0 +1,175 @@
---
---
@import "variables";
@import "syntax";
@import "tools/normalize";
/* = = = = = = = = = = Main Styles = = = = = = = = = = */
*, *::after, *::before {
box-sizing: border-box;
}
html, body {
height: 100%;
overflow-x: hidden;
}
html {
line-height: 1.5;
}
body {
font-family: 'Montserrat', sans-serif;
color: $dark-gray;
margin: 0;
background-color: $white;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
&.invert {
background-color: $light-gray;
}
}
h1, h2, h3, h4, h5, h6 {
font-family: 'Lato', sans-serif;
color: $dark-purple;
font-weight: 400;
.invert & {
color: $light-purple;
}
}
hr {
border: none;
width: 3em;
margin: 1em auto;
&::before {
content: '§';
display: block;
}
}
img {
height: auto;
max-width: 100%;
}
a {
color: $dark-pink;
}
blockquote {
border-left: 3px solid $dark-purple;
padding-left: 18px;
margin-left: 21px;
font-style: italic;
color: $dark-purple;
.invert & {
border-left-color: $light-purple;
color: $light-purple;
}
}
pre {
padding: 16px 32px;
overflow-x: auto;
code {
border: 0;
padding-right: 0;
padding-left: 0;
}
}
.flex-container {
display: flex;
flex-direction: column;
min-height: 100vh;
transition: transform .4s cubic-bezier(0.16, 0.68, 0.43, 0.99);
}
.flex-container.active {
transform: translate3d(300px, 0, 0);
&::after {
content: "";
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 2;
background-color: rgba(0,0,0,0.5);
}
}
.content {
flex-grow: 1;
}
.wrapper {
width: 960px;
max-width: 90%;
margin: 0 auto;
position: relative;
}
::-moz-selection {
background: rgba(49, 30, 62, 0.7);
color: #ffffff;
}
::selection {
background: rgba(49, 30, 62, 0.7);
color: #ffffff;
}
.clearfix::before, .clearfix::after {
content: "";
display: table;
clear: both;
}
.clearfix::before {
clear: both;
}
/* = = = = = = = = = = Header Styles = = = = = = = = = = */
@import "parts/header";
/* = = = = = = = = = = Search Styles = = = = = = = = = = */
@import "parts/search";
/* = = = = = = = = = = Post-Card Styles = = = = = = = = = = */
@import "parts/post-card";
/* = = = = = = = = = = Pagination Styles = = = = = = = = = = */
@import "parts/pagination";
/* = = = = = = = = = = Footer Styles = = = = = = = = = = */
@import "parts/footer";
/* = = = = = = = = = = Post-Page Styles = = = = = = = = = = */
@import "parts/post-page";
/* = = = = = = = = = = Author Box Styles = = = = = = = = = = */
@import "parts/author-box";
/* = = = = = = = = = = About Page Styles = = = = = = = = = = */
@import "parts/about";
/* = = = = = = = = = = Tags Styles = = = = = = = = = = */
@import "parts/tags";
/* = = = = = = = = = = Animate Styles = = = = = = = = = = */
@import "parts/animate";
/* = = = = = = = = = = Media = = = = = = = = = = */
@import "media"

156
assets/css/sass/_media.scss Normal file
View File

@ -0,0 +1,156 @@
/* Small Devices, Tablets */
@media only screen and (max-width: 768px) {
.main-header {
.logo {
a {
font-size: 24px;
}
}
}
.post-card-box {
li {
width: 100%;
margin-bottom: 20px;
&:last-child {
margin-bottom: 0;
}
}
}
.recent-box {
.recent-list {
.recent-item {
position: relative;
display: inline-block;
width: 49%;
height: 150px;
margin-left: 0.5%;
margin-bottom: 0.5%;
span {
position: absolute;
font-size: 12px;
left: 2.5%;
bottom: 10%;
color: $white;
}
}
}
}
}
@media only screen and (max-width: 480px) {
.wrapper {
max-width: 95%;
}
.page-content {
margin-top: -50px;
padding: 15px;
}
.header-page {
margin-bottom: 20px;
h1 {
font-size: 27px;
margin: 0 0 10px;
}
.page-date {
font-size: 14px;
}
}
.main-header {
.logo {
a {
font-size: 21px;
}
}
}
.menu-icon,
.menu-icon-close,
.search-icon,
.search-icon-close {
font-size: 16px;
}
.page-image {
height: 380px;
}
.recent-box {
.recent-list {
.recent-item {
position: relative;
display: inline-block;
width: 99%;
height: 150px;
margin-left: 0.5%;
margin-bottom: 0.5%;
span {
position: absolute;
font-size: 12px;
left: 2.5%;
bottom: 10%;
color: $white;
}
}
}
}
.newsletter {
.newsletter-box {
.subscribe-btn {
width: 80px;
height: 40px;
font-size: 12px;
}
}
}
.about-body {
.contact-list {
li {
display: inline-block;
margin-left: 5px;
&:first-child {
margin-left: 0;
}
a {
display: block;
color: $light-gray;
font-size: 16px;
text-decoration: none;
padding: 5px;
transition: all 350ms cubic-bezier(0.13, 0.43, 0.54, 1.82);
&:hover {
color: $dark-pink;
transform: scale(1.3);
}
}
}
}
}
.author-box {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
.author-img {
height: 100px;
width: 100px;
margin: 0 0 10px;
}
.author-desc {
h2 {
margin: 0 0 10px;
}
p {
margin: 0 0 15px;
}
}
}
}

67
assets/css/sass/_syntax.scss Executable file
View File

@ -0,0 +1,67 @@
.highlight {background-color: #faf9f9; border-radius: 3px; margin: 0;}
.highlighter-rouge {color: $dark-pink; font-weight: 400; border: 1px solid #607D8B; border-radius: 3px; padding: 0.1rem 0.5rem;}
.highlight .hll { background-color: #ffc; }
.highlight .c { color: #999; } /* Comment */
.highlight .err { color: #a00; background-color: #faa; } /* Error */
.highlight .k { color: #069; } /* Keyword */
.highlight .o { color: #555; } /* Operator */
.highlight .cm { color: #09f; font-style: italic; } /* Comment.Multiline */
.highlight .cp { color: #099; } /* Comment.Preproc */
.highlight .c1 { color: #999; } /* Comment.Single */
.highlight .cs { color: #999; } /* Comment.Special */
.highlight .gd { background-color: #fcc; border: 1px solid #c00; } /* Generic.Deleted */
.highlight .ge { font-style: italic; } /* Generic.Emph */
.highlight .gr { color: #f00; } /* Generic.Error */
.highlight .gh { color: #030; } /* Generic.Heading */
.highlight .gi { background-color: #cfc; border: 1px solid #0c0; } /* Generic.Inserted */
.highlight .go { color: #aaa; } /* Generic.Output */
.highlight .gp { color: #009; } /* Generic.Prompt */
.highlight .gs { } /* Generic.Strong */
.highlight .gu { color: #030; } /* Generic.Subheading */
.highlight .gt { color: #9c6; } /* Generic.Traceback */
.highlight .kc { color: #069; } /* Keyword.Constant */
.highlight .kd { color: #069; } /* Keyword.Declaration */
.highlight .kn { color: #069; } /* Keyword.Namespace */
.highlight .kp { color: #069; } /* Keyword.Pseudo */
.highlight .kr { color: #069; } /* Keyword.Reserved */
.highlight .kt { color: #078; } /* Keyword.Type */
.highlight .m { color: #f60; } /* Literal.Number */
.highlight .s { color: #d44950; } /* Literal.String */
.highlight .na { color: #4f9fcf; } /* Name.Attribute */
.highlight .nb { color: #366; } /* Name.Builtin */
.highlight .nc { color: #0a8; } /* Name.Class */
.highlight .no { color: #360; } /* Name.Constant */
.highlight .nd { color: #99f; } /* Name.Decorator */
.highlight .ni { color: #999; } /* Name.Entity */
.highlight .ne { color: #c00; } /* Name.Exception */
.highlight .nf { color: #c0f; } /* Name.Function */
.highlight .nl { color: #99f; } /* Name.Label */
.highlight .nn { color: #0cf; } /* Name.Namespace */
.highlight .nt { color: #2f6f9f; } /* Name.Tag */
.highlight .nv { color: #033; } /* Name.Variable */
.highlight .ow { color: #000; } /* Operator.Word */
.highlight .w { color: #bbb; } /* Text.Whitespace */
.highlight .mf { color: #f60; } /* Literal.Number.Float */
.highlight .mh { color: #f60; } /* Literal.Number.Hex */
.highlight .mi { color: #f60; } /* Literal.Number.Integer */
.highlight .mo { color: #f60; } /* Literal.Number.Oct */
.highlight .sb { color: #c30; } /* Literal.String.Backtick */
.highlight .sc { color: #c30; } /* Literal.String.Char */
.highlight .sd { color: #c30; font-style: italic; } /* Literal.String.Doc */
.highlight .s2 { color: #c30; } /* Literal.String.Double */
.highlight .se { color: #c30; } /* Literal.String.Escape */
.highlight .sh { color: #c30; } /* Literal.String.Heredoc */
.highlight .si { color: #a00; } /* Literal.String.Interpol */
.highlight .sx { color: #c30; } /* Literal.String.Other */
.highlight .sr { color: #3aa; } /* Literal.String.Regex */
.highlight .s1 { color: #c30; } /* Literal.String.Single */
.highlight .ss { color: #fc3; } /* Literal.String.Symbol */
.highlight .bp { color: #366; } /* Name.Builtin.Pseudo */
.highlight .vc { color: #033; } /* Name.Variable.Class */
.highlight .vg { color: #033; } /* Name.Variable.Global */
.highlight .vi { color: #033; } /* Name.Variable.Instance */
.highlight .il { color: #f60; } /* Literal.Number.Integer.Long */
.css .o,
.css .o + .nt,
.css .nt + .nt { color: #999; }

View File

@ -0,0 +1,11 @@
$black: #000;
$white: #fff;
$blue: #2d89ec;
$dark-purple: #311e3e;
$light-purple: lighten($dark-purple, 60%);
$dark-pink: #87314e;
$gray: #efefef;
$light-gray: #999999;
$lighten-gray: #d9d9d9;
$dark-gray: #3e3e40;
$darken-gray: darken($dark-gray, 10%);

View File

@ -0,0 +1,67 @@
.small-wrapper {
width: 700px;
max-width: 90%;
margin: 0 auto;
}
.about-container {
margin: 100px 0 100px;
}
.about-header {
position: relative;
text-align: center;
padding-bottom: 30px;
margin-bottom: 30px;
&:after {
content: "";
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
display: block;
height: 1px;
width: 80px;
background-color: $dark-purple;
}
.author-image-container {
width: 100px;
height: 100px;
border-radius: 100%;
overflow: hidden;
margin: 0 auto 30px;
}
.subtitle {
color: $dark-purple;
font-weight: 300;
margin: 0;
}
}
.about-body {
.contact-list {
margin: 0;
padding: 0;
list-style: none;
text-align: center;
li {
display: inline-block;
margin-left: 10px;
&:first-child {
margin-left: 0;
}
a {
display: block;
color: $light-gray;
font-size: 21px;
text-decoration: none;
padding: 5px;
transition: all 350ms cubic-bezier(0.13, 0.43, 0.54, 1.82);
&:hover {
color: $dark-pink;
transform: scale(1.3);
}
}
}
}
}

View File

@ -0,0 +1,42 @@
.main-header,
.page-image,
.page-content,
.about-container,
.post-card-box {
animation-duration: 0.7s;
animation-fill-mode: both;
animation-name: fadeInDown;
}
.main-header,
.page-image {
animation-delay: 0.5s;
}
.page-content,
.about-container,
.post-card-box {
animation-delay: 0.75s;
}
@-webkit-keyframes fadeInDown {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fadeInDown {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

View File

@ -0,0 +1,41 @@
.author-box {
display: flex;
justify-content: center;
align-items: center;
margin-top: 30px;
padding-bottom: 30px;
border-bottom: 1px solid $lighten-gray;
.author-img {
width: 120px;
height: 120px;
margin-right: 30px;
border-radius: 100%;
}
.author-desc {
h2 {
margin: 0 0 10px;
}
p {
margin: 0 0 10px;
}
ul {
list-style: none;
margin: 0;
padding: 0;
}
li {
display: inline-block;
margin-left: 10px;
&:first-child {
margin-left: 0;
}
a {
font-size: 18px;
color: $dark-gray;
&:hover {
opacity: .8;
}
}
}
}
}

View File

@ -0,0 +1,10 @@
.main-footer {
padding: 15px 0;
background-color: #efefef;
.copyright {
text-align: center;
color: $dark-purple;
font-size: 16px;
}
}

View File

@ -0,0 +1,80 @@
.main-header {
font-family: 'Lato', sans-serif;
padding: 15px 0;
background-color: $white;
box-shadow: 0px -5px 15px rgba(0,0,0,.3);
.header-flex {
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
width: 50%;
text-align: center;
a {
text-decoration: none;
text-transform: uppercase;
font-size: 27px;
font-weight: 300;
color: $dark-purple;
}
}
}
.main-nav {
position: fixed;
top: 0;
left: 0;
z-index: 10;
width: 300px;
height: 100%;
background-color: $white;
padding: 25px 30px;
transform: translate3d(-300px, 0, 0);
ul {
padding: 15px 0 0;
margin: 0;
list-style: none;
li {
border-bottom: 1px solid $lighten-gray;
a {
display: block;
padding: 15px 0;
text-decoration: none;
text-transform: uppercase;
font-weight: 400;
font-size: 16px;
color: $dark-purple;
&:hover {
opacity: .8;
color: $dark-pink;
}
}
}
}
}
.menu-icon-container {
width: 25%;
text-align: left;
}
.search-icon-container {
width: 25%;
text-align: right;
}
.menu-icon,
.menu-icon-close,
.search-icon a,
.search-icon-close {
cursor: pointer;
font-size: 18px;
color: $dark-purple;
transition: all .4s;
&:hover {
opacity: .8;
}
}

View File

@ -0,0 +1,19 @@
.pagination {
margin-bottom: 30px;
.previous {
float: left;
}
.next {
float: right;
}
.previous, .next {
text-decoration: none;
text-transform: uppercase;
font-size: 14px;
color: $dark-gray;
&:hover {
opacity: .8;
color: $dark-pink;
}
}
}

View File

@ -0,0 +1,77 @@
.post-card-box {
margin: 100px 0 100px;
padding: 0;
li {
position: relative;
list-style: none;
float: left;
width: 50%;
transition: all .3s;
&:hover {
opacity: 0.9;
}
& .light-gray {
background-color: $light-gray;
}
& .light-purple {
background-color: $light-purple;
}
}
}
.post-card {
position: relative;
.post-card-image {
display: block;
width: 100%;
min-height: 150px;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
&::after {
content: "";
display: block;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0,0,0,.3);
}
}
.post-card-body {
position: absolute;
left: 5%;
bottom: 5%;
.post-card-link {
text-decoration: none;
display: block;
}
.post-card-title {
font-family: 'Lato', sans-serif;
font-weight: 700;
text-transform: uppercase;
font-size: 18px;
color: $white;
margin: 0 0 10px;
&:hover {
opacity: .8;
}
}
.tag {
text-decoration: none;
font-size: 10px;
text-transform: uppercase;
color: $white;
&:hover {
text-decoration: underline;
}
}
}
}

View File

@ -0,0 +1,62 @@
.search-box {
padding-top: 40px;
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 100;
background: #fff;
transition: all .4s ease-in-out;
transform: translate(0, -100%) scale(0, 0);
}
.search-grid {
width: 60%;
margin: 0 auto;
}
.search-form {
margin-bottom: 15px;
.search {
width: 100%;
padding: 15px;
border: none;
border-bottom: 1px solid $lighten-gray;
outline: none;
font-size: 21px;
color: $dark-gray;
}
}
.results-search {
list-style: none;
overflow: auto;
height: 90vh;
margin: 0;
padding: 0;
li {
padding-bottom: 15px;
margin-bottom: 15px;
border-bottom: 1px solid $lighten-gray;
a {
text-decoration: none;
color: $dark-gray;
&:hover {
color: $dark-pink;
opacity: .8;
}
}
}
}
.search-box.search-active {
transform: translate(0, 0) scale(1, 1);
}
.icon-close-container {
position: absolute;
top: 0;
right: 0;
}

View File

@ -0,0 +1,45 @@
.blog-tags {
margin: 100px 0 100px;
h1 {
text-align: center;
font-family: 'Lato', sans-serif;
font-weight: 400;
font-size: 36px;
text-align: center;
margin: 0 0 30px;
color: $dark-purple;
}
.tags {
margin: 0;
padding: 0;
list-style: none;
li {
a {
display: inline-block;
color: $dark-purple;
&:hover {
opacity: .8;
}
}
}
}
.tag-list {
span {
a {
display: inline-block;
color: $dark-pink;
text-decoration: none;
text-transform: uppercase;
font-size: 12px;
margin-bottom: 10px;
&:hover {
text-decoration: underline;
opacity: .8;
}
}
}
small {
color: $dark-purple;
}
}
}

View File

@ -0,0 +1,201 @@
@import url('https://fonts.googleapis.com/css?family=Gentium+Book+Basic');
.page-image {
position: relative;
padding: 0;
margin: 0;
height: 500px;
background-color: $white;
overflow: hidden;
.cover-image {
height: 100%;
width: 100%;
}
}
.page-content {
font-family: "Gentium Book Basic", serif;
font-size: 14pt;
line-height: 1.75;
margin-top: -5px;
margin-bottom: 100px;
background-color: $white;
padding: 20px;
box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.3);
.invert & {
background-color: $darken-gray;
color: $white;
}
&.with-image {
margin-top: -80px;
border-top-left-radius: 20px;
border-top-right-radius: 20px;
}
& > p {
margin: 0;
&:not(first-of-type) {
text-indent: 2em;
}
}
}
.header-page {
position: relative;
margin-bottom: 30px;
h1 {
font-family: 'Lato', sans-serif;
font-weight: 400;
font-size: 36px;
text-align: center;
margin: 0 0 20px;
color: $dark-purple;
.invert & {
color: $light-purple;
}
}
.page-date {
text-align: center;
font-size: 14px;
text-transform: uppercase;
font-weight: 300;
}
}
.page-footer {
margin-top: 30px;
padding-bottom: 30px;
padding-bottom: 30px;
border-bottom: 1px solid $lighten-gray;
.page-tag,
.page-share {
text-transform: uppercase;
font-size: 12px;
color: $dark-purple;
}
.page-tag {
margin-bottom: 10px;
a {
text-decoration: none;
color: $dark-pink;
&:hover {
opacity: .8;
}
}
}
.page-share {
a {
text-decoration: none;
color: $light-gray;
margin-left: 10px;
font-size: 18px;
&:hover {
opacity: .8;
}
}
}
}
.recent-box {
margin-top: 30px;
padding-bottom: 30px;
border-bottom: 1px solid $lighten-gray;
.recent-title {
font-family: 'Lato', sans-serif;
font-weight: 400;
color: $dark-purple;
text-align: center;
margin: 0 0 30px;
}
.recent-list {
.recent-item {
position: relative;
display: inline-block;
width: 24%;
height: 150px;
margin-left: 0.5%;
margin-bottom: 0.5%;
transition: all .3s;
span {
position: absolute;
font-size: 12px;
left: 2.5%;
bottom: 10%;
color: $white;
}
&:hover {
opacity: 0.8;
}
}
}
}
.newsletter {
text-align: center;
margin-top: 30px;
padding-bottom: 60px;
margin-bottom: 30px;
border-bottom: 1px solid $gray;
.newsletter-title {
font-weight: 400;
}
.form-container {
padding: 30px;
background-color: $gray;
width: 720px;
max-width: 100%;
margin: 0 auto;
p {
margin: 0;
}
}
.screen-reader-text {
clip: rect(1px, 1px, 1px, 1px);
height: 1px;
overflow: hidden;
position: absolute !important;
width: 1px;
word-wrap: normal !important;
}
.newsletter-box {
position: relative;
max-width: 100%;
margin: 25px 0;
display: flex;
align-items: stretch;
.email-input {
flex-grow: 1;
height: 40px;
padding: 8px 10px;
width: 100%;
max-width: 100%;
color: $dark-gray;
border: none;
border-radius: 2px;
font-size: 14px;
outline: none;
}
.subscribe-btn {
flex-shrink: 0;
width: 100px;
height: 40px;
font-size: 14px;
text-align: center;
color: $white;
background-color: $dark-purple;
vertical-align: baseline;
cursor: pointer;
border: none;
border-radius: 2px;
outline: none;
transition: all .3s;
&:hover {
background-color: $dark-pink;
}
}
}
}

View File

@ -0,0 +1,436 @@
/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */
/* Document
========================================================================== */
/**
* 1. Correct the line height in all browsers.
* 2. Prevent adjustments of font size after orientation changes in
* IE on Windows Phone and in iOS.
*/
html {
line-height: 1.15; /* 1 */
-ms-text-size-adjust: 100%; /* 2 */
-webkit-text-size-adjust: 100%; /* 2 */
}
/* Sections
========================================================================== */
/**
* Remove the margin in all browsers (opinionated).
*/
body {
margin: 0;
}
/**
* Add the correct display in IE 9-.
*/
article,
aside,
footer,
header,
nav,
section {
display: block;
}
/**
* Correct the font size and margin on `h1` elements within `section` and
* `article` contexts in Chrome, Firefox, and Safari.
*/
h1 {
font-size: 2em;
margin: 0.67em 0;
}
/* Grouping content
========================================================================== */
/**
* Add the correct display in IE 9-.
* 1. Add the correct display in IE.
*/
figcaption,
figure,
main { /* 1 */
display: block;
}
/**
* Add the correct margin in IE 8.
*/
figure {
margin: 1em 40px;
}
/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
pre {
font-family: monospace, monospace; /* 1 */
font-size: 1em; /* 2 */
}
/* Text-level semantics
========================================================================== */
/**
* 1. Remove the gray background on active links in IE 10.
* 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
*/
a {
background-color: transparent; /* 1 */
-webkit-text-decoration-skip: objects; /* 2 */
}
/**
* 1. Remove the bottom border in Chrome 57- and Firefox 39-.
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
*/
abbr[title] {
border-bottom: none; /* 1 */
text-decoration: underline; /* 2 */
text-decoration: underline dotted; /* 2 */
}
/**
* Prevent the duplicate application of `bolder` by the next rule in Safari 6.
*/
b,
strong {
font-weight: inherit;
}
/**
* Add the correct font weight in Chrome, Edge, and Safari.
*/
b,
strong {
font-weight: bolder;
}
/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
code,
kbd,
samp {
font-family: monospace, monospace; /* 1 */
font-size: 1em; /* 2 */
}
/**
* Add the correct font style in Android 4.3-.
*/
dfn {
font-style: italic;
}
/**
* Add the correct background and color in IE 9-.
*/
mark {
background-color: #ff0;
color: #000;
}
/**
* Add the correct font size in all browsers.
*/
small {
font-size: 80%;
}
/**
* Prevent `sub` and `sup` elements from affecting the line height in
* all browsers.
*/
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
/* Embedded content
========================================================================== */
/**
* Add the correct display in IE 9-.
*/
audio,
video {
display: inline-block;
}
/**
* Add the correct display in iOS 4-7.
*/
audio:not([controls]) {
display: none;
height: 0;
}
/**
* Remove the border on images inside links in IE 10-.
*/
img {
border-style: none;
}
/**
* Hide the overflow in IE.
*/
svg:not(:root) {
overflow: hidden;
}
/* Forms
========================================================================== */
/**
* 1. Change the font styles in all browsers (opinionated).
* 2. Remove the margin in Firefox and Safari.
*/
button,
input,
optgroup,
select,
textarea {
font-family: sans-serif; /* 1 */
font-size: 100%; /* 1 */
line-height: 1.15; /* 1 */
margin: 0; /* 2 */
}
/**
* Show the overflow in IE.
* 1. Show the overflow in Edge.
*/
button,
input { /* 1 */
overflow: visible;
}
/**
* Remove the inheritance of text transform in Edge, Firefox, and IE.
* 1. Remove the inheritance of text transform in Firefox.
*/
button,
select { /* 1 */
text-transform: none;
}
/**
* 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
* controls in Android 4.
* 2. Correct the inability to style clickable types in iOS and Safari.
*/
button,
html [type="button"], /* 1 */
[type="reset"],
[type="submit"] {
-webkit-appearance: button; /* 2 */
}
/**
* Remove the inner border and padding in Firefox.
*/
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
border-style: none;
padding: 0;
}
/**
* Restore the focus styles unset by the previous rule.
*/
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
outline: 1px dotted ButtonText;
}
/**
* Correct the padding in Firefox.
*/
fieldset {
padding: 0.35em 0.75em 0.625em;
}
/**
* 1. Correct the text wrapping in Edge and IE.
* 2. Correct the color inheritance from `fieldset` elements in IE.
* 3. Remove the padding so developers are not caught out when they zero out
* `fieldset` elements in all browsers.
*/
legend {
box-sizing: border-box; /* 1 */
color: inherit; /* 2 */
display: table; /* 1 */
max-width: 100%; /* 1 */
padding: 0; /* 3 */
white-space: normal; /* 1 */
}
/**
* 1. Add the correct display in IE 9-.
* 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
*/
progress {
display: inline-block; /* 1 */
vertical-align: baseline; /* 2 */
}
/**
* Remove the default vertical scrollbar in IE.
*/
textarea {
overflow: auto;
}
/**
* 1. Add the correct box sizing in IE 10-.
* 2. Remove the padding in IE 10-.
*/
[type="checkbox"],
[type="radio"] {
box-sizing: border-box; /* 1 */
padding: 0; /* 2 */
}
/**
* Correct the cursor style of increment and decrement buttons in Chrome.
*/
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
height: auto;
}
/**
* 1. Correct the odd appearance in Chrome and Safari.
* 2. Correct the outline style in Safari.
*/
[type="search"] {
-webkit-appearance: textfield; /* 1 */
outline-offset: -2px; /* 2 */
}
/**
* Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
*/
[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
/**
* 1. Correct the inability to style clickable types in iOS and Safari.
* 2. Change font properties to `inherit` in Safari.
*/
::-webkit-file-upload-button {
-webkit-appearance: button; /* 1 */
font: inherit; /* 2 */
}
/* Interactive
========================================================================== */
/*
* Add the correct display in IE 9-.
* 1. Add the correct display in Edge, IE, and Firefox.
*/
details, /* 1 */
menu {
display: block;
}
/*
* Add the correct display in all browsers.
*/
summary {
display: list-item;
}
/* Scripting
========================================================================== */
/**
* Add the correct display in IE 9-.
*/
canvas {
display: inline-block;
}
/**
* Add the correct display in IE.
*/
template {
display: none;
}
/* Hidden
========================================================================== */
/**
* Add the correct display in IE 10-.
*/
[hidden] {
display: none;
}