Hugo-theme-stack/assets/scss/partials/widgets.scss

68 lines
1.4 KiB
SCSS
Raw Normal View History

2020-08-22 07:20:08 -04:00
.widget {
2022-03-03 17:11:19 -05:00
display: flex;
flex-direction: column;
2020-08-22 07:20:08 -04:00
.widget-icon {
svg {
width: 32px;
height: 32px;
2020-09-03 17:32:28 -04:00
stroke-width: 1.6;
2020-08-22 07:20:08 -04:00
color: var(--body-text-color);
}
}
}
/* Tag cloud widget */
.tagCloud {
.tagCloud-tags {
display: flex;
flex-wrap: wrap;
2022-03-03 17:11:19 -05:00
gap: 10px;
2020-08-22 07:20:08 -04:00
a {
background: var(--card-background);
box-shadow: var(--shadow-l1);
2020-08-22 07:20:08 -04:00
border-radius: var(--tag-border-radius);
padding: 8px 20px;
color: var(--card-text-color-main);
font-size: 1.4rem;
transition: box-shadow 0.3s ease;
&:hover {
box-shadow: var(--shadow-l2);
}
2020-08-22 07:20:08 -04:00
}
}
}
2020-09-13 05:22:47 -04:00
/* Archives widget */
.widget.archives {
2020-10-17 04:34:36 -04:00
.widget-archive--list {
border-radius: var(--card-border-radius);
box-shadow: var(--shadow-l1);
background-color: var(--card-background);
}
2020-09-13 05:22:47 -04:00
.archives-year {
2020-10-17 04:34:36 -04:00
&:not(:last-of-type) {
border-bottom: 1.5px solid var(--card-separator-color);
}
2020-08-22 07:20:08 -04:00
a {
2020-10-17 04:34:36 -04:00
font-size: 1.4rem;
padding: 18px 25px;
2020-08-22 07:20:08 -04:00
display: flex;
2020-08-22 07:20:08 -04:00
span.year {
flex: 1;
color: var(--card-text-color-main);
2020-10-17 04:34:36 -04:00
font-weight: bold;
2020-08-22 07:20:08 -04:00
}
span.count {
color: var(--card-text-color-tertiary);
}
}
}
}