Skip to content

Commit

Permalink
Community plugin list updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mgmeyers committed Apr 3, 2021
1 parent b325ea2 commit 729f7bc
Show file tree
Hide file tree
Showing 5 changed files with 114 additions and 4 deletions.
59 changes: 57 additions & 2 deletions obsidian.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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";
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down
43 changes: 43 additions & 0 deletions src/010-main.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down
6 changes: 6 additions & 0 deletions src/030-icons.css
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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";
Expand Down
6 changes: 6 additions & 0 deletions src/060-preview.css
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions src/070-headers.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 729f7bc

Please sign in to comment.