Files
aether/static/css/style.css
Joseph Hutchinson 40502c3010 Improve card layout
2018-03-16 16:12:33 -04:00

142 lines
2.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: 1rem;
line-height: 1.5;
margin: 0;
padding: 0;
}
p {
margin: 1.5rem 0;
}
b,
strong {
font-family: 'LatoLatinWebHeavy';
font-weight: normal
}
header > h1 {
font-size: 2em;
line-height: 1.2em;
margin-bottom: 0;
}
.post-date {
color: #7A7B7C;
font-size: .8em
}
article > p:first-of-type::first-letter {
font-family: 'LatoLatinWebHeavyItalic';
float: left;
font-size: 3em;
line-height: 1em;
padding-right: 0.1em;
margin-bottom: -0.2em;
/* initial-letter: 2; Maybe someday*/
}
img {
width: 100%;
height: auto
}
.content-container {
display: flex;
justify-content: center;
padding: 0 15px;
}
.content {
max-width: 700px;
width: 100%;
}
.card-container {
width: 100%;
}
.card-columns {
display: grid;
grid-template-columns: 1fr;
grid-gap: 25px;
justify-content: center;
}
.card {
background-color: white;
}
blockquote {
border-left: 5px solid #D1D1D1;
margin: 1.5em 20px;
padding: .5em 10px;
font-style: italic;
}
blockquote p {
display: inline
}
ul,
ol {
padding-left: 35px
}
li ul, li ol {
padding-left: 20px;
}
li > p {
margin: 0px;
}
code {
font-family: monospace;
padding: .2em .5em;
font-size: 0.95em;
border-radius: 3px;
background-color: #f3f3f3;
}
hr {
border: 0;
border-bottom: 1px solid #D1D1D1;
margin-top: 3.125rem 0;
}
table {
color: #3A3B3C;
border-collapse: collapse;
border-spacing: 0;
margin: 1.5rem 0;
}
td,
th {
padding: 7px 15px;
border: 1px solid #D1D1D1
}
th {
font-family: 'LatoLatinWebHeavy';
font-weight: normal
}
tr:nth-child(even) td {
background: #f3f3f3;
}
/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
}
/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
body {
font-size: 1.125rem;
}
.card-container{
max-width: 700px;
}
.card-columns {
grid-template-columns: repeat(2, 1fr);
}
}
/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
.card-container{
max-width: 900px;
}
.card-columns {
grid-template-columns: repeat(3, 1fr);
}
}
/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
}