Skip to content

Commit d0e9bb6

Browse files
committed
feat(tags): Boxify
Signed-off-by: Khusika Dhamar Gusti <[email protected]>
1 parent 60ef085 commit d0e9bb6

File tree

1 file changed

+33
-7
lines changed

1 file changed

+33
-7
lines changed

assets/css/_partial/_archive/_tags.scss

Lines changed: 33 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,53 @@
11
.tag-cloud-tags {
2-
text-align: center;
3-
margin: 1rem 0 10px;
2+
display: flex;
3+
flex-wrap: wrap;
4+
justify-content: center;
5+
gap: 20px;
6+
margin: 1.5rem 0 10px;
47

58
@include link(true, true);
69

710
a {
11+
font-weight: bold;
812
display: inline-block;
913
position: relative;
10-
margin: 5px 15px;
14+
padding: 0.5em 1em;
15+
background-color: $global-background-card-color;
16+
@include border-radius(4px);
17+
@include box-shadow(0 1px 3px rgba(0, 0, 0, 0.1));
1118
@include overflow-wrap(break-word);
12-
@include transition(all ease-out 0.3s);
19+
20+
[theme=dark] & {
21+
background-color: $global-background-card-color-dark;
22+
@include box-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
23+
}
1324

1425
&:active,
1526
&:focus,
1627
&:hover {
17-
@include transform(scale(1.2));
28+
@include transform(scale(1.1));
29+
z-index: 1;
1830
}
1931

2032
sup {
21-
color: $global-font-secondary-color;
33+
position: absolute;
34+
top: -8px;
35+
right: -8px;
36+
display: flex;
37+
align-items: center;
38+
justify-content: center;
39+
width: 20px;
40+
height: 20px;
41+
font-size: 0.75em;
42+
font-weight: bold;
43+
line-height: 1;
44+
color: #fff;
45+
background-color: $global-link-hover-color;
46+
@include border-radius(50%);
2247

2348
[theme=dark] & {
24-
color: $global-font-secondary-color-dark;
49+
background-color: $global-link-hover-color-dark;
50+
color: #000;
2551
}
2652
}
2753
}

0 commit comments

Comments
 (0)