Files
cunkebao_v3/Backend/src/assets/css/page/note-page.less
2025-03-18 14:39:17 +08:00

329 lines
5.5 KiB
Plaintext

.note-container {
height: 100%;
/deep/.el-scrollbar__wrap {
overflow-x: hidden;
}
}
.el-aside-one {
background-color: #fff;
overflow: hidden;
.btn-header {
width: 100%;
align-items: center;
justify-content: center;
display: flex;
padding: 0;
/deep/.btn-dropdown-menu {
border-radius: 20px;
overflow: hidden;
}
/deep/button {
height: 35px;
line-height: 10px;
font-weight: 400;
&:first-child {
width: 160px !important;
}
}
}
.note-headline {
height: 40px;
line-height: 40px;
color: #353434;
padding-left: 20px;
font-size: 16px;
font-weight: 300;
}
.note-aside {
height: calc(100% - 100px) !important;
overflow-y: auto;
user-select: none;
.note-list-first {
height: 40px;
line-height: 40px;
padding-left: 20px;
cursor: pointer;
position: relative;
&:hover {
background: #f6f3f3;
}
> span {
padding-left: 5px;
font-size: 13px;
cursor: pointer;
}
.icon-menu-nav {
position: absolute;
right: 10px;
top: 1px;
}
}
.note-list-two {
height: 40px;
line-height: 40px;
padding-left: 30px;
cursor: pointer;
i {
color: #448aff;
}
span {
font-size: 12px;
cursor: pointer;
}
input {
width: 176px;
border: 1px solid #66b1ff;
height: 25px;
line-height: 25px;
margin-left: 5px;
padding: 2px 3px;
font-size: 12px;
border-radius: 3px;
}
&:hover {
color: #448aff;
}
}
.note-list-active {
background: #f6f3f3;
}
}
}
.el-aside-two {
background-color: #f4f6f9;
}
.el-aside-two .search-header {
height: 60px;
background: #f4f6f9;
text-align: center;
position: relative;
i {
position: absolute;
left: 16px;
top: 19px;
font-size: 20px;
color: #505050;
}
input {
height: 30px;
width: 80%;
position: absolute;
left: 40px;
top: 15px;
padding: 0 3px;
font-size: 14px;
background: #f4f6f9;
&::-webkit-input-placeholder {
color: rgb(158, 150, 150);
font-size: 13px;
}
}
}
.el-aside-two .title-header {
height: 40px;
line-height: 40px;
position: relative;
color: #7b7777;
border-top: 1px solid #ece8e8;
border-bottom: 1px solid #ece8e8;
user-select: none;
span {
margin-left: 10px;
font-size: 14px;
}
.load-span {
position: absolute;
right: 5px;
display: inline-block;
margin-right: 10px;
color: #6dabdc;
font-size: 12px;
.sort-icon {
cursor: pointer;
font-size: 18px;
color: #7b7777;
}
}
}
.el-aside-two .article-main {
width: 100%;
height: calc(100% - 102px);
overflow-y: auto;
overflow-x: hidden;
.note-empty {
height: 150px;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
margin-top: 30%;
.svg-notebook {
width: 110px;
height: 122px;
font-size: 100px;
color: #ccc;
}
}
.article-row {
min-height: 50px;
border-bottom: 2px solid #ffffff;
padding: 10px 10px 5px 10px;
position: relative;
.article-title {
height: 22px;
line-height: 22px;
font-size: 14px;
width: 327px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
cursor: pointer;
}
.article-tool {
height: 20px;
width: 56px;
position: absolute;
right: 5px;
top: 10px;
display: none;
text-align: right;
i {
cursor: pointer;
margin-left: 2px;
margin-right: 3px;
}
.el-icon-edit-outline {
color: rgb(64, 158, 255);
}
.el-icon-delete {
color: red;
}
.recover-note {
color: rgb(64, 158, 255);
}
}
.article-items {
display: flex;
align-items: center;
.article-item {
flex-grow: 1;
.article-date {
display: flex;
align-items: center;
padding-top: 4px;
font-size: 10px;
color: #a7afbc;
font-weight: 300;
line-height: 1.6;
span {
margin-right: 15px;
}
}
.article-abstract {
display: -webkit-box;
flex-grow: 1;
max-height: 42px;
font-size: 12px;
color: #989494;
line-height: 1.6;
text-overflow: ellipsis;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
word-break: break-word;
overflow: hidden;
cursor: pointer;
}
&.item-image {
width: calc(100% - 56px - 16px);
}
}
.article-image {
width: 56px;
height: 56px;
flex-grow: 0;
flex-shrink: 0;
margin-left: 16px;
cursor: pointer;
/deep/.el-image {
width: 100%;
height: 100%;
}
/deep/.el-image__error {
font-size: 10px;
background-color: white;
}
img {
border-radius: 3px;
}
}
&:hover {
.article-image /deep/.el-image__error {
background: #f5f7fa;
color: #c0c4cc;
}
}
}
&:hover,
&.active-row {
background: white;
.article-title {
width: 270px;
}
.article-tool {
display: block;
}
}
}
}