Skip to content

Commit 675b4ac

Browse files
committed
Move multiple filter spacing from margin-left to margin-right so that they are left aligned when wrapped.
1 parent 841c392 commit 675b4ac

File tree

2 files changed

+8
-39
lines changed

2 files changed

+8
-39
lines changed

labelFilter.css

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -404,9 +404,9 @@
404404
.selectize-control.multi .selectize-input [data-value] {
405405
padding: 0 6px;
406406
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
407-
-webkit-border-radius: 1px;
408-
-moz-border-radius: 1px;
409-
border-radius: 1px;
407+
-webkit-border-radius: 2px;
408+
-moz-border-radius: 2px;
409+
border-radius: 2px;
410410
background-color: #006e9c;
411411
background-image: -moz-linear-gradient(top, #006e9c, #006e9c);
412412
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#006e9c), to(#006e9c));
@@ -497,9 +497,11 @@
497497
.filter .active-filters .label-filter-active-filters .label {
498498
background: #006e9c;
499499
display: inline-block;
500+
border-radius: 2px;
500501
font-weight: normal;
501502
padding-bottom: .3em;
502503
padding-top: .3em;
504+
margin-left: 0;
503505
margin-right: 3px;
504506
max-width: 350px;
505507
word-wrap: break-word;
@@ -514,16 +516,3 @@
514516
margin-top: 0;
515517
}
516518
}
517-
@media (min-width: 992px) {
518-
.filter .active-filters {
519-
margin-top: 0;
520-
}
521-
.filter .active-filters .label-filter-active-filters :first-child {
522-
margin-right: 0;
523-
}
524-
.filter .active-filters .label-filter-active-filters .label + .label {
525-
margin-left: 3px;
526-
margin-top: 2px;
527-
margin-right: 0;
528-
}
529-
}

styles/labelFilter.less

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
[data-value] {
9090
padding: 0 6px; // prevent text jump when
9191
text-shadow: 0 1px 0 rgba(0,0,0,0.2);
92-
.selectize-border-radius(1px);
92+
.selectize-border-radius(2px);
9393
.selectize-vertical-gradient(@selectize-color-item, @selectize-color-item);
9494
}
9595
}
@@ -184,9 +184,11 @@
184184
.label {
185185
background: @selectize-active-label-bg;
186186
display: inline-block;
187+
border-radius: 2px;
187188
font-weight: normal;
188189
padding-bottom: .3em;
189190
padding-top: .3em;
191+
margin-left: 0;
190192
margin-right: 3px;
191193
max-width: 350px;
192194
word-wrap: break-word;
@@ -207,25 +209,3 @@
207209
}
208210
}
209211
}
210-
211-
@media (min-width: @screen-md-min) {
212-
.filter {
213-
.active-filters {
214-
margin-top: 0;
215-
.label-filter-active-filters {
216-
:first-child {
217-
margin-right: 0;
218-
}
219-
.label {
220-
+.label {
221-
margin-left: 3px;
222-
margin-top: 2px;
223-
margin-right: 0;
224-
}
225-
}
226-
}
227-
}
228-
}
229-
}
230-
231-

0 commit comments

Comments
 (0)