Commit 25acaba 1 parent 5cbfe99 commit 25acaba Copy full SHA for 25acaba
File tree 2 files changed +39
-35
lines changed
2 files changed +39
-35
lines changed Original file line number Diff line number Diff line change 25
25
<?php
26
26
$ sunflower_parsed_blocks = parse_blocks ( '<!-- wp:categories /--> ' );
27
27
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 "> ' ;
29
29
foreach ( $ sunflower_parsed_blocks as $ sunflower_block ) {
30
30
echo wp_kses_post ( render_block ( $ sunflower_block ) );
31
31
}
Original file line number Diff line number Diff line change 24
24
}
25
25
}
26
26
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 {
32
28
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 ;
34
34
35
- a {
35
+ li {
36
36
37
- @include themed () {
38
- font-family : t (" standardFont" );
39
- }
37
+ a {
40
38
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
+ }
56
42
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 ;
63
53
64
- }
54
+ & :focus {
55
+ outline : none ;
56
+ box-shadow : none ;
57
+ }
65
58
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
+ }
68
71
}
69
72
}
73
+
70
74
}
71
75
}
You can’t perform that action at this time.
0 commit comments