在 user-home.css 里给Tab加上指示条居中
This commit is contained in:
1 parent
a06d36ac7b
commit
c9c1789aba
2 files changed
+6
-5
No files matched your search
@@ -370,7 +370,8 @@
|
|||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 5px;
|
bottom: 5px;
|
||||||
left: 0;
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
width: 20px;
|
width: 20px;
|
||||||
height: 2px;
|
height: 2px;
|
||||||
background: var(--theme-color, var(--color-primary, #f04494));
|
background: var(--theme-color, var(--color-primary, #f04494));
|
||||||
|
|||||||
@@ -60,10 +60,10 @@ require_once AKSRT_DIR . '/templates/parts/user-shared-helpers.php';
|
|||||||
}
|
}
|
||||||
$tab_count = (int) ($tab_counts[$tab_key] ?? 0);
|
$tab_count = (int) ($tab_counts[$tab_key] ?? 0);
|
||||||
?>
|
?>
|
||||||
<button type="button" class="<?php echo esc_attr(trim($tab_class)); ?>" data-tab="<?php echo esc_attr($tab_key); ?>" role="tab">
|
<button type="button" class="<?php echo esc_attr(trim($tab_class)); ?>" data-tab="<?php echo esc_attr($tab_key); ?>" role="tab">
|
||||||
<?php echo esc_html($tab_labels[$tab_key] ?? ucfirst($tab_key)); ?>
|
<?php echo esc_html($tab_labels[$tab_key] ?? ucfirst($tab_key)); ?>
|
||||||
<span class="dashboard-tabs__count opacity8"><?php echo esc_html((string) $tab_count); ?></span>
|
<span class="dashboard-tabs__count opacity8"><?php echo esc_html((string) $tab_count); ?></span>
|
||||||
</button>
|
</button>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user