shuzhiren-comfyui/frontend/src/styles/index.scss

169 lines
2.9 KiB
SCSS

@import './design-system.scss';
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html, body {
height: 100%;
width: 100%;
}
body {
background-color: $bg-page;
font-family: $font-family;
color: $text-primary;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.status-online {
color: $status-success;
}
.status-busy {
color: $status-warning;
}
.status-offline {
color: $status-error;
}
.status-pending {
color: $text-tertiary;
}
.status-running {
color: $status-info;
}
.status-completed {
color: $status-success;
}
.status-failed {
color: $status-error;
}
.page-container {
padding: $space-24;
height: 100%;
overflow-y: auto;
}
.card-header {
display: flex;
justify-content: space-between;
align-items: center;
}
.page-content {
@include container;
padding-top: $space-24;
padding-bottom: $space-24;
}
.el-button {
border-radius: $radius-lg !important;
font-weight: $font-weight-medium !important;
transition: all $transition-base !important;
&:hover {
transform: translateY(-2px);
}
&:active {
transform: scale(0.98);
}
}
.el-button--primary {
background: $primary-gradient !important;
border: none !important;
box-shadow: $shadow-primary;
&:hover {
background: $primary-hover !important;
box-shadow: $shadow-hover;
}
}
.el-input__wrapper {
border-radius: $radius-md !important;
box-shadow: 0 0 0 1px $border-light inset !important;
&:hover {
box-shadow: 0 0 0 1px $border-medium inset !important;
}
&.is-focus {
box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2), 0 0 0 1px $primary-start inset !important;
}
}
.el-card {
border-radius: $radius-xl !important;
box-shadow: $shadow-md !important;
border: 1px solid $border-light !important;
&:hover {
box-shadow: $shadow-lg !important;
}
.el-card__header {
border-bottom: 1px solid $border-light;
}
}
.el-table {
border-radius: $radius-md;
overflow: hidden;
th.el-table__cell {
background: $bg-surface !important;
color: $text-secondary !important;
font-weight: $font-weight-semibold !important;
}
tr.el-table__row:hover {
td.el-table__cell {
background: rgba(99, 102, 241, 0.04) !important;
}
}
}
.el-dialog {
border-radius: $radius-xl !important;
.el-dialog__header {
padding: $space-20 $space-24 $space-16;
border-bottom: 1px solid $border-light;
}
.el-dialog__body {
padding: $space-24;
}
.el-dialog__footer {
padding: $space-16 $space-24 $space-20;
border-top: 1px solid $border-light;
}
}
.el-tag {
border-radius: $radius-sm !important;
font-weight: $font-weight-medium;
}
.el-select .el-input__wrapper {
box-shadow: 0 0 0 1px $border-light inset !important;
}
.el-select .el-input.is-focus .el-input__wrapper {
box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2), 0 0 0 1px $primary-start inset !important;
}