Skip to content

Commit

Permalink
fix: some more adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 committed May 26, 2021
1 parent 978bdcf commit bfeb7bf
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@

--ct-tag-shadow: 1px 1px rgb(136, 136, 136);

--ct-header-height: 2.4em;
--ct-topbar-backdrop: blur(20px);
}

Expand Down Expand Up @@ -680,16 +681,6 @@ mark {
z-index: 2000;
}

/* TODO: remove me after https://github.com/logseq/logseq/pull/1678 is merged */
.cp__right-sidebar-inner .resizer + div {
overflow: auto;
position: absolute;
top: 0;
right: 0;
width: 100%;
height: 100vh;
}

.cp__right-sidebar-inner .resizer:hover {
background: var(--ct-sidebar-resizer-background-hover);
}
Expand All @@ -705,7 +696,7 @@ mark {
/* title */
.sidebar-item.content > div > div:first-of-type {
position: sticky;
top: 3rem;
top: var(--ct-header-height);
padding: 1rem;
margin: -1rem;
z-index: 10;
Expand Down Expand Up @@ -1736,8 +1727,8 @@ p {
visibility: hidden;
}

html.is-electron .cp__header {
height: 3rem;
html.is-electron .cp__header, .cp__right-sidebar-topbar {
height: var(--ct-header-height);
}

.cp__header #search-field {
Expand Down Expand Up @@ -1769,6 +1760,12 @@ html.is-electron .cp__header {
.tippy-tooltip {
padding: 0.5em 0;
min-width: 100px;

box-shadow: var(--ct-sidebar-item-box-shadow);
--tw-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
0 10px 10px -5px rgba(0, 0, 0, 0.04);
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),
var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.tippy-tooltip-content > .tippy-wrapper {
Expand Down Expand Up @@ -1805,16 +1802,17 @@ html.is-electron .cp__header {
z-index: 2;
padding: 5px 10px 2px 10px !important;
background: #789959;
white-space: nowrap;
color: var(--ct-query-header-color);
font-style: var(--ct-inline-code-font-style) !important;
border-radius: var(--ct-inline-code-border-radius);

text-shadow: 1px 1px 0px black, 1px 1px 1px rgb(136, 136, 136);
box-shadow: var(--ct-sidebar-item-box-shadow);
--tw-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
0 10px 10px -5px rgba(0, 0, 0, 0.04);
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),
var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
white-space: nowrap;
}

.ls-block :is(h3, h4, h5) {
Expand Down

0 comments on commit bfeb7bf

Please sign in to comment.