63 lines
1.1 KiB
SCSS
63 lines
1.1 KiB
SCSS
$titleBarHeight: 40px;
|
|
|
|
/* 窗体容器 */
|
|
.window {
|
|
width: 100%;
|
|
height: 100%;
|
|
border: 1px solid #666;
|
|
box-shadow: 0 0 10px rgba(0,0,0,0.5);
|
|
background-color: #ffffff;
|
|
overflow: hidden;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
/* 标题栏 */
|
|
.title-bar {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
user-select: none;
|
|
width: 100%;
|
|
height: $titleBarHeight;
|
|
|
|
.title {
|
|
display: block;
|
|
padding: 0 5px;
|
|
flex-grow: 1;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
font-size: 18px;
|
|
line-height: $titleBarHeight;
|
|
}
|
|
|
|
.window-controls {
|
|
display: flex;
|
|
gap: 2px;
|
|
flex-shrink: 0;
|
|
|
|
.btn {
|
|
width: 40px;
|
|
height: 40px;
|
|
padding: 0;
|
|
cursor: pointer;
|
|
font-size: 24px;
|
|
color: black;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: background-color 0.3s ease;
|
|
|
|
&:hover {
|
|
@apply bg-gray-200;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/* 窗体内容 */
|
|
.window-content {
|
|
width: 100%;
|
|
height: calc(100% - #{$titleBarHeight});
|
|
background-color: #e0e0e0;
|
|
} |