Skip to content

Commit

Permalink
Checklist plugin styling for mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan Ango authored and Stephan Ango committed Nov 20, 2021
1 parent efe68c4 commit c9df0ae
Showing 1 changed file with 32 additions and 2 deletions.
34 changes: 32 additions & 2 deletions obsidian.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Minimal Obsidian 4.1.5 by @kepano
Minimal Obsidian 4.1.6 by @kepano
This theme is designed to be used with the Minimal Theme Settings
plugin and the Hider plugin.
Expand Down Expand Up @@ -829,7 +829,7 @@ PLUGINS
border-bottom:1px solid var(--background-modifier-border);
}
.checklist-plugin-main .group {
padding:0 0 4px 0;
padding:0 0 2px 0;
}
.checklist-plugin-main .group .classic:last-child,
.checklist-plugin-main .group .compact:last-child {
Expand Down Expand Up @@ -886,6 +886,33 @@ PLUGINS
.checklist-plugin-main .group .checkbox:hover {
border:1px solid var(--background-modifier-border-focus);
}
.checklist-plugin-main button:active,
.checklist-plugin-main button:focus,
.checklist-plugin-main button:hover {
box-shadow:none !important;
}
.checklist-plugin-main button.collapse {
padding:0;
}
body:not(.is-mobile) .checklist-plugin-main button.collapse svg {
width:18px;
height:18px;
}

/* Checklist plugin mobile */
.is-mobile .checklist-plugin-main .group-header .title {
flex-grow:1;
flex-shrink:0;
}
.is-mobile .checklist-plugin-main button {
width:auto;
}
.is-mobile .checklist-plugin-main.markdown-preview-view ul {
padding-inline-start:0;
}
.is-mobile .workspace .view-content .checklist-plugin-main {
padding-bottom:50px;
}

/* --------------- */
/* CodeMirror Options plugin */
Expand Down Expand Up @@ -2909,6 +2936,9 @@ input.document-replace-input:focus {
/* --------------- */
/* Form inputs */

button {
cursor:var(--cursor);
}
textarea,
input[type='text'],
input[type='search'],
Expand Down

0 comments on commit c9df0ae

Please sign in to comment.