Files
aether/static/css/style.css
Joseph Hutchinson e1826f771f Tweak
2018-04-14 18:43:11 -04:00

248 lines
4.5 KiB
CSS

body {
font-family: 'LatoLatinWeb', Avenir, HelveticaNeue-Light, "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
color: #3A3B3C;
font-size: 1.1em;
margin: 0;
padding: 3em 0 0 0;
}
p {
margin: 1em 0;
}
b,
strong {
font-family: 'LatoLatinWebHeavy';
font-weight: normal
}
.nav-bar {
position: fixed;
top: 0;
z-index: 999;
width: 100%;
padding: 0.45em 0;
text-align: center;
background-color: rgba(255, 255, 255, 0.97);
-webkit-backdrop-filter: blur(0.05em);
box-shadow: 0 0.1em 2em 0 rgba(0, 0, 0, 0.08);
}
.nav-header {
margin: 0 0;
}
.post {
line-height: 1.5;
}
.post-header {
margin: 1.5em 0;
}
.post-title {
font-size: 1.8em;
line-height: 1.2;
margin: 0.4em 0;
}
.post-date {
display: block;
color: #7A7B7C;
font-size: 0.8em;
margin: 0;
}
.post-figure {
margin: 1.5em 0;
}
.post > p:first-of-type::first-letter {
font-family: 'LatoLatinWebHeavyItalic';
float: left;
font-size: 3em;
line-height: 1em;
padding-right: 0.1em;
/* initial-letter: 2; Maybe someday*/
}
img {
width: 100%;
height: auto
}
.content-container {
display: flex;
justify-content: center;
padding: 0 1em;
}
.card-content-container {
display: flex;
flex-direction: column;
align-items: center;
padding: 0 0.7em;
}
.content {
max-width: 700px;
width: 100%;
}
.list-header {
margin: 2.5em 0;
text-align: center;
}
.list-header-title {
margin: 0 0 0.2em 0;
}
.list-header-subtext {
color: #7A7B7C;
font-size: 1.2em;
line-height: 1.6;
font-weight: normal;
margin: 0.5em auto 0 auto;
width: 12em;
}
.card-container {
width: 100%;
}
.card-columns {
display: grid;
grid-template-columns: 1fr;
grid-gap: 1.5em;
justify-content: center;
}
.card {
color: rgb(52, 58, 63);
display: flex;
flex-direction: column;
align-items: stretch;
background-color: white;
border-radius: 0.2em;
text-decoration: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
transition: all 0.3s cubic-bezier(.25,.8,.25,1);
box-shadow: 0 0.4em 0.8em rgba(0,0,0,0.16), 0 0.3em 0.3em rgba(0,0,0,0.23);
}
.card-active {
transform: scale(0.95);
box-shadow: 0 0.15em 0.3em rgba(0, 0, 0, 0.16), 0 0.15em 0.3em rgba(0, 0, 0, 0.23);
}
.card-body {
padding: 1em;
}
.card-img {
border-radius: 0.2em 0.2em 0 0;
margin-bottom: -1.2em;
max-height: 10em;
object-fit: cover;
}
.card-title {
margin: 0.5em 0 0.7em 0;
line-height: 1.2;
/* text-align: center; */
}
.card-date {
margin: 0.7em 0 0 0;
display: block;
/* text-align: center; */
}
.card-text {
line-height: 1.5;
margin: 0.7em 0;
}
blockquote {
border-left: 0.3em solid #D1D1D1;
margin: 1.5em 0.8em;
padding: .5em 0.5em;
font-style: italic;
}
blockquote p {
display: inline;
}
ul,
ol {
padding-left: 1.6em;
}
li ul, li ol {
padding-left: 1em;
}
li > p {
margin: 0;
}
code {
font-family: monospace;
padding: .2em .5em;
line-height: 1.5;
border-radius: 0.2em;
background-color: #f3f3f3;
}
hr {
border: 0;
border-bottom: 1px solid #D1D1D1;
margin-top: 3em 0;
}
a {
text-decoration: none;
color: #3A3B3C;
}
table {
color: #3A3B3C;
border-collapse: collapse;
border-spacing: 0;
margin: 1em 0;
}
td,
th {
padding: 0.5em 1em;
border: thin solid #D1D1D1
}
th {
font-family: 'LatoLatinWebHeavy';
font-weight: normal
}
tr:nth-child(even) td {
background: #f3f3f3;
}
footer {
padding: 2em 0;
margin: 2em 0 0 0;
}
/* Medium devices (tablets, ~641px and up) */
@media only screen and (min-width: 40.063em) {
body {
font-size: 1.125rem;
}
.list-header {
margin: 5em 0;
}
.card-container{
max-width: 42em;
}
.card-columns {
grid-gap: 2em;
}
.card {
flex-direction: row;
align-items: stretch;
}
.card-active {
transform: scale(0.97);
}
.card-img {
border-radius: 0.2em 0 0 0.2em;
margin: 0;
max-height: unset;
height: 100%;
width: 15em;
}
.card-body {
padding: 1em 1.5em;
}
}
/* Large devices (desktops, ~1025px and up) */
@media only screen and (min-width: 64.063em) {
.post-title {
font-size: 2.5em;
}
.card-container{
}
.card-columns {
}
}
/* Extra large devices (large desktops, ~1441px and up) */
@media only screen and (min-width: 90.063em) {
}