+
{{d-icon "times"}}
{{badge}}
-
+
diff --git a/app/assets/javascripts/select-kit/templates/components/multi-select/selected-color.hbs b/app/assets/javascripts/select-kit/templates/components/multi-select/selected-color.hbs
deleted file mode 100644
index 93087a800ae..00000000000
--- a/app/assets/javascripts/select-kit/templates/components/multi-select/selected-color.hbs
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
- {{#unless isLocked}}
-
- {{d-icon "times"}}
-
- {{/unless}}
-
- #{{{label}}}
-
-
-
-
diff --git a/app/assets/javascripts/select-kit/templates/components/multi-select/selected-name.hbs b/app/assets/javascripts/select-kit/templates/components/multi-select/selected-name.hbs
index 4ef569464f4..e4167b47b4d 100644
--- a/app/assets/javascripts/select-kit/templates/components/multi-select/selected-name.hbs
+++ b/app/assets/javascripts/select-kit/templates/components/multi-select/selected-name.hbs
@@ -1,13 +1,19 @@
-{{#if isLocked}}
-
- {{d-icon "lock"}}
-
-{{else}}
-
- {{d-icon "times"}}
-
-{{/if}}
+{{#if headerContent}}{{/if}}
-
- {{{label}}}
-
+
+ {{#if isLocked}}
+
+ {{d-icon "lock"}}
+
+ {{else}}
+
+ {{d-icon "times"}}
+
+ {{/if}}
+
+
+ {{{label}}}
+
+
+
+{{#if footerContent}}{{/if}}
diff --git a/app/assets/stylesheets/common/components/badges.scss b/app/assets/stylesheets/common/components/badges.scss
index b988ed40943..99c87bf5991 100644
--- a/app/assets/stylesheets/common/components/badges.scss
+++ b/app/assets/stylesheets/common/components/badges.scss
@@ -19,22 +19,27 @@
font-size: 0.857em;
font-weight: bold;
white-space: nowrap;
- display: inline-block;
position: relative;
+ display: inline-flex;
+ align-items: center;
+
+ .badge-category {
+ .d-icon {
+ margin-right: 3px;
+ }
+ }
&.bar { //bar category style
- line-height: 1.25;
margin-right: 5px;
- display: inline-flex;
span.badge-category {
color: $primary;
padding: 3px;
- vertical-align: text-top;
- margin-top: -2px; //vertical alignment fix
- display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
+ display: inline-flex;
+ align-items: center;
+ justify-content: space-between;
.extra-info-wrapper & {
color: $header-primary;
@@ -57,15 +62,11 @@
}
&.bullet { //bullet category style
- display: inline-flex;
- align-items: baseline;
margin-right: 5px;
font-size: .857em;
- line-height: 15px;
span.badge-category {
color: $primary;
- display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
@@ -103,12 +104,10 @@
&.box { //box category style (apply custom widths to the wrapper, not the children)
- line-height: 1.5;
- margin-top: 5px;
margin-right: 5px;
+ padding: 2px;
span {
- display: block;
overflow: hidden;
text-overflow: ellipsis;
@@ -132,7 +131,6 @@
&.badge-category {
position: relative;
padding: 0 5px;
- margin-top: 2px;
}
}
}
@@ -228,6 +226,7 @@
width: 100%;
line-height: 1;
vertical-align: text-top;
+ padding: 0;
span.badge-category {
max-width: 100px;
padding: 5px;
diff --git a/app/assets/stylesheets/common/select-kit/category-chooser.scss b/app/assets/stylesheets/common/select-kit/category-chooser.scss
index 62da15be23f..dedaa09493f 100644
--- a/app/assets/stylesheets/common/select-kit/category-chooser.scss
+++ b/app/assets/stylesheets/common/select-kit/category-chooser.scss
@@ -25,13 +25,6 @@
color: $primary;
}
- .category-status {
- color: $primary;
- -webkit-box-flex: 0;
- -ms-flex: 1 1 auto;
- flex: 1 1 auto;
- }
-
.category-desc {
-webkit-box-flex: 0;
-ms-flex: 1 1 auto;
diff --git a/app/assets/stylesheets/common/select-kit/category-row.scss b/app/assets/stylesheets/common/select-kit/category-row.scss
new file mode 100644
index 00000000000..ef3245d5012
--- /dev/null
+++ b/app/assets/stylesheets/common/select-kit/category-row.scss
@@ -0,0 +1,10 @@
+.select-kit {
+ .category-row {
+ .category-status {
+ display: flex;
+ -webkit-box-flex: 0;
+ -ms-flex: 1 1 auto;
+ flex: 1 1 auto;
+ }
+ }
+}
diff --git a/app/assets/stylesheets/common/select-kit/category-selector.scss b/app/assets/stylesheets/common/select-kit/category-selector.scss
index 9dc274553ea..2da4ad182d6 100644
--- a/app/assets/stylesheets/common/select-kit/category-selector.scss
+++ b/app/assets/stylesheets/common/select-kit/category-selector.scss
@@ -1,9 +1,12 @@
.select-kit, .select-kit-box {
- .selected-name {
- .badge-wrapper {
- display: inline-flex;
- align-items: center;
- line-height: inherit;
+ &.category-selector {
+ .selected-name {
+ .badge-wrapper {
+ &.box {
+ margin: 2px;
+ padding: 0;
+ }
+ }
}
}
}
diff --git a/app/assets/stylesheets/common/select-kit/multi-select.scss b/app/assets/stylesheets/common/select-kit/multi-select.scss
index f841e4644fe..b92c83e7dca 100644
--- a/app/assets/stylesheets/common/select-kit/multi-select.scss
+++ b/app/assets/stylesheets/common/select-kit/multi-select.scss
@@ -119,12 +119,12 @@
height: 5px;
margin: 0 2px 2px 2px;
border-radius: 5px;
+ display: flex;
+ width: 100%;
}
}
.selected-name {
- align-items: center;
- justify-content: flex-start;
color: $primary;
cursor: default;
border: 1px solid $primary-medium;
@@ -136,36 +136,50 @@
background-color: $primary-low;
cursor: pointer;
outline: none;
- line-height: normal;
overflow: hidden;
flex: 0 1 auto;
flex-wrap: nowrap;
+ padding: 0;
+ display: flex;
+ flex-direction: column;
+
+ .footer {
+ display: flex;
+ width: 100%;
+ }
+
+ .body {
+ width: 100%;
+ display: inline-flex;
+ align-items: center;
+
+ .locked-icon, .delete-icon {
+ justify-content: center;
+ align-items: center;
+ display: inline-flex;
+ height: 21px;
+ width: 21px;
+
+ .d-icon {
+ color: $primary-medium;
+ cursor: pointer;
+ font-size: 1em;
+ margin: 0;
+
+ &:hover {
+ color: $primary;
+ }
+ }
+ }
+ }
.name {
padding: 0 5px;
- line-height: 18px;
}
&.is-highlighted {
box-shadow: 0 0 2px $danger, 0 1px 0 rgba(0,0,0,0.05);
}
-
- .locked-icon, .delete-icon {
- justify-content: center;
- align-items: center;
- width: 21px;
- height: 21px;
- display: inline-flex;
- .d-icon {
- color: $primary-medium;
- cursor: pointer;
- font-size: 1em;
-
- &:hover {
- color: $primary;
- }
- }
- }
}
}
}