Skip to content

Commit 0fc48e6

Browse files
committed
tidy css/less/scss with precious
1 parent 7460a45 commit 0fc48e6

24 files changed

+483
-391
lines changed

precious.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ ignore-stderr = [
4444

4545
[commands.prettier]
4646
type = "both"
47-
include = [ "**/*.md", "**/*.yml", "**/*.yaml" ]
47+
include = [ "**/*.md", "**/*.yml", "**/*.yaml", "**/*.css", "**/*.less", "**/*.scss" ]
4848
cmd = [
4949
"npx", "-s", "prettier"
5050
]

root/static/css/user.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/* Specific css for User actions */
22

33
.logged_in {
4-
display: none;
4+
display: none;
55
}
66

77
.logged_out {
8-
display: none;
8+
display: none;
99
}

root/static/less/account.less

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,19 @@
1010

1111
textarea.invalid {
1212
background:
13-
url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' height='18px' width='74px'><text text-anchor='end' x='74px' y='18' fill='white' font-size='18' font-weight='bold' font-family='&quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif'>invalid</text></svg>") bottom 0.2em right 0.2em/auto 1em no-repeat,
14-
linear-gradient(to bottom right, rgba(153,0,0,0) 90%, rgb(153, 0, 0) 95%);
13+
url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' height='18px' width='74px'><text text-anchor='end' x='74px' y='18' fill='white' font-size='18' font-weight='bold' font-family='&quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif'>invalid</text></svg>")
14+
bottom 0.2em right 0.2em / auto 1em no-repeat,
15+
linear-gradient(
16+
to bottom right,
17+
rgba(153, 0, 0, 0) 90%,
18+
rgb(153, 0, 0) 95%
19+
);
1520
}
1621

1722
// to fix repeating fields like email etc
1823

1924
.repeatable .control-group {
20-
.controls:nth-child(n+3) {
25+
.controls:nth-child(n + 3) {
2126
margin-top: 3px;
2227
}
2328
}
@@ -58,7 +63,7 @@
5863
left: 20px;
5964
}
6065
&.profile-bitbucket .control-label {
61-
background-image: url(/static/images/profile/bitbucket.png)
66+
background-image: url(/static/images/profile/bitbucket.png);
6267
}
6368
&.profile-blinklist .control-label {
6469
background-image: url(/static/images/profile/blinklist.png);
@@ -237,7 +242,6 @@
237242
&.profile-youtube .control-label {
238243
background-image: url(/static/images/profile/youtube.png);
239244
}
240-
241245
}
242246
}
243247
}
@@ -256,7 +260,9 @@
256260
/* We hide the remove text on mobile, to make the button smaller */
257261
.profiles {
258262
.remove {
259-
span { display: none; }
263+
span {
264+
display: none;
265+
}
260266
}
261267

262268
.control-group {
@@ -275,7 +281,6 @@
275281
float: none !important;
276282
}
277283
}
278-
279284
}
280285
@media (min-width: 480px) {
281286
.profile-form {

root/static/less/author.less

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
.author-pic {
2424
margin-bottom: 10px;
2525

26-
span, strong {
26+
span,
27+
strong {
2728
display: block;
2829
}
2930

@@ -36,7 +37,7 @@
3637
float: left;
3738
width: 100%;
3839

39-
ul {
40+
ul {
4041
margin: 10px 0;
4142
padding-left: 0;
4243
}
@@ -71,14 +72,14 @@
7172
a {
7273
text-decoration: none;
7374
}
74-
}
75+
}
7576

7677
@media (max-width: 480px) {
7778
.author-pic {
7879
> a {
7980
> img {
8081
width: 65px;
81-
height: 65px
82+
height: 65px;
8283
}
8384
}
8485
}

root/static/less/autocomplete.less

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
margin-left: 10px;
3131
}
3232

33-
div.autocomplete-suggestions div:nth-child(2n+2) {
33+
div.autocomplete-suggestions div:nth-child(2n + 2) {
3434
background: #f9f9f9;
3535
}
3636

@@ -39,11 +39,11 @@ div.autocomplete-suggestions div:nth-child(2n+2) {
3939
/* The plugin highlights when you mouse over an item, but since I've disabled that,
4040
simulate the effect with css (but use a different color than the actually "selected" item). */
4141
.autocomplete-suggestion:hover {
42-
background: #DDEEFF !important;
42+
background: #ddeeff !important;
4343
}
4444
/* Use two classs (and place after) to increase priority over the above hover style. */
4545
.autocomplete-suggestion.autocomplete-selected {
46-
background: #BAD3EA !important;
46+
background: #bad3ea !important;
4747
}
4848

4949
/*
@@ -52,5 +52,5 @@ div.autocomplete-suggestions div:nth-child(2n+2) {
5252
GH #1707, Dan McCormick
5353
*/
5454
#metacpan_autocomplete-direct-results:before {
55-
content: 'Authors';
55+
content: "Authors";
5656
}

root/static/less/diff.less

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
}
1111

1212
.diff-header {
13-
background: linear-gradient(to bottom, rgb(255,255,255), rgb(221,221,221));
13+
background: linear-gradient(
14+
to bottom,
15+
rgb(255, 255, 255),
16+
rgb(221, 221, 221)
17+
);
1418
padding: 5px;
1519
font-family: @font-family-monospace;
1620

@@ -30,7 +34,8 @@
3034
font-family: @font-family-monospace;
3135
}
3236

33-
.plus, .minus {
37+
.plus,
38+
.minus {
3439
float: right;
3540
padding-left: 5px;
3641
padding-right: 5px;
@@ -43,7 +48,7 @@
4348
}
4449

4550
.plus {
46-
background-color: #090
51+
background-color: #090;
4752
}
4853

4954
.minus {

root/static/less/dropdown.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
select {
66
height: auto;
77
line-height: 1;
8-
margin:0;
8+
margin: 0;
99
padding: 0;
1010
position: absolute;
1111
left: 0;

0 commit comments

Comments
 (0)