1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-26 18:48:28 -04:00
jarv.is/components/notes/Meta.module.scss
Jake Jarvis b1bcdeb84b
allow markdown in mdx page titles (carefully)
mainly for `code` but also bold and italic text
2022-01-04 13:49:07 -05:00

79 lines
1.1 KiB
SCSS

.meta {
display: flex;
flex-wrap: wrap;
font-size: 0.825em;
line-height: 2.3;
letter-spacing: 0.04em;
color: var(--medium);
a {
color: inherit;
background: none;
padding-bottom: 0;
}
> div {
display: inline-flex;
margin-right: 1.6em;
white-space: nowrap;
&:last-of-type {
margin-right: 0;
}
}
}
.icon {
margin-right: 0.6em;
}
.date,
.edit {
a {
display: inline-flex;
}
}
.tags {
white-space: normal;
display: inline-flex;
flex-wrap: wrap;
.tag {
text-transform: lowercase;
white-space: nowrap;
margin-right: 0.75em;
&::before {
content: "#"; // cosmetically hashtagify tags
padding-right: 0.125em;
color: var(--light);
}
&:last-of-type {
margin-right: 0;
}
}
}
.title {
margin: 0.3em 0 0.5em -0.03em; // TODO: why is this indented slightly?
font-size: 2.1em;
line-height: 1.3;
font-weight: 700;
a {
background: none;
padding-bottom: 0;
color: inherit;
}
code {
font-size: 1em;
background: none !important;
border: 0 !important;
margin: 0 0.075em !important;
padding: 0 !important;
}
}