Skip to content

Commit 25acaba

Browse files
committed
Do not style the categories widget in footer
1 parent 5cbfe99 commit 25acaba

File tree

2 files changed

+39
-35
lines changed

2 files changed

+39
-35
lines changed

archive.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<?php
2626
$sunflower_parsed_blocks = parse_blocks( '<!-- wp:categories /-->' );
2727
if ( $sunflower_parsed_blocks ) {
28-
echo '<div class="filter-button-group mb-5 text-center">';
28+
echo '<div class="filter-button-group mb-5 text-center sunflower-categories">';
2929
foreach ( $sunflower_parsed_blocks as $sunflower_block ) {
3030
echo wp_kses_post( render_block( $sunflower_block ) );
3131
}

sass/_archives.scss

+38-34
Original file line numberDiff line numberDiff line change
@@ -24,48 +24,52 @@
2424
}
2525
}
2626

27-
ul.wp-block-categories-list {
28-
display: inline-flex;
29-
flex-wrap: wrap;
30-
justify-content: center;
31-
list-style-type: none;
27+
.sunflower-categories {
3228

33-
li {
29+
ul.wp-block-categories-list {
30+
display: inline-flex;
31+
flex-wrap: wrap;
32+
justify-content: center;
33+
list-style-type: none;
3434

35-
a {
35+
li {
3636

37-
@include themed() {
38-
font-family: t("standardFont");
39-
}
37+
a {
4038

41-
font-weight: 700;
42-
font-size: 16px;
43-
color: $black;
44-
letter-spacing: 0.05em;
45-
background: none;
46-
border: 0;
47-
padding: 0;
48-
margin: 0 1em;
49-
border-bottom: 2px solid transparent;
50-
text-transform: uppercase;
51-
52-
&:focus {
53-
outline: none;
54-
box-shadow: none;
55-
}
39+
@include themed() {
40+
font-family: t("standardFont");
41+
}
5642

57-
&:hover,
58-
&:focus,
59-
&:active {
60-
color: $primary;
61-
border-bottom-color: $primary;
62-
}
43+
font-weight: 700;
44+
font-size: 16px;
45+
color: $black;
46+
letter-spacing: 0.05em;
47+
background: none;
48+
border: 0;
49+
padding: 0;
50+
margin: 0 1em;
51+
border-bottom: 2px solid transparent;
52+
text-transform: uppercase;
6353

64-
}
54+
&:focus {
55+
outline: none;
56+
box-shadow: none;
57+
}
6558

66-
&.current-cat {
67-
border-bottom: 2px solid $black;
59+
&:hover,
60+
&:focus,
61+
&:active {
62+
color: $primary;
63+
border-bottom-color: $primary;
64+
}
65+
66+
}
67+
68+
&.current-cat {
69+
border-bottom: 2px solid $black;
70+
}
6871
}
6972
}
73+
7074
}
7175
}

0 commit comments

Comments
 (0)