Skip to content

Commit b53e867

Browse files
dGrammatikowilsonge
authored andcommitted
scss lint (#37)
1 parent 8c24d60 commit b53e867

31 files changed

+468
-503
lines changed

administrator/templates/atum/scss/_variables.scss

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import "../../../../media/vendor/bootstrap/scss/functions";
1+
@import '../../../../media/vendor/bootstrap/scss/functions';
22

33
$white: #fff;
44
$gray-100: #f8f9fa;
@@ -36,12 +36,12 @@ $theme-colors: map-merge((
3636
), $theme-colors);
3737

3838
// Global
39-
$atum-template-color: #3073BB;
39+
$atum-template-color: #3073bb;
4040
$atum-template-color-light: #3b97f9;
4141
$atum-template-color-dark: #2b5c91;
4242
$atum-container-main-bg: #ebeff5;
4343
$atum-border-color: #ccc;
44-
$atum-box-shadow: 0 1px 2px rgba(0,0,0,0.25);
44+
$atum-box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
4545
$atum-block-header-bg: #f5f5f5;
4646
$white-offset: #fefefe;
4747
$enable-rounded: false;
@@ -87,11 +87,11 @@ $h5-font-size: .9286rem;
8787
$h6-font-size: .8571rem;
8888
$font-size-sm: .8rem;
8989
$fa-css-prefix: fa;
90-
$fa-font-path: "../../../../media/vendor/font-awesome/fonts";
90+
$fa-font-path: '../../../../media/vendor/font-awesome/fonts';
9191

9292
// Tables
9393
$table-bg: transparent;
94-
$table-bg-accent: rgba(0,0,0,.03);
94+
$table-bg-accent: rgba(0, 0, 0, .03);
9595
$table-row-selected: #d9edf7;
9696

9797
// Buttons + Forms
@@ -112,7 +112,7 @@ $dropdown-spacer: 0;
112112
$atum-tabs-header-bg: $atum-block-header-bg;
113113
$nav-tabs-border-width: 0;
114114
$nav-tabs-border-radius: 0;
115-
$nav-tabs-link-active-bg: rgba(0,0,0,.1);
115+
$nav-tabs-link-active-bg: rgba(0, 0, 0, .1);
116116

117117
// Tables
118118
$table-border-width: 0;
@@ -126,20 +126,20 @@ $card-border-color: transparent;
126126

127127
// Alerts
128128
$state-success-text: $white;
129-
$state-success-bg: theme-color("success");
130-
$state-success-border: darken(theme-color("success"), 5%);
129+
$state-success-bg: theme-color('success');
130+
$state-success-border: darken(theme-color('success'), 5%);
131131

132132
$state-info-text: $white;
133-
$state-info-bg: theme-color("info");
134-
$state-info-border: darken(theme-color("info"), 7%);
133+
$state-info-bg: theme-color('info');
134+
$state-info-border: darken(theme-color('info'), 7%);
135135

136136
$state-warning-text: $white;
137-
$state-warning-bg: theme-color("warning");
138-
$state-warning-border: darken(theme-color("warning"), 5%);
137+
$state-warning-bg: theme-color('warning');
138+
$state-warning-border: darken(theme-color('warning'), 5%);
139139

140140
$state-danger-text: $white;
141-
$state-danger-bg: theme-color("danger");
142-
$state-danger-border: darken(theme-color("danger"), 5%);
141+
$state-danger-bg: theme-color('danger');
142+
$state-danger-border: darken(theme-color('danger'), 5%);
143143

144144
// Input Group
145145
$input-group-addon-color: $white;
@@ -168,8 +168,8 @@ $quickicon-bg: $white;
168168
$quickicon-text-color: $gray-100;
169169
$quickicon-box-shadow: $atum-box-shadow;
170170
$quickicon-box-shadow-hover: 0 0 8px 0 rgba($black, .3);
171-
$quickicon-box-shadow-success: 0 0 3px 0 theme-color("success");
172-
$quickicon-box-shadow-danger: 0 0 3px 0 theme-color("danger");
171+
$quickicon-box-shadow-success: 0 0 3px 0 theme-color('success');
172+
$quickicon-box-shadow-danger: 0 0 3px 0 theme-color('danger');
173173

174174
// Gutter
175175
$grid-gutter-width: 15px;

administrator/templates/atum/scss/blocks/_alerts.scss

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,24 @@
88
}
99

