Skip to content

Commit 9bb7c30

Browse files
authored
scss-lint (#136)
changes after running scss-lint
1 parent 1f31ec2 commit 9bb7c30

File tree

4 files changed

+72
-52
lines changed

4 files changed

+72
-52
lines changed

src/scss/alert/alert.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ joomla-alert {
6969
padding: $alert-padding-y $alert-padding-x;
7070
margin-bottom: $alert-margin-bottom;
7171
border: $alert-border-width solid transparent;
72-
opacity: 0;
7372
border-radius: $alert-border-radius;
73+
opacity: 0;
7474
transition: $transition-fade;
7575

7676
@media screen and (prefers-reduced-motion: reduce) {

src/scss/dropdown/dropdown.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ joomla-dropdown {
1717
top: 30px;
1818
left: 0;
1919
z-index: 1000;
20-
display: none;
2120
box-sizing: border-box;
21+
display: none;
2222
min-width: 10rem;
2323
margin-top: .5rem;
2424
font-size: 1rem;

src/scss/modal/modal.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ joomla-modal {
165165
display: -ms-flexbox;
166166
display: flex;
167167
-ms-flex-align: center;
168-
align-items: center;
169168
-ms-flex-pack: end;
169+
align-items: center;
170170
justify-content: flex-end;
171171
padding: 15px;
172172
border-top: 1px solid #e9ecef;

src/scss/tab/tab.scss

Lines changed: 69 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -13,129 +13,149 @@
1313

1414
joomla-tab {
1515
display: flex;
16-
flex-direction: column; }
16+
flex-direction: column;
17+
}
1718

1819
joomla-tab > ul {
1920
display: flex;
21+
padding: 0;
22+
margin: 0;
23+
overflow-x: auto;
24+
overflow-y: hidden;
25+
white-space: nowrap;
26+
list-style: outside none none;
2027
background-color: #f5f5f5;
2128
border-color: #ccc #ccc currentcolor;
22-
border-image: none;
23-
border-radius: .25rem .25rem 0 0;
2429
border-style: solid solid none;
2530
border-width: 1px 1px 0;
26-
box-shadow: 0 1px #fff inset, 0 2px 3px -3px rgba(0, 0, 0, 0.15), 0 -4px 0 rgba(0, 0, 0, 0.05) inset, 0 0 3px rgba(0, 0, 0, 0.04);
27-
margin: 0;
28-
padding: 0;
29-
list-style: outside none none;
30-
overflow-x: auto;
31-
overflow-y: hidden;
32-
white-space: nowrap; }
31+
border-radius: .25rem .25rem 0 0;
32+
border-image: none;
33+
box-shadow: 0 1px #fff inset, 0 2px 3px -3px rgba(0, 0, 0, .15), 0 -4px 0 rgba(0, 0, 0, .05) inset, 0 0 3px rgba(0, 0, 0, .04);
34+
}
3335

3436
joomla-tab a[role=tab] {
37+
position: relative;
3538
display: block;
36-
color: #0d1321;
3739
padding: .75em 1em;
38-
position: relative;
39-
box-shadow: 1px 0 0 rgba(0, 0, 0, 0.05);
40-
text-decoration: none; }
40+
color: #0d1321;
41+
text-decoration: none;
42+
box-shadow: 1px 0 0 rgba(0, 0, 0, .05);
43+
}
4144

4245
joomla-tab a[role=tab][active] {
43-
background-color: rgba(0, 0, 0, 0.03);
44-
background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.05) 100%);
45-
border-left: 0 none;
46+
background-color: rgba(0, 0, 0, .03);
47+
background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .05) 100%);
4648
border-right: 0 none;
49+
border-left: 0 none;
4750
border-top-left-radius: 0;
4851
border-top-right-radius: 0;
49-
box-shadow: 2px 0 1px -1px rgba(0, 0, 0, 0.08) inset, -2px 0 1px -1px rgba(0, 0, 0, 0.08) inset, 0 1px 0 rgba(0, 0, 0, 0.02) inset; }
52+
box-shadow: 2px 0 1px -1px rgba(0, 0, 0, .08) inset, -2px 0 1px -1px rgba(0, 0, 0, .08) inset, 0 1px 0 rgba(0, 0, 0, .02) inset;
53+
}
5054

