mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-11-30 16:48:21 +01:00
- generate an override stylesheet for each preset from style-nova - add the ui_theme_* API, custom colors and single-slot loading - persist the choice and add the navbar color picker - keep badge variants, tooltip arrows and swatches consistent
173 lines
3.1 KiB
CSS
173 lines
3.1 KiB
CSS
.navbar {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
gap: 16px;
|
|
height: 48px;
|
|
padding: 0 16px;
|
|
@apply bg-background dark:bg-background-dark;
|
|
@apply border-b border-border dark:border-border-dark;
|
|
}
|
|
|
|
.navbar-left {
|
|
flex: 1 1 0;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.navbar-center {
|
|
flex: 1 1 0;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: center;
|
|
}
|
|
|
|
.navbar-right {
|
|
flex: 1 1 0;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: flex-end;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
/* Narrow windows: drop the path/version/GitHub columns so the three nav
|
|
* buttons keep their full width instead of being clipped by the column. */
|
|
.navbar.compact {
|
|
padding: 0 8px;
|
|
gap: 8px;
|
|
}
|
|
|
|
.navbar.compact .navbar-center,
|
|
.navbar.compact .navbar-link,
|
|
.navbar.compact .navbar-divider {
|
|
display: none;
|
|
}
|
|
|
|
.navbar.compact .navbar-left,
|
|
.navbar.compact .navbar-right {
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.navbar-path {
|
|
width: 100%;
|
|
max-width: 320px;
|
|
padding: 4px 12px;
|
|
font-size: 13px;
|
|
text-align: left;
|
|
@apply text-muted-foreground bg-muted border border-border rounded-md;
|
|
@apply dark:text-muted-foreground-dark dark:bg-muted-dark dark:border-border-dark;
|
|
}
|
|
|
|
.navbar-link {
|
|
padding: 4px 8px;
|
|
font-size: 14px;
|
|
@apply text-foreground;
|
|
@apply dark:text-foreground-dark;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.navbar-icon-link {
|
|
display: inline-flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 4px 6px;
|
|
}
|
|
|
|
.navbar-icon {
|
|
width: 16px;
|
|
height: 16px;
|
|
background-repeat: no-repeat;
|
|
background-position: center;
|
|
background-size: 16px 16px;
|
|
}
|
|
|
|
.navbar-icon-github {
|
|
background-image: url("../assets/github-mark-black.png");
|
|
}
|
|
|
|
.dark .navbar-icon-github {
|
|
background-image: url("../assets/github-mark-white.png");
|
|
}
|
|
|
|
.navbar-icon-gitee {
|
|
background-image: url("../assets/gitee-mark-black.png");
|
|
}
|
|
|
|
.dark .navbar-icon-gitee {
|
|
background-image: url("../assets/gitee-mark-white.png");
|
|
}
|
|
|
|
.navbar-icon-count {
|
|
font-size: 12px;
|
|
@apply text-muted-foreground;
|
|
@apply dark:text-muted-foreground-dark;
|
|
}
|
|
|
|
.navbar-divider {
|
|
flex: 0 0 1px;
|
|
width: 1px;
|
|
height: 16px;
|
|
@apply bg-border;
|
|
@apply dark:bg-border-dark;
|
|
}
|
|
|
|
.accent-palette {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
width: 200px;
|
|
gap: 6px;
|
|
padding: 8px;
|
|
}
|
|
|
|
.accent-swatch {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 16px;
|
|
cursor: pointer;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.accent-swatch:hover {
|
|
box-shadow: 0 0 0 2px rgba(23, 23, 23, 0.18);
|
|
}
|
|
|
|
.dark .accent-swatch:hover {
|
|
box-shadow: 0 0 0 2px rgba(250, 250, 250, 0.28);
|
|
}
|
|
|
|
.accent-swatch .accent-swatch-check {
|
|
display: none;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.accent-swatch.active .accent-swatch-check {
|
|
display: inline-block;
|
|
}
|
|
|
|
.navbar-link:hover {
|
|
@apply bg-muted text-foreground;
|
|
@apply dark:bg-muted-dark dark:text-foreground-dark;
|
|
}
|
|
|
|
/* Keep the three columns stable: controls never shrink, the path box does. */
|
|
.navbar button {
|
|
flex-shrink: 0;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.navbar-link {
|
|
flex-shrink: 0;
|
|
white-space: nowrap;
|
|
}
|
|
|