Skip to content

Commit 69d3ace

Browse files
authored
gpcc-field-indicators.php: Updated styles to work better with <fieldset>'s.
1 parent f310621 commit 69d3ace

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

experimental/gpcc-field-indicators.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
}
3939

4040
$search = '<\/label>|<\/legend>';
41-
$replace = sprintf( '\0 %s', implode( '', $spans ) );
41+
$replace = sprintf( '%s\0', implode( '', $spans ) );
4242
$content = preg_replace( "/$search/", $replace, $content, 1 );
4343

4444
return $content;
@@ -56,9 +56,11 @@ function gpcc_field_indicator_styles() {
5656
font-weight: 600;
5757
padding: 0.1125rem 0.4625rem;
5858
vertical-align: text-top;
59+
position: relative;
60+
top: 3px;
5961
}
6062
.gw-field-indicator + .gw-field-indicator {
61-
margin-left: 0;
63+
margin-left: 0.3725rem;
6264
}
6365
.gpcc-source, .gpcc-target {
6466
color: #274524;

0 commit comments

Comments
 (0)