abdullahtarawneh.com/assets/scss/base/page.scss

135 lines
2.4 KiB
SCSS
Raw Normal View History

2020-10-17 02:41:13 +00:00
.page-title {font-size: 2.5em;}
2020-10-16 20:00:32 +00:00
.page {
font-size: 1em;
@media (min-width: 600px) {font-size: 1.25em;}
max-width: 960px;
margin: 0 auto;
@media (min-width: 960px) {
display: grid;
grid-template-columns: minmax(45ch,65ch) 1fr;
grid-template-rows: auto auto;
grid-template-areas:
"header header"
2020-10-16 20:00:32 +00:00
"content meta";
}
.section {
padding: 1em 0;
grid-area: content;
}
.page-header {
padding: 2em 0;
grid-area: header;
}
.meta {
grid-area: meta;
}
2020-10-17 02:41:13 +00:00
.page-summary {margin: 1em 0;}
.page-cover {width: 100%;}
2020-10-25 05:15:18 +00:00
h1,h2,h3,h4,h5,h6 {line-height: 1.2; margin-bottom: 1rem; margin-top: 2rem;}
2020-10-17 02:41:13 +00:00
p {
line-height: 1.4;
margin-bottom: 1em;
}
h1 {font-size: 2.49em}
h2 {font-size: 2.07em}
h3 {font-size: 1.728em}
h4 {font-size: 1.44em}
h5 {font-size: 1.2em}
h6 {font-size: 1em}
blockquote {
2020-10-25 05:15:18 +00:00
font-size: 1em;
2020-10-17 02:41:13 +00:00
margin: 1em 0;
border-left: 0.25rem solid black;
padding-left: 0.5em;
}
pre {
font-family: monospace;
background: #333;
color: white;
padding: 1em;
line-height: 1.4;
overflow-x: scroll;
margin-bottom: 1em;
}
ul {list-style: disc; margin: 1em 0;}
li {margin-bottom: 1em; line-height: 1.4; margin-left: 1em;}
ol {list-style: decimal; margin: 1em 0;}
dl {margin: 1em 0; line-height: 1.4;}
dt {font-weight: 700;}
dd {margin-left: 1em;}
em {font-style: italic}
strong {font-weight: 700}
sup {
position: relative;
font-size: 0.8em;
a {position: relative; top: -0.5em;}
}
table {
text-align: center;
thead {
font-weight: 700;
}
th, td {border: 1px solid black; padding: 0.5em;}
}
2020-10-26 06:29:04 +00:00
figure {
img {width: 100%;}
figcaption {
background: #212121;
color: white;
font-style: italic;
padding: 1em;
font-size: 0.8em;
line-height: 1.2;
}
margin-bottom: 1em;
}
2020-10-30 00:53:56 +00:00
img {
width: 100%;
margin-bottom: 1em;
}
2020-10-16 20:00:32 +00:00
}
.tags {
display: flex;
flex-flow: row wrap;
gap: 0.25em;
li {
2020-10-30 00:01:40 +00:00
list-style: none;
2020-10-16 20:00:32 +00:00
border-radius: 4px;
margin-left: 1em;
2020-10-17 02:41:13 +00:00
margin-bottom: 0;
2020-10-16 20:00:32 +00:00
a {color: inherit;}
2020-10-30 00:53:56 +00:00
a:hover {color: white}
2020-10-16 20:00:32 +00:00
}
2020-10-17 02:41:13 +00:00
}
.meta .container {height: 100%}
2020-10-17 02:41:13 +00:00
#TableOfContents {
position: sticky;
top: 2rem;
max-width: max-content;
font-size: 0.75em;
2020-10-17 02:41:13 +00:00
margin: 2em 0;
ul {list-style: none; margin: 0;}
li {margin-bottom: 0; margin-left: 0;}
li li {margin-left: 1em;}
a {
2020-10-25 05:15:18 +00:00
background: unset;
text-decoration-thickness: unset;
text-underline-offset: unset;
color: inherit;
text-decoration: none;
transition: color 0.2s ease-in-out;
&:hover {
color: #0060ff;
text-decoration: underline;
}
}
2020-10-16 20:00:32 +00:00
}