Skip to content

Commit f489455

Browse files
committed
StyleLint fixes
1 parent c540973 commit f489455

File tree

4 files changed

+127
-82
lines changed

4 files changed

+127
-82
lines changed

styles/prosilver/template/boardrules_controller.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
<!-- INCLUDE overall_header.html -->
33

44
<!-- IF S_CATEGORIES -->
5-
<div id="boardrules-categories">
5+
<div class="boardrules-categories">
66
<div class="mini-panel">
77
<div class="inner">
88
<h3>{L_BOARDRULES_CATEGORIES}</h3>
9-
<ul class="menu">
9+
<ul class="boardrules-menu">
1010
<!-- BEGIN rules -->
1111
<!-- IF rules.S_IS_CATEGORY --><li><a href="#{rules.U_ANCHOR}">{rules.TITLE}</a></li><!-- ENDIF -->
1212
<!-- END rules -->
@@ -16,11 +16,11 @@ <h3>{L_BOARDRULES_CATEGORIES}</h3>
1616
</div>
1717
<!-- ENDIF -->
1818

19-
<div id="container">
19+
<div class="boardrules-container">
2020
<h2 class="boardrules-header">{L_BOARDRULES_HEADER}</h2>
2121
<div id="main" class="content">
2222
<p>{BOARDRULES_EXPLAIN}</p>
23-
<ol id="rules">
23+
<ol class="boardrules-rules">
2424
<!-- BEGIN rules -->
2525
<!-- IF rules.S_CLOSE_LIST -->
2626
</ol>

styles/prosilver/theme/boardrules_controller.css

Lines changed: 63 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44

55
/* page layout */
6-
#container {
6+
.boardrules-container {
77
position: relative;
88
overflow: hidden;
99
}
@@ -16,98 +16,121 @@
1616

1717
.content ol {
1818
font-size: 1.2em;
19-
margin-left: 2em;
2019
line-height: 1.4em;
20+
margin-left: 2em;
2121
}
2222

2323
.rtl .content ol {
24-
margin-left: 0;
2524
margin-right: 2em;
25+
margin-left: 0;
2626
}
2727

28-
.content ol ol{ font-size: 1em; }
28+
.content ol ol {
29+
font-size: 1em;
30+
}
2931

3032
/* rules */
31-
#rules { padding-right: 50px; }
32-
#rules li { margin-bottom: 20px; }
33-
#rules ol { list-style: lower-alpha; }
34-
#rules ol li { margin-bottom: 5px; }
35-
#rules ol li.rule-item { padding-bottom: 5px; }
36-
#rules ol li.rule-item ul,
37-
#rules ol li.rule-item ol { margin: 1em 0 1em 3em; }
38-
#rules ol li ol { list-style: lower-roman; }
39-
40-
.rtl #rules {
33+
.boardrules-rules {
34+
padding-right: 50px;
35+
}
36+
37+
.boardrules-rules li {
38+
margin-bottom: 20px;
39+
}
40+
41+
.boardrules-rules ol {
42+
list-style: lower-alpha;
43+
}
44+
45+
.boardrules-rules ol li {
46+
margin-bottom: 5px;
47+
}
48+
49+
.boardrules-rules ol .rule-item {
50+
padding-bottom: 5px;
51+
}
52+
53+
.boardrules-rules ol .rule-item ul,
54+
.boardrules-rules ol .rule-item ol {
55+
margin: 1em 0 1em 3em;
56+
}
57+
58+
.boardrules-rules ol li ol {
59+
list-style: lower-roman;
60+
}
61+
62+
.rtl .boardrules-rules {
4163
padding-right: 0;
4264
padding-left: 50px;
4365
}
4466

45-
.rtl #rules ol li.rule-item ol {
46-
margin-left: 0;
67+
.rtl .boardrules-rules ol .rule-item ol {
4768
margin-right: 3em;
69+
margin-left: 0;
4870
}
4971

5072
/* rules sections mini panel */
51-
#boardrules-categories {
52-
width: 260px;
73+
.boardrules-categories {
5374
float: right;
75+
width: 260px;
5476
margin: 26px 0 30px 30px;
5577
}
5678

