FIX: use right caret for collapse state of tag and category drops

This commit is contained in:
Joffrey JAFFEUX 2018-03-16 10:52:15 +01:00 committed by GitHub
parent 215d955e30
commit cb49dc6448
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 6 deletions

View File

@ -18,6 +18,8 @@ export default ComboBoxComponent.extend({
noCategoriesLabel: I18n.t("categories.no_subcategory"),
mutateAttributes() {},
fullWidthOnMobile: true,
caretDownIcon: "caret-right fa-fw",
caretUpIcon: "caret-down fa-fw",
init() {
this._super();

View File

@ -19,6 +19,8 @@ export default ComboBoxComponent.extend({
categoryStyle: Ember.computed.alias("siteSettings.category_style"),
mutateAttributes() {},
fullWidthOnMobile: true,
caretDownIcon: "caret-right fa-fw",
caretUpIcon: "caret-down fa-fw",
@computed("tagId")
noTagsSelected() {

View File

@ -16,24 +16,27 @@
}
}
&.bar.has-selection .category-drop-header,
&.none.has-selection .category-drop-header {
padding: 5px 10px;
padding: 4.5px 5px 4.5px 10px;
}
&.bar.has-selection .category-drop-header {
padding: 3.5px 5px 3.5px 10px;
}
&.box.has-selection .category-drop-header {
padding: 2.5px 10px;
padding: 2.5px 5px 2.5px 10px;
}
&.bullet.has-selection .category-drop-header {
padding: 5px 10px;
padding: 4.5px 5px 4.5px 10px;
}
.category-drop-header {
background: $primary-low;
color: $primary;
border: 1px solid transparent;
padding: 5px 10px;
padding: 4.5px 5px 4.5px 10px;
font-size: $font-0;
transition: none;
@ -47,6 +50,7 @@
.caret-icon {
opacity: 1;
margin: 0;
}
}

View File

@ -7,13 +7,14 @@
background: $primary-low;
color: $primary;
border: 1px solid transparent;
padding: 5px 10px;
padding: 4.5px 5px 4.5px 10px;
font-size: $font-0;
transition: none;
.d-icon {
opacity: 1;
font-size: $font-0;
margin: 0;
}
}