Skip to content

Commit d331175

Browse files
committed
Standardize styles
1 parent f45c6b7 commit d331175

File tree

8 files changed

+105
-147
lines changed

8 files changed

+105
-147
lines changed

_includes/performance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ It is difficult to determine what to use for the **scale** of *bcmath*, because
66
the number of places behind the decimal point, rather than the **precision**, which is the total
77
number of significant places. This benchmark is therefore arbitrary in itself and serves only to provide a rough idea of what to expect.
88

9-
The code for this basic benchmark can be found [here](https://github.com/php-decimal/benchmarks).
9+
The code for this basic benchmark can be found [here](https://gist.github.com/rtheunissen/3c19d829774464f481f853e624fe058c).
1010

1111
Results are the total runtime to produce a result across many iterations, in seconds. **Lower is better**.
1212

_sass/_article.scss

Lines changed: 2 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -30,49 +30,6 @@ article {
3030
margin: 30px 0 0 0;
3131
}
3232

33-
hr {
34-
padding: 1em 0 1em 0;
35-
border: none;
36-
}
37-
38-
b,
39-
strong {
40-
font-weight: 500;
41-
}
42-
43-
.warning {
44-
color: $clr-red !important;
45-
}
46-
47-
div.warning {
48-
margin: 20px 0;
49-
font-weight: 600;
50-
padding: 1em;
51-
color: $clr-php-warning-text;
52-
border: 2px solid $clr-php-warning-border;
53-
background-color: $clr-php-warning-background;
54-
border-radius: 5px;
55-
}
56-
57-
div.info {
58-
margin: 20px 0;
59-
font-weight: 600;
60-
padding: 1em;
61-
color: $clr-php-info-text;
62-
background-color: $clr-php-info-background;
63-
border-radius: 5px;
64-
box-shadow: 1px 1px 0 0 rgba(0, 0, 0, 0.1);
65-
}
66-
67-
p,
68-
li,
69-
h2,
70-
h3,
71-
h4,
72-
h5 {
73-
max-width: 720px;
74-
}
75-
7633
.source {
7734
@include responsive-when-small-or-medium {
7835
display: none;
@@ -130,26 +87,6 @@ article {
13087
margin-bottom: 0px;
13188
}
13289

133-
figure {
134-
-webkit-margin-before: 0em;
135-
-webkit-margin-after: 0em;
136-
-webkit-margin-start: 0px;
137-
-webkit-margin-end: 0px;
138-
}
139-
140-
a {
141-
text-decoration: none;
142-
color: $clr-php-blue-dark;
143-
font-weight: 400;
144-
white-space: nowrap;
145-
146-
transition: color 0.1s ease-out;
147-
148-
&:hover {
149-
color: $clr-php-blue;
150-
}
151-
}
152-
15390
li {
15491
margin: 5px 0;
15592
}
@@ -160,33 +97,11 @@ article {
16097

16198
p > code,
16299
li > code {
163-
display: inline-block;
164100
padding: 0;
165101
margin: 0;
166102
margin-left: 0px;
167-
left: 0px;
168-
position: relative;
169-
color: $clr-php-black;
170-
border-radius: 3px;
171-
font-size: 14px;
172-
font-weight: 400;
173-
}
174-
175-
blockquote {
176-
margin: 1em 0 1em 0;
177-
display: inline-block;
178-
padding-left: 1em;
179-
border: none;
180-
border-left: 4px solid $clr-php-blue-dark;
181-
color: $clr-php-blue-dark;
182-
font-style: italic;
183-
184-
p {
185-
padding: 0;
186-
&:last-child {
187-
margin-bottom: 0;
188-
}
189-
}
103+
font-weight: 500;
104+
color: inherit !important;
190105
}
191106

192107
.rules {
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,42 @@
1+
2+
pre,
3+
code {
4+
font-family: $font-mono;
5+
color: $clr-php-black;
6+
font-size: 14px;
7+
line-height: 150%;
8+
font-weight: 400;
9+
10+
direction: ltr;
11+
text-align: left;
12+
white-space: pre;
13+
word-wrap: normal;
14+
word-spacing: normal;
15+
16+
-moz-tab-size: 4;
17+
-o-tab-size: 4;
18+
tab-size: 4;
19+
20+
-webkit-hyphens: none;
21+
-moz-hyphens: none;
22+
-ms-hyphens: none;
23+
hyphens: none;
24+
}
25+
26+
code {
27+
display: inline-block;
28+
}
29+
30+
pre {
31+
padding: 1.5em 1.5em;
32+
overflow: auto;
33+
border: none;
34+
background-color: $clr-grey-50;
35+
border-radius: 3px;
36+
border: 2px solid $clr-border;
37+
}
38+
39+
140
.highlight .hll { background-color: transparent; }
241
.highlight { background-color: $clr-grey-50; }
342
.highlight .c { color: $syntax-comment; } /* Comment */

_sass/_main.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ main {
22
position: relative;
33
background: $clr-white;
44

5-
padding-top: 0;//$header-height;
5+
padding-top: 0;
66
padding-left: $menu-width;
77

88
@include responsive-when-small-or-medium {

_sass/_menu.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,15 @@ menu {
107107

108108
li {
109109
a {
110+
font-family: $font-mono;
111+
font-size: 14px;
110112
color: $clr-menu-heading-3;
111113
font-weight: 500;
112114

113115
> span {
114116
color: $clr-menu-heading-4 !important;
115117
font-weight: 400;
118+
display: none;
116119
}
117120

118121
&:hover {

_sass/_template.scss

Lines changed: 58 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
* {
22
box-sizing: border-box;
3-
-webkit-font-smoothing: true !important;
3+
-webkit-font-smoothing: auto !important;
4+
font-smooth: auto !important;
5+
}
6+
7+
html {
8+
font-size: 1em;
9+
background-color: $clr-white;
10+
11+
@include responsive-when-small {
12+
overflow-x: hidden;
13+
}
414
}
515

616
p,
@@ -11,55 +21,64 @@ ul,
1121
body {
1222
font-family: $font-sans;
1323
font-size: 1em;
14-
font-weight: 300;
15-
}
16-
17-
pre,
18-
code {
19-
font-family: $font-mono;
20-
font-size: 14px;
21-
color: $clr-php-black;
22-
line-height: 150%;
2324
font-weight: 400;
25+
color: #111;
26+
}
2427

25-
direction: ltr;
26-
text-align: left;
27-
white-space: pre;
28-
word-wrap: normal;
29-
word-spacing: normal;
30-
31-
-moz-tab-size: 4;
32-
-o-tab-size: 4;
33-
tab-size: 4;
34-
35-
-webkit-hyphens: none;
36-
-moz-hyphens: none;
37-
-ms-hyphens: none;
38-
hyphens: none;
28+
p,
29+
li,
30+
h2,
31+
h3,
32+
h4,
33+
h5 {
34+
max-width: 720px;
3935
}
4036

41-
code {
42-
display: inline-block;
37+
b,
38+
strong {
39+
font-weight: 600;
40+
color: #000;
4341
}
4442

45-
pre {
46-
padding: 1.5em 1.5em;
47-
overflow: auto;
48-
border: none;
49-
background-color: $clr-grey-50;
50-
border-radius: 3px;
51-
border: 2px solid $clr-border;
43+
a {
44+
text-decoration: none;
45+
color: $clr-php-blue-dark;
46+
font-weight: 400;
47+
white-space: nowrap;
48+
transition: color 0.1s ease-out;
5249

50+
&:hover {
51+
color: $clr-php-blue;
52+
}
5353
}
5454

55+
hr {
56+
padding: 1em 0 1em 0;
57+
border: none;
58+
}
5559

56-
html {
57-
font-size: 1em;
58-
background-color: $clr-white;
60+
figure {
61+
-webkit-margin-before: 0em;
62+
-webkit-margin-after: 0em;
63+
-webkit-margin-start: 0px;
64+
-webkit-margin-end: 0px;
65+
}
5966

60-
@include responsive-when-small {
61-
overflow-x: hidden;
62-
}
67+
blockquote {
68+
margin: 1em 0 1em 0;
69+
display: inline-block;
70+
padding-left: 1em;
71+
border: none;
72+
border-left: 4px solid $clr-php-blue-dark;
73+
color: $clr-php-blue-dark;
74+
font-style: italic;
75+
76+
p {
77+
padding: 0;
78+
&:last-child {
79+
margin-bottom: 0;
80+
}
81+
}
6382
}
6483

6584
table {
@@ -83,16 +102,6 @@ table {
83102
a, p, span {
84103
font-size: 1em;
85104
}
86-
code {
87-
font-size: 0.9em;
88-
}
89-
90-
@include responsive-when-small {
91-
font-size: 0.8em;
92-
a, p, span, code {
93-
font-size: 0.8em;
94-
}
95-
}
96105
}
97106

98107
th {

_sass/_variables.scss

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,6 @@ $clr-menu-heading-2: $clr-php-heading;
2121
$clr-menu-heading-3: $clr-blue-grey-600;
2222
$clr-menu-heading-4: $clr-blue-grey-200;
2323

24-
$clr-php-warning-background: #F4DFDF;
25-
$clr-php-warning-border: #EABFBF;
26-
$clr-php-warning-text: $clr-php-heading;
27-
28-
$clr-php-info-background: $clr-grey-50;
29-
$clr-php-info-border: $clr-php-blue;
30-
$clr-php-info-text: $clr-php-blue-dark;
31-
3224
$syntax-fallback: $clr-php-black;
3325
$syntax-var: $clr-php-blue-dark;
3426
$syntax-string: $clr-php-green;

styles/theme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
@import "headings";
1010
@import "template";
1111
@import "sandbox";
12-
@import "syntax";
12+
@import "code";

0 commit comments

Comments
 (0)