57-
.rtl #boardrules-categories {
79+
.rtl .boardrules-categories {
5880
float: left;
59-
margin-left: 0;
6081
margin-right: 30px;
82+
margin-left: 0;
6183
}
6284

6385
.mini-panel {
6486
background-color: #ebebeb;
65-
margin-bottom: 5px;
66-
padding: 5px 10px;
6787
-moz-border-radius: 7px;
6888
-webkit-border-radius: 7px;
6989
border-radius: 7px;
90+
margin-bottom: 5px;
91+
padding: 5px 10px;
7092
}
7193

7294
.mini-panel h3 {
73-
color: #333333;
7495
font-family: Verdana, Helvetica, Arial, sans-serif;
75-
margin: 5px 0 0 0;
96+
color: #333333;
97+
margin: 5px 0 0;
7698
}
7799

78-
ul.menu {
79-
border-top: 1px solid #FFFFFF;
100+
.boardrules-menu {
101+
border-top: 1px solid #ffffff;
80102
list-style: none;
81103
}
82104

83-
ul.menu li {
105+
.boardrules-menu li {
106+
border-bottom: 1px solid #cccccc;
84107
margin: 0;
85-
padding: 5px 0 4px 0;
86-
border-bottom: 1px solid #CCCCCC;
108+
padding: 5px 0 4px;
87109
}
88110

89-
ul.menu li:last-child { border-bottom: none; }
111+
.boardrules-menu li:last-child {
112+
border-bottom: none;
113+
}
90114

91115
/* rule highlighting */
92116
.highlight {
93-
color: #BC2A4D;
94117
font-weight: bold;
95-
background-color: #ECD5D8;
96-
padding: 3px 6px 0 6px;
118+
background-color: #ecd5d8;
119+
color: #bc2a4d;
120+
padding: 3px 6px 0;
97121
}
98122

99123
/* responsive design */
100-
@media only screen and (max-width: 700px), only screen and (max-device-width: 700px)
101-
{
102-
#boardrules-categories,
103-
.rtl #boardrules-categories {
104-
width: 100%;
105-
float: none;
124+
@media only screen and (max-width: 700px), only screen and (max-device-width: 700px) {
125+
.boardrules-categories,
126+
.rtl .boardrules-categories {
106127
text-align: center;
128+
float: none;
129+
width: 100%;
107130
margin: 0;
108131
}
109132

110-
#container {
133+
.boardrules-container {
111134
width: 100%;
112135
margin: 0;
113136
}

styles/subsilver2/template/boardrules_controller.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
<!-- INCLUDE overall_header.html -->
33

44
<!-- IF S_CATEGORIES -->
5-
<div id="boardrules-categories">
5+
<div class="boardrules-categories">
66
<div class="mini-panel">
77
<div class="inner">
88
<h3>{L_BOARDRULES_CATEGORIES}</h3>
9-
<ul class="menu">
9+
<ul class="boardrules-menu">
1010
<!-- BEGIN rules -->
1111
<!-- IF rules.S_IS_CATEGORY --><li><a href="#{rules.U_ANCHOR}">{rules.TITLE}</a></li><!-- ENDIF -->
1212
<!-- END rules -->
@@ -16,11 +16,11 @@ <h3>{L_BOARDRULES_CATEGORIES}</h3>
1616
</div>
1717
<!-- ENDIF -->
1818

19-
<div id="container">
19+
<div class="boardrules-container">
2020
<h2 class="boardrules-header">{L_BOARDRULES_HEADER}</h2>
2121
<div id="main" class="postbody">
2222
<p>{BOARDRULES_EXPLAIN}</p>
23-
<ol id="rules">
23+
<ol class="boardrules-rules">
2424
<!-- BEGIN rules -->
2525
<!-- IF rules.S_CLOSE_LIST -->
2626
</ol>

styles/subsilver2/theme/boardrules_controller.css

Lines changed: 56 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44

55
/* page layout */
6-
#container {
6+
.boardrules-container {
77
position: relative;
88
overflow: hidden;
99
}
@@ -22,85 +22,107 @@
2222

2323
.postbody ol {
2424
font-size: 1em;
25-
margin-left: 1em;
2625
line-height: 1.3em;
26+
margin-left: 1em;
2727
}
2828

29-
.postbody ol ol{ font-size: 1em; }
29+
.postbody ol ol {
30+
font-size: 1em;
31+
}
3032

3133
/* rules header */
3234
.boardrules-header {
3335
font-size: 2.8em;
3436
}
3537

3638
/* rules */
37-
#rules { padding-right: 50px; }
38-
#rules li { margin-bottom: 20px; }
39-
#rules ol { list-style: lower-alpha; }
40-
#rules ol li { margin-bottom: 5px; }
41-
#rules ol li.rule-item { padding-bottom: 5px; }
42-
#rules ol li.rule-item ul,
43-
#rules ol li.rule-item ol { margin: 1em 0 1em 3em; }
39+
.boardrules-rules {
40+
padding-right: 50px;
41+
}
42+
43+
.boardrules-rules li {
44+
margin-bottom: 20px;
45+
}
46+
47+
.boardrules-rules ol {
48+
list-style: lower-alpha;
49+
}
50+
51+
.boardrules-rules ol li {
52+
margin-bottom: 5px;
53+
}
54+
55+
.boardrules-rules ol .rule-item {
56+
padding-bottom: 5px;
57+
}
58+
59+
.boardrules-rules ol .rule-item ul,
60+
.boardrules-rules ol .rule-item ol {
61+
margin: 1em 0 1em 3em;
62+
}
4463

45-
.postlink { border-bottom: solid 1px; }
64+
.postlink {
65+
border-bottom: solid 1px;
66+
}
4667

4768
/* rules sections mini panel */
48-
#boardrules-categories {
49-
width: 260px;
69+
.boardrules-categories {
5070
float: right;
71+
width: 260px;
5172
margin: 26px 0 30px 30px;
5273
}
5374

5475
.mini-panel {
5576
background-color: #ebebeb;
56-
margin-bottom: 5px;
57-
padding: 5px 10px 5px 10px;
5877
-moz-border-radius: 7px;
5978
-webkit-border-radius: 7px;
6079
border-radius: 7px;
80+
margin-bottom: 5px;
81+
padding: 5px 10px;
6182
}
6283

6384
.mini-panel h3 {
64-
color: #333333;
6585
font-family: Verdana, Helvetica, Arial, sans-serif;
66-
margin: 5px 0 0 0;
86+
border-bottom: solid 1px #cccccc;
87+
color: #333333;
88+
margin: 5px 0 0;
6789
padding-bottom: 5px;
68-
border-bottom: solid 1px #CCCCCC;
6990
}
7091

71-
ul.menu {
72-
border-top: 1px solid #FFFFFF;
73-
list-style: none;
92+
.boardrules-menu {
93+
border-top: 1px solid #ffffff;
7494
margin: 0;
95+
list-style: none;
7596
}
7697

77-
ul.menu li {
98+
.boardrules-menu li {
99+
border-bottom: 1px solid #cccccc;
78100
margin: 0;
79-
padding: 5px 0 4px 0;
80-
border-bottom: 1px solid #CCCCCC;
101+
padding: 5px 0 4px;
81102
}
82103

83-
ul.menu li:last-child { border-bottom: none; }
104+
.boardrules-menu li:last-child {
105+
border-bottom: none;
106+
}
84107

85108
/* rule highlighting */
86109
.highlight {
87-
color: #BC2A4D;
88110
font-weight: bold;
89-
background-color: #ECD5D8;
90-
padding: 3px 6px 0 6px;
111+
background-color: #ecd5d8;
112+
color: #bc2a4d;
113+
padding: 3px 6px 0;
91114
}
92115

93116
/* responsive design */
94-
@media only screen and (max-width: 700px), only screen and (max-device-width: 700px)
95-
{
96-
#boardrules-categories {
97-
width: 100%;
98-
float: none;
117+
@media only screen and (max-width: 700px), only screen and (max-device-width: 700px) {
118+
.boardrules-categories {
99119
text-align: center;
120+
float: none;
121+
width: 100%;
100122
margin: 0;
101123
}
102124

103-
#container {
125+
.boardrules-container {
104126
width: 100%;
105127
margin: 0;
106128
}

0 commit comments

Comments
 (0)