Skip to content
Permalink
4bb863f4c1
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
171 lines (137 sloc) 3.41 KB
/*
* COMMON
*/
.shell-commands-hide {
display: none;
}
.SC-scrollable {
overflow-y: auto;
}
.SC-no-margin {
margin: 0;
}
.SC-no-top-border {
border-top: none;
}
/*
* SHELL COMMAND SETTING CONTAINERS
*/
div.shell-commands-name-setting,
div.shell-commands-shell-command-setting,
div.shell-commands-preview-setting {
padding: 0;
}
div.shell-commands-name-setting {
padding-top: 18px;
}
div.shell-commands-shell-command-setting {
border-top: none;
padding: 5px 0; /* Padding top & bottom 5px, sides 0. */
}
div.shell-commands-preview-setting {
border-top: none;
padding-bottom: 18px;
}
div.shell-commands-shell-command-setting div.setting-item-info {
/* Make the left cell (=div.setting-item-info) to have no space at all: */
flex: none;
flex-grow: unset;
margin-right: 0;
}
/*
* SHELL COMMAND SETTING FIELDS
*/
div.shell-commands-shell-command-setting input[type=text] {
width: 100%;
}
div.shell-commands-hotkey-info svg {
vertical-align: middle; /* Not middle but close enough. */
}
/*
* SHELL COMMAND ICONS (not button icons, just informational icons)
*/
span.shell-commands-main-icon-container {
margin-left: 10px;
}
/*
* Tab elements
* This CSS is copied 2021-10-21 from https://www.w3schools.com/howto/howto_js_tabs.asp
* Modifications:
* - Renamed classes
* - Added tab icons.
* - Changed colors.
* - Changed/removed borders.
* - Removed button transition.
* - Changed button border-radiuses
*/
/* Style the tab */
.SC-tab-header {
border-bottom: 2px solid var(--background-modifier-border);
background-color: var(--background-secondary);
}
/* Style the buttons that are used to open the tab content */
.SC-tab-header-button {
background-color: unset !important;
border: none;
outline: none;
cursor: pointer;
padding: 14px 16px;
border-radius: 10px 10px 0 0; /* 0 0 = No border-radius at bottom */
}
/* Create an active/current tablink class */
.SC-tab-header-button.SC-tab-active,
.SC-tab-header-button:hover {
background-color: var(--background-modifier-border) !important;
}
.SC-tab-header-button svg {
vertical-align: middle; /* Not middle but close enough. */
}
/* Style the tab content */
.SC-tab-content {
display: none;
padding: 6px 12px;
}
.SC-tab-content.SC-tab-active {
display: block;
}
/*
* AUTOCOMPLETE
*/
.SC-autocomplete {
background-color: var(--background-primary-alt);
border: 1px solid var(--background-modifier-border);
border-radius: 4px;
color: var(--text-normal);
z-index: 100; /* Otherwise the element will be behind everything = invisible. */
width: auto !important; /* Otherwise the element will be as wide as the text input field. */
}
.SC-autocomplete > div {
padding: 0 5px 2px 10px;
}
.SC-autocomplete > div > span.SC-autocomplete-value {
font-weight: bold;
}
.SC-autocomplete > div > span.SC-autocomplete-help-text {
font-size: 90%;
font-style: italic;
}
.SC-autocomplete > div.selected,
.SC-autocomplete > div:hover:not(.group) {
cursor: pointer;
background-color: var(--text-selection);
color: var(--text-normal);
}
.SC-autocomplete > div.group {
background-color: var(--background-modifier-border);
padding-left: 5px;
font-size: 75%;
}
/*
* OUTPUT CHANNEL: MODAL
*/
div.SC-output-channel-modal-textarea-container textarea {
width: 100%;
min-width: 100%;
min-height: 15em;
resize: both;
}