hugo-theme-more-contentful/assets/scss/layout.scss

260 lines
3.6 KiB
SCSS
Raw Permalink Normal View History

2023-02-24 13:03:23 +00:00
header[aria-label="Site header"] {
2023-02-24 12:22:52 +00:00
position: relative;
a {
color: var(--base06);
2023-02-24 13:03:23 +00:00
&:hover {
color: var(--accent-color);
2023-02-24 13:03:23 +00:00
text-decoration: unset;
}
}
}
2023-02-24 13:03:23 +00:00
footer[aria-label="Site footer"] {
> * {
margin-top: 1em;
margin-bottom: 0;
}
}
.site__icon {
height: 1rem;
width: 1rem;
fill: currentColor;
}
.site__list {
display: inline-flex;
align-items: baseline;
flex-flow: row wrap;
gap: 0.75em;
justify-content: space-around;
list-style: none;
margin: 0;
padding: 0;
}
.site__title {
font-size: 2rem;
}
.site__nav-header {
display: flex;
align-items: baseline;
flex-flow: row wrap;
gap: 0.5em;
2023-10-28 08:51:51 +00:00
a {
text-decoration: none;
&:hover {
background: unset;
color: initial;
}
}
}
.site__languages {
margin: 0 0.5em;
}
.site__socials {
display: flex;
font-style: unset;
gap: 1em;
}
.site__social-icon {
2023-10-28 08:51:51 +00:00
&:hover {
background: unset;
color: var(--base0C);
}
svg {
--size: 1.25em;
height: var(--size);
width: var(--size);
}
}
.site__theme-btn {
padding: 0.5em;
2023-02-24 12:22:52 +00:00
position: absolute;
top: 0;
right: 0;
[dir="rtl"] & {
right: unset;
left: 0;
}
&:hover {
2023-02-24 13:03:23 +00:00
color: unset !important;
& .site__theme-dropdown {
display: unset;
}
}
}
.site__theme-dropdown {
2022-05-01 12:38:07 +00:00
background: var(--background);
2022-04-29 17:42:08 +00:00
border: var(--border-style);
display: none;
2022-04-29 17:42:08 +00:00
padding: 0.5em;
position: absolute;
right: 0;
2022-05-01 12:38:07 +00:00
top: 1.5em;
2022-04-29 17:42:08 +00:00
width: max-content;
[dir="rtl"] & {
right: unset;
left: 0;
}
2022-04-29 17:42:08 +00:00
}
.site__theme-dropdown-list {
display: flex;
flex-flow: column;
}
.site__theme-item {
padding: 0 0.5em;
2022-04-29 17:42:08 +00:00
&[data-theme-light] { order: -1; }
&[data-theme-dark] { order: -1; }
&[data-theme-system] { order: -2; }
.site__theme-dropdown &:hover {
background: var(--selection-color);
cursor: pointer;
}
2022-06-13 09:06:29 +00:00
&--selected {
background: var(--base05);
color: var(--background);
&:hover { color: var(--base05); }
2022-06-13 09:06:29 +00:00
};
}
.pagination {
display: flex;
font-size: 1rem;
list-style: none;
justify-content: center;
margin: 1.2rem 0;
padding: 0.8rem;
& > * {
margin: 0 0.25em;
text-decoration: none;
}
}
.page-link {
background: var(--base01);
2022-05-01 12:38:07 +00:00
color: var(--accent-color);
text-decoration: none;
padding: 0.5em;
&:hover {
2020-11-06 10:20:16 +00:00
background: var(--base0B);
2022-05-01 12:38:07 +00:00
color: var(--background);
text-decoration: none;
}
}
.page-link--active {
@extend .page-link;
2022-05-01 12:38:07 +00:00
background: var(--foreground);
color: var(--background);
font-weight: bolder;
padding: 0.5em;
}
.post {
background: var(--base01);
margin-top: 1rem;
padding: 0.5em;
h1 {
margin: 0 auto;
}
}
.post__meta {
2022-05-01 12:38:07 +00:00
color: var(--foreground);
font-size: 0.9em;
margin-top: 0.5em;
&-icon-label {
gap: 0.25em;
display: inline-flex;
2023-05-15 05:41:24 +00:00
align-items: center;
}
.post--single & {
background: var(--base01);
2022-05-01 12:38:07 +00:00
color: var(--foreground);
font-size: 0.9em;
padding: 0 0.5em;
2023-03-18 06:55:37 +00:00
margin: 0;
}
}
.post__meta--single {
background: var(--base01);
2022-05-01 12:38:07 +00:00
color: var(--foreground);
font-size: 0.9em;
margin: 0.5em auto;
padding: 0.5em 1em;
& > * {
margin: 0.5em auto;
}
}
2020-11-06 10:20:16 +00:00
2021-01-27 16:21:42 +00:00
.posts--list {
list-style: none;
padding-left: 1em;
margin: 1em auto;
}
.post--list {
display: flex;
& > * {
2021-01-27 16:21:42 +00:00
margin-right: 0.5em;
}
}
2021-01-27 16:21:42 +00:00
.post--list__date {
white-space: nowrap;
}
2021-01-27 16:21:42 +00:00
.taxonomy__header {
display: flex;
2021-01-27 16:21:42 +00:00
align-items: center;
justify-content: start;
& > * {
2021-01-27 16:21:42 +00:00
margin: 0;
margin-right: 0.25em;
}
}
#TableOfContents {
background: var(--base01);
font-size: 0.9em;
padding: 1em;
2023-02-27 08:54:43 +00:00
> ul { margin-bottom: unset; }
ul {
list-style: disc;
padding-left: 1em;
}
}
2021-01-27 16:21:42 +00:00