Skip to content

Commit

Permalink
fix: adjust tooltip fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 committed May 28, 2021
1 parent 38a6af2 commit e196c0d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
18 changes: 12 additions & 6 deletions custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ body {
font-family: var(--ls-font-family);
overscroll-behavior-y: none;
background: var(--ls-primary-background-color);
-webkit-font-smoothing: auto;
}

.cp__sidebar-main-content {
Expand Down Expand Up @@ -341,7 +342,9 @@ blockquote {

/* page embed */

.embed, .embed-page, .embed-block {
.embed,
.embed-page,
.embed-block {
box-shadow: inset 0 0 0.3em rgba(0, 0, 0, 0.6);
padding: 0.75em 0.5em 0.5em;
}
Expand Down Expand Up @@ -1376,7 +1379,7 @@ html[data-theme="dark"] {
--ct-mobile-editor-toolbar-background: var(--ct-background);
--ct-mobile-editor-toolbar-color: var(--ct-page-font-color);

--ct-topbar-background: transparent
--ct-topbar-background: transparent;
--ct-topbar-border-color: rgba(0, 0, 0, 0.16);
}

Expand Down Expand Up @@ -1725,7 +1728,8 @@ p {
visibility: hidden;
}

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

Expand Down Expand Up @@ -1758,6 +1762,8 @@ html.is-electron .cp__header, .cp__right-sidebar-topbar {
.tippy-tooltip {
padding: 0.5em 0;
min-width: 100px;
color: var(--ct-page-font-color);
-webkit-font-smoothing: auto;

box-shadow: var(--ct-sidebar-item-box-shadow);
--tw-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
Expand Down Expand Up @@ -1808,7 +1814,7 @@ html.is-electron .cp__header, .cp__right-sidebar-topbar {
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),
Expand All @@ -1818,12 +1824,12 @@ html.is-electron .cp__header, .cp__right-sidebar-topbar {
}

.ls-block :is(h3, h4, h5) {
margin: .3em 0;
margin: 0.3em 0;
}

.ls-block :is(h1, h2) {
border-bottom: 1px solid #e0e0e0;
margin: .4em 0;
margin: 0.4em 0;
}

.block-ref .block-content.inline :is(h1, h2, h3, h4, h5, h6) {
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ My [Logseq](https://logseq.com) theme based on the work of @PiotrSss's [clean-th
The easiest way to adopt this theme is to use jsDelivr CDN and add it to your `custom.css`

```css
@import url('https://cdn.jsdelivr.net/gh/pengx17/logseq-laurel-theme@1.6.1/custom.css');
@import url('https://cdn.jsdelivr.net/gh/pengx17/logseq-laurel-theme@1.6.2/custom.css');
```

Alternatively once Logseq shipped plugins integration, you may also install this theme as a Logseq Plugin.
Expand Down

0 comments on commit e196c0d

Please sign in to comment.