51-
joomla-tab a[role=tab][active]:after {
52-
background-color: #006898;
55+
joomla-tab a[role=tab][active]::after {
56+
position: absolute;
57+
right: 0;
5358
bottom: -1px;
54-
content: "";
55-
height: 5px;
5659
left: 0;
60+
height: 5px;
61+
content: "";
62+
background-color: #006898;
5763
opacity: .8;
58-
position: absolute;
59-
right: 0; }
64+
}
6065

6166
joomla-tab > section {
6267
position: relative;
6368
display: none;
69+
padding: 15px;
6470
background-color: #fefefe;
6571
border: 1px solid #ccc;
6672
border-radius: 0 0 .25rem .25rem;
67-
box-shadow: 0 0 3px rgba(0, 0, 0, 0.04);
68-
padding: 15px; }
73+
box-shadow: 0 0 3px rgba(0, 0, 0, .04);
74+
}
6975

7076
joomla-tab > section[active] {
71-
display: block; }
77+
display: block;
78+
}
7279

7380
joomla-tab[orientation=vertical] {
7481
flex-direction: row;
75-
align-items: flex-start; }
82+
align-items: flex-start;
83+
}
7684

7785
joomla-tab[orientation=vertical] > ul {
7886
flex-direction: column;
7987
min-width: 30%;
8088
height: auto;
89+
overflow: hidden;
8190
border: 1px solid #ccc;
8291
border-radius: .25rem;
8392
box-shadow: none;
84-
overflow: hidden; }
93+
}
8594

8695
joomla-tab[orientation=vertical] li:last-of-type a {
87-
border-bottom: 0; }
96+
border-bottom: 0;
97+
}
8898

8999
joomla-tab[orientation=vertical] a {
100+
position: relative;
90101
display: block;
91-
color: #0d1321;
92102
padding: .75em 1em;
93-
position: relative;
103+
color: #0d1321;
104+
text-decoration: none;
94105
border-bottom: 1px solid #ddd;
95106
box-shadow: none;
96-
text-decoration: none; }
107+
}
97108

98109
joomla-tab[orientation=vertical] a[active] {
99-
border-left: 0 none;
100-
border-right: 0 none;
101110
background-color: #fff;
102111
background-image: none;
103-
box-shadow: none; }
112+
border-right: 0 none;
113+
border-left: 0 none;
114+
box-shadow: none;
115+
}
104116

105-
joomla-tab[orientation=vertical] a[active]:after {
117+
joomla-tab[orientation=vertical] a[active]::after {
118+
top: 0;
119+
bottom: 0;
106120
left: -1px;
107121
width: 5px;
108122
height: auto;
109-
top: 0;
110-
bottom: 0; }
123+
}
111124

112125
joomla-tab[orientation=vertical] > section {
126+
padding: 15px;
113127
border: 0 none;
114128
box-shadow: none;
115-
padding: 15px; }
129+
}
116130

117131
joomla-tab[view=accordion] > ul {
118132
flex-direction: column;
119-
border-radius: .25rem;
120133
white-space: normal;
121-
box-shadow: 0 1px #fff inset, 0 0 3px rgba(0, 0, 0, 0.04); }
134+
border-radius: .25rem;
135+
box-shadow: 0 1px #fff inset, 0 0 3px rgba(0, 0, 0, .04);
136+
}
122137

123138
joomla-tab[view=accordion] section {
124139
display: none;
125-
padding: 15px; }
140+
padding: 15px;
141+
}
126142

127143
joomla-tab[view=accordion] section[active] {
128144
display: block;
129-
border-bottom: 1px solid #ddd; }
145+
border-bottom: 1px solid #ddd;
146+
}
130147

131148
joomla-tab[view=accordion] [active] {
132-
background-color: #fff; }
149+
background-color: #fff;
150+
}
133151

134152
joomla-tab[view=accordion] a[role=tab] {
135-
border-bottom: 1px solid #ddd; }
153+
border-bottom: 1px solid #ddd;
154+
}
136155

137-
joomla-tab[view=accordion] a[role=tab][active]:after {
156+
joomla-tab[view=accordion] a[role=tab][active]::after {
157+
top: 0;
158+
left: 0;
138159
width: 5px;
139160
height: 100%;
140-
top: 0;
141-
left: 0; }
161+
}

0 commit comments

Comments
 (0)