Skip to content

Commit

Permalink
feat: add no bullet threading dev theme
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 committed Feb 23, 2022
1 parent 3f3fe1e commit 6b71900
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 8 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@
"themes": [
{
"name": "Dev theme",
"url": "./custom.css",
"description": "A custom theme for dev"
"url": "./custom.css"
},
{
"name": "Dev theme - bullet threading only",
"url": "./bullet_threading.css",
"description": "Bullet threading (already included in Dev Theme)"
"name": "Dev theme - WITHOUT bullet threading",
"url": "./no_bullet_threading.css",
"description": "Dev theme without bullet threading"
}
],
"id": "pengx17_dev_theme",
Expand All @@ -22,7 +21,8 @@
"scripts": {
"build:main": "yarn sass src/main.scss custom.css --no-source-map",
"build:bt": "yarn sass src/bullet_threading.scss bullet_threading.css --no-source-map",
"build": "yarn build:main && yarn build:bt"
"build:no-bt": "yarn sass src/no_bullet_threading.scss no_bullet_threading.css --no-source-map",
"build": "yarn build:main && yarn build:bt && yarn build:no-bt"
},
"devDependencies": {
"@semantic-release/changelog": "^5.0.1",
Expand Down
7 changes: 5 additions & 2 deletions src/_blocks.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import "bullet_threading.scss";

:root {
--ct-bullet-size: 6px;
--ct-block-max-width: calc(100% - 38px);
Expand Down Expand Up @@ -74,6 +72,11 @@ a:hover > .bullet-container .bullet {
margin-left: 0 !important;
}

.ls-block div.items-center {
position: relative;
height: 26px !important;
}

// hovering block indicator
.block-content-wrapper > div > .block-content {
& > span > span > :first-child {
Expand Down
1 change: 1 addition & 0 deletions src/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
@import "root.scss";
@import "views.scss";
@import "headings.scss";
@import "bullet_threading.scss";
@import "blocks.scss";
@import "embed.scss";
@import "miscs.scss";
Expand Down
14 changes: 14 additions & 0 deletions src/no_bullet_threading.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@import "fonts.scss";
// fonts need to be the first one
@import "root.scss";
@import "views.scss";
@import "headings.scss";
@import "blocks.scss";
@import "embed.scss";
@import "miscs.scss";
@import "popups.scss";
@import "queries.scss";
@import "markers.scss";
@import "graph.scss";
@import "theme_dark.scss";
@import "theme_light.scss";

0 comments on commit 6b71900

Please sign in to comment.