Files
feishin/src/renderer/layouts/window-bar.module.css
T
jeffvli 858678ea93 adjust custom window bar titles
- fix overflow
- fix positioning
- decrease text size
2025-12-14 06:47:26 -08:00

148 lines
2.6 KiB
CSS

.window-bar {
grid-area: window-bar;
height: 30px;
}
.windows-container {
display: flex;
gap: 0.5rem;
align-items: center;
width: 100%;
height: 100%;
background: var(--theme-colors-background);
border-bottom: 1px solid alpha(var(--theme-colors-border), 0.5);
-webkit-app-region: drag;
}
.windows-button-group {
display: flex;
flex-shrink: 0;
width: 130px;
height: 100%;
-webkit-app-region: no-drag;
}
.windows-button {
display: flex;
flex: 1;
align-items: center;
justify-content: center;
-webkit-app-region: no-drag;
width: 50px;
height: 30px;
img {
width: 35%;
height: 50%;
}
&:hover {
background: rgb(125 125 125 / 30%);
}
}
.windows-button.exit {
&:hover {
background: var(--theme-colors-state-error);
}
}
.player-status-container {
display: flex;
flex: 1;
gap: 0.5rem;
align-items: center;
min-width: 0;
padding-left: 1rem;
overflow: hidden;
}
.player-status-container > img {
flex-shrink: 0;
}
.player-status-text {
flex: 1;
width: 0;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.macos-container .player-status-text {
flex: 0 1 auto;
width: auto;
max-width: 100%;
text-align: center;
}
@media only screen and (width < 768px) {
.player-status-container {
padding-left: 0.5rem;
}
.windows-button-group {
flex-shrink: 0;
width: 120px;
}
}
.macos-container {
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
background: var(--theme-colors-background);
border-bottom: 1px solid alpha(var(--theme-colors-border), 0.5);
-webkit-app-region: drag;
}
.macos-container .player-status-container {
display: flex;
gap: 0;
align-items: center;
justify-content: center;
min-width: 0;
max-width: calc(100% - 140px);
padding: 0 0.5rem;
margin: 0 auto;
overflow: hidden;
}
.macos-button-group {
position: absolute;
top: 5px;
left: 0.5rem;
display: grid;
grid-template-columns: repeat(3, 20px);
height: 100%;
-webkit-app-region: no-drag;
}
.macos-button {
grid-row: 1 / span 1;
grid-column: 1;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
user-select: none;
img {
width: 18px;
height: 18px;
}
}
.macos-button.min-button {
grid-column: 2;
}
.macos-button.max-button,
.macos-button.restore-button {
grid-column: 3;
}