CreatorCenter_OOIN/src/styles/custom-theme.scss
2025-05-26 12:26:10 -04:00

137 lines
3.0 KiB
SCSS

// 导入变量
@import './variables';
// 导入Bootstrap
@import 'bootstrap/scss/bootstrap';
// 自定义Bootstrap组件样式
:root {
--bs-breadcrumb-font-size: 1.5rem;
--bs-body-color: #171a1fff;
--bs-btn-color: white !important;
--bs-btn-hover-color: white !important;
--bs-form-valid-border-color: #6366f1 !important;
--bs-form-valid-bg-color: #6366f1 !important;
--bs-form-valid-color: #6366f1 !important;
}
select:focus {
box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25) !important;
outline: none;
}
.form-control:valid:focus {
box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25) !important;
outline: none;
}
.btn-primary {
--bs-btn-color: white !important;
--bs-btn-hover-color: white !important;
}
.btn-outline-primary {
--bs-btn-color: #6366f1 !important;
--bs-btn-hover-color: white !important;
--bs-btn-active-color: white !important;
}
.btn-primary-subtle {
background-color: $primary-100;
color: $primary;
&:hover {
background-color: $primary-150 !important;
color: $primary !important;
}
}
.btn-check:checked + .btn-primary-subtle {
background-color: $primary-150 !important;
color: $primary !important;
border-color: $primary-500 !important;
}
#root {
font-weight: 500;
background-color: #f5f3ff;
}
a {
text-decoration: none !important;
&:hover {
text-decoration: none !important;
}
}
.shadow-xs {
box-shadow: 0px 0px 1px #171a1f12, 0px 0px 2px #171a1f1f; /* shadow-xs */
}
.table {
border-collapse: separate;
border-spacing: 0;
border: 1px solid #171a1f1f;
th {
background-color: #f8f9fa;
border-top: none;
border-bottom: 1px solid #dee2e6;
padding: 1rem 0.75rem;
font-weight: 600;
font-size: 0.875rem;
color: #495057;
cursor: pointer;
position: relative;
vertical-align: middle;
&:first-child {
border-top-left-radius: 0.5rem;
}
&:last-child {
border-top-right-radius: 0.5rem;
}
&:hover {
background-color: #f1f3f5;
}
}
td {
padding: 0.75rem;
vertical-align: middle;
border-bottom: 1px solid #f1f3f4;
font-size: 0.875rem;
}
tbody tr {
&:hover {
background-color: rgba(0, 0, 0, 0.02);
}
&.selected {
background-color: rgba(99, 102, 241, 0.05);
&:hover {
background-color: rgba(99, 102, 241, 0.1);
}
}
&:last-child td {
border-bottom: none;
}
}
}
.transparent-input {
border-color: transparent !important;
}
.transparent-input:focus {
border-color: transparent !important;
box-shadow: none !important;
}
.card {
background: #ffffffff; /* white */
border: none;
border-radius: 8px; /* border-l */
box-shadow: 0px 0px 1px #171a1f12, 0px 0px 2px #171a1f1f; /* shadow-xs */
padding: 1rem;
}