Skip to content

Commit c3eeffe

Browse files
authored
Merge pull request #190 from evilmartians/harmonizer
Add link to Harmonizer
2 parents 45d820e + 14f1cb7 commit c3eeffe

File tree

8 files changed

+44
-14
lines changed

8 files changed

+44
-14
lines changed

view/layout/index.pug

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ include ../link/mixin.pug
1414
'https://evilmartians.com/chronicles/oklch-in-css-why-quit-rgb-hsl'
1515
)
1616
+link(
17-
'github',
18-
'evilmartians / oklch-picker',
19-
'https://github.com/evilmartians/oklch-picker'
17+
'palette',
18+
'Build palette with OKLCH and APCA',
19+
'https://harmonizer.evilmartians.com/'
2020
)
2121

2222
.layout_l

view/link/github.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

view/link/harmonizer.svg

Lines changed: 1 addition & 0 deletions
Loading

view/link/index.css

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
background: var(--surface-2);
1515
border-radius: 36px;
1616

17-
&:hover {
17+
&:hover,
18+
&:focus-visible {
1819
background: var(--surface-ui-accent);
1920
}
2021
}
@@ -27,8 +28,8 @@
2728
right: 28px;
2829
width: var(--link-external-size);
2930
height: var(--link-external-size);
30-
content: "";
31-
background: url("./external.svg");
31+
content: '';
32+
background: url('./external.svg');
3233
transform: translateY(-50%);
3334

3435
@media (prefers-color-scheme: dark) {
@@ -37,13 +38,11 @@
3738
}
3839

3940
.link_icon {
40-
--link-icon-size: 48px;
41-
4241
position: absolute;
4342
top: 50%;
4443
left: 12px;
45-
width: var(--link-icon-size);
46-
height: var(--link-icon-size);
44+
width: 48px;
45+
height: 48px;
4746
transform: translateY(-50%);
4847
}
4948

view/link/mixin.pug

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
mixin link(icon, text, href)
22
a.link( class=`is-${icon}` target="_blank" href=href )
3-
if icon === 'github'
4-
include ./github.svg
3+
if icon === 'palette'
4+
include ./harmonizer.svg
55
else if icon === 'help'
66
include ./help.svg
77
= text

view/title/github.svg

Lines changed: 1 addition & 0 deletions
Loading

view/title/index.css

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,27 @@
11
.title {
2+
padding-inline: 72px;
3+
position: relative;
4+
}
5+
6+
.title_text {
27
padding: 28px 0;
38
font-size: 17.5px;
49
line-height: 20px;
510
text-align: center;
611
}
12+
13+
.title_source {
14+
position: absolute;
15+
top: 50%;
16+
left: 0;
17+
width: 48px;
18+
height: 48px;
19+
transform: translateY(-50%);
20+
border-radius: 50%;
21+
background: var(--surface-1);
22+
23+
&:hover,
24+
&:focus-visible {
25+
background: var(--surface-ui-accent);
26+
}
27+
}

view/title/index.pug

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
1-
h1.title= `${LCH ? 'LCH' : 'OKLCH'} Color Picker & Converter`
1+
.title
2+
h1.title_text
3+
= `${LCH ? 'LCH' : 'OKLCH'} Color Picker & Converter`
4+
a.title_source(
5+
target="_blank"
6+
href="https://github.com/evilmartians/oklch-picker"
7+
title="Source code"
8+
aria-title="Source code"
9+
)
10+
include ./github.svg

0 commit comments

Comments
 (0)