2020-07-13 21:26:05 +00:00
|
|
|
// media queries
|
|
|
|
|
2020-07-14 16:46:08 +00:00
|
|
|
@media only screen and (max-width: $screen-mobile) {
|
|
|
|
section#author {
|
|
|
|
align-items: center;
|
|
|
|
flex-direction: column;
|
|
|
|
span {
|
|
|
|
display: block;
|
|
|
|
padding-bottom: 0.5vmax;
|
|
|
|
}
|
|
|
|
}
|
2020-08-13 21:02:34 +00:00
|
|
|
#toc {
|
|
|
|
display: none;
|
|
|
|
}
|
2020-08-14 16:23:35 +00:00
|
|
|
.hidden-mobile {
|
|
|
|
display: none;
|
|
|
|
}
|
2020-07-14 16:46:08 +00:00
|
|
|
}
|
|
|
|
|
2020-07-13 21:26:05 +00:00
|
|
|
@media only screen and (max-width: $screen-tablet) {
|
|
|
|
main {
|
|
|
|
align-self: stretch;
|
|
|
|
overflow-x: hidden; // safety for negative figure margin below
|
2020-08-13 21:02:34 +00:00
|
|
|
width: auto !important;
|
2020-07-13 21:26:05 +00:00
|
|
|
|
|
|
|
aside,
|
|
|
|
article h2,
|
2020-07-14 16:46:08 +00:00
|
|
|
article h3,
|
2020-08-13 21:02:34 +00:00
|
|
|
article h4,
|
|
|
|
article p,
|
|
|
|
article blockquote {
|
2020-07-13 21:26:05 +00:00
|
|
|
margin-left: 0;
|
|
|
|
margin-right: 0;
|
|
|
|
max-width: 100%;
|
|
|
|
text-align: left;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
article {
|
|
|
|
ul {
|
2020-08-13 21:02:34 +00:00
|
|
|
align-self: start;
|
2020-07-13 21:26:05 +00:00
|
|
|
padding: 0;
|
2020-08-13 21:02:34 +00:00
|
|
|
width: 100%;
|
2020-07-13 21:26:05 +00:00
|
|
|
}
|
|
|
|
figure {
|
2020-08-14 17:45:07 +00:00
|
|
|
margin: 2vmax -6vmin 1vmax; // move images outward
|
|
|
|
max-width: 100vw;
|
|
|
|
figcaption {
|
|
|
|
margin: 0 12vmin;
|
|
|
|
}
|
2020-07-13 21:26:05 +00:00
|
|
|
}
|
|
|
|
}
|
2020-08-13 21:02:34 +00:00
|
|
|
|
|
|
|
&#list {
|
|
|
|
// move the numbers to the top
|
|
|
|
section {
|
|
|
|
list-style-position: inside;
|
|
|
|
h2 {
|
|
|
|
margin-top: 1vmax;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-07-13 21:26:05 +00:00
|
|
|
}
|
|
|
|
ul.list li {
|
|
|
|
flex-direction: column;
|
|
|
|
time {
|
|
|
|
padding: 1vmax 0 0 0;
|
|
|
|
}
|
|
|
|
}
|
2020-08-13 21:02:34 +00:00
|
|
|
#toc {
|
|
|
|
right: -67vw;
|
|
|
|
width: 67vw;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media only screen and (max-width: $screen-laptop) {
|
|
|
|
#toc {
|
|
|
|
right: -50vw;
|
|
|
|
width: 50vw;
|
|
|
|
}
|
2020-07-13 21:26:05 +00:00
|
|
|
}
|
|
|
|
|
2020-08-14 16:23:35 +00:00
|
|
|
@media only screen and (min-width: $screen-tablet) {
|
|
|
|
.show-mobile {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-13 21:26:05 +00:00
|
|
|
@media only screen and (min-width: $screen-display) {
|
|
|
|
main article h2 {
|
|
|
|
margin: 2vmax 7vmin 1vmax;
|
|
|
|
}
|
|
|
|
ul.list li time {
|
|
|
|
padding-left: 3rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media only screen and (min-width: $screen-full) {
|
|
|
|
main article h2 {
|
|
|
|
margin: 2vmax 5vmin 1vmax;
|
|
|
|
}
|
|
|
|
}
|