Refactor regex info block to use a shared function

This commit is contained in:
Cohee
2025-03-09 23:29:00 +02:00
parent 34b2ef0fd7
commit 0f8a17b652
3 changed files with 15 additions and 17 deletions

View File

@@ -106,18 +106,21 @@ input.enable_scoped {
display: block;
}
#regex_info_block {
#regex_info_block_wrapper {
position: relative;
}
#regex_info_block {
margin: 10px 0;
padding: 5px 20px;
font-size: 0.9em;
}
#regex_info_block:empty {
#regex_info_block_wrapper:has(#regex_info_block:empty) {
display: none;
}
#regex_info_block .info-block-flags-hint {
#regex_info_block_flags_hint {
position: absolute;
top: 50%;
right: 10px;