mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-30 12:15:16 +01:00
243 lines
4.7 KiB
SCSS
243 lines
4.7 KiB
SCSS
.b3-list {
|
|
mark {
|
|
background-color: var(--b3-protyle-inline-mark-background);
|
|
color: var(--b3-protyle-inline-mark-color);
|
|
}
|
|
|
|
&--background .b3-list-item {
|
|
&:hover:not(.b3-list-item--focus),
|
|
&--focus:not(.dragover):not(.dragover__top):not(.dragover__bottom) {
|
|
background-color: var(--b3-list-hover);
|
|
}
|
|
}
|
|
|
|
&--empty {
|
|
justify-content: center;
|
|
color: var(--b3-theme-on-surface);
|
|
padding: 4px 16px;
|
|
list-style: none;
|
|
}
|
|
|
|
&--border {
|
|
ul {
|
|
margin-left: 34px;
|
|
position: relative;
|
|
}
|
|
|
|
& > ul ul:before {
|
|
content: "";
|
|
height: 100%;
|
|
top: 0;
|
|
position: absolute;
|
|
border-left: 1px solid var(--b3-theme-background-light);
|
|
left: -55px;
|
|
}
|
|
|
|
& > ul li:before {
|
|
content: "";
|
|
height: 100%;
|
|
top: 0;
|
|
position: absolute;
|
|
border-left: 1px solid var(--b3-theme-background-light);
|
|
left: -21px;
|
|
}
|
|
}
|
|
|
|
&-item {
|
|
line-height: 28px;
|
|
padding: 1px 8px;
|
|
display: flex;
|
|
cursor: pointer;
|
|
align-items: center;
|
|
position: relative;
|
|
background-color: transparent;
|
|
text-align: left;
|
|
border: 0;
|
|
color: var(--b3-theme-on-background);
|
|
margin-top: 0 !important;
|
|
|
|
&[draggable="true"]:active {
|
|
cursor: grabbing;
|
|
}
|
|
|
|
&--big {
|
|
padding: 16px 24px;
|
|
|
|
.b3-list-item__graphic {
|
|
margin-right: 24px;
|
|
height: 16px;
|
|
width: 16px;
|
|
}
|
|
}
|
|
|
|
&--two {
|
|
display: block;
|
|
|
|
.b3-list-item__first {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.b3-list-item__meta {
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
|
|
&--hide-action {
|
|
.b3-list-item__action {
|
|
display: none;
|
|
}
|
|
|
|
&:hover > .b3-list-item__action,
|
|
&:hover > .fn__space {
|
|
display: flex;
|
|
}
|
|
}
|
|
|
|
&__toggle {
|
|
display: flex;
|
|
align-items: center;
|
|
height: 22px;
|
|
padding-right: 6px;
|
|
color: var(--b3-theme-on-surface);
|
|
transition: var(--b3-transition);
|
|
|
|
&--hl:hover {
|
|
color: var(--b3-theme-on-background);
|
|
background-color: var(--b3-theme-background-light);
|
|
border-radius: 2px;
|
|
}
|
|
}
|
|
|
|
&__icon {
|
|
svg, img {
|
|
float: left;
|
|
margin: 3px 0;
|
|
height: 16px;
|
|
width: 16px;
|
|
color: var(--b3-theme-on-surface);
|
|
border-radius: 2px;
|
|
}
|
|
|
|
text-align: center;
|
|
font-size: 16px;
|
|
margin-right: 4px;
|
|
line-height: 22px;
|
|
height: 22px;
|
|
transition: var(--b3-transition);
|
|
padding: 0 3px;
|
|
flex-shrink: 0;
|
|
|
|
&:hover {
|
|
color: var(--b3-theme-on-background);
|
|
background-color: var(--b3-theme-background-light);
|
|
border-radius: 2px;
|
|
}
|
|
}
|
|
|
|
&__hinticon {
|
|
width: 12px;
|
|
height: 12px;
|
|
fill: currentColor;
|
|
color: var(--b3-theme-on-background);
|
|
align-self: center;
|
|
flex-shrink: 0;
|
|
margin-right: 4px;
|
|
}
|
|
|
|
&__graphic {
|
|
margin-right: 4px;
|
|
padding: 0 2px;
|
|
flex-shrink: 0;
|
|
height: 14px;
|
|
width: 12px;
|
|
line-height: 14px;
|
|
font-size: 12px;
|
|
|
|
// doc icon in the bookmark panel
|
|
svg {
|
|
width: 12px;
|
|
height: 14px;
|
|
}
|
|
}
|
|
|
|
&__arrow {
|
|
flex-shrink: 0;
|
|
height: 10px;
|
|
width: 10px;
|
|
transition: transform 0.15s cubic-bezier(0, 0, 0.2, 1), opacity 1s cubic-bezier(0, 0, 0.2, 1);
|
|
|
|
&--open {
|
|
transform: rotate(90deg);
|
|
}
|
|
}
|
|
|
|
&__text {
|
|
flex: 1;
|
|
background-color: transparent;
|
|
text-align: left;
|
|
border: 0;
|
|
padding: 0;
|
|
color: var(--b3-theme-on-background);
|
|
@include text-clamp(1);
|
|
|
|
// 搜索列表中自定义图标
|
|
& > img,
|
|
& > .custom-icon {
|
|
height: 14px;
|
|
width: 14px;
|
|
float: left;
|
|
margin-top: 7px;
|
|
}
|
|
}
|
|
|
|
&__showall {
|
|
line-height: 1;
|
|
word-break: break-all;
|
|
}
|
|
|
|
&__meta {
|
|
font-size: 0.75rem;
|
|
margin-left: 8px;
|
|
flex-shrink: 0;
|
|
color: var(--b3-theme-on-surface);
|
|
|
|
&--ellipsis {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
max-width: 50%;
|
|
}
|
|
}
|
|
|
|
&__action {
|
|
flex-shrink: 0;
|
|
align-items: center;
|
|
color: var(--b3-theme-on-surface);
|
|
height: 22px;
|
|
padding: 0 4px;
|
|
margin-left: 4px;
|
|
display: flex;
|
|
|
|
svg {
|
|
height: 14px;
|
|
width: 14px;
|
|
}
|
|
|
|
&:hover {
|
|
color: var(--b3-theme-on-background);
|
|
background-color: var(--b3-theme-background-light);
|
|
border-radius: 2px;
|
|
}
|
|
}
|
|
|
|
.counter {
|
|
cursor: pointer;
|
|
|
|
&:hover {
|
|
color: var(--b3-theme-on-background);
|
|
background-color: var(--b3-theme-background-light);
|
|
}
|
|
}
|
|
}
|
|
}
|