From df1ddd5c175d780d4394d455cbba9123d93186b2 Mon Sep 17 00:00:00 2001 From: Afdzal Yunus <53261024+bearoxo@users.noreply.github.com> Date: Wed, 21 Feb 2024 20:07:20 +0800 Subject: [PATCH] Improve preset styling for Google Keeps frame (#99) * Improve preset styling for Google Keeps * Remove pointer cursor from app logo * Remove pointer cursor from app logo --------- Co-authored-by: Ell --- src/settings.ts | 9 +++++++-- .../.obsidian/plugins/obsidian-custom-frames/data.json | 4 ++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/settings.ts b/src/settings.ts index 4ae402b..3e07bae 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -59,10 +59,15 @@ div[style*="min-width: 238px"] span[role*="heading"] { openInCenter: false, zoomLevel: 1, forceIframe: false, - customCss: `/* hide the menu bar and the "Keep" text */ + customCss: `/* hide the menu bar, the "Keep" text and the Google Apps button */ html > body > div:nth-child(2) > div:nth-child(2) > div:first-child, -html > body > div:first-child > header:first-child > div > div:first-child > div > div:first-child > a:first-child > span { +html > body > div:first-child > header:first-child > div > div:first-child > div > div:first-child > a:first-child > span, +html > body > div:first-child > header:first-child > div:nth-child(2) > div:first-child > div:first-child, +html > body > div:first-child > header:first-child > div:nth-child(2) > div:nth-child(3) > div:first-child > div:first-child > div:first-child { display: none !important; +} +html > body > div:first-child > header:first-child > div > div:first-child > div > div:first-child > a:first-child { + cursor: default; }`, customJs: "" }, diff --git a/test-vault/.obsidian/plugins/obsidian-custom-frames/data.json b/test-vault/.obsidian/plugins/obsidian-custom-frames/data.json index 6151f36..56ef1bb 100644 --- a/test-vault/.obsidian/plugins/obsidian-custom-frames/data.json +++ b/test-vault/.obsidian/plugins/obsidian-custom-frames/data.json @@ -20,7 +20,7 @@ "openInCenter": false, "zoomLevel": 1, "forceIframe": false, - "customCss": "/* hide the menu bar and the \"Keep\" text */\nhtml > body > div:nth-child(2) > div:nth-child(2) > div:first-child, \nhtml > body > div:first-child > header:first-child > div > div:first-child > div > div:first-child > a:first-child > span { \n\tdisplay: none !important; \n}" + "customCss": "/* hide the menu bar, the \"Keep\" text and the Google Apps button */\nhtml > body > div:nth-child(2) > div:nth-child(2) > div:first-child, \nhtml > body > div:first-child > header:first-child > div > div:first-child > div > div:first-child > a:first-child > span, \nhtml > body > div:first-child > header:first-child > div:nth-child(2) > div:first-child > div:first-child, \nhtml > body > div:first-child > header:first-child > div:nth-child(2) > div:nth-child(3) > div:first-child > div:first-child > div:first-child { \n\tdisplay: none !important; \n}\nhtml > body > div:first-child > header:first-child > div > div:first-child > div > div:first-child > a:first-child {\n\tcursor: default; \n}" }, { "url": "https://calendar.google.com/calendar", @@ -46,4 +46,4 @@ } ], "padding": 5 -} \ No newline at end of file +}