Skip to content

Commit

Permalink
feat: head height issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 committed Aug 7, 2021
1 parent fda37c1 commit 7225454
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 6 deletions.
Binary file removed dark.png
Binary file not shown.
Binary file removed demo-video.gif
Binary file not shown.
Binary file added demo.mp4
Binary file not shown.
Binary file added demo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed light.png
Binary file not shown.
12 changes: 8 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,23 @@ https://knowledge-garden.vercel.app/

## Usage

The easiest way to adopt this theme is to use jsDelivr CDN by adding the following line to your `custom.css`. You can also change the `@master` part to use the latest version.
The easiest way to adopt this theme is to use jsDelivr CDN by adding the following line to your `custom.css`. You can also change the `@main` part to use the latest version.

```css
/* This must be the first line of the custom.css with other import rules */
@import url("https://cdn.jsdelivr.net/gh/pengx17/logseq-dev-theme@main/custom.css");

/* You can also add other styles below to override the default theme values */
```

Alternatively, you can download this repo and load it as a Logseq Theme Plugin.


## Demo (might be outdated)

![demo](./demo-video.gif)
![](./light.png)
![](./dark.png)
![demo](./demo.png)

<video src="./demo.mp4"></video>

### [Changelog](./CHANGELOG.md)

Expand Down
4 changes: 3 additions & 1 deletion src/_blocks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

--ct-bullet-size: 6px;
--ct-bullet-color: var(--ct-bold-color);

--ct-block-max-width: calc(100% - 38px);
}

/* block reference */
Expand Down Expand Up @@ -218,7 +220,7 @@ div.items-center::after,

/* Block oversize issue */
.block-content-wrapper {
max-width: calc(100% - 38px);
max-width: var(--ct-block-max-width);
}

.block-content-wrapper > div.flex-1 {
Expand Down
9 changes: 8 additions & 1 deletion src/_miscs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,14 @@ a.tag:hover {
font-size: 0.8em;
background: var(--ls-secondary-background-color);
width: fit-content;
min-width: 320px;
padding-right: 2rem;
max-width: var(--ct-block-max-width);
}

.sidebar-item-list {
.page-properties, .block-properties {
background: var(--ls-tertiary-background-color);
}
}

kbd {
Expand Down
5 changes: 5 additions & 0 deletions src/_views.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
}

#main-container {
padding-top: var(--ct-header-height);
position: absolute;
width: 100%;
overflow-x: hidden;
Expand Down Expand Up @@ -48,6 +49,10 @@
}

.sidebar-item-list {
padding-top: var(--ct-header-height);
position: absolute;
top: 0;
width: 100%;
padding-left: 1rem;
padding-right: 1rem;
}
Expand Down

0 comments on commit 7225454

Please sign in to comment.