Skip to content

Commit

Permalink
Add categories scss
Browse files Browse the repository at this point in the history
  • Loading branch information
sylhare committed Dec 10, 2022
1 parent 9ab2541 commit f2bfc4b
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 0 deletions.
87 changes: 87 additions & 0 deletions _sass/layouts/_categories.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
#categories {
.category-clouds {
margin: 30px 0 30px;

li {
background-color: var(--link);
display: inline-block;
margin-bottom: 10px;
margin-right: 3px;
padding: 0 15px;
border-radius: 20px;
color: var(--header-text);
font-weight: 600;
font-size: 0.8rem;
line-height: 35px;
letter-spacing: -0.03rem;

.category-number {
vertical-align: super;
font-size: 0.625rem;
}

.p {
opacity: 1;
}
}

li:hover {
background-color: var(--header-background) !important;
color: var(--header-text);
}

.category-anchor:hover {
text-decoration: none !important;
filter: none;
}
}

.category-group {
padding: 15px 0 10px;

.title {
margin-bottom: 10px;
}

.items {
padding-left: $padding-medium;

.item {
position: relative;
margin: 25px 0;

.meta {
color: var(--meta);
font-size: 0.85rem;
}

.title {
font-weight: 600;
color: var(--text);
}
}

.item::before {
content: "";
position: absolute;
left: -5%;
width: 8px;
background-color: var(--selection);
border-radius: 8px;
height: 100%;
}

.category-post-link:hover {
text-decoration: none;

.meta, .title {
color: var(--header-background);
}

.item::before {
background-color: var(--link);
}
}
}
}
}
1 change: 1 addition & 0 deletions _sass/type-on-strap.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
/* Posts */
// Linked with the html in the _layouts folder
@import 'layouts/posts';
@import 'layouts/categories';
@import 'layouts/blog';
@import 'layouts/page';
@import 'layouts/tags';
Expand Down

0 comments on commit f2bfc4b

Please sign in to comment.