Skip to content

Commit

Permalink
Update Sky theme, add settings for vault profile
Browse files Browse the repository at this point in the history
  • Loading branch information
kepano committed Jun 10, 2024
1 parent fcb590d commit 76d3548
Show file tree
Hide file tree
Showing 12 changed files with 285 additions and 38 deletions.
105 changes: 92 additions & 13 deletions Minimal.css
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ body {
--font-ui-smaller: 11px;
/* Font weights */
--normal-weight: 400;
--bold-weight: 600;
--link-weight: inherit;
/* Headings */
--inline-title-margin-bottom: 1rem;
--h1-size: 1.125em;
Expand Down Expand Up @@ -1175,10 +1173,68 @@ body.is-focused {
color: var(--text-muted);
}

body:not(.is-mobile).hide-help .workspace-split.mod-left-split .workspace-sidedock-vault-profile .workspace-drawer-vault-actions .clickable-icon:first-child {
.is-collapsed .workspace-sidedock-vault-profile {
opacity: 0;
}

body:not(.is-mobile).hide-help .workspace-drawer-vault-actions .clickable-icon:first-child {
display: none;
}

body:not(.is-mobile).hide-settings .workspace-drawer-vault-actions .clickable-icon:last-child {
display: none;
}

body:not(.is-mobile).hide-help.hide-settings .workspace-drawer-vault-actions {
display: none !important;
}

body:not(.is-grabbing):not(.is-fullscreen).labeled-nav.is-hidden-frameless.vault-profile-top .mod-left-split .mod-top .workspace-tab-header-container {
-webkit-app-region: no-drag;
}
body:not(.is-grabbing):not(.is-fullscreen).labeled-nav.is-hidden-frameless.vault-profile-top .mod-left-split .mod-top .workspace-tab-header-container:before {
position: absolute;
top: 0;
content: "";
height: var(--header-height);
width: 100%;
-webkit-app-region: drag;
}

body:not(.is-mobile):not(.labeled-nav).vault-profile-top .workspace-split.mod-left-split .mod-top .workspace-tab-container {
margin-top: calc(var(--header-height) + 8px);
}
body:not(.is-mobile):not(.labeled-nav).vault-profile-top .workspace-split.mod-left-split .workspace-sidedock-vault-profile {
-webkit-app-region: no-drag;
position: absolute;
top: var(--header-height);
z-index: 6;
width: 100%;
border-top: 0;
border-bottom: 1px solid var(--background-modifier-border);
}
body:not(.is-mobile):not(.labeled-nav).vault-profile-top .workspace-split.mod-left-split .workspace-sidedock-vault-profile .workspace-drawer-vault-switcher {
padding-left: var(--size-4-2);
}

body:not(.is-mobile).labeled-nav.vault-profile-top .workspace-split.mod-left-split .workspace-sidedock-vault-profile {
-webkit-app-region: no-drag;
position: absolute;
top: var(--labeled-nav-top-margin);
z-index: 6;
width: 100%;
background-color: transparent;
border-top: 0;
border-bottom: 1px solid var(--background-modifier-border);
}
body:not(.is-mobile).labeled-nav.vault-profile-top .workspace-split.mod-left-split .workspace-sidedock-vault-profile .workspace-drawer-vault-switcher {
padding-left: var(--size-4-2);
}

.vault-profile-top .workspace-tab-header-container-inner {
--labeled-nav-top-margin: 84px;
}

/* Components */
/* Buttons */
.modal.mod-settings button:not(.mod-cta):not(.mod-warning),
Expand Down Expand Up @@ -3676,19 +3732,19 @@ body {

/* Image zoom */
/* MIT License | Copyright (c) Stephan Ango (@kepano) */
body:not(.zoom-off) .workspace-leaf-content[data-type=markdown] .view-content div:not(.canvas-node-content) img {
body:not(.zoom-off):not(.is-mobile) .workspace-leaf-content[data-type=markdown] .view-content div:not(.canvas-node-content) img {
max-width: 100%;
cursor: zoom-in;
}
body:not(.zoom-off) .workspace-leaf-content[data-type=markdown] .view-content img:active {
body:not(.zoom-off):not(.is-mobile) .workspace-leaf-content[data-type=markdown] .view-content img:active {
cursor: zoom-out;
}
body:not(.zoom-off) .workspace-leaf-content[data-type=markdown] .view-content .markdown-preview-view img[referrerpolicy=no-referrer]:active {
body:not(.zoom-off):not(.is-mobile) .workspace-leaf-content[data-type=markdown] .view-content .markdown-preview-view img[referrerpolicy=no-referrer]:active {
background-color: var(--background-primary);
padding: 10px;
}
body:not(.zoom-off) .workspace-leaf-content[data-type=markdown] .view-content .markdown-preview-view img[referrerpolicy=no-referrer]:active,
body:not(.zoom-off) .workspace-leaf-content[data-type=markdown] .view-content .image-embed:not(.canvas-node-content):active {
body:not(.zoom-off):not(.is-mobile) .workspace-leaf-content[data-type=markdown] .view-content .markdown-preview-view img[referrerpolicy=no-referrer]:active,
body:not(.zoom-off):not(.is-mobile) .workspace-leaf-content[data-type=markdown] .view-content .image-embed:not(.canvas-node-content):active {
--container-img-width: 100%;
--container-img-max-width: 100%;
aspect-ratio: unset;
Expand All @@ -3708,7 +3764,7 @@ body:not(.zoom-off) .workspace-leaf-content[data-type=markdown] .view-content .i
right: 0;
bottom: 0;
}
body:not(.zoom-off) .workspace-leaf-content[data-type=markdown] .view-content .image-embed:not(.canvas-node-content):active:after {
body:not(.zoom-off):not(.is-mobile) .workspace-leaf-content[data-type=markdown] .view-content .image-embed:not(.canvas-node-content):active:after {
background-color: var(--background-primary);
opacity: 0.9;
content: " ";
Expand All @@ -3719,7 +3775,7 @@ body:not(.zoom-off) .workspace-leaf-content[data-type=markdown] .view-content .i
right: 1px;
z-index: 0;
}
body:not(.zoom-off) .workspace-leaf-content[data-type=markdown] .view-content .image-embed:not(.canvas-node-content):active img {
body:not(.zoom-off):not(.is-mobile) .workspace-leaf-content[data-type=markdown] .view-content .image-embed:not(.canvas-node-content):active img {
aspect-ratio: unset;
top: 50%;
z-index: 99;
Expand All @@ -3735,7 +3791,7 @@ body:not(.zoom-off) .workspace-leaf-content[data-type=markdown] .view-content .i
position: absolute;
opacity: 1;
}
body:not(.zoom-off) .workspace-leaf-content[data-type=markdown] .view-content .markdown-source-view.mod-cm6 .cm-content > [contenteditable=false]:has(.image-embed:not(.canvas-node-content):active) {
body:not(.zoom-off):not(.is-mobile) .workspace-leaf-content[data-type=markdown] .view-content .markdown-source-view.mod-cm6 .cm-content > [contenteditable=false]:has(.image-embed:not(.canvas-node-content):active) {
contain: unset !important;
}

Expand Down Expand Up @@ -7487,7 +7543,6 @@ https://github.com/nordtheme/nord
--tx2:#72706c;
--tx3:#aaa9a5;
--hl1:rgba(131,201,229,0.3);
--link-weight:500;
}

.theme-light.minimal-notion-light.minimal-light-contrast .titlebar,
Expand All @@ -7513,7 +7568,6 @@ https://github.com/nordtheme/nord
--tx2:#909295;
--tx3:#585d5f;
--hl1:rgba(57,134,164,0.3);
--link-weight:500;
}

.theme-dark.minimal-notion-dark.minimal-dark-black {
Expand Down Expand Up @@ -9234,6 +9288,31 @@ settings:
-
label: Single tab only
value: tab-names-single
-
id: vault-profile-display
title: Vault profile position
type: class-select
allowEmpty: false
default: vault-profile-default
options:
-
label: Bottom
value: vault-profile-default
-
label: Top
value: vault-profile-top
-
id: hide-help
title: Hide help button
description:
type: class-toggle
default: false
-
id: hide-settings
title: Hide settings button
description:
type: class-toggle
default: false
-
id: mobile-left-sidebar-width
title: Mobile left sidebar width
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.6.12",
"version": "7.7.0",
"minAppVersion": "1.6.1",
"author": "@kepano",
"authorUrl": "https://twitter.com/kepano",
Expand Down
80 changes: 67 additions & 13 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.

25 changes: 25 additions & 0 deletions src/css/style-settings.css
Original file line number Diff line number Diff line change
Expand Up @@ -1402,6 +1402,31 @@ settings:
-
label: Single tab only
value: tab-names-single
-
id: vault-profile-display
title: Vault profile position
type: class-select
allowEmpty: false
default: vault-profile-default
options:
-
label: Bottom
value: vault-profile-default
-
label: Top
value: vault-profile-top
-
id: hide-help
title: Hide help button
description:
type: class-toggle
default: false
-
id: hide-settings
title: Hide settings button
description:
type: class-toggle
default: false
-
id: mobile-left-sidebar-width
title: Mobile left sidebar width
Expand Down
Loading

0 comments on commit 76d3548

Please sign in to comment.