discourse/app/assets/stylesheets/common/select-kit/multi-select.scss
Penar Musaraj 03deda2147
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

171 lines
3.3 KiB
SCSS

.select-kit {
&.multi-select {
width: 300px;
background: $secondary;
border-radius: 0;
.select-kit-body {
width: 100%;
}
.select-kit-row {
margin: 5px;
min-height: 1px;
padding: 5px;
border-radius: 0;
}
.select-kit-filter {
border: 0;
flex: 1;
margin: 1px;
}
.multi-select-header {
background: $secondary;
border: 1px solid $primary-medium;
&.is-focused {
box-shadow: shadow("focus");
border-radius: 0;
}
}
&.is-disabled {
.multi-select-header {
background: #e9e9e9;
border-color: #ddd;
}
}
&.is-highlighted {
.multi-select-header {
border-radius: 0;
border-bottom: 1px solid transparent;
box-shadow: shadow("focus");
}
}
&.is-expanded {
.select-kit-wrapper {
display: block;
border: 1px solid $tertiary;
box-shadow: shadow("focus");
border-radius: 0;
}
.multi-select-header {
border-radius: 0;
box-shadow: none;
}
.select-kit-body {
border-radius: 0;
}
}
.choices {
margin: 0 2px;
box-sizing: border-box;
display: flex;
justify-content: flex-start;
flex-wrap: wrap;
width: 100%;
.choice {
display: inline-flex;
box-sizing: border-box;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
flex-direction: row;
margin: 1px 0px 2px 2px;
}
.filter {
align-items: center;
justify-content: flex-start;
white-space: nowrap;
min-width: 50px;
padding: 0;
outline: none;
flex: 1;
.filter-input,
.filter-input:focus {
border: none;
background: none;
display: inline-block;
width: 100%;
outline: none;
min-width: auto;
padding: 0;
margin: 0;
outline: 0;
border: 0;
box-shadow: none;
border-radius: 0;
min-height: unset; // overrides input defaults
}
}
.selected-color {
.selected-color-wrapper {
display: flex;
flex: 1;
flex-direction: column;
}
.color-preview {
height: 5px;
margin: 0 2px 2px 0px;
display: flex;
width: 100%;
}
}
.selected-category {
.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;
align-items: center;
}
}
.selected-name {
.footer {
display: flex;
width: 100%;
}
.body {
background: $primary-low;
padding: 4px;
}
.d-icon {
color: $primary-low-mid;
vertical-align: middle;
}
&:hover .d-icon {
color: $danger;
}
&.is-highlighted {
box-shadow: 0 0 2px $danger, 0 1px 0 rgba(0, 0, 0, 0.05);
}
}
}
}
}