discourse/app/assets/stylesheets/common/select-kit/multi-select.scss

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

147 lines
2.8 KiB
SCSS
Raw Normal View History

.select-kit {
&.multi-select {
2017-11-09 13:57:53 -05:00
width: 300px;
background: var(--secondary);
2017-11-09 13:57:53 -05:00
border-radius: 0;
.select-kit-row {
2017-11-09 13:57:53 -05:00
margin: 5px;
min-height: 1px;
padding: 5px;
border-radius: 0;
}
.select-kit-filter {
2017-11-09 13:57:53 -05:00
border: 0;
flex: 1 0 0px;
margin: 1px;
2017-11-09 13:57:53 -05:00
}
.multi-select-header {
background: var(--secondary);
border: 1px solid var(--primary-medium);
2017-11-09 13:57:53 -05:00
&.is-focused,
&:focus {
@include default-focus;
2017-11-09 13:57:53 -05:00
}
}
&.is-disabled {
.multi-select-header {
background: var(--primary-low);
border-color: var(--primary-low-mid);
color: var(--primary-medium);
.d-icon {
color: var(--primary-medium);
}
2017-11-09 13:57:53 -05:00
}
}
&.is-expanded {
.select-kit-wrapper {
2017-11-09 13:57:53 -05:00
display: block;
}
.multi-select-header {
2017-11-09 13:57:53 -05:00
border-radius: 0;
@include default-focus;
2017-11-09 13:57:53 -05:00
}
.select-kit-body {
2017-11-09 13:57:53 -05:00
border-radius: 0;
box-shadow: shadow("dropdown");
&.empty-body {
visibility: hidden;
}
2017-11-09 13:57:53 -05:00
}
}
.choices {
margin: 0;
padding: 0 0 2px 0;
2017-11-09 13:57:53 -05:00
box-sizing: border-box;
display: block;
width: 100%;
2017-11-09 13:57:53 -05:00
.choice {
2017-11-09 13:57:53 -05:00
display: inline-flex;
box-sizing: border-box;
align-items: center;
justify-content: space-between;
margin: 2px 0 0px 3px;
padding: 0;
float: left;
height: 30px;
&.input-wrapper {
min-width: 120px;
}
2017-11-09 13:57:53 -05:00
}
.multi-select-filter .filter-input {
padding-left: 5px;
}
.selected-color {
.selected-color-wrapper {
display: flex;
flex: 1 0 0px;
flex-direction: column;
}
.color-preview {
height: 5px;
margin: 0 2px 2px 0px;
display: flex;
width: 100%;
2017-11-09 13:57:53 -05:00
}
}
.selected-category {
Upgrade to FontAwesome 5 (take two) (#6673) * Add missing icons to set * Revert FA5 revert This reverts commit 42572ff * use new SVG syntax in locales * Noscript page changes (remove login button, center "powered by" footer text) * Cast wider net for SVG icons in settings - include any _icon setting for SVG registry (offers better support for plugin settings) - let themes store multiple pipe-delimited icons in a setting - also replaces broken onebox image icon with SVG reference in cooked post processor * interpolate icons in locales * Fix composer whisper icon alignment * Add support for stacked icons * SECURITY: enforce hostname to match discourse hostname This ensures that the hostname rails uses for various helpers always matches the Discourse hostname * load SVG sprite with pre-initializers * FIX: enable caching on SVG sprites * PERF: use JSONP for SVG sprites so they are served from CDN This avoids needing to deal with CORS for loading of the SVG Note, added the svg- prefix to the filename so we can quickly tell in dev tools what the file is * Add missing SVG sprite JSONP script to CSP * Upgrade to FA 5.5.0 * Add support for all FA4.7 icons - adds complete frontend and backend for renamed FA4.7 icons - improves performance of SvgSprite.bundle and SvgSprite.all_icons * Fix group avatar flair preview - adds an endpoint at /svg-sprites/search/:keyword - adds frontend ajax call that pulls icon in avatar flair preview even when it is not in subset * Remove FA 4.7 font files
2018-11-26 16:49:57 -05:00
.body {
display: flex;
align-items: center;
}
.badge-wrapper {
&.bullet {
margin-right: 2.5px;
}
padding: 2px 4px;
line-height: $line-height-medium;
display: flex;
flex: 1 0 0px;
align-items: center;
}
}
2017-11-09 13:57:53 -05:00
.selected-name {
background: var(--primary-low);
padding: 0.25em;
flex: 1;
align-items: center;
display: flex;
justify-content: space-between;
max-width: calc(100% - 5px);
.name {
@include ellipsis;
}
Upgrade to FontAwesome 5 (take two) (#6673) * Add missing icons to set * Revert FA5 revert This reverts commit 42572ff * use new SVG syntax in locales * Noscript page changes (remove login button, center "powered by" footer text) * Cast wider net for SVG icons in settings - include any _icon setting for SVG registry (offers better support for plugin settings) - let themes store multiple pipe-delimited icons in a setting - also replaces broken onebox image icon with SVG reference in cooked post processor * interpolate icons in locales * Fix composer whisper icon alignment * Add support for stacked icons * SECURITY: enforce hostname to match discourse hostname This ensures that the hostname rails uses for various helpers always matches the Discourse hostname * load SVG sprite with pre-initializers * FIX: enable caching on SVG sprites * PERF: use JSONP for SVG sprites so they are served from CDN This avoids needing to deal with CORS for loading of the SVG Note, added the svg- prefix to the filename so we can quickly tell in dev tools what the file is * Add missing SVG sprite JSONP script to CSP * Upgrade to FA 5.5.0 * Add support for all FA4.7 icons - adds complete frontend and backend for renamed FA4.7 icons - improves performance of SvgSprite.bundle and SvgSprite.all_icons * Fix group avatar flair preview - adds an endpoint at /svg-sprites/search/:keyword - adds frontend ajax call that pulls icon in avatar flair preview even when it is not in subset * Remove FA 4.7 font files
2018-11-26 16:49:57 -05:00
.d-icon {
color: var(--primary-low-mid);
Upgrade to FontAwesome 5 (take two) (#6673) * Add missing icons to set * Revert FA5 revert This reverts commit 42572ff * use new SVG syntax in locales * Noscript page changes (remove login button, center "powered by" footer text) * Cast wider net for SVG icons in settings - include any _icon setting for SVG registry (offers better support for plugin settings) - let themes store multiple pipe-delimited icons in a setting - also replaces broken onebox image icon with SVG reference in cooked post processor * interpolate icons in locales * Fix composer whisper icon alignment * Add support for stacked icons * SECURITY: enforce hostname to match discourse hostname This ensures that the hostname rails uses for various helpers always matches the Discourse hostname * load SVG sprite with pre-initializers * FIX: enable caching on SVG sprites * PERF: use JSONP for SVG sprites so they are served from CDN This avoids needing to deal with CORS for loading of the SVG Note, added the svg- prefix to the filename so we can quickly tell in dev tools what the file is * Add missing SVG sprite JSONP script to CSP * Upgrade to FA 5.5.0 * Add support for all FA4.7 icons - adds complete frontend and backend for renamed FA4.7 icons - improves performance of SvgSprite.bundle and SvgSprite.all_icons * Fix group avatar flair preview - adds an endpoint at /svg-sprites/search/:keyword - adds frontend ajax call that pulls icon in avatar flair preview even when it is not in subset * Remove FA 4.7 font files
2018-11-26 16:49:57 -05:00
vertical-align: middle;
&:last-child {
margin-left: 0.5em;
}
Upgrade to FontAwesome 5 (take two) (#6673) * Add missing icons to set * Revert FA5 revert This reverts commit 42572ff * use new SVG syntax in locales * Noscript page changes (remove login button, center "powered by" footer text) * Cast wider net for SVG icons in settings - include any _icon setting for SVG registry (offers better support for plugin settings) - let themes store multiple pipe-delimited icons in a setting - also replaces broken onebox image icon with SVG reference in cooked post processor * interpolate icons in locales * Fix composer whisper icon alignment * Add support for stacked icons * SECURITY: enforce hostname to match discourse hostname This ensures that the hostname rails uses for various helpers always matches the Discourse hostname * load SVG sprite with pre-initializers * FIX: enable caching on SVG sprites * PERF: use JSONP for SVG sprites so they are served from CDN This avoids needing to deal with CORS for loading of the SVG Note, added the svg- prefix to the filename so we can quickly tell in dev tools what the file is * Add missing SVG sprite JSONP script to CSP * Upgrade to FA 5.5.0 * Add support for all FA4.7 icons - adds complete frontend and backend for renamed FA4.7 icons - improves performance of SvgSprite.bundle and SvgSprite.all_icons * Fix group avatar flair preview - adds an endpoint at /svg-sprites/search/:keyword - adds frontend ajax call that pulls icon in avatar flair preview even when it is not in subset * Remove FA 4.7 font files
2018-11-26 16:49:57 -05:00
}
&:hover .d-icon:last-child {
color: var(--danger);
2018-01-12 17:27:38 -05:00
}
2017-11-09 13:57:53 -05:00
}
}
}
}