diff --git a/obsidian.css b/obsidian.css index a0614e7..10a56d2 100644 --- a/obsidian.css +++ b/obsidian.css @@ -1545,6 +1545,49 @@ input.document-replace-input:focus { padding-bottom: 0; } +.community-plugin-search { + padding: 0; +} + +.community-plugin-search > .setting-item { + padding: 0; +} + +.community-plugin-search > .setting-item > .setting-item-info { + flex-grow: 0; + flex-shrink: 1; + width: 0; + margin-right: 0; +} + +.community-plugin-search .setting-item-control { + justify-content: flex-start; +} + +.community-plugin-search .search-input-container { + flex-grow: 1; + margin-left: 5px; +} + +.community-plugin-search .search-input-container > input { + height: auto; +} + +.community-plugin-search button.clickable-icon { + display: block; + margin: 0 16px 0 0; +} + +.community-plugin-search-summary { + padding: 16px 16px 0; +} + +.community-plugin-item { + padding: 16px; + margin: 0; +} + + /* --------------- */ /* Sidebar documents */ @@ -4061,6 +4104,7 @@ ol > li::before { transform: rotate(-90deg); } +.community-plugin-search button.clickable-icon > svg, .file-embed-link > svg, .markdown-embed-link > svg, .setting-editor-extra-setting-button[aria-label^="Restore "] > svg, @@ -4132,6 +4176,7 @@ ol > li::before { display: none; } +.community-plugin-search button.clickable-icon:before, .file-embed-link:before, .markdown-embed-link:before, .tag-pane-tag-text:before, @@ -4209,6 +4254,10 @@ ol > li::before { line-height: 1; } +.community-plugin-search button.clickable-icon:before { + content: "\eb77"; +} + .file-embed-link:before, .markdown-embed-link:before { content: "\ea9e"; @@ -5119,6 +5168,12 @@ a[href*="obsidian://search"]:after margin-bottom: 0; } +.community-plugin-readme.markdown-preview-view h1:first-child, +.community-plugin-readme.markdown-preview-view h2:first-child, +.community-plugin-readme.markdown-preview-view h3:first-child, +.community-plugin-readme.markdown-preview-view h4:first-child, +.community-plugin-readme.markdown-preview-view h5:first-child, +.community-plugin-readme.markdown-preview-view h6:first-child, .cc-pretty-preview .markdown-preview-pusher + div h1, .cc-pretty-preview .markdown-preview-pusher + div h2, .cc-pretty-preview .markdown-preview-pusher + div h3, @@ -5404,7 +5459,7 @@ html .embedded-note-titles .CodeMirror-lines { padding-top: 0; } -.embedded-note-titles .markdown-preview-view > h1, +.embedded-note-titles .markdown-preview-view:not(.community-plugin-readme) > h1, .embedded-note-titles .CodeMirror-scroll > h1 { padding: 3.6rem 0 var(--editor-line-height-rem); margin: 0; @@ -5428,7 +5483,7 @@ html .embedded-note-titles .CodeMirror-lines { padding: 5rem 0 var(--editor-line-height-rem); } -.embedded-note-titles .markdown-preview-view +.embedded-note-titles .markdown-preview-view:not(.community-plugin-readme) > h1 { padding-left: 3.5rem !important; padding-right: 3.5rem !important; diff --git a/src/010-main.css b/src/010-main.css index aa4649d..820adf2 100644 --- a/src/010-main.css +++ b/src/010-main.css @@ -1189,6 +1189,49 @@ input.document-replace-input:focus { padding-bottom: 0; } +.community-plugin-search { + padding: 0; +} + +.community-plugin-search > .setting-item { + padding: 0; +} + +.community-plugin-search > .setting-item > .setting-item-info { + flex-grow: 0; + flex-shrink: 1; + width: 0; + margin-right: 0; +} + +.community-plugin-search .setting-item-control { + justify-content: flex-start; +} + +.community-plugin-search .search-input-container { + flex-grow: 1; + margin-left: 5px; +} + +.community-plugin-search .search-input-container > input { + height: auto; +} + +.community-plugin-search button.clickable-icon { + display: block; + margin: 0 16px 0 0; +} + +.community-plugin-search-summary { + padding: 16px 16px 0; +} + +.community-plugin-item { + padding: 16px; + margin: 0; +} + + /* --------------- */ /* Sidebar documents */ diff --git a/src/030-icons.css b/src/030-icons.css index 80c8640..a45393e 100644 --- a/src/030-icons.css +++ b/src/030-icons.css @@ -181,6 +181,7 @@ transform: rotate(-90deg); } +.community-plugin-search button.clickable-icon > svg, .file-embed-link > svg, .markdown-embed-link > svg, .setting-editor-extra-setting-button[aria-label^="Restore "] > svg, @@ -252,6 +253,7 @@ display: none; } +.community-plugin-search button.clickable-icon:before, .file-embed-link:before, .markdown-embed-link:before, .tag-pane-tag-text:before, @@ -329,6 +331,10 @@ line-height: 1; } +.community-plugin-search button.clickable-icon:before { + content: "\eb77"; +} + .file-embed-link:before, .markdown-embed-link:before { content: "\ea9e"; diff --git a/src/060-preview.css b/src/060-preview.css index 545351d..4fdbbb9 100644 --- a/src/060-preview.css +++ b/src/060-preview.css @@ -231,6 +231,12 @@ margin-bottom: 0; } +.community-plugin-readme.markdown-preview-view h1:first-child, +.community-plugin-readme.markdown-preview-view h2:first-child, +.community-plugin-readme.markdown-preview-view h3:first-child, +.community-plugin-readme.markdown-preview-view h4:first-child, +.community-plugin-readme.markdown-preview-view h5:first-child, +.community-plugin-readme.markdown-preview-view h6:first-child, .cc-pretty-preview .markdown-preview-pusher + div h1, .cc-pretty-preview .markdown-preview-pusher + div h2, .cc-pretty-preview .markdown-preview-pusher + div h3, diff --git a/src/070-headers.css b/src/070-headers.css index def4cfc..dd8d2ee 100644 --- a/src/070-headers.css +++ b/src/070-headers.css @@ -196,7 +196,7 @@ html .embedded-note-titles .CodeMirror-lines { padding-top: 0; } -.embedded-note-titles .markdown-preview-view > h1, +.embedded-note-titles .markdown-preview-view:not(.community-plugin-readme) > h1, .embedded-note-titles .CodeMirror-scroll > h1 { padding: 3.6rem 0 var(--editor-line-height-rem); margin: 0; @@ -220,7 +220,7 @@ html .embedded-note-titles .CodeMirror-lines { padding: 5rem 0 var(--editor-line-height-rem); } -.embedded-note-titles .markdown-preview-view +.embedded-note-titles .markdown-preview-view:not(.community-plugin-readme) > h1 { padding-left: 3.5rem !important; padding-right: 3.5rem !important;