/*
* 'Shell commands' plugin for Obsidian.
* Copyright (C) 2021 - 2023 Jarkko Linnanvirta
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3.0 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* Contact the author (Jarkko Linnanvirta): https://github.com/Taitava/
*/
/*
* COMMON
*/
.SC-hide {
display: none;
}
.SC-scrollable {
overflow-y: auto;
}
.SC-no-margin {
margin: 0;
}
.SC-no-top-border {
border-top: none;
}
.SC-wrappable {
white-space: normal;
}
.SC-small-font {
font-size: 80%;
}
/**
* Used for indenting setting elements when they have relations to each other.
*/
.SC-indent {
margin-left: 20px;
}
.SC-text-right {
text-align: right;
}
/*
* SETTING GROUPS
* Related setting fields combined together.
*/
div.SC-setting-group div.setting-item:not(div.setting-item-heading+div.setting-item) {
/* Remove top border from all settings in the group, except settings that come AFTER a heading setting, as it looks
* good when there is a border line below a heading setting.
*/
border-top: none;
}
div.SC-setting-group div.setting-item {
padding: 5px; /* Shrink the padding. */
}
div.SC-setting-group div.setting-item:not(.setting-item-heading) div.setting-item-info, /* :not() = Don't shrink headings, they usually don't have large control elements. Heading texts themselves can be long, so don't limit them to 50% width. */
div.SC-setting-group div.setting-item:not(.setting-item-heading) div.setting-item-control {
width: 50%; /* Make sure description does not take over 50% of the space. */
}
div.SC-setting-group div.setting-item.SC-full-description div.setting-item-info {
width: 100%; /* Give description 100% width. Built-in variable list in settings uses this. */
}
div.SC-setting-group div.setting-item.SC-full-description div.setting-item-control {
width: 0; /* Make room for description. */
}
div.SC-setting-group div.setting-item.SC-wide-description div.setting-item-info {
width: max-content; /* Grow description as wide as possible, but leave some space for setting control elements. */
}
div.SC-setting-group div.setting-item.SC-wide-description div.setting-item-control {
width: min-content; /* Make room for description. */
}
div.SC-setting-group div.setting-item input[type=text],
div.SC-setting-group div.setting-item input[type=password],
div.SC-setting-group div.setting-item input[type=search],
div.SC-setting-group div.setting-item textarea,
div.SC-setting-group div.setting-item:not(.setting-item-heading) select {
width: 100%; /* Enlarge fields. */
max-width: 100%; /* Remove a maximum width limitation, at least