From 4b2d0e71dca0d3d08ee4b908f23f234b7af8b43b Mon Sep 17 00:00:00 2001 From: dragonwocky Date: Fri, 28 Aug 2020 12:48:23 +1000 Subject: [PATCH] fix #58 (caret-color was being mistaken for color) --- mods/core/css/dark.css | 23 +++++++++++++---------- mods/core/css/light.css | 23 +++++++++++++---------- mods/property-layout/styles.css | 8 +------- package.json | 2 +- 4 files changed, 28 insertions(+), 28 deletions(-) diff --git a/mods/core/css/dark.css b/mods/core/css/dark.css index 673286a..7f235e5 100644 --- a/mods/core/css/dark.css +++ b/mods/core/css/dark.css @@ -161,7 +161,7 @@ .dark, .dark .notion-page-content [style*='color: inherit;'], .dark .notion-frame .notion-page-block, -.dark [style*='color: rgba(255, 255, 255, 0.9)'], +.dark [style*=' color: rgba(255, 255, 255, 0.9)'], .dark [style*='color: rgba(255, 255, 255, 0.7)'] { color: var(--theme--text) !important; } @@ -177,6 +177,9 @@ .dark [style*='fill: rgba(202, 204, 206,'] { fill: var(--theme--text_ui) !important; } +.dark [style*='caret-color: rgba(255, 255, 255, 0.9)'] { + caret-color: var(--theme--text) !important; +} .dark [style*='color:rgba(151,154,155,0.95)'] { color: var(--theme--text_gray) !important; @@ -280,31 +283,31 @@ .dark [style*='background: rgb(69, 75, 78)'] - [style*='color: rgba(255, 255, 255, 0.9)'], + [style*=' color: rgba(255, 255, 255, 0.9)'], .dark [style*='background: rgb(67, 64, 64)'] - [style*='color: rgba(255, 255, 255, 0.9)'], + [style*=' color: rgba(255, 255, 255, 0.9)'], .dark [style*='background: rgb(89, 74, 58)'] - [style*='color: rgba(255, 255, 255, 0.9)'], + [style*=' color: rgba(255, 255, 255, 0.9)'], .dark [style*='background: rgb(89, 86, 59)'] - [style*='color: rgba(255, 255, 255, 0.9)'], + [style*=' color: rgba(255, 255, 255, 0.9)'], .dark [style*='background: rgb(53, 76, 75)'] - [style*='color: rgba(255, 255, 255, 0.9)'], + [style*=' color: rgba(255, 255, 255, 0.9)'], .dark [style*='background: rgb(54, 73, 84)'] - [style*='color: rgba(255, 255, 255, 0.9)'], + [style*=' color: rgba(255, 255, 255, 0.9)'], .dark [style*='background: rgb(68, 63, 87)'] - [style*='color: rgba(255, 255, 255, 0.9)'], + [style*=' color: rgba(255, 255, 255, 0.9)'], .dark [style*='background: rgb(83, 59, 76)'] - [style*='color: rgba(255, 255, 255, 0.9)'], + [style*=' color: rgba(255, 255, 255, 0.9)'], .dark [style*='background: rgb(89, 65, 65)'] - [style*='color: rgba(255, 255, 255, 0.9)'] { + [style*=' color: rgba(255, 255, 255, 0.9)'] { color: var(--theme--line_text) !important; } diff --git a/mods/core/css/light.css b/mods/core/css/light.css index 74b5bf2..53dfdb3 100644 --- a/mods/core/css/light.css +++ b/mods/core/css/light.css @@ -182,7 +182,7 @@ .notion-body:not(.dark), .notion-body:not(.dark) .notion-page-content [style*='color: inherit;'], .notion-body:not(.dark) .notion-frame .notion-page-block, -.notion-body:not(.dark) [style*='color: rgb(55, 53, 47);'] { +.notion-body:not(.dark) [style*=' color: rgb(55, 53, 47);'] { color: var(--theme--text) !important; } .notion-body:not(.dark) [style*='color: rgba(55, 53, 47, 0.6)'], @@ -198,6 +198,9 @@ .notion-body:not(.dark) [style*='fill: rgba(55, 53, 47, 0.8)'] { fill: var(--theme--text) !important; } +.notion-body:not(.dark) [style*='caret-color: rgb(55, 53, 47)'] { + caret-color: var(--theme--text) !important; +} .notion-body:not(.dark) [style*='color:rgb(155,154,151)'] { color: var(--theme--text_gray) !important; @@ -301,31 +304,31 @@ .notion-body:not(.dark) [style*='background: rgb(235, 236, 237)'] - [style*='color: rgb(55, 53, 47);'], + [style*=' color: rgb(55, 53, 47);'], .notion-body:not(.dark) [style*='background: rgb(233, 229, 227)'] - [style*='color: rgb(55, 53, 47);'], + [style*=' color: rgb(55, 53, 47);'], .notion-body:not(.dark) [style*='background: rgb(250, 235, 221)'] - [style*='color: rgb(55, 53, 47);'], + [style*=' color: rgb(55, 53, 47);'], .notion-body:not(.dark) [style*='background: rgb(251, 243, 219)'] - [style*='color: rgb(55, 53, 47);'], + [style*=' color: rgb(55, 53, 47);'], .notion-body:not(.dark) [style*='background: rgb(221, 237, 234)'] - [style*='color: rgb(55, 53, 47);'], + [style*=' color: rgb(55, 53, 47);'], .notion-body:not(.dark) [style*='background: rgb(221, 235, 241)'] - [style*='color: rgb(55, 53, 47);'], + [style*=' color: rgb(55, 53, 47);'], .notion-body:not(.dark) [style*='background: rgb(234, 228, 242)'] - [style*='color: rgb(55, 53, 47);'], + [style*=' color: rgb(55, 53, 47);'], .notion-body:not(.dark) [style*='background: rgb(244, 223, 235)'] - [style*='color: rgb(55, 53, 47);'], + [style*=' color: rgb(55, 53, 47);'], .notion-body:not(.dark) [style*='background: rgb(251, 228, 228)'] - [style*='color: rgb(55, 53, 47);'] { + [style*=' color: rgb(55, 53, 47);'] { color: var(--theme--line_text) !important; } diff --git a/mods/property-layout/styles.css b/mods/property-layout/styles.css index a669012..60580be 100644 --- a/mods/property-layout/styles.css +++ b/mods/property-layout/styles.css @@ -10,7 +10,7 @@ } .propertylayout-toggle { - width: calc(100% - (2 * (96px + env(safe-area-inset-left)))); + width: 100%; text-align: left; font-size: 0.85em; padding: 0.25em; @@ -23,12 +23,6 @@ .propertylayout-toggle[data-action='show'] { margin-bottom: 1em; } -[style*='width: 900px'] + .propertylayout-toggle { - width: calc(900px - (2 * (96px + env(safe-area-inset-left)))); -} -.notion-peek-renderer .propertylayout-toggle { - width: 100%; -} .propertylayout-toggle:hover { background: var(--theme--interactive_hover); } diff --git a/package.json b/package.json index 89d961e..018a95a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "notion-enhancer", - "version": "0.8.0", + "version": "0.8.1-wip", "description": "an enhancer/customiser for the all-in-one productivity workspace notion.so", "main": "index.js", "bin": {