188 lines
3.1 KiB
SCSS
Raw Normal View History

2020-02-20 14:38:25 -08:00
body.page {
@media (max-width: 500px) {
font-size: 0.9em;
2020-02-20 14:38:25 -08:00
}
header {
background: $gray-800;
&.active { background: white; }
}
}
body.post {
#body {
max-width: 1200px;
margin-left: auto;
margin-right: auto;
padding: 5px;
}
2020-03-05 19:42:57 -08:00
.tweet {
max-width: 660px;
margin: 2em auto;
}
}
body.gdb {
2020-02-20 14:38:25 -08:00
#body {
background-color: $gutter-bg;
@media (max-width: 500px) {
border-left: 1px solid $gutter-border;
border-right: 1px solid $gutter-border;
}
border-bottom: 1px solid $gutter-border;
max-width: 1200px;
margin-left: auto;
margin-right: auto;
2020-02-20 14:38:25 -08:00
}
article {
@media (min-width: 800px) {
margin-right: 400px;
@media (max-width: 1000px) {
margin-right: 300px;
}
}
background: $content-bg;
border-right: 1px solid $gutter-border;
padding: 1em 1em;
> h1:first-child {
margin-top: 0.5em;
}
@media (max-width: 500px) {
padding: 1em 1em;
> h1:first-child {
margin-top: 0.25em;
}
}
h1, h2, h3, h4, h5 { a {
color: inherit;
overflow: hidden;
} }
.gutter {
@media (min-width: 800px) {
position: relative;
height: 0;
left: calc(100% + 1em);
width: 400px;
padding: 0 1em;
@media (max-width: 1000px) {
width: 300px;
}
}
2020-02-20 14:38:25 -08:00
@media (min-width: 500px) and (max-width: 800px) {
float: right;
2020-02-20 14:38:25 -08:00
width: 300px;
margin-left: 1em;
zoom: 0.9;
2020-02-20 14:38:25 -08:00
}
// outline: 1px solid red;
2020-02-20 14:38:25 -08:00
&.flex, .flex {
display: flex;
flex-direction: column;
align-items: center;
}
2020-02-20 14:38:25 -08:00
> a > img:not(.card-img-top), > img {
max-width: 100%;
margin-bottom: 5px;
}
2020-02-20 14:38:25 -08:00
}
.full-wide {
width: calc(100vw - 4em);
background-color: darken($content-bg, 1%);
border: 1px solid $gutter-border;
border-radius: 0.3em;
padding: 1.2em 1.2em 1em;
2020-02-20 14:38:25 -08:00
box-shadow: 0 1px 3px rgba($gray-600, 0.5);
margin-bottom: 1em;
}
2020-02-20 14:38:25 -08:00
}
}
2020-03-02 20:28:46 -08:00
body.ttt {
$borderColor: #e1e8ed;
$borderHover: #ccd6dd;
$textLight: #697882;
$textDark: #1c2022;
$textHover: #3b94d9;
$borderRadius: .35em;
.ttt-grid {
padding: 1em;
2020-03-05 19:42:57 -08:00
max-width: 660px;
margin: 0 auto;
2020-03-02 20:28:46 -08:00
}
2020-03-05 19:42:57 -08:00
.ttt-post {
background: $gutter-bg;
padding: 0.6em 1em;
margin: 0 0 2em 0;
border-radius: $borderRadius;
box-shadow: inset 0 1px 2px rgba($gray-600, 0.2);
.ttt-head {
display: flex;
margin-bottom: 0.5em;
.ttt-tags {
flex: 1;
display: flex;
align-items: stretch;
}
}
.tweet {
box-shadow: 0 1px 2px rgba($gray-600, 0.5);
border: none;
}
}
.ttt-tag {
margin-right: 0.5em;
}
.ttt-link {
display: flex;
flex-direction: row;
align-items: center;
2020-03-02 20:28:46 -08:00
.svg-icon {
height: 1em;
width: 1em;
2020-03-05 19:42:57 -08:00
margin-right: 0.4em;
2020-03-02 20:28:46 -08:00
}
}
2020-03-05 19:42:57 -08:00
.ttt-tag, .ttt-link {
background: white;
border: 1px solid $borderColor;
font-size: 10px;
padding: 2px 5px;
border-radius: $borderRadius;
box-shadow: 0 1px 1px rgba($gray-600, 0.2);
}
2020-03-02 20:28:46 -08:00
}