FileManage/web/src/styles/index.scss

236 lines
4.4 KiB
SCSS
Raw Normal View History

2025-01-10 14:16:18 +08:00
@import 'src/styles/variables.module';
@import 'src/styles/element-plus';
@import './sidebar.scss';
@import './tailwind.scss';
@import './peeling.scss';
html,body,#app{
height: 100%;
}
// main-container global css
.app-container {
padding: 20px;
}
.search{
padding: 18px 0 0 10px;
margin-bottom: 10px;
border-radius: 5px;
border: 1px solid #ddd;
box-shadow: 6px 2px 6px #CCC;
}
svg{
display: inline-block;
}
.el-dialog {
display: flex !important;
flex-direction: column !important;
margin: auto !important;
position: absolute !important;
top: 0 ;
left: 0 ;
right: 0;
bottom: 0;
height: max-content;
}
.el-dialog__body {
padding: 20px !important;
}
.echartsbox .el-dialog__body{
background: #ededed !important;
}
.tsdialog .el-dialog__body{
background: rgb(245,246,250) !important;
}
.tsdialog .el-dialog__header{
background-color: #fff;
}
.el-upload {
display: inline-flex;
justify-content: center;
align-items: center;
cursor: pointer;
}
.avatar-uploader .el-upload {
border: 1px dashed var(--el-border-color);
border-radius: 6px;
cursor: pointer;
position: relative;
overflow: hidden;
transition: var(--el-transition-duration-fast);
width: 100px;
height: 100px;
}
.el-icon.avatar-uploader-icon {
font-size: 28px;
color: #8c939d;
width: 100px;
height: 100px;
text-align: center;
}
.el-icon {
--color: inherit;
height: 1em;
width: 1em;
line-height: 1em;
display: inline-flex;
justify-content: center;
align-items: center;
position: relative;
fill: currentColor;
color: var(--color);
font-size: inherit;
}
.custom-tree-node, .treedelicon, .treeediticon {
font-size: 16px !important;
}
.custom-tree-large, .treedelicon, .treeediticon {
font-size: 14px !important;
}
.el-tree-node.is-current > .el-tree-node__content {
width: 100%;
height: 33px;
background-color: #409eff !important;
color: #fff !important;
}
2025-03-07 10:43:38 +08:00
.tree_content{
.el-tree-node.is-current > .el-tree-node__content {
width: 100%;
height: 33px;
background-color: #f5f7fa !important;
color: #606266 !important;
}
}
2025-01-10 14:16:18 +08:00
.el-tree-node__content {
width: 100%;
height: 33px !important;
line-height: 33px;
}
.el-tree-node__content:hover {
background-color: #409eff19;
}
.el-select--large .el-select__wrapper{
min-height: 0px !important;
}
.el-table__body .is_sightedbg{
background: rgb(254, 218, 121) !important;
}
.hover-row.is_sightedbg td.el-table__cell{
background: rgb(254, 218, 121) !important;
}
.text-viewer {
width: 100%;
/* max-width: 1200px; */
margin: 0 auto;
.edit-input {
width: 100%;
height: 100%;
border: none;
outline: none;
padding: 0 12px;
background: transparent;
text-align: center;
}
.edit-input:focus {
background: #f0f9ff;
box-shadow: 0 0 0 1px #409eff inset;
}
.scroll-container {
position: relative;
overflow: auto;
border: 1px solid #ddd;
}
.phantom {
position: relative;
}
.row {
position: absolute;
min-width: 100%;
/* 保证最小宽度与容器一致 */
height: v-bind(ROW_HEIGHT + 'px');
display: flex;
align-items: center;
border-bottom: 1px solid #eee;
border-right: 1px solid #eee;
box-sizing: border-box;
}
.cell {
flex: 1 0 auto;
/* 允许单元格根据内容扩展 */
min-width: 160px;
/* 设置最小宽度防止挤压 */
padding: 0 12px;
white-space: nowrap;
overflow: visible;
/* 显示完整内容 */
position: relative;
text-align: center;
}
.cell+.cell {
border-left: 1px solid #f0f0f0;
}
.scroll-container::-webkit-scrollbar {
width: 8px;
height: 8px;
}
.scroll-container::-webkit-scrollbar-thumb {
background-color: #c1c1c1;
border-radius: 4px;
}
.loading {
padding: 10px;
background: #f5f5f5;
text-align: center;
}
.error {
color: #ff4444;
padding: 20px;
text-align: center;
}
/* 添加全屏样式 */
.full-screen {
position: fixed;
top: 0;
left: 0;
z-index: 9999;
background: white;
width: 100vw;
height: 100vh;
}
.controls {
position: absolute;
bottom: 0px;
right: 0px;
z-index: 10000;
}
button {
padding: 8px 16px;
background: #409eff;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}
2025-01-10 14:16:18 +08:00
}