Skip to content

Commit

Permalink
Add support for tab stack spine style and fix #631
Browse files Browse the repository at this point in the history
  • Loading branch information
kepano committed Aug 26, 2024
1 parent 16eaff6 commit f29716f
Show file tree
Hide file tree
Showing 10 changed files with 59 additions and 5 deletions.
17 changes: 17 additions & 0 deletions Minimal.css
Original file line number Diff line number Diff line change
Expand Up @@ -1032,6 +1032,9 @@ body:not(.minimal-status-off) .status-bar {
.tab-stack-bottom-flipped {
--tab-stacked-text-align: right; }

.workspace .mod-root .workspace-tabs.mod-stacked .workspace-tab-container .workspace-tab-header-inner {
flex-direction: var(--tab-stacked-spine-order); }

/* Title Bar */
.view-header-title-parent,
.view-header-title {
Expand Down Expand Up @@ -2385,6 +2388,8 @@ table.dataview tbody > tr > td {
line-height: var(--line-height-tight); }
.list-cards.markdown-preview-view div > ul .contains-task-list {
padding-inline-start: calc(var(--cards-padding)*1.5); }
.list-cards.markdown-preview-view div > ul > li.task-list-item > .task-list-item-checkbox {
margin-inline-start: 3px; }
.list-cards.markdown-preview-view div > ul > li {
background-color: var(--cards-background);
padding: calc(var(--cards-padding)/2);
Expand Down Expand Up @@ -8555,6 +8560,18 @@ settings:
-
label: Center flipped
value: tab-stack-center-flipped
-
id: tab-stacked-spine-order
title: Spine element order
type: variable-select
default: row
options:
-
label: Default
value: row
-
label: Reversed
value: row-reverse
-
id: tags
title: Tags
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Minimal",
"version": "7.7.16",
"version": "7.7.17",
"minAppVersion": "1.6.1",
"author": "@kepano",
"authorUrl": "https://twitter.com/kepano",
Expand Down
5 changes: 5 additions & 0 deletions src/css/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/css/main.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/css/main.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/css/main.min.css.map

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions src/css/style-settings.css
Original file line number Diff line number Diff line change
Expand Up @@ -1672,6 +1672,18 @@ settings:
-
label: Center flipped
value: tab-stack-center-flipped
-
id: tab-stacked-spine-order
title: Spine element order
type: variable-select
default: row
options:
-
label: Default
value: row
-
label: Reversed
value: row-reverse
-
id: tags
title: Tags
Expand Down
4 changes: 4 additions & 0 deletions src/scss/app/tab-stacks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@
.tab-stack-bottom-flipped {
--tab-stacked-text-align: right;
}

.workspace .mod-root .workspace-tabs.mod-stacked .workspace-tab-container .workspace-tab-header-inner {
flex-direction: var(--tab-stacked-spine-order);
}
4 changes: 4 additions & 0 deletions src/scss/features/cards.scss
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,10 @@ table.dataview {
padding-inline-start: calc(var(--cards-padding)*1.5);
}

> li.task-list-item > .task-list-item-checkbox {
margin-inline-start: 3px;
}

> li {
background-color: var(--cards-background);
padding: calc(var(--cards-padding)/2);
Expand Down
14 changes: 13 additions & 1 deletion theme.css

Large diffs are not rendered by default.

0 comments on commit f29716f

Please sign in to comment.