Skip to content

Commit 75701d7

Browse files
committed
fix(styles): Fix SASS nesting warnings.
1 parent 1bab49d commit 75701d7

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

_sass/components/_form.scss

+5-4
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ form {
1414

1515
.pat-message,
1616
.message {
17-
@include mixins.pat-message();
18-
@include mixins.box-sizing();
19-
2017
display: block;
2118
clear: both;
2219
margin-top: 0.5em;
2320
font-style: normal;
21+
22+
@include mixins.box-sizing();
23+
@include mixins.pat-message();
2424
}
2525

2626
h2 {
@@ -30,12 +30,13 @@ form {
3030
input,
3131
textarea,
3232
select {
33+
@include mixins.box-sizing();
34+
3335
-webkit-appearance: none;
3436
-moz-appearance: none;
3537
appearance: none;
3638
font-family: settings.$body-font-family;
3739
display: inline-block;
38-
@include mixins.box-sizing();
3940
padding: 0.2em 0.5em;
4041
margin: -0.2em 0;
4142
background-color: rgba(0, 0, 0, 0.09);

src/pat/auto-suggest/_auto-suggest.scss

+7-5
Original file line numberDiff line numberDiff line change
@@ -357,15 +357,16 @@ Version: 3.4.3 Timestamp: Tue Sep 17 06:47:14 PDT 2013
357357
display: list-item;
358358
}
359359
.select2-disabled {
360+
background: #f4f4f4;
361+
display: list-item;
362+
cursor: default;
363+
360364
&.select2-highlighted {
361365
color: #666;
362366
background: #f4f4f4;
363367
display: list-item;
364368
cursor: default;
365369
}
366-
background: #f4f4f4;
367-
display: list-item;
368-
cursor: default;
369370
}
370371
.select2-selected {
371372
display: none;
@@ -377,11 +378,12 @@ disabled look for disabled choices in the results dropdown
377378
*/
378379

379380
.select2-more-results {
381+
background: #f4f4f4;
382+
display: list-item;
383+
380384
&.select2-active {
381385
background: #f4f4f4 url("select2-spinner.gif") no-repeat 100%;
382386
}
383-
background: #f4f4f4;
384-
display: list-item;
385387
}
386388

387389
/* disabled styles */

src/pat/collapsible/_collapsible.scss

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,13 @@
2121
}
2222

2323
> *:first-child {
24-
@include button.pat-button();
25-
2624
font-weight: normal;
2725
width: 100%;
2826

2927
-moz-box-sizing: border-box;
3028
-webkit-box-sizing: border-box;
3129
box-sizing: border-box;
3230
// font-size: 0.8em;
31+
@include button.pat-button();
3332
}
3433
}

0 commit comments

Comments
 (0)