Skip to content

Commit a7cf787

Browse files
committed
style: tweak traffic lights size
1 parent 46f9198 commit a7cf787

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

_extensions/code-window/code-window.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,13 @@ local TYPST_FUNCTION_DEF = [==[
147147
gutter: 0.5em,
148148
stroke: 0pt,
149149
box(
150-
inset: (right: 8pt),
150+
inset: (right: 0.5em),
151151
stack(
152152
dir: ltr,
153-
spacing: 5pt,
154-
circle(radius: 5pt, fill: rgb("#ff5f56"), stroke: none),
155-
circle(radius: 5pt, fill: rgb("#ffbd2e"), stroke: none),
156-
circle(radius: 5pt, fill: rgb("#27c93f"), stroke: none),
153+
spacing: 0.425em,
154+
circle(radius: 0.425em, fill: rgb("#ff5f56"), stroke: none),
155+
circle(radius: 0.425em, fill: rgb("#ffbd2e"), stroke: none),
156+
circle(radius: 0.425em, fill: rgb("#27c93f"), stroke: none),
157157
),
158158
),
159159
if filename != none {

_extensions/code-window/style.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
content: '';
3333
display: inline-flex;
3434
flex-shrink: 0;
35-
width: calc(12px * 3 + 6px * 2);
36-
height: 12px;
37-
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='12'%3E%3Ccircle cx='6' cy='6' r='5' fill='%23ff5f56'/%3E%3Ccircle cx='24' cy='6' r='5' fill='%23ffbd2e'/%3E%3Ccircle cx='42' cy='6' r='5' fill='%2327c93f'/%3E%3C/svg%3E");
35+
width: 3.4em;
36+
height: 0.80em;
37+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='10'%3E%3Ccircle cx='5' cy='5' r='5' fill='%23ff5f56'/%3E%3Ccircle cx='20' cy='5' r='5' fill='%23ffbd2e'/%3E%3Ccircle cx='35' cy='5' r='5' fill='%2327c93f'/%3E%3C/svg%3E");
3838
background-size: contain;
3939
background-repeat: no-repeat;
4040
}
@@ -70,7 +70,7 @@
7070
}
7171

7272
/* Plain code blocks (unknown language without sourceCode wrapper) */
73-
.code-with-filename > pre {
73+
.code-with-filename>pre {
7474
margin: 0;
7575
border: none;
7676
border-radius: 0;

0 commit comments

Comments
 (0)