hugo-theme-paradox/assets/styles/shortcodes/ref.scss

69 lines
1.1 KiB
SCSS
Raw Permalink Normal View History

2022-12-19 15:10:26 +00:00
.ref-link {
background: var(--ui-overlay);
color: var(--ui-overlay-text);
&:link, &:visited {
color: var(--ui-overlay-text);
}
&:hover {
background: var(--primary-accent);
color: var(--primary-accent-text);
}
transition:
background var(--color-crossfade-duration) var(--color-crossfade-ease),
color var(--color-crossfade-duration) var(--color-crossfade-ease);
display: grid;
align-items: center;
gap: 1em;
@media (min-width: 20rem) {
grid-template-columns: 3em 1fr;
}
2022-12-23 11:21:41 +00:00
margin-block: 1em;
2022-12-19 15:10:26 +00:00
padding: 1em;
border-radius: 6px;
text-decoration: none;
&__icon {
2022-12-23 11:21:41 +00:00
block-size: 3em;
inline-size: 3em;
2022-12-19 15:10:26 +00:00
grid-column: 1;
background: var(--primary-accent);
color: var(--primary-accent-text);
display: grid;
place-items: center;
border-radius: 8px;
}
&__text {
grid-column: 2 / -1;
}
svg {
2022-12-23 11:21:41 +00:00
block-size: 1.5em;
inline-size: 1.5em;
2022-12-19 15:10:26 +00:00
}
}
.page-ref {
font-weight: 700;
&__title {
}
&__section {
}
}
.source-ref {
word-break: break-all;
&__name {
font-weight: 700;
}
&__path {
2022-12-23 11:21:41 +00:00
margin-block-start: 8px;
2022-12-19 15:10:26 +00:00
display: block;
font-family: monospace;
}
}
.section-ref {
&__title {
font-weight: 700;
}
}