1010
.notify-alerts {
11-
position: fixed;
12-
top: 15px;
1311
left: 50%;
14-
z-index: 1080;
1512
margin-left: 125px;
16-
transition: all .5s ease;
13+
position: fixed;
14+
top: 15px;
1715
transform: translateX(-50%);
16+
transition: all .5s ease;
17+
z-index: 1080;
1818

1919
.alert {
20-
width: 100%;
21-
min-width: 280px;
22-
max-width: 400px;
23-
margin-bottom: .5rem;
24-
opacity: 0;
2520
animation: fadeIn ease-in 1;
26-
animation-duration: .35s;
2721
animation-delay: 0s;
22+
animation-duration: .35s;
2823
animation-fill-mode: forwards;
24+
margin-bottom: .5rem;
25+
max-width: 400px;
26+
min-width: 280px;
27+
opacity: 0;
28+
width: 100%;
2929

3030
&:first-of-type {
3131
animation-delay: .3s;
@@ -36,20 +36,20 @@
3636
left: 265px;
3737

3838
.alert {
39-
width: auto;
40-
min-width: none;
41-
max-width: none;
4239
margin-left: 0;
40+
max-width: none;
41+
min-width: none;
42+
width: auto;
4343
}
4444
}
4545

4646
.close {
47-
position: relative;
48-
right: -.5rem;
49-
padding: .5rem;
50-
line-height: 1rem;
5147
color: $black;
48+
line-height: 1rem;
5249
opacity: 1;
50+
padding: .5rem;
51+
position: relative;
52+
right: -.5rem;
5353
}
5454
}
5555

administrator/templates/atum/scss/blocks/_form.scss

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Form
22

33
.form-control {
4-
max-width: 240px;
54
background-color: $white-offset;
5+
max-width: 240px;
66
}
77

88
.control-group {
@@ -13,17 +13,17 @@
1313
}
1414

1515
&::after {
16-
display: table;
1716
clear: both;
18-
content: "";
17+
content: '';
18+
display: table;
1919
}
2020

2121
.control-label {
2222
float: left;
23-
width: 220px;
24-
padding-top: 5px;
2523
padding-right: 5px;
24+
padding-top: 5px;
2625
text-align: left;
26+
width: 220px;
2727
}
2828

2929
.controls {
@@ -66,14 +66,14 @@ legend {
6666
padding-top: 5px;
6767

6868
.checkbox input {
69-
position: static;
7069
margin-left: 0;
70+
position: static;
7171
}
7272
}
7373

7474
.form-check {
75-
padding-top: 5px;
7675
margin-bottom: 0;
76+
padding-top: 5px;
7777
}
7878

7979
.modal label {
@@ -82,17 +82,18 @@ legend {
8282

8383
// Validation
8484
.invalid {
85-
color: theme-color("danger");
86-
border-color: theme-color("danger");
85+
border-color: theme-color('danger');
86+
color: theme-color('danger');
8787
}
88+
8889
.valid {
89-
border-color: theme-color("success");
90+
border-color: theme-color('success');
9091
}
9192

9293
.form-control-feedback {
9394
display: block;
9495
}
9596

96-
[aria-grabbed="true"] {
97-
box-shadow: 0 0 2px 1px theme-color("primary");
97+
[aria-grabbed='true'] {
98+
box-shadow: 0 0 2px 1px theme-color('primary');
9899
}

administrator/templates/atum/scss/blocks/_global.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
html,
44
body {
5-
height: 100%;
65
font-size: $font-size-root;
6+
height: 100%;
77
}
88

99
body {
10-
padding: 0;
1110
margin: 0;
11+
padding: 0;
1212
}
1313

1414
h1,

administrator/templates/atum/scss/blocks/_header.scss

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,46 +2,46 @@
22
// Header
33

44
.header {
5-
position: relative;
6-
z-index: 1060;
75
background: $white;
86
box-shadow: $atum-box-shadow;
7+
position: relative;
8+
z-index: 1060;
99

1010
.logo {
1111
display: inline-block;
12-
width: $sidebar-width-closed;
13-
text-align: center;
1412
line-height: $header-height;
13+
text-align: center;
14+
width: $sidebar-width-closed;
1515
}
1616

1717
.page-title {
18-
margin: 0 5px;
18+
color: $atum-template-color-dark;
1919
font-size: 1.2rem;
2020
line-height: $header-height;
21-
color: $atum-template-color-dark;
21+
margin: 0 5px;
2222

23-
[class^="icon-"] {
23+
[class^='icon-'] {
2424
margin-right: 10px;
2525
}
2626
}
2727

2828
.nav-link {
29-
position: relative;
30-
padding: 0;
3129
line-height: $header-height;
30+
padding: 0;
31+
position: relative;
3232

3333
.fa {
34-
width: $header-height + 2px;
35-
font-size: 1.2rem;
3634
color: $atum-template-color-dark;
37-
vertical-align: middle;
35+
font-size: 1.2rem;
3836
transition: all .2s ease-in-out;
37+
vertical-align: middle;
38+
width: $header-height + 2px;
3939
}
4040

4141
.badge {
4242
position: absolute;
43-
top: 7px;
4443
right: 7px;
44+
top: 7px;
4545
}
4646

4747
&.dropdown-toggle::after {
@@ -55,9 +55,9 @@
5555
}
5656

5757
.dropdown-notifications {
58+
border: 0;
5859
min-width: 280px;
5960
padding: 0;
60-
border: 0;
6161

6262
h2 {
6363
font-size: $h5-font-size;
@@ -75,8 +75,8 @@
7575
}
7676

7777
.dropdown-menu-right::after {
78-
right: .65rem;
7978
left: auto;
79+
right: .65rem;
8080
}
8181

8282
.header-profile {
@@ -91,22 +91,22 @@
9191
}
9292

9393
.dropdown-header {
94-
padding-top: .5rem;
95-
padding-bottom: .5rem;
9694
background-color: $atum-template-color-dark;
97-
color: $white;
9895
box-shadow: $atum-box-shadow;
96+
color: $white;
97+
padding-bottom: .5rem;
98+
padding-top: .5rem;
9999
}
100100

101101
.list-group-item-text:last-child {
102102
margin-bottom: 0;
103103
}
104104

105105
.joomla-version {
106-
margin-right: .9rem;
107-
margin-bottom: 0;
108-
font-size: $h5-font-size;
109106
color: $atum-template-color-dark;
107+
font-size: $h5-font-size;
108+
margin-bottom: 0;
109+
margin-right: .9rem;
110110
}
111111
}
112112

0 commit comments

Comments
 (0)