mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 01:20:12 +01:00
This commit is contained in:
parent
4e3341985c
commit
cc6a92e5a1
2 changed files with 16 additions and 5 deletions
|
|
@ -10,7 +10,7 @@
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
|
||||||
&:not(.custom-attr__avvalue--readonly):hover {
|
&:not(.custom-attr__avvalue--readonly):hover {
|
||||||
background-color: var(--b3-theme-background);
|
background-color: var(--b3-theme-surface-light);
|
||||||
}
|
}
|
||||||
|
|
||||||
&--readonly {
|
&--readonly {
|
||||||
|
|
@ -44,14 +44,20 @@
|
||||||
.block__logo:not(.popover__block) {
|
.block__logo:not(.popover__block) {
|
||||||
width: 160px;
|
width: 160px;
|
||||||
color: var(--b3-theme-on-surface);
|
color: var(--b3-theme-on-surface);
|
||||||
|
border-radius: var(--b3-border-radius);
|
||||||
|
transition: var(--b3-background-transition);
|
||||||
|
min-height: 34px;
|
||||||
align-self: flex-start;
|
align-self: flex-start;
|
||||||
margin-top: 5px;
|
|
||||||
|
|
||||||
span {
|
span {
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: var(--b3-theme-surface-light);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.block__icons {
|
.block__icons {
|
||||||
|
|
@ -84,16 +90,20 @@
|
||||||
height: 16px;
|
height: 16px;
|
||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: var(--b3-theme-surface-light);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.b3-text-field--text {
|
.b3-text-field--text {
|
||||||
transition: var(--b3-transition);
|
transition: var(--b3-background-transition);
|
||||||
min-height: 34px;
|
min-height: 34px;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
padding: 7px 8px;
|
padding: 7px 8px;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: var(--b3-theme-background);
|
background-color: var(--b3-theme-surface-light);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -184,6 +184,7 @@ export const openFileAttr = (attrs: IObject, focusName = "bookmark", protyle?: I
|
||||||
});
|
});
|
||||||
const dialog = new Dialog({
|
const dialog = new Dialog({
|
||||||
width: isMobile() ? "92vw" : "50vw",
|
width: isMobile() ? "92vw" : "50vw",
|
||||||
|
containerClassName: "b3-dialog__container--theme",
|
||||||
height: "80vh",
|
height: "80vh",
|
||||||
content: `<div class="fn__flex-column">
|
content: `<div class="fn__flex-column">
|
||||||
<div class="layout-tab-bar fn__flex" style="flex-shrink:0;border-radius: var(--b3-border-radius-b) var(--b3-border-radius-b) 0 0">
|
<div class="layout-tab-bar fn__flex" style="flex-shrink:0;border-radius: var(--b3-border-radius-b) var(--b3-border-radius-b) 0 0">
|
||||||
|
|
@ -234,7 +235,7 @@ export const openFileAttr = (attrs: IObject, focusName = "bookmark", protyle?: I
|
||||||
<div data-type="custom" class="fn__none custom-attr">
|
<div data-type="custom" class="fn__none custom-attr">
|
||||||
${customHTML}
|
${customHTML}
|
||||||
<div class="b3-label">
|
<div class="b3-label">
|
||||||
<button data-action="addCustom" class="b3-button b3-button--outline">
|
<button data-action="addCustom" class="b3-button b3-button--cancel">
|
||||||
<svg><use xlink:href="#iconAdd"></use></svg>${window.siyuan.languages.addAttr}
|
<svg><use xlink:href="#iconAdd"></use></svg>${window.siyuan.languages.addAttr}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue