Skip to content

Commit 8f639a4

Browse files
Fixing code styles
1 parent 39ffd64 commit 8f639a4

File tree

3 files changed

+171
-165
lines changed

3 files changed

+171
-165
lines changed

src/_data/sw.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"version": 1765317251209
2+
"version": 1765321123745
33
}

src/_styles/components/_figure.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
fullscreen-control > button {
1818
inset-block-start: -23px;
1919
inset-inline-end: -1px;
20+
margin: 0;
2021
}
2122

2223
.entry__thumbnail {
Lines changed: 169 additions & 164 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
@mixin unset( $properties )
2-
{
3-
@each $property in $properties {
4-
#{$property}: unset;
5-
}
1+
@mixin unset($properties ) {
2+
@each $property in $properties {
3+
#{$property}: unset;
4+
}
65
}
76

87
/**
@@ -11,162 +10,168 @@
1110
* @author ericwbailey
1211
*/
1312

14-
code[class*="language-"],
15-
pre[class*="language-"] {
16-
color: #f8f8f2;
17-
background: none;
18-
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
19-
text-align: left;
20-
white-space: pre;
21-
word-spacing: normal;
22-
word-break: normal;
23-
word-wrap: normal;
24-
line-height: 1.5;
25-
26-
-moz-tab-size: 4;
27-
-o-tab-size: 4;
28-
tab-size: 4;
29-
30-
-webkit-hyphens: none;
31-
-moz-hyphens: none;
32-
-ms-hyphens: none;
33-
hyphens: none;
34-
}
35-
36-
/* Code blocks */
37-
pre[class*="language-"] {
38-
padding: 2em;
39-
margin-left: -2em;
40-
margin-right: -2em;
41-
overflow: auto;
42-
43-
@supports (margin-block: 1em) {
44-
@include unset( margin-left margin-right );
45-
margin-inline: -2em;
46-
}
47-
}
48-
49-
:not(pre) > code[class*="language-"],
50-
pre[class*="language-"] {
51-
background: #2b2b2b;
52-
}
53-
54-
/* Inline code */
55-
:not(pre) > code[class*="language-"] {
56-
padding: 0.1em;
57-
border-radius: 0.3em;
58-
white-space: normal;
59-
}
60-
61-
.token.comment,
62-
.token.prolog,
63-
.token.doctype,
64-
.token.cdata {
65-
color: #d4d0ab;
66-
}
67-
68-
.token.punctuation {
69-
color: #fefefe;
70-
}
71-
72-
.token.property,
73-
.token.tag,
74-
.token.constant,
75-
.token.symbol,
76-
.token.deleted {
77-
color: #ffa07a;
78-
}
79-
80-
.token.boolean,
81-
.token.number {
82-
color: #00e0e0;
83-
}
84-
85-
.token.selector,
86-
.token.attr-name,
87-
.token.string,
88-
.token.char,
89-
.token.builtin,
90-
.token.inserted {
91-
color: #abe338;
92-
}
93-
94-
.token.operator,
95-
.token.entity,
96-
.token.url,
97-
.language-css .token.string,
98-
.style .token.string,
99-
.token.variable {
100-
color: #00e0e0;
101-
}
102-
103-
.token.atrule,
104-
.token.attr-value,
105-
.token.function {
106-
color: #ffd700;
107-
}
108-
109-
.token.keyword {
110-
color: #00e0e0;
111-
}
112-
113-
.token.regex,
114-
.token.important {
115-
color: #ffd700;
116-
}
117-
118-
.token.important,
119-
.token.bold {
120-
font-weight: bold;
121-
}
122-
.token.italic {
123-
font-style: italic;
124-
}
125-
126-
.token.entity {
127-
cursor: help;
128-
}
129-
130-
@media screen and (-ms-high-contrast: active) {
131-
code[class*="language-"],
132-
pre[class*="language-"] {
133-
color: windowText;
134-
background: window;
135-
}
136-
137-
:not(pre) > code[class*="language-"],
138-
pre[class*="language-"] {
139-
background: window;
140-
}
141-
142-
.token.important {
143-
background: highlight;
144-
color: window;
145-
font-weight: normal;
146-
}
147-
148-
.token.atrule,
149-
.token.attr-value,
150-
.token.function,
151-
.token.keyword,
152-
.token.operator,
153-
.token.selector {
154-
font-weight: bold;
155-
}
156-
157-
.token.attr-value,
158-
.token.comment,
159-
.token.doctype,
160-
.token.function,
161-
.token.keyword,
162-
.token.operator,
163-
.token.property,
164-
.token.string {
165-
color: highlight;
166-
}
167-
168-
.token.attr-value,
169-
.token.url {
170-
font-weight: normal;
171-
}
172-
}
13+
code[class*="language-"],
14+
pre[class*="language-"] {
15+
color: #f8f8f2;
16+
background: none;
17+
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
18+
text-align: left;
19+
white-space: pre;
20+
word-spacing: normal;
21+
word-break: normal;
22+
word-wrap: normal;
23+
line-height: 1.5;
24+
25+
-moz-tab-size: 4;
26+
-o-tab-size: 4;
27+
tab-size: 4;
28+
29+
-webkit-hyphens: none;
30+
-moz-hyphens: none;
31+
-ms-hyphens: none;
32+
hyphens: none;
33+
}
34+
35+
/* Code blocks */
36+
pre[class*="language-"] {
37+
padding: .5em;
38+
margin-left: -2em;
39+
margin-right: -2em;
40+
overflow: auto;
41+
42+
@supports (margin-block: 1em) {
43+
@include unset(margin-left margin-right);
44+
margin-inline: -2em;
45+
}
46+
47+
@media screen and (min-width: 30rem) {
48+
padding: 2em;
49+
}
50+
}
51+
52+
:not(pre) > code[class*="language-"],
53+
pre[class*="language-"] {
54+
background: #2b2b2b;
55+
}
56+
57+
/* Inline code */
58+
:not(pre) > code[class*="language-"] {
59+
padding: 0.1em;
60+
border-radius: 0.3em;
61+
white-space: normal;
62+
}
63+
64+
.token.comment,
65+
.token.prolog,
66+
.token.doctype,
67+
.token.cdata {
68+
color: #d4d0ab;
69+
}
70+
71+
.token.punctuation {
72+
color: #fefefe;
73+
}
74+
75+
.token.property,
76+
.token.tag,
77+
.token.constant,
78+
.token.symbol,
79+
.token.deleted {
80+
color: #ffa07a;
81+
}
82+
83+
.token.boolean,
84+
.token.number {
85+
color: #00e0e0;
86+
}
87+
88+
.token.selector,
89+
.token.attr-name,
90+
.token.string,
91+
.token.char,
92+
.token.builtin,
93+
.token.inserted {
94+
color: #abe338;
95+
}
96+
97+
.token.operator,
98+
.token.entity,
99+
.token.url,
100+
.language-css .token.string,
101+
.style .token.string,
102+
.token.variable {
103+
color: #00e0e0;
104+
}
105+
106+
.token.atrule,
107+
.token.attr-value,
108+
.token.function {
109+
color: #ffd700;
110+
}
111+
112+
.token.keyword {
113+
color: #00e0e0;
114+
}
115+
116+
.token.regex,
117+
.token.important {
118+
color: #ffd700;
119+
}
120+
121+
.token.important,
122+
.token.bold {
123+
font-weight: bold;
124+
}
125+
126+
.token.italic {
127+
font-style: italic;
128+
}
129+
130+
.token.entity {
131+
cursor: help;
132+
}
133+
134+
@media screen and (-ms-high-contrast: active) {
135+
136+
code[class*="language-"],
137+
pre[class*="language-"] {
138+
color: windowText;
139+
background: window;
140+
}
141+
142+
:not(pre) > code[class*="language-"],
143+
pre[class*="language-"] {
144+
background: window;
145+
}
146+
147+
.token.important {
148+
background: highlight;
149+
color: window;
150+
font-weight: normal;
151+
}
152+
153+
.token.atrule,
154+
.token.attr-value,
155+
.token.function,
156+
.token.keyword,
157+
.token.operator,
158+
.token.selector {
159+
font-weight: bold;
160+
}
161+
162+
.token.attr-value,
163+
.token.comment,
164+
.token.doctype,
165+
.token.function,
166+
.token.keyword,
167+
.token.operator,
168+
.token.property,
169+
.token.string {
170+
color: highlight;
171+
}
172+
173+
.token.attr-value,
174+
.token.url {
175+
font-weight: normal;
176+
}
177+
}

0 commit comments

Comments
 (0)