Commit 9b96fd7416

9b96fd74162fe1402130934f6c04222799341371

parent: 436ab963d0

Unsigned

Alicia Sykes <alicia@omg.lol> · 2026-03-24 18:06 UTC

Refactor of styles, to more consistant design system

Layout: unified · split

web/src/components/Card.astro +6 −6
@@ -23,14 +23,14 @@ const { href, title, body } = Astro.props;
2323 .link-card {
2424 color: var(--foreground);
2525 background: var(--background);
26 border: 2px solid var(--box-outline);
27 box-shadow: 6px 6px 0 var(--box-outline);
28 font-family: 'Lekton', sans-serif;
26 border: var(--border-heavy);
27 box-shadow: var(--shadow-lg);
28 font-family: var(--font-subtitle);
2929 font-weight: 700;
30 transition: all ease-in-out 0.1s;
30 transition: var(--transition-fast);
3131 list-style: none;
3232 &:hover {
33 box-shadow: 8px 8px 0 var(--box-outline);
33 box-shadow: var(--shadow-lg-hover);
3434 background: var(--accent);
3535 color: var(--background);
3636 }
@@ -38,7 +38,7 @@ const { href, title, body } = Astro.props;
3838 box-sizing: border-box;
3939 color: currentColor;
4040 text-decoration: none;
41 transition: all ease-in-out 0.1s;
41 transition: var(--transition-fast);
4242 }
4343 h2 {
4444 margin: 0;
web/src/components/Hero.astro +24 −25
@@ -48,12 +48,12 @@ import ThemeSwitcher from '@components/form/ThemeSwitcher.svelte';
4848 .hero {
4949 color: var(--accent-fg);
5050 border-radius: var(--curve-sm);
51 padding: 2rem 4rem;
51 padding: var(--space-lg) var(--space-2xl);
5252 display: flex;
5353 flex-direction: column;
54 gap: 2rem;
54 gap: var(--space-lg);
5555 @media (max-width: 768px) {
56 padding: 2rem 1rem;
56 padding: var(--space-lg) var(--space-md);
5757 }
5858 }
5959 svg {
@@ -63,16 +63,16 @@ import ThemeSwitcher from '@components/form/ThemeSwitcher.svelte';
6363 transform: translatex(-50%);
6464 width: 220px;
6565 height: auto;
66 opacity: 0.6;
66 opacity: var(--opacity-muted);
6767 display: none;
6868 }
6969 h1 {
7070 margin: 0;
71 font-size: 5rem;
71 font-size: var(--text-5xl);
7272 font-weight: 700;
7373 line-height: 1;
7474 text-align: center;
75 font-family: 'Libre Franklin', sans-serif;
75 font-family: var(--font-heading);
7676 color: var(--accent-3);
7777 -webkit-text-fill-color: var(--accent-3);
7878 -webkit-text-stroke-width: 2px;
@@ -84,33 +84,32 @@ import ThemeSwitcher from '@components/form/ThemeSwitcher.svelte';
8484 }
8585 .intro {
8686 text-align: center;
87 font-size: 1.6rem;
88 padding: 0.5rem 1rem;
87 font-size: var(--text-xl);
88 padding: var(--space-sm) var(--space-md);
8989 color: var(--accent-fg);
9090 background: var(--accent-3);
91 border: 2px solid var(--box-outline);
91 border: var(--border-heavy);
9292 border-radius: var(--curve-sm);
93 box-shadow: 6px 6px 0 var(--box-outline);
94 font-family: 'Lekton', sans-serif;
93 box-shadow: var(--shadow-lg);
94 font-family: var(--font-subtitle);
9595 font-weight: 700;
9696 max-width: 735px;
9797 margin: 0 auto;
9898 }
9999 .github-link-wrap {
100 font-family: 'Lekton', sans-serif;
100 font-family: var(--font-subtitle);
101101 max-width: 735px;
102102 text-align: center;
103103 margin: 0 auto;
104 border: 1px solid var(--box-outline);
105 box-shadow: 3px 3px 0 var(--box-outline);
104 border: var(--border-light);
105 box-shadow: var(--shadow-sm);
106106 background: var(--accent);
107 border-radius: 18px;
108 padding: 0.5rem 1rem;
107 border-radius: var(--curve-pill);
108 padding: var(--space-sm) var(--space-md);
109109 a {
110110 text-decoration: none;
111111 color: var(--accent-fg);
112 font-size: 1.2rem;
113 font-family: 'Lekton', sans-serif;
112 font-size: var(--text-md);
114113 font-weight: bold;
115114 display: flex;
116115 align-items: center;
@@ -118,22 +117,22 @@ import ThemeSwitcher from '@components/form/ThemeSwitcher.svelte';
118117 width: 1.5rem;
119118 height: 1.5rem;
120119 color: var(--accent-fg);
121 margin-right: 0.5rem;
120 margin-right: var(--space-sm);
122121 }
123122 }
124123 }
125124
126125 .theme-switcher {
127126 position: absolute;
128 right: 1rem;
129 top: 1rem;
127 right: var(--space-md);
128 top: var(--space-md);
130129 }
131130
132131 .top-right {
133132 position: absolute;
134133 top: 0;
135 right: 1rem;
136 opacity: 0.8;
134 right: var(--space-md);
135 opacity: var(--opacity-subtle);
137136 display: none;
138137 &:hover {
139138 opacity: 1;
@@ -142,11 +141,11 @@ import ThemeSwitcher from '@components/form/ThemeSwitcher.svelte';
142141 list-style: none;
143142 display: flex;
144143 padding: 0;
145 gap: 0.5rem;
144 gap: var(--space-sm);
146145 li {
147146 &:not(:last-child) {
148147 border-right: 1px solid var(--accent);
149 padding-right: 0.5rem;
148 padding-right: var(--space-sm);
150149 }
151150 }
152151 li a {
web/src/components/form/Button.astro +8 −9
@@ -8,22 +8,21 @@ const { text, url, className, title } = Astro.props;
88
99<style lang="scss">
1010 .button {
11 font-family: 'Lekton', sans-serif;
11 font-family: var(--font-subtitle);
1212 text-align: center;
13 border: 1px solid var(--box-outline);
14 box-shadow: 3px 3px 0 var(--box-outline);
13 border: var(--border-light);
14 box-shadow: var(--shadow-sm);
1515 background: var(--accent);
16 border-radius: 18px;
17 padding: 0.5rem 1rem;
18 transition: all 0.2s ease-in-out;
16 border-radius: var(--curve-pill);
17 padding: var(--space-sm) var(--space-md);
18 transition: var(--transition-normal);
1919 &:hover {
20 box-shadow: 4px 4px 0 var(--box-outline);
20 box-shadow: var(--shadow-sm-hover);
2121 }
2222 a {
2323 text-decoration: none;
2424 color: var(--accent-fg);
25 font-size: 1.2rem;
26 font-family: 'Lekton', sans-serif;
25 font-size: var(--text-md);
2726 font-weight: bold;
2827 }
2928 }
web/src/components/form/EditableTitle.svelte +5 −5
@@ -61,15 +61,15 @@
6161
6262<style>
6363 h2 {
64 font-family: 'Lekton', sans-serif;
64 font-family: var(--font-subtitle);
6565 font-weight: bold;
66 font-size: 3rem;
66 font-size: var(--text-4xl);
6767 margin: 0;
6868 color: var(--accent-3);
6969 cursor: pointer;
7070 border-bottom: 2px solid transparent;
7171 outline: none;
72 padding: 0.25rem;
72 padding: var(--space-xs);
7373 }
7474 .editable {
7575 border-bottom: 2px solid var(--accent-3); /* Visual cue to show editable state */
@@ -78,7 +78,7 @@
7878 border-bottom: 2px solid var(--accent-3);
7979 }
8080 small {
81 font-size: 0.8rem;
82 opacity: 0.5;
81 font-size: var(--text-sm);
82 opacity: var(--opacity-dim);
8383 }
8484</style>
web/src/components/form/Social.astro +7 −7
@@ -100,21 +100,21 @@ const socialMedias = {
100100 list-style: none;
101101 padding: 0;
102102 display: flex;
103 gap: 0.5rem;
103 gap: var(--space-sm);
104104 flex-wrap: wrap;
105105 li {
106106 padding: 0;
107107 margin: 0;
108 opacity: 0.8;
109 border: 1px solid var(--box-outline);
110 box-shadow: 2px 2px 0 var(--box-outline);
108 opacity: var(--opacity-subtle);
109 border: var(--border-light);
110 box-shadow: var(--shadow-xs);
111111 border-radius: var(--curve-sm);
112 transition: all 0.2s ease-in-out;
112 transition: var(--transition-normal);
113113 background: var(--background-form);
114114 a {
115115 display: flex;
116116 color: var(--foreground);
117 transition: all 0.2s ease-in-out;
117 transition: var(--transition-normal);
118118 padding: 4px;
119119 :global(svg) {
120120 width: 2rem;
@@ -122,7 +122,7 @@ const socialMedias = {
122122 }
123123 }
124124 &:hover {
125 box-shadow: 3px 3px 0 var(--box-outline);
125 box-shadow: var(--shadow-xs-hover);
126126 border-radius: var(--curve-md);
127127 opacity: 1;
128128 a {
web/src/components/form/ThemeSwitcher.svelte +7 −8
@@ -43,13 +43,12 @@
4343 display: inline-flex;
4444 align-items: center;
4545 justify-content: center;
46 border: 2px solid transparent;
46 border: var(--border-heavy);
4747 border-radius: var(--curve-lg);
48 padding: 0.25rem;
48 padding: var(--space-xs);
4949 background-color: rgba(255, 255, 255, 0.2);
5050 transition: background-color 0.3s ease;
51 border: 2px solid var(--box-outline);
52 box-shadow: 3px 3px 0 var(--box-outline);
51 box-shadow: var(--shadow-sm);
5352
5453 &:hover {
5554 background-color: rgba(255, 255, 255, 0.3);
@@ -64,20 +63,20 @@
6463 height: 2rem;
6564 background: var(--accent-fg);
6665 border-radius: var(--curve-lg);
67 padding: 0.25rem;
66 padding: var(--space-xs);
6867 position: relative;
6968 transition: background 0.3s ease;
7069
7170 &::before {
7271 content: '';
7372 position: absolute;
74 top: 0.25rem;
75 left: 0.25rem;
73 top: var(--space-xs);
74 left: var(--space-xs);
7675 width: 1.6rem;
7776 height: 1.6rem;
7877 border-radius: 50%;
7978 background: var(--background);
80 opacity: 0.6;
79 opacity: var(--opacity-muted);
8180 transition: transform 0.3s ease;
8281 }
8382
web/src/components/scafold/Footer.astro +2 −3
@@ -16,13 +16,12 @@ const year = new Date().getFullYear();
1616
1717<style lang="scss">
1818 footer {
19 font-family: 'Lekton', sans-serif;
19 font-family: var(--font-subtitle);
2020 font-weight: bold;
2121 text-align: center;
22 padding: 0.5rem 0;
22 padding: var(--space-sm) 0;
2323 margin: 0 auto;
2424 a {
25 font-family: 'Lekton', sans-serif;
2625 color: var(--accent);
2726 }
2827 }
web/src/components/scafold/MainCard.astro +6 −6
@@ -4,12 +4,12 @@
44
55<style lang="scss">
66 main {
7 margin: 2rem auto;
8 padding: 1rem;
9 width: 1200px;
10 max-width: calc(100% - 5rem);
11 border: 2px solid var(--box-outline);
12 box-shadow: 6px 6px 0 var(--box-outline);
7 margin: var(--space-lg) auto;
8 padding: var(--space-md);
9 width: var(--width-container);
10 max-width: var(--width-container-max);
11 border: var(--border-heavy);
12 box-shadow: var(--shadow-lg);
1313 background: var(--accent-fg);
1414 position: relative;
1515 }
web/src/components/scafold/NavBar.astro +8 −8
@@ -27,26 +27,26 @@ import ThemeSwitcher from '@components/form/ThemeSwitcher.svelte';
2727 justify-content: space-between;
2828 align-items: center;
2929 flex-wrap: wrap;
30 gap: 1rem;
30 gap: var(--space-md);
3131 border-bottom: 2px solid var(--accent-3);
3232
3333 .homepage {
3434 text-decoration: none;
3535 display: flex;
3636 align-items: center;
37 padding: 0 0.5rem;
37 padding: 0 var(--space-sm);
3838 h1 {
3939 margin: 0;
4040 font-size: 2.4rem;
41 padding: 0 1rem;
41 padding: 0 var(--space-md);
4242 color: var(--foreground);
43 font-family: 'Lekton', sans-serif;
43 font-family: var(--font-subtitle);
4444 }
4545 :global(svg) {
4646 width: 2.5rem;
4747 height: 2.5rem;
4848 color: var(--accent-3);
49 transition: all 0.2s ease-in-out;
49 transition: var(--transition-normal);
5050 }
5151 &:hover {
5252 :global(svg) {
@@ -61,9 +61,9 @@ import ThemeSwitcher from '@components/form/ThemeSwitcher.svelte';
6161 align-items: center;
6262 height: 3rem;
6363 a {
64 padding: 1rem;
65 font-size: 1.2rem;
66 font-family: 'Lekton', sans-serif;
64 padding: var(--space-md);
65 font-size: var(--text-md);
66 font-family: var(--font-subtitle);
6767 font-weight: bold;
6868 color: var(--foreground);
6969 transition:
web/src/components/things/AddNewService.svelte +26 −26
@@ -418,31 +418,31 @@
418418 .form-row {
419419 display: grid;
420420 grid-template-columns: 1fr 3fr 2fr;
421 gap: 1rem;
422 padding: 0.5rem 0;
421 gap: var(--space-md);
422 padding: var(--space-sm) 0;
423423 &:not(:last-child) {
424424 border-bottom: 1px solid var(--transparent-accent);
425425 }
426426 p {
427427 margin: 0;
428 font-size: 0.8rem;
429 opacity: 0.6;
428 font-size: var(--text-sm);
429 opacity: var(--opacity-muted);
430430 }
431431 }
432432
433433 .final-info {
434434 display: flex;
435435 flex-direction: column;
436 padding: 1rem 0;
437 gap: 1rem;
436 padding: var(--space-md) 0;
437 gap: var(--space-md);
438438 p {
439 margin: 0.5rem 0;
439 margin: var(--space-sm) 0;
440440 }
441441 ul {
442 padding-left: 0.25rem;
443 margin: 0 0 0.5rem 0;
444 font-size: 0.8rem;
445 opacity: 0.6;
442 padding-left: var(--space-xs);
443 margin: 0 0 var(--space-sm) 0;
444 font-size: var(--text-sm);
445 opacity: var(--opacity-muted);
446446 list-style: circle;
447447 }
448448 }
@@ -453,8 +453,8 @@
453453 width: 100%;
454454 border: 1px solid var(--accent-3);
455455 border-radius: var(--curve-md);
456 font-size: 1.2rem;
457 padding: 0.5rem 0.25rem;
456 font-size: var(--text-md);
457 padding: var(--space-sm) var(--space-xs);
458458 background: var(--background-form);
459459 color: var(--foreground);
460460 &:focus {
@@ -483,8 +483,8 @@
483483 }
484484 .open-in-gh {
485485 margin: 0 auto;
486 font-size: 0.8rem;
487 opacity: 0.6;
486 font-size: var(--text-sm);
487 opacity: var(--opacity-muted);
488488 display: block;
489489 text-align: center;
490490 }
@@ -493,15 +493,15 @@
493493 cursor: pointer;
494494 background: var(--accent-3);
495495 color: var(--accent-fg);
496 padding: 0.5rem 2rem;
497 border: 1px solid var(--box-outline);
498 box-shadow: 3px 3px 0 var(--box-outline);
496 padding: var(--space-sm) var(--space-lg);
497 border: var(--border-light);
498 box-shadow: var(--shadow-sm);
499499 border-radius: var(--curve-lg);
500 font-size: 1.8rem;
501 font-family: 'Lekton', sans-serif;
502 margin: 1rem auto;
500 font-size: var(--text-2xl);
501 font-family: var(--font-subtitle);
502 margin: var(--space-md) auto;
503503 display: flex;
504 transition: all 0.2s ease-in-out;
504 transition: var(--transition-normal);
505505 &:hover {
506506 background: var(--accent);
507507 }
@@ -509,17 +509,17 @@
509509
510510 .sub-title-description {
511511 margin-top: 0;
512 font-size: 0.8rem;
513 opacity: 0.6;
512 font-size: var(--text-sm);
513 opacity: var(--opacity-muted);
514514 }
515515
516516 .output-yaml {
517517 pre {
518 font-family: 'Courier New', Courier, monospace;
518 font-family: var(--font-code);
519519 background: var(--background-form);
520520 padding: 0.2rem 0.4rem;
521521 border-radius: var(--curve-sm);
522 font-size: 0.9rem;
522 font-size: var(--text-sm);
523523 }
524524 }
525525</style>
web/src/components/things/AndroidDetailedInfo.astro +14 −49
@@ -102,67 +102,32 @@ function permissionToReadable(permission: string): string {
102102</div>
103103
104104<style lang="scss">
105 @use '../../styles/mixins' as *;
105106 .android-info-wrapper {
106 display: flex;
107 flex-wrap: wrap;
108 justify-content: space-between;
109 gap: 1rem;
110 .left,
111 .right {
112 width: calc(50% - 1rem);
113 @media screen and (max-width: 768px) {
114 width: 100%;
115 }
116 }
107 @include detail-info-layout;
117108 }
118109
110 @include detail-info-base;
111
119112 h3 {
120113 margin: 0;
121 font-size: 1.6rem;
122 }
123
124 h4 {
125 margin: 1rem 0 0 0;
126 font-size: 1.2rem;
114 font-size: var(--text-xl);
127115 }
128116
129117 ul {
130 padding-left: 0;
131 list-style: none;
132 max-height: 300px;
133 overflow-y: auto;
134 overflow-x: hidden;
135 img {
136 border-radius: var(--curve-sm);
137 }
138 .list-item {
139 display: flex;
140 flex-direction: column;
141 margin-bottom: 0.5rem;
142 }
143 &.list-table {
144 font-size: 0.9rem;
145 padding-left: 0;
146 li {
147 display: flex;
148 justify-content: space-between;
149 padding: 0.1rem 0;
150 .lbl {
151 font-weight: 400;
152 }
153 .val {
154 img {
155 margin-right: 0.5rem;
156 }
157 }
158 &:not(:last-child) {
159 border-bottom: 1px solid #5f53f440;
118 &.list-table li {
119 .lbl {
120 font-weight: 400;
121 }
122 .val {
123 img {
124 margin-right: var(--space-sm);
160125 }
161126 }
162127 }
163128 &.list {
164129 list-style: circle;
165 padding-left: 1rem;
130 padding-left: var(--space-md);
166131 }
167132 }
168133
@@ -170,7 +135,7 @@ function permissionToReadable(permission: string): string {
170135 color: var(--success);
171136 display: flex;
172137 align-items: center;
173 gap: 0.5rem;
138 gap: var(--space-sm);
174139 :global(svg) {
175140 width: 1.5rem;
176141 }
web/src/components/things/ChangelogTimeline.svelte +270 −87
@@ -1,5 +1,10 @@
11<script lang="ts">
2 import type { ChangelogEntry, ServiceChange, Rejection, ChangelogPr } from '../../utils/fetch-changelog';
2 import type {
3 ChangelogEntry,
4 ServiceChange,
5 Rejection,
6 ChangelogPr,
7 } from '../../utils/fetch-changelog';
38 import { slugify } from '@utils/fetch-data';
49
510 export let entries: ChangelogEntry[] = [];
@@ -14,18 +19,41 @@
1419 { key: 'rejected', label: 'Rejections', icon: '✕' },
1520 ];
1621
17 let on: Record<Filter, boolean> = { added: true, removed: true, modified: true, rejected: true };
22 let on: Record<Filter, boolean> = {
23 added: true,
24 removed: true,
25 modified: true,
26 rejected: true,
27 };
1828 let searchQuery = '';
1929
20 function toggle(key: Filter) { on = { ...on, [key]: !on[key] }; }
30 function toggle(key: Filter) {
31 on = { ...on, [key]: !on[key] };
32 }
2133
2234 type TimelineItem =
23 | { kind: 'entry'; date: string; sha: string; pr?: ChangelogPr | null; data: ChangelogEntry }
24 | { kind: 'rejection'; date: string; sha: string; pr: ChangelogPr; data: Rejection };
35 | {
36 kind: 'entry';
37 date: string;
38 sha: string;
39 pr?: ChangelogPr | null;
40 data: ChangelogEntry;
41 }
42 | {
43 kind: 'rejection';
44 date: string;
45 sha: string;
46 pr: ChangelogPr;
47 data: Rejection;
48 };
2549
2650 const svc = (e: ChangelogEntry) => {
2751 const s = e.changes?.services;
28 return { added: s?.added || [], removed: s?.removed || [], modified: s?.modified || [] };
52 return {
53 added: s?.added || [],
54 removed: s?.removed || [],
55 modified: s?.modified || [],
56 };
2957 };
3058 const sec = (e: ChangelogEntry) => {
3159 const s = e.changes?.sections;
@@ -36,31 +64,54 @@
3664 return { added: c?.added || [], removed: c?.removed || [] };
3765 };
3866
39 function matchesFilters(item: TimelineItem, f: Record<Filter, boolean>): boolean {
67 function matchesFilters(
68 item: TimelineItem,
69 f: Record<Filter, boolean>,
70 ): boolean {
4071 if (item.kind === 'rejection') return f.rejected;
41 const s = svc(item.data), sc = sec(item.data), ct = cat(item.data);
42 return (f.added && (s.added.length > 0 || sc.added.length > 0 || ct.added.length > 0))
43 || (f.removed && (s.removed.length > 0 || sc.removed.length > 0 || ct.removed.length > 0))
44 || (f.modified && s.modified.length > 0);
72 const s = svc(item.data),
73 sc = sec(item.data),
74 ct = cat(item.data);
75 return (
76 (f.added &&
77 (s.added.length > 0 || sc.added.length > 0 || ct.added.length > 0)) ||
78 (f.removed &&
79 (s.removed.length > 0 ||
80 sc.removed.length > 0 ||
81 ct.removed.length > 0)) ||
82 (f.modified && s.modified.length > 0)
83 );
4584 }
4685
4786 function matchesSearch(item: TimelineItem, query: string): boolean {
4887 if (!query) return true;
4988 const q = query.toLowerCase();
5089 if (item.kind === 'rejection') {
51 return item.data.title.toLowerCase().includes(q)
52 || (item.pr.author?.toLowerCase().includes(q) ?? false);
90 return (
91 item.data.title.toLowerCase().includes(q) ||
92 (item.pr.author?.toLowerCase().includes(q) ?? false)
93 );
5394 }
54 const all = [...svc(item.data).added, ...svc(item.data).removed, ...svc(item.data).modified];
55 return all.some(c => c.name.toLowerCase().includes(q)
56 || `${c.category} ${c.section}`.toLowerCase().includes(q))
57 || (item.pr?.author?.toLowerCase().includes(q) ?? false);
95 const all = [
96 ...svc(item.data).added,
97 ...svc(item.data).removed,
98 ...svc(item.data).modified,
99 ];
100 return (
101 all.some(
102 (c) =>
103 c.name.toLowerCase().includes(q) ||
104 `${c.category} ${c.section}`.toLowerCase().includes(q),
105 ) ||
106 (item.pr?.author?.toLowerCase().includes(q) ?? false)
107 );
58108 }
59109
60110 const pl = (n: number, word: string) => `${n} ${word}${n > 1 ? 's' : ''}`;
61111
62112 function summarize(entry: ChangelogEntry): string {
63 const s = svc(entry), sc = sec(entry);
113 const s = svc(entry),
114 sc = sec(entry);
64115 const parts: string[] = [];
65116 if (s.added.length) parts.push(pl(s.added.length, 'addition'));
66117 if (s.removed.length) parts.push(pl(s.removed.length, 'removal'));
@@ -71,52 +122,136 @@
71122 }
72123
73124 function serviceLink(s: ServiceChange, isRemoval: boolean): string {
74 const c = slugify(s.category), sc = slugify(s.section);
125 const c = slugify(s.category),
126 sc = slugify(s.section);
75127 return isRemoval ? `/${c}/${sc}` : `/${c}/${sc}/${slugify(s.name)}`;
76128 }
77129
78 type ChangeRow = { badge: string; cls: string; name: string; href: string; path: string; fields?: string[] };
130 type ChangeRow = {
131 badge: string;
132 cls: string;
133 name: string;
134 href: string;
135 path: string;
136 fields?: string[];
137 };
79138
80139 function changeRows(e: ChangelogEntry): ChangeRow[] {
81 const s = svc(e), sc = sec(e), ct = cat(e);
140 const s = svc(e),
141 sc = sec(e),
142 ct = cat(e);
82143 return [
83 ...s.added.map(v => ({ badge: 'Added', cls: 'add', name: v.name, href: serviceLink(v, false), path: `into ${v.category} › ${v.section}` })),
84 ...s.removed.map(v => ({ badge: 'Removed', cls: 'rem', name: v.name, href: serviceLink(v, true), path: `from ${v.category} › ${v.section}` })),
85 ...s.modified.map(v => ({ badge: 'Amended', cls: 'mod', name: v.name, href: serviceLink(v, false), path: `in ${v.category} › ${v.section}`, fields: v.fields })),
86 ...sc.added.map(v => ({ badge: 'New Section', cls: 'add', name: v.name, href: `/${slugify(v.category)}/${slugify(v.name)}` })),
87 ...sc.removed.map(v => ({ badge: 'Section Removed', cls: 'rem', name: v.name, href: '' })),
88 ...ct.added.map(v => ({ badge: 'New Category', cls: 'add', name: v, href: '' })),
89 ...ct.removed.map(v => ({ badge: 'Category Removed', cls: 'rem', name: v, href: '' })),
144 ...s.added.map((v) => ({
145 badge: 'Added',
146 cls: 'add',
147 name: v.name,
148 href: serviceLink(v, false),
149 path: `into ${v.category} › ${v.section}`,
150 })),
151 ...s.removed.map((v) => ({
152 badge: 'Removed',
153 cls: 'rem',
154 name: v.name,
155 href: serviceLink(v, true),
156 path: `from ${v.category} › ${v.section}`,
157 })),
158 ...s.modified.map((v) => ({
159 badge: 'Amended',
160 cls: 'mod',
161 name: v.name,
162 href: serviceLink(v, false),
163 path: `in ${v.category} › ${v.section}`,
164 fields: v.fields,
165 })),
166 ...sc.added.map((v) => ({
167 badge: 'New Section',
168 cls: 'add',
169 name: v.name,
170 href: `/${slugify(v.category)}/${slugify(v.name)}`,
171 })),
172 ...sc.removed.map((v) => ({
173 badge: 'Section Removed',
174 cls: 'rem',
175 name: v.name,
176 href: '',
177 })),
178 ...ct.added.map((v) => ({
179 badge: 'New Category',
180 cls: 'add',
181 name: v,
182 href: '',
183 })),
184 ...ct.removed.map((v) => ({
185 badge: 'Category Removed',
186 cls: 'rem',
187 name: v,
188 href: '',
189 })),
90190 ];
91191 }
92192
93193 $: allItems = [
94 ...entries.map((e): TimelineItem => ({ kind: 'entry', date: e.date, sha: e.sha, pr: e.pr, data: e })),
95 ...rejections.map((r): TimelineItem => ({ kind: 'rejection', date: r.date, sha: `rej-${r.pr.number}`, pr: r.pr, data: r })),
194 ...entries.map(
195 (e): TimelineItem => ({
196 kind: 'entry',
197 date: e.date,
198 sha: e.sha,
199 pr: e.pr,
200 data: e,
201 }),
202 ),
203 ...rejections.map(
204 (r): TimelineItem => ({
205 kind: 'rejection',
206 date: r.date,
207 sha: `rej-${r.pr.number}`,
208 pr: r.pr,
209 data: r,
210 }),
211 ),
96212 ].sort((a, b) => b.date.localeCompare(a.date));
97213
98 $: filtered = allItems.filter(item => matchesFilters(item, on) && matchesSearch(item, searchQuery));
214 $: filtered = allItems.filter(
215 (item) => matchesFilters(item, on) && matchesSearch(item, searchQuery),
216 );
99217
100218 $: grouped = filtered.reduce<Record<string, TimelineItem[]>>((acc, item) => {
101219 const d = new Date(item.date + 'T00:00:00Z');
102 const key = d.toLocaleDateString('en-US', { year: 'numeric', month: 'long', timeZone: 'UTC' });
220 const key = d.toLocaleDateString('en-US', {
221 year: 'numeric',
222 month: 'long',
223 timeZone: 'UTC',
224 });
103225 (acc[key] ??= []).push(item);
104226 return acc;
105227 }, {});
106228
107229 function formatDate(dateStr: string): string {
108 return new Date(dateStr + 'T00:00:00Z')
109 .toLocaleDateString('en-US', { month: 'short', day: 'numeric', year: 'numeric', timeZone: 'UTC' });
230 return new Date(dateStr + 'T00:00:00Z').toLocaleDateString('en-US', {
231 month: 'short',
232 day: 'numeric',
233 year: 'numeric',
234 timeZone: 'UTC',
235 });
110236 }
111237</script>
112238
113239<details class="controls">
114240 <summary>Search &amp; Filter</summary>
115241 <div class="controls-body">
116 <input class="search" type="text" placeholder="Search..." bind:value={searchQuery} />
242 <input
243 class="search"
244 type="text"
245 placeholder="Search..."
246 bind:value={searchQuery}
247 />
117248 <div class="filters">
118249 {#each filterDefs as f (f.key)}
119 <button class="pill {f.key}" class:active={on[f.key]} on:click={() => toggle(f.key)}>
250 <button
251 class="pill {f.key}"
252 class:active={on[f.key]}
253 on:click={() => toggle(f.key)}
254 >
120255 <span class="icon">{f.icon}</span>{f.label}
121256 </button>
122257 {/each}
@@ -136,18 +271,42 @@
136271 <div class="entry-body">
137272 <div class="summary">
138273 {#if item.pr?.authorAvatar}
139 <a href={`https://github.com/${item.pr.author}`} target="_blank" rel="noreferrer">
140 <img class="avatar" src={item.pr.authorAvatar} alt="" width="20" height="20" loading="lazy" />
274 <a
275 href={`https://github.com/${item.pr.author}`}
276 target="_blank"
277 rel="noreferrer"
278 >
279 <img
280 class="avatar"
281 src={item.pr.authorAvatar}
282 alt=""
283 width="20"
284 height="20"
285 loading="lazy"
286 />
141287 </a>
142288 {/if}
143289 {#if item.pr?.author}
144 <span class="author"><a href={`https://github.com/${item.pr.author}`} target="_blank" rel="noreferrer">@{item.pr.author}</a></span>
290 <span class="author"
291 ><a
292 href={`https://github.com/${item.pr.author}`}
293 target="_blank"
294 rel="noreferrer">@{item.pr.author}</a
295 ></span
296 >
145297 {/if}
146298 <span class="summary-text">
147 {item.kind === 'rejection' ? 'Submission Reviewed' : summarize(item.data)}
299 {item.kind === 'rejection'
300 ? 'Submission Reviewed'
301 : summarize(item.data)}
148302 </span>
149303 {#if item.pr}
150 <a class="pr-link" href={item.pr.url} target="_blank" rel="noreferrer">#{item.pr.number}</a>
304 <a
305 class="pr-link"
306 href={item.pr.url}
307 target="_blank"
308 rel="noreferrer">#{item.pr.number}</a
309 >
151310 {/if}
152311 </div>
153312
@@ -155,7 +314,12 @@
155314 {#if item.kind === 'rejection'}
156315 <div class="change">
157316 <span class="badge rej">Rejected</span>
158 <a class="svc-name" href={item.pr.url} target="_blank" rel="noreferrer">{item.data.title}</a>
317 <a
318 class="svc-name"
319 href={item.pr.url}
320 target="_blank"
321 rel="noreferrer">{item.data.title}</a
322 >
159323 <span class="path">Not merged</span>
160324 </div>
161325 {:else}
@@ -163,12 +327,19 @@
163327 <div class="change">
164328 <span class="badge {row.cls}">{row.badge}</span>
165329 {#if row.href}
166 <a class="svc-name" class:removed={row.cls === 'rem'} href={row.href}>{row.name}</a>
330 <a
331 class="svc-name"
332 class:removed={row.cls === 'rem'}
333 href={row.href}>{row.name}</a
334 >
167335 {:else}
168336 <strong>{row.name}</strong>
169337 {/if}
170 {#if row.fields}<span class="fields">updated {row.fields.join(', ')}</span>{/if}
171 {#if row.path && !row.fields}<span class="path">{row.path}</span>{/if}
338 {#if row.fields}<span class="fields"
339 >updated {row.fields.join(', ')}</span
340 >{/if}
341 {#if row.path && !row.fields}<span class="path">{row.path}</span
342 >{/if}
172343 </div>
173344 {/each}
174345 {/if}
@@ -179,14 +350,15 @@
179350{/each}
180351
181352<style lang="scss">
353 @use '../../styles/mixins' as *;
182354 .controls {
183 margin-bottom: 1rem;
355 margin-bottom: var(--space-md);
184356
185357 summary {
186358 cursor: pointer;
187359 width: fit-content;
188 font-family: 'Lekton', sans-serif;
189 opacity: 0.6;
360 font-family: var(--font-subtitle);
361 opacity: var(--opacity-muted);
190362 &:hover {
191363 opacity: 1;
192364 }
@@ -196,16 +368,16 @@
196368 display: flex;
197369 align-items: flex-end;
198370 justify-content: space-between;
199 gap: 1rem;
200 margin-top: 0.5rem;
371 gap: var(--space-md);
372 margin-top: var(--space-sm);
201373 }
202374
203375 .search {
204376 width: 200px;
205377 padding: 0.35rem 0.75rem;
206 border: 2px solid var(--box-outline);
378 border: var(--border-heavy);
207379 border-radius: var(--curve-lg);
208 box-shadow: 2px 2px 0 var(--box-outline);
380 box-shadow: var(--shadow-xs);
209381 background: var(--accent-fg);
210382 color: var(--foreground);
211383 &:focus {
@@ -214,7 +386,7 @@
214386 box-shadow: 2px 2px 0 var(--accent);
215387 }
216388 &::placeholder {
217 opacity: 0.5;
389 opacity: var(--opacity-dim);
218390 }
219391 }
220392
@@ -227,20 +399,20 @@
227399 .pill {
228400 display: flex;
229401 align-items: center;
230 gap: 0.25rem;
231 padding: 0.15rem 0.5rem;
402 gap: var(--space-xs);
403 padding: 0.15rem var(--space-sm);
232404 border: 1px solid transparent;
233405 border-radius: var(--curve-md);
234406 background: var(--background);
235407 color: var(--foreground);
236408 cursor: pointer;
237 font-family: 'Lekton', sans-serif;
238 font-size: 0.75rem;
239 opacity: 0.5;
240 transition: opacity 0.2s ease-in-out;
409 font-family: var(--font-subtitle);
410 font-size: var(--text-xs);
411 opacity: var(--opacity-dim);
412 transition: var(--transition-normal);
241413
242414 .icon {
243 font-size: 0.85rem;
415 font-size: var(--text-sm);
244416 line-height: 1;
245417 }
246418 &.active {
@@ -248,42 +420,58 @@
248420 border-color: currentColor;
249421 }
250422 &.added {
251 &.active { color: var(--changelog-add); }
252 &:hover { background: color-mix(in srgb, var(--changelog-add) 10%, transparent); }
423 &.active {
424 color: var(--changelog-add);
425 }
426 &:hover {
427 background: color-mix(in srgb, var(--changelog-add) 10%, transparent);
428 }
253429 }
254430 &.removed {
255 &.active { color: var(--changelog-rem); }
256 &:hover { background: color-mix(in srgb, var(--changelog-rem) 10%, transparent); }
431 &.active {
432 color: var(--changelog-rem);
433 }
434 &:hover {
435 background: color-mix(in srgb, var(--changelog-rem) 10%, transparent);
436 }
257437 }
258438 &.modified {
259 &.active { color: var(--changelog-mod); }
260 &:hover { background: color-mix(in srgb, var(--changelog-mod) 10%, transparent); }
439 &.active {
440 color: var(--changelog-mod);
441 }
442 &:hover {
443 background: color-mix(in srgb, var(--changelog-mod) 10%, transparent);
444 }
261445 }
262446 &.rejected {
263 &.active { color: var(--changelog-rej); }
264 &:hover { background: color-mix(in srgb, var(--changelog-rej) 10%, transparent); }
447 &.active {
448 color: var(--changelog-rej);
449 }
450 &:hover {
451 background: color-mix(in srgb, var(--changelog-rej) 10%, transparent);
452 }
265453 }
266454 }
267455 }
268456
269457 .empty {
270458 text-align: center;
271 opacity: 0.6;
272 margin: 2rem 0;
459 opacity: var(--opacity-muted);
460 margin: var(--space-lg) 0;
273461 }
274462
275463 .month-header {
276 font-size: 1.3rem;
277 margin: 1.5rem 0 0.5rem 0;
464 font-size: var(--text-lg);
465 margin: 1.5rem 0 var(--space-sm) 0;
278466 padding-bottom: 0.3rem;
279467 border-bottom: 1px solid var(--accent-3);
280468 color: var(--accent-3);
281 font-family: 'Lekton', sans-serif;
469 font-family: var(--font-subtitle);
282470 }
283471
284472 .entry {
285473 display: flex;
286 gap: 1rem;
474 gap: var(--space-md);
287475 padding: 0.6rem 0;
288476 border-bottom: 1px solid rgba(255, 255, 255, 0.05);
289477 &:last-child {
@@ -294,7 +482,7 @@
294482 min-width: 7rem;
295483 opacity: 0.75;
296484 padding-top: 0.15rem;
297 font-family: 'Lekton', sans-serif;
485 font-family: var(--font-subtitle);
298486 }
299487
300488 .entry-body {
@@ -309,8 +497,8 @@
309497 gap: 0.4rem;
310498 flex-wrap: wrap;
311499 margin-bottom: 0.3rem;
312 font-size: 0.85rem;
313 opacity: 0.8;
500 font-size: var(--text-sm);
501 opacity: var(--opacity-subtle);
314502 .author a {
315503 color: var(--foreground);
316504 &:hover {
@@ -326,7 +514,7 @@
326514 background: var(--accent-3);
327515 color: var(--foreground);
328516 text-decoration: none;
329 font-family: 'Lekton', sans-serif;
517 font-family: var(--font-subtitle);
330518 &:hover {
331519 opacity: 0.85;
332520 }
@@ -346,12 +534,7 @@
346534 }
347535
348536 .badge {
349 font-size: 0.8rem;
350 padding: 0.05rem 0.35rem;
351 border-radius: var(--curve-sm);
352 font-family: 'Lekton', sans-serif;
353 text-transform: uppercase;
354 font-weight: bold;
537 @include changelog-badge;
355538 &.add {
356539 background: color-mix(in srgb, var(--changelog-add) 33%, transparent);
357540 color: var(--changelog-add);
@@ -382,14 +565,14 @@
382565
383566 .path,
384567 .fields {
385 font-size: 0.8rem;
386 opacity: 0.6;
568 font-size: var(--text-sm);
569 opacity: var(--opacity-muted);
387570 }
388571 .fields {
389572 font-style: italic;
390573 }
391574
392 @media (max-width: 600px) {
575 @media (max-width: 768px) {
393576 .entry {
394577 flex-direction: column;
395578 gap: 0.2rem;
web/src/components/things/DataActions.svelte +78 −35
@@ -52,17 +52,36 @@
5252 {#each history as h (h.date + h.type)}
5353 <li>
5454 <span class="history-badge {h.type}">
55 {h.type === 'added' ? 'Added' : h.type === 'removed' ? 'Removed' : 'Amended'}
55 {h.type === 'added'
56 ? 'Added'
57 : h.type === 'removed'
58 ? 'Removed'
59 : 'Amended'}
5660 </span>
57 <time>{new Date(h.date + 'T00:00:00Z').toLocaleDateString('en-US', { month: 'short', day: 'numeric', year: 'numeric', timeZone: 'UTC' })}</time>
58 {#if h.fields}<span class="history-fields">({h.fields.join(', ')})</span>{/if}
61 <time
62 >{new Date(h.date + 'T00:00:00Z').toLocaleDateString('en-US', {
63 month: 'short',
64 day: 'numeric',
65 year: 'numeric',
66 timeZone: 'UTC',
67 })}</time
68 >
69 {#if h.fields}<span class="history-fields">({h.fields.join(', ')})</span
70 >{/if}
5971 {#if h.pr?.author}
60 <span class="history-author">by
61 <a href={`https://github.com/${h.pr.author}`} target="_blank" rel="noreferrer">@{h.pr.author}</a>
72 <span class="history-author"
73 >by
74 <a
75 href={`https://github.com/${h.pr.author}`}
76 target="_blank"
77 rel="noreferrer">@{h.pr.author}</a
78 >
6279 </span>
6380 {/if}
6481 {#if h.pr}
65 <a class="history-pr" href={h.pr.url} target="_blank" rel="noreferrer">#{h.pr.number}</a>
82 <a class="history-pr" href={h.pr.url} target="_blank" rel="noreferrer"
83 >#{h.pr.number}</a
84 >
6685 {/if}
6786 </li>
6887 {/each}
@@ -120,37 +139,38 @@
120139{/if}
121140
122141<style lang="scss">
142 @use '../../styles/mixins' as *;
123143 h4 {
124 font-size: 1.4rem;
144 font-size: var(--text-lg);
125145 margin-bottom: 0;
126146 }
127147 p {
128 margin: 0.25rem 0 0.5rem 0;
148 margin: var(--space-xs) 0 var(--space-sm) 0;
129149 }
130150
131151 .button-wrap {
132152 display: flex;
133 gap: 1rem;
153 gap: var(--space-md);
134154 justify-content: center;
135 margin: 1rem auto;
155 margin: var(--space-md) auto;
136156 @media (max-width: 768px) {
137157 flex-direction: column;
138158 }
139159 }
140160 .button-link {
141161 background: var(--accent-3);
142 border: 1px solid var(--box-outline);
143 box-shadow: 3px 3px 0 var(--box-outline);
162 border: var(--border-light);
163 box-shadow: var(--shadow-sm);
144164 color: var(--accent-fg);
145165 text-decoration: none;
146 border-radius: 18px;
147 padding: 0.5rem 1rem;
166 border-radius: var(--curve-pill);
167 padding: var(--space-sm) var(--space-md);
148168 font-weight: bold;
149169 min-width: 15rem;
150170 display: inline-block;
151171 text-align: center;
152 font-family: 'Lekton', sans-serif;
153 font-size: 1.2rem;
172 font-family: var(--font-subtitle);
173 font-size: var(--text-md);
154174 :global(svg) {
155175 width: 1rem;
156176 height: 1rem;
@@ -160,7 +180,7 @@
160180 .history {
161181 list-style: none;
162182 padding: 0;
163 margin: 0.5rem 0 1rem 0;
183 margin: var(--space-sm) 0 var(--space-md) 0;
164184 li {
165185 display: flex;
166186 align-items: baseline;
@@ -169,35 +189,58 @@
169189 padding: 0.3rem 0;
170190 font-size: 0.95rem;
171191 border-bottom: 1px solid rgba(255, 255, 255, 0.05);
172 &:last-child { border-bottom: none; }
192 &:last-child {
193 border-bottom: none;
194 }
195 }
196 time {
197 opacity: var(--opacity-muted);
198 font-family: var(--font-subtitle);
199 font-size: var(--text-sm);
173200 }
174 time { opacity: 0.6; font-family: 'Lekton', sans-serif; font-size: 0.85rem; }
175201 }
176202 .history-badge {
177 font-size: 0.7rem;
178 padding: 0.05rem 0.35rem;
179 border-radius: var(--curve-sm);
180 font-family: 'Lekton', sans-serif;
181 text-transform: uppercase;
182 font-weight: bold;
183 &.added { background: color-mix(in srgb, var(--changelog-add) 33%, transparent); color: var(--changelog-add); }
184 &.removed { background: color-mix(in srgb, var(--changelog-rem) 33%, transparent); color: var(--changelog-rem); }
185 &.modified { background: color-mix(in srgb, var(--changelog-mod) 33%, transparent); color: var(--changelog-mod); }
203 @include changelog-badge;
204 font-size: var(--text-xs);
205 &.added {
206 background: color-mix(in srgb, var(--changelog-add) 33%, transparent);
207 color: var(--changelog-add);
208 }
209 &.removed {
210 background: color-mix(in srgb, var(--changelog-rem) 33%, transparent);
211 color: var(--changelog-rem);
212 }
213 &.modified {
214 background: color-mix(in srgb, var(--changelog-mod) 33%, transparent);
215 color: var(--changelog-mod);
216 }
217 }
218 .history-fields {
219 font-size: var(--text-sm);
220 opacity: var(--opacity-dim);
221 font-style: italic;
186222 }
187 .history-fields { font-size: 0.8rem; opacity: 0.5; font-style: italic; }
188223 .history-author {
189 font-size: 0.85rem; opacity: 0.7;
190 a { color: var(--foreground); &:hover { color: var(--accent); } }
224 font-size: var(--text-sm);
225 opacity: var(--opacity-soft);
226 a {
227 color: var(--foreground);
228 &:hover {
229 color: var(--accent);
230 }
231 }
191232 }
192233 .history-pr {
193 font-size: 0.75rem;
234 font-size: var(--text-xs);
194235 padding: 0.05rem 0.3rem;
195236 border-radius: var(--curve-sm);
196237 background: var(--accent-3);
197238 color: var(--accent-fg);
198239 text-decoration: none;
199 font-family: 'Lekton', sans-serif;
200 &:hover { opacity: 0.85; }
240 font-family: var(--font-subtitle);
241 &:hover {
242 opacity: 0.85;
243 }
201244 }
202245
203246 .yaml-embed {
@@ -206,7 +249,7 @@
206249 border: 1px solid var(--accent-3);
207250 border-radius: var(--curve-lg);
208251 padding: 0;
209 margin: 1rem auto;
252 margin: var(--space-md) auto;
210253 box-shadow: 3px 3px 0 var(--accent-3);
211254 }
212255</style>
web/src/components/things/DeleteListing.svelte +3 −3
@@ -54,14 +54,14 @@
5454 right: 3.5rem;
5555 top: 1rem;
5656 width: 2.8rem;
57 gap: 1rem;
57 gap: var(--space-md);
5858 opacity: 0;
5959 display: flex;
60 transition: all 0.2s ease-in-out;
60 transition: var(--transition-normal);
6161 a {
6262 color: var(--foreground);
6363 width: 1rem;
64 transition: all 0.2s ease-in-out;
64 transition: var(--transition-normal);
6565 &:hover {
6666 color: var(--accent-3);
6767 opacity: 1;
web/src/components/things/DiscordDetailedInfo.astro +12 −37
@@ -50,53 +50,28 @@ const { discordData } = Astro.props;
5050</div>
5151
5252<style lang="scss">
53 @use '../../styles/mixins' as *;
5354 .discord-info-wrapper {
5455 display: flex;
5556 flex-direction: column;
5657 max-width: 400px;
5758 }
5859
60 @include detail-info-base;
61
5962 h3 {
6063 margin: 0;
61 font-size: 1.6rem;
62 }
63
64 h4 {
65 margin: 1rem 0 0 0;
66 font-size: 1.2rem;
64 font-size: var(--text-xl);
6765 }
6866
6967 ul {
70 padding-left: 0;
71 list-style: none;
72 max-height: 300px;
73 overflow-y: auto;
74 overflow-x: hidden;
75 img {
76 border-radius: var(--curve-sm);
77 }
78 .list-item {
79 display: flex;
80 flex-direction: column;
81 margin-bottom: 0.5rem;
82 }
83 &.list-table {
84 font-size: 0.9rem;
85 padding-left: 0;
86 li {
87 display: flex;
88 justify-content: space-between;
89 padding: 0.1rem 0;
90 .lbl {
91 font-weight: 400;
92 }
93 .val {
94 img {
95 margin-right: 0.5rem;
96 }
97 }
98 &:not(:last-child) {
99 border-bottom: 1px solid #5f53f440;
68 &.list-table li {
69 .lbl {
70 font-weight: 400;
71 }
72 .val {
73 img {
74 margin-right: var(--space-sm);
10075 }
10176 }
10277 }
@@ -104,7 +79,7 @@ const { discordData } = Astro.props;
10479
10580 .banner {
10681 width: 80%;
107 margin: 1rem auto 0 auto;
82 margin: var(--space-md) auto 0 auto;
10883 display: flex;
10984 border-radius: var(--curve-md);
11085 }
web/src/components/things/DockerDetailedInfo.astro +15 −39
@@ -136,28 +136,23 @@ const formatBigNumber = (num: number): string => {
136136</div>
137137
138138<style lang="scss">
139 @use '../../styles/mixins' as *;
139140 .docker-info-wrap {
140 display: flex;
141 flex-wrap: wrap;
142 justify-content: space-between;
143 .left, .right {
144 width: 50%;
145 @media (max-width: 768px) {
146 width: 100%;
147 }
148 }
141 @include detail-info-layout;
149142 }
150143
144 @include detail-info-base;
145
151146 .left {
152147 .dockerhub-title, .dockerhub-description {
153 font-size: 0.9rem;
154 opacity: 0.8;
148 font-size: var(--text-sm);
149 opacity: var(--opacity-subtle);
155150 display: -webkit-box;
156151 -webkit-line-clamp: 1;
157 -webkit-box-orient: vertical;
152 -webkit-box-orient: vertical;
158153 overflow: hidden;
159154 border-left: 2px solid var(--accent-3);
160 padding-left: 0.5rem;
155 padding-left: var(--space-sm);
161156 }
162157 .dockerhub-title {
163158 font-weight: 500;
@@ -184,50 +179,31 @@ const formatBigNumber = (num: number): string => {
184179 }
185180 }
186181
187 h4 {
188 margin: 1rem 0 0 0;
189 font-size: 1.2rem;
190 }
191 p {
192 margin: 0;
193 display: flex;
194 align-items: center;
195 gap: 0.25rem;
196 :global(svg) {
197 width: 1rem;
198 }
199 img {
200 border-radius: var(--curve-sm);
201 }
202 }
203182 .tags {
204183 display: flex;
205184 flex-wrap: wrap;
206185 .tag {
207186 margin: 0.1rem;
208 background: #5f53f440;
187 background: var(--accent-3-translucent);
209188 border-radius: var(--curve-sm);
210189 padding: 0.05rem 0.2rem;
211 font-size: 0.8rem;
212 opacity: 0.8;
190 font-size: var(--text-sm);
191 opacity: var(--opacity-subtle);
213192 }
214193 }
215194 ul {
216 padding-left: 1rem;
195 padding-left: var(--space-md);
217196 list-style: circle;
218197 max-height: 400px;
219198 overflow: auto;
220 img {
221 border-radius: var(--curve-sm);
222 }
223199 }
224200
225201 pre {
226 font-family: 'Courier New', Courier, monospace;
202 font-family: var(--font-code);
227203 background: var(--background-form);
228 padding: 0.6rem 1rem;
204 padding: 0.6rem var(--space-md);
229205 border-radius: var(--curve-sm);
230 font-size: 0.8rem;
206 font-size: var(--text-sm);
231207 overflow-x: auto;
232208 }
233209</style>
web/src/components/things/GetSharableLink.svelte +7 −7
@@ -61,24 +61,24 @@
6161 }
6262 .save-button {
6363 background: var(--accent-3);
64 border: 1px solid var(--box-outline);
65 box-shadow: 3px 3px 0 var(--box-outline);
66 padding: 0.25rem 0.5rem;
64 border: var(--border-light);
65 box-shadow: var(--shadow-sm);
66 padding: var(--space-xs) var(--space-sm);
6767 border-radius: var(--curve-sm);
6868 color: var(--foreground);
69 font-family: Lekton;
70 font-size: 1.2rem;
69 font-family: var(--font-subtitle);
70 font-size: var(--text-md);
7171 cursor: pointer;
7272 }
7373 .success-msg {
74 font-size: 1rem;
74 font-size: var(--text-base);
7575 color: var(--success);
7676 a {
7777 color: var(--success);
7878 }
7979 }
8080 .error-msg {
81 font-size: 1rem;
81 font-size: var(--text-base);
8282 color: var(--danger);
8383 }
8484</style>
web/src/components/things/GitHubDetailedInfo.astro +13 −37
@@ -212,16 +212,9 @@ const languageChart = `https://quickchart.io/chart?c=${generateChartData(gitHubD
212212</div>
213213
214214<style lang="scss">
215 @use '../../styles/mixins' as *;
215216 .gh-info-wrap {
216 display: flex;
217 flex-wrap: wrap;
218 justify-content: space-between;
219 .left, .right {
220 width: 50%;
221 @media (max-width: 768px) {
222 width: 100%;
223 }
224 }
217 @include detail-info-layout;
225218 .long-list-data {
226219 width: 100%;
227220 display: flex;
@@ -229,57 +222,40 @@ const languageChart = `https://quickchart.io/chart?c=${generateChartData(gitHubD
229222 justify-content: space-between;
230223 .list-wrap {
231224 .date {
232 font-size: 0.8rem;
233 opacity: 0.6;
225 font-size: var(--text-sm);
226 opacity: var(--opacity-muted);
234227 }
235228 .commit-msg {
236 font-size: 0.8rem;
237 opacity: 0.8;
229 font-size: var(--text-sm);
230 opacity: var(--opacity-subtle);
238231 display: -webkit-box;
239232 -webkit-line-clamp: 2;
240 -webkit-box-orient: vertical;
233 -webkit-box-orient: vertical;
241234 overflow: hidden;
242235 }
243236 }
244237 }
245238 }
246239
247 h4 {
248 margin: 1rem 0 0 0;
249 font-size: 1.2rem;
250 }
251 p {
252 margin: 0;
253 display: flex;
254 align-items: center;
255 gap: 0.25rem;
256 :global(svg) {
257 width: 1rem;
258 }
259 img {
260 border-radius: var(--curve-sm);
261 }
262 }
240 @include detail-info-base;
241
263242 .tags {
264243 display: flex;
265244 flex-wrap: wrap;
266245 .tag {
267246 margin: 0.1rem;
268 background: #5f53f440;
247 background: var(--accent-3-translucent);
269248 border-radius: var(--curve-sm);
270249 padding: 0.05rem 0.2rem;
271 font-size: 0.8rem;
272 opacity: 0.8;
250 font-size: var(--text-sm);
251 opacity: var(--opacity-subtle);
273252 }
274253 }
275254 ul {
276 padding-left: 1rem;
255 padding-left: var(--space-md);
277256 list-style: circle;
278257 max-height: 400px;
279258 overflow: auto;
280 img {
281 border-radius: var(--curve-sm);
282 }
283259 }
284260 .languages-img {
285261 width: 100%;
web/src/components/things/IosAppDetailedInfo.astro +19 −68
@@ -127,76 +127,27 @@ const putCommaInNumber = (num: number | string | undefined) => {
127127
128128
129129<style lang="scss">
130@use '../../styles/mixins' as *;
130131.website-info-wrapper {
131 display: flex;
132 flex-wrap: wrap;
133 justify-content: space-between;
134 gap: 1rem;
135 .left, .right {
136 width: calc(50% - 1rem);
137 @media screen and (max-width: 768px){
138 width: 100%;
139 }
140 }
132 @include detail-info-layout;
141133}
142134
143h4 {
144 margin: 1rem 0 0 0;
145 font-size: 1.2rem;
146}
147p {
148 margin: 0;
149 display: flex;
150 align-items: center;
151 gap: 0.25rem;
152 :global(svg) {
153 width: 1rem;
154 }
155 img {
156 border-radius: var(--curve-sm);
157 }
158}
135@include detail-info-base;
159136
160137ul {
161 padding-left: 0;
162 list-style: none;
163 max-height: 300px;
164 overflow-y: auto;
165 overflow-x: hidden;
166 img {
167 border-radius: var(--curve-sm);
168 }
169 .list-item {
170 display: flex;
171 flex-direction: column;
172 margin-bottom: 0.5rem;
173 }
174 &.list-table {
175 font-size: 0.9rem;
176 padding-left: 0;
177 li {
178 display: flex;
179 justify-content: space-between;
180 padding: 0.1rem 0;
181 .lbl {
182 font-weight: 400;
183 }
184 &:not(:last-child) {
185 border-bottom: 1px solid #5f53f440;
186 }
138 &.list-table li {
139 .lbl {
140 font-weight: 400;
187141 }
188142 }
189143}
190144
191145.website-title, .website-description {
192 font-size: 0.9rem;
193 opacity: 0.8;
194 display: -webkit-box;
195 -webkit-line-clamp: 1;
196 -webkit-box-orient: vertical;
197 overflow: hidden;
146 font-size: var(--text-sm);
147 opacity: var(--opacity-subtle);
148 @include line-clamp(1);
198149 border-left: 2px solid var(--accent-3);
199 padding-left: 0.5rem;
150 padding-left: var(--space-sm);
200151}
201152.website-title {
202153 font-weight: 500;
@@ -206,17 +157,17 @@ ul {
206157 -webkit-line-clamp: 3;
207158}
208159.explainer {
209 font-size: 0.8rem;
210 opacity: 0.8;
160 font-size: var(--text-sm);
161 opacity: var(--opacity-subtle);
211162 font-style: italic;
212163}
213164
214165.star-rating {
215166 position: relative;
216167 display: inline-block;
217 margin: 1rem 0;
168 margin: var(--space-md) 0;
218169 :global(svg) {
219 font-size: 2rem;
170 font-size: var(--text-3xl);
220171 gap: 0;
221172 margin: 0;
222173 padding: 0;
@@ -224,7 +175,7 @@ ul {
224175 .back-stars {
225176 display: flex;
226177 :global(svg) {
227 color: #ddddd8;
178 color: var(--foreground);
228179 }
229180 .front-stars {
230181 position: absolute;
@@ -235,21 +186,21 @@ ul {
235186 width: 0;
236187 display: flex;
237188 :global(svg) {
238 color: #e8e800;
189 color: var(--rating-neutral);
239190 }
240191 }
241192 }
242193}
243194
244195.rating-description {
245 font-size: 0.8rem;
246 opacity: 0.8;
196 font-size: var(--text-sm);
197 opacity: var(--opacity-subtle);
247198 font-style: italic;
248199}
249200
250201.screenshots {
251202 display: flex;
252 gap: 0.5rem;
203 gap: var(--space-sm);
253204 overflow-x: auto;
254205}
255206
web/src/components/things/ItemGitHubMetrics.astro +9 −9
@@ -124,25 +124,25 @@ const {
124124.github-metrics {
125125 display: flex;
126126 align-items: center;
127 gap: 1rem;
128 font-size: 0.9rem;
129 opacity: 0.6;
127 gap: var(--space-md);
128 font-size: var(--text-sm);
129 opacity: var(--opacity-muted);
130130 flex-wrap: wrap;
131131 span {
132132 display: flex;
133133 align-items: center;
134134 justify-content: center;
135135 color: var(--foreground);
136 gap: 0.25rem;
137 padding: 0.5rem 0;
136 gap: var(--space-xs);
137 padding: var(--space-sm) 0;
138138
139139 a {
140140 color: var(--foreground);
141141 text-decoration: none;
142142 align-items: center;
143143 display: flex;
144 gap: 0.25rem;
145 transition: all 0.2s ease-in-out;
144 gap: var(--space-xs);
145 transition: var(--transition-normal);
146146 color: var(--accent-3);
147147 &:hover {
148148 color: var(--accent-3);
@@ -156,8 +156,8 @@ const {
156156 }
157157 :global(svg) {
158158 color: var(--foregroung);
159 width: 1.1rem;
160 height: 1.1rem;
159 width: var(--text-md);
160 height: var(--text-md);
161161 }
162162}
163163</style>
web/src/components/things/PrivacyPolicyDetails.astro +25 −25
@@ -98,7 +98,7 @@ const removeDuplicates = () => {
9898 display: flex;
9999 flex-wrap: wrap;
100100 justify-content: space-between;
101 gap: 1rem;
101 gap: var(--space-md);
102102 .left, .right {
103103 width: calc(50% - 1rem);
104104 @media screen and (max-width: 768px){
@@ -108,16 +108,16 @@ const removeDuplicates = () => {
108108}
109109
110110h4 {
111 margin: 1rem 0 0 0;
112 font-size: 1.2rem;
111 margin: var(--space-md) 0 0 0;
112 font-size: var(--text-md);
113113 }
114114 p {
115115 margin: 0;
116116 display: flex;
117117 align-items: center;
118 gap: 0.25rem;
118 gap: var(--space-xs);
119119 :global(svg) {
120 width: 1rem;
120 width: var(--text-base);
121121 }
122122 img {
123123 border-radius: var(--curve-sm);
@@ -125,17 +125,17 @@ h4 {
125125 }
126126 li {
127127 :global(svg) {
128 width: 1rem;
128 width: var(--text-base);
129129 margin-right: 0.2rem;
130130 }
131131 &.clasification {
132 &.good :global(svg) { color: #35b969; }
133 &.neutral :global(svg) { color: #ecd40f; }
134 &.bad :global(svg) { color: #e3154f; }
132 &.good :global(svg) { color: var(--rating-a); }
133 &.neutral :global(svg) { color: var(--rating-neutral); }
134 &.bad :global(svg) { color: var(--rating-g); }
135135 }
136136 }
137137 ul {
138 padding-left: 1rem;
138 padding-left: var(--space-md);
139139 list-style: circle;
140140 max-height: 700px;
141141 overflow-y: auto;
@@ -146,42 +146,42 @@ h4 {
146146 .list-item {
147147 display: flex;
148148 flex-direction: column;
149 margin-bottom: 0.5rem;
149 margin-bottom: var(--space-sm);
150150 .date-block {
151
152 font-size: 0.8rem;
153 opacity: 0.7;
151
152 font-size: var(--text-sm);
153 opacity: var(--opacity-soft);
154154 }
155155 }
156156 &.no-point {
157157 list-style: none;
158 padding-left: 0.25rem;
158 padding-left: var(--space-xs);
159159 }
160160 }
161161
162162 .rating {
163163 font-size: 4rem;
164164 width: fit-content;
165 padding: 0.5rem 1.5rem;
165 padding: var(--space-sm) 1.5rem;
166166 border-radius: var(--curve-lg);
167167 border: 4px solid;
168168 margin: 0 auto;
169169 font-weight: bold;
170170
171 &.rating-A { --rating-color: #35b969; }
172 &.rating-B { --rating-color: #6bb935; }
173 &.rating-C { --rating-color: #c7cc22; }
174 &.rating-D { --rating-color: #e1bb23; }
175 &.rating-E { --rating-color: #df8b1e; }
176 &.rating-F { --rating-color: #df541e; }
177 &.rating-G { --rating-color: #df1e1e; }
171 &.rating-A { --rating-color: var(--rating-a); }
172 &.rating-B { --rating-color: var(--rating-b); }
173 &.rating-C { --rating-color: var(--rating-c); }
174 &.rating-D { --rating-color: var(--rating-d); }
175 &.rating-E { --rating-color: var(--rating-e); }
176 &.rating-F { --rating-color: var(--rating-f); }
177 &.rating-G { --rating-color: var(--rating-g); }
178178 color: var(--rating-color);
179179 border-color: var(--rating-color);
180180 }
181181
182182 .about-tosdr {
183183 display: inline;
184 font-size: 0.8rem;
185 opacity: 0.7;
184 font-size: var(--text-sm);
185 opacity: var(--opacity-soft);
186186 }
187187</style>
web/src/components/things/RedditDetailedInfo.astro +19 −66
@@ -73,83 +73,36 @@ const { redditData } = Astro.props;
7373</div>
7474
7575<style lang="scss">
76 @use '../../styles/mixins' as *;
7677 .reddit-info-wrapper {
77 display: flex;
78 flex-wrap: wrap;
79 justify-content: space-between;
80 gap: 1rem;
81 .left,
82 .right {
83 width: calc(50% - 1rem);
84 @media screen and (max-width: 768px) {
85 width: 100%;
86 }
87 }
78 @include detail-info-layout;
8879 }
8980
81 @include detail-info-base;
82
9083 .banner {
91 margin: 0.5rem auto;
84 margin: var(--space-sm) auto;
9285 border-radius: var(--curve-md);
9386 width: 100%;
9487 }
9588
9689 h3 {
97 margin: 0 0 1rem 0;
98 font-size: 1.6rem;
99 }
100
101 h4 {
102 margin: 1rem 0 0 0;
103 font-size: 1.2rem;
104 }
105 p {
106 margin: 0;
107 display: flex;
108 align-items: center;
109 gap: 0.25rem;
110 :global(svg) {
111 width: 1rem;
112 }
113 img {
114 border-radius: var(--curve-sm);
115 }
90 margin: 0 0 var(--space-md) 0;
91 font-size: var(--text-xl);
11692 }
11793
11894 ul {
119 padding-left: 0;
120 list-style: none;
121 max-height: 300px;
122 overflow-y: auto;
123 overflow-x: hidden;
124 img {
125 border-radius: var(--curve-sm);
126 }
127 .list-item {
128 display: flex;
129 flex-direction: column;
130 margin-bottom: 0.5rem;
131 }
132 &.list-table {
133 font-size: 0.9rem;
134 padding-left: 0;
135 li {
136 display: flex;
137 justify-content: space-between;
138 padding: 0.1rem 0;
139 .lbl {
140 font-weight: 400;
141 }
142 &:not(:last-child) {
143 border-bottom: 1px solid #5f53f440;
144 }
95 &.list-table li {
96 .lbl {
97 font-weight: 400;
14598 }
14699 }
147100 }
148101
149102 .posts {
150103 list-style: circle;
151 padding-left: 1rem;
152 font-size: 0.9rem;
104 padding-left: var(--space-md);
105 font-size: var(--text-sm);
153106 li {
154107 display: -webkit-box;
155108 -webkit-line-clamp: 1;
@@ -159,22 +112,22 @@ const { redditData } = Astro.props;
159112 max-width: 80%;
160113 }
161114 .votes {
162 font-size: 0.8rem;
163 opacity: 0.5;
115 font-size: var(--text-sm);
116 opacity: var(--opacity-dim);
164117 }
165118 }
166119 }
167120
168121 .website-title,
169122 .website-description {
170 font-size: 0.9rem;
171 opacity: 0.8;
123 font-size: var(--text-sm);
124 opacity: var(--opacity-subtle);
172125 display: -webkit-box;
173126 -webkit-line-clamp: 1;
174127 -webkit-box-orient: vertical;
175128 overflow: hidden;
176129 border-left: 2px solid var(--accent-3);
177 padding-left: 0.5rem;
130 padding-left: var(--space-sm);
178131 }
179132 .website-title {
180133 font-weight: 500;
@@ -184,8 +137,8 @@ const { redditData } = Astro.props;
184137 -webkit-line-clamp: 3;
185138 }
186139 .explainer {
187 font-size: 0.8rem;
188 opacity: 0.8;
140 font-size: var(--text-sm);
141 opacity: var(--opacity-subtle);
189142 font-style: italic;
190143 }
191144</style>
web/src/components/things/SaveListing.svelte +13 −13
@@ -58,28 +58,28 @@
5858 .wrapper-or-something {
5959 display: flex;
6060 flex-direction: row-reverse;
61 gap: 0.25rem;
61 gap: var(--space-xs);
6262 }
6363 .save-container {
6464 cursor: pointer;
6565 background: none;
6666 border: none;
6767 display: flex;
68 gap: 0.5rem;
68 gap: var(--space-sm);
6969 align-items: center;
70 transition: all 0.2s ease-in-out;
70 transition: var(--transition-normal);
7171 span {
72 font-size: 1.2rem;
73 opacity: 0.8;
72 font-size: var(--text-md);
73 opacity: var(--opacity-subtle);
7474 color: var(--foreground);
75 font-family: 'Lekton';
75 font-family: var(--font-subtitle);
7676 }
7777 :global(svg) {
7878 color: var(--foreground);
7979 width: 1.2rem;
8080 height: 1.2rem;
81 opacity: 0.5;
82 transition: all 0.2s ease-in-out;
81 opacity: var(--opacity-dim);
82 transition: var(--transition-normal);
8383 }
8484 &:hover {
8585 :global(svg) {
@@ -96,20 +96,20 @@
9696 &.label-button {
9797 padding: 0.2rem 0.4rem;
9898 border-radius: var(--curve-sm);
99 box-shadow: 3px 3px 0 var(--box-outline);
100 border: 1px solid var(--box-outline);
99 box-shadow: var(--shadow-sm);
100 border: var(--border-light);
101101 background: var(--background-form);
102102
103103 &:hover {
104 box-shadow: 4px 4px 0 var(--box-outline);
104 box-shadow: var(--shadow-sm-hover);
105105 }
106106 }
107107 }
108108
109109 .done-msg {
110110 max-width: 165px;
111 font-size: 0.8rem;
112 opacity: 0.6;
111 font-size: var(--text-sm);
112 opacity: var(--opacity-muted);
113113 @media (max-width: 768px) {
114114 display: none;
115115 }
web/src/components/things/SavedServices.svelte +6 −6
@@ -75,8 +75,8 @@
7575 .saved-services {
7676 display: grid;
7777 grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
78 gap: 1rem;
79 margin-top: 1rem;
78 gap: var(--space-md);
79 margin-top: var(--space-md);
8080 }
8181
8282 .nothing-yet {
@@ -85,14 +85,14 @@
8585 margin: 0;
8686 }
8787 small {
88 font-size: 0.8rem;
89 opacity: 0.6;
88 font-size: var(--text-sm);
89 opacity: var(--opacity-muted);
9090 }
9191 .nope {
9292 font-weight: bold;
93 margin: 2rem 0;
93 margin: var(--space-lg) 0;
9494 opacity: 0.2;
95 font-size: 1.6rem;
95 font-size: var(--text-xl);
9696 }
9797 }
9898</style>
web/src/components/things/Search.svelte +15 −16
@@ -136,28 +136,27 @@
136136 display: flex;
137137 flex-direction: column;
138138 position: relative;
139 margin: 1rem auto;
140139 max-width: 900px;
141140 margin: 0 auto;
142141 width: 80vw;
143142 label {
144 margin: 0.5rem 0;
143 margin: var(--space-sm) 0;
145144 display: flex;
146145 justify-content: space-between;
147146 align-items: center;
148147 flex-wrap: wrap;
149148 .enter-hint {
150 font-size: 0.8rem;
151 opacity: 0.7;
149 font-size: var(--text-sm);
150 opacity: var(--opacity-soft);
152151 }
153152 }
154153
155154 input {
156 padding: 0.5rem 1rem;
157 font-size: 1.8rem;
158 border: 2px solid var(--box-outline);
155 padding: var(--space-sm) var(--space-md);
156 font-size: var(--text-2xl);
157 border: var(--border-heavy);
159158 border-radius: var(--curve-lg);
160 box-shadow: 3px 3px 0 var(--box-outline);
159 box-shadow: var(--shadow-sm);
161160 z-index: 4;
162161 background: var(--accent-fg);
163162 color: var(--foreground);
@@ -178,16 +177,16 @@
178177 list-style: none;
179178 padding: 0;
180179 margin: 0;
181 border: 2px solid var(--box-outline);
180 border: var(--border-heavy);
182181 border-radius: 0 0 var(--curve-lg) var(--curve-lg);
183 box-shadow: 3px 3px 0 var(--box-outline);
182 box-shadow: var(--shadow-sm);
184183 transform: translateY(-0.5rem);
185184 max-height: 500px;
186185 overflow-y: scroll;
187186 background: var(--background-form);
188187 li.result-row {
189 padding: 0.5rem 1rem;
190 margin: 0.5rem 0;
188 padding: var(--space-sm) var(--space-md);
189 margin: var(--space-sm) 0;
191190 a {
192191 color: var(--foreground);
193192 text-decoration: none;
@@ -197,7 +196,7 @@
197196 .name {
198197 display: flex;
199198 align-items: center;
200 gap: 0.5rem;
199 gap: var(--space-sm);
201200 i {
202201 color: var(--accent);
203202 font-weight: bold;
@@ -210,13 +209,13 @@
210209 font-size: 10px;
211210 color: var(--accent);
212211 overflow: hidden;
213 background: #f453974d;
212 background: var(--accent-translucent);
214213 padding: 1px;
215214 }
216215 }
217216 .path {
218 font-size: 0.85rem;
219 opacity: 0.7;
217 font-size: var(--text-sm);
218 opacity: var(--opacity-soft);
220219 }
221220 }
222221 &:hover {
web/src/components/things/SectionList.astro +17 −53
@@ -52,6 +52,7 @@ const { title, sections, bigTitle } = Astro.props;
5252</div>
5353
5454<style lang="scss">
55 @use '../../styles/mixins' as *;
5556 .wrap {
5657 position: relative;
5758 &:hover {
@@ -63,18 +64,18 @@ const { title, sections, bigTitle } = Astro.props;
6364 }
6465
6566 h2 {
66 font-family: 'Lekton', sans-serif;
67 font-size: 2rem;
68 margin: -2rem 0 2rem -2rem;
69 box-shadow: 6px 6px 0 var(--box-outline);
70 border: 2px solid var(--box-outline);
67 font-family: var(--font-subtitle);
68 font-size: var(--text-3xl);
69 margin: -2rem 0 var(--space-lg) -2rem;
70 box-shadow: var(--shadow-lg);
71 border: var(--border-heavy);
7172 background: var(--accent);
7273 color: var(--accent-fg);
7374 width: fit-content;
74 padding: 0.25rem 0.5rem;
75 padding: var(--space-xs) var(--space-sm);
7576 display: flex;
7677 justify-content: center;
77 gap: 1rem;
78 gap: var(--space-md);
7879 :global(svg) {
7980 width: 2rem;
8081 height: 2rem;
@@ -88,61 +89,24 @@ const { title, sections, bigTitle } = Astro.props;
8889 z-index: 2;
8990 position: relative;
9091 h3 {
91 font-family: 'Lekton', sans-serif;
92 font-family: var(--font-subtitle);
9293 font-weight: bold;
9394 margin: 0;
94 font-size: 1.8rem;
95 position: relative;
96 &:after {
97 background: none repeat scroll 0 0 transparent;
98 bottom: 0;
99 content: '';
100 display: block;
101 height: 3px;
102 left: 50%;
103 position: absolute;
104 background: var(--accent);
105 transition:
106 width 0.3s ease 0s,
107 left 0.3s ease 0s;
108 width: 0;
109 }
110 &:hover:after {
111 width: 80%;
112 left: 0;
113 }
95 font-size: var(--text-2xl);
96 @include underline-hover(var(--accent), 3px, 80%);
11497 }
11598 }
11699
117100 ul {
118101 list-style: circle;
119 padding-left: 1rem;
102 padding-left: var(--space-md);
120103 li {
121 margin: 0.5rem 0;
122 font-size: 1.25rem;
104 margin: var(--space-sm) 0;
105 font-size: var(--text-md);
123106 a {
124107 text-decoration: none;
125108 color: var(--foreground);
126 position: relative;
127 &:after {
128 background: none repeat scroll 0 0 transparent;
129 bottom: 0;
130 content: '';
131 display: block;
132 height: 2px;
133 left: 50%;
134 position: absolute;
135 background: var(--accent-3);
136 transition:
137 width 0.15s ease 0s,
138 left 0.15s ease 0s;
139 width: 0;
140 }
141 &:hover:after {
142 text-decoration: underline;
143 width: 80%;
144 left: 0;
145 }
109 @include underline-hover(var(--accent-3), 2px, 80%, 0.15s);
146110 }
147111 .service-count {
148112 color: var(--accent-3);
@@ -158,10 +122,10 @@ const { title, sections, bigTitle } = Astro.props;
158122 :global(svg) {
159123 width: 2rem;
160124 height: 2rem;
161 opacity: 0.5;
125 opacity: var(--opacity-dim);
162126 text-shadow: 3px 3px 0 black;
163127 color: var(--accent-3);
164 transition: all 0.2s ease-in-out;
128 transition: var(--transition-normal);
165129 }
166130 }
167131</style>
web/src/components/things/ServiceList.astro +34 −56
@@ -201,8 +201,9 @@ const {
201201</section>
202202
203203<style lang="scss">
204 @use '../../styles/mixins' as *;
204205 section {
205 padding: 1rem 0;
206 padding: var(--space-md) 0;
206207 position: relative;
207208 &:not(:last-child) {
208209 border-bottom: 2px solid var(--accent-3);
@@ -210,62 +211,43 @@ const {
210211 }
211212
212213 .nothing-yet {
213 font-size: 1.4rem;
214 opacity: 0.8;
214 font-size: var(--text-lg);
215 opacity: var(--opacity-subtle);
215216 font-style: italic;
216217 text-align: center;
217 margin-bottom: 3rem;
218 margin-bottom: var(--space-xl);
218219 .quick-submit {
219 margin-top: 1rem;
220 font-size: 0.8rem;
221 opacity: 0.8;
220 margin-top: var(--space-md);
221 font-size: var(--text-sm);
222 opacity: var(--opacity-subtle);
222223 }
223224 }
224225
225226 ul {
226227 list-style: none;
227228 padding: 0;
228 margin: 0 0 3rem 0;
229 margin: 0 0 var(--space-xl) 0;
229230 li {
230 margin-bottom: 1rem;
231 margin-bottom: var(--space-md);
231232 position: relative;
232233 .save-listing {
233234 position: absolute;
234 right: 1rem;
235 top: 1rem;
235 right: var(--space-md);
236 top: var(--space-md);
236237 }
237238 .service-head {
238239 display: flex;
239240 align-items: center;
240 gap: 0.5rem;
241 gap: var(--space-sm);
241242 flex-wrap: wrap;
242243 .service-title {
243244 text-decoration: none;
244245 color: var(--foreground);
246 @include underline-hover(var(--accent-3));
245247 h3,
246248 h4 {
247249 margin: 0;
248 font-size: 1.6rem;
249 }
250
251 position: relative;
252 &:after {
253 background: none repeat scroll 0 0 transparent;
254 bottom: 0;
255 content: '';
256 display: block;
257 height: 3px;
258 left: 50%;
259 position: absolute;
260 background: var(--accent-3);
261 transition:
262 width 0.3s ease 0s,
263 left 0.3s ease 0s;
264 width: 0;
265 }
266 &:hover:after {
267 width: 100%;
268 left: 0;
250 font-size: var(--text-xl);
269251 }
270252 }
271253
@@ -279,24 +261,22 @@ const {
279261 color: var(--accent);
280262 }
281263 .follow-with {
282 opacity: 0.7;
264 opacity: var(--opacity-soft);
283265 font-style: italic;
284266 margin: 0;
285267 }
286268 .service-link {
287269 max-width: 300px;
288 text-overflow: ellipsis;
289 overflow: hidden;
290 white-space: nowrap;
270 @include truncate;
291271 }
292272 }
293273
294274 .service-body {
295 margin: 0.5rem 0 2rem;
296 opacity: 0.8;
275 margin: var(--space-sm) 0 var(--space-lg);
276 opacity: var(--opacity-subtle);
297277 :global(p) {
298278 margin: 0;
299 font-size: 1.2rem;
279 font-size: var(--text-md);
300280 :global(a) {
301281 color: var(--foregorund);
302282 }
@@ -304,24 +284,24 @@ const {
304284 .service-stats {
305285 .left {
306286 display: flex;
307 gap: 1rem;
287 gap: var(--space-md);
308288 flex-wrap: wrap;
309289 align-items: center;
310290 }
311291 display: flex;
312 gap: 1rem;
292 gap: var(--space-md);
313293 flex-wrap: wrap;
314294 align-items: center;
315295 justify-content: space-between;
316296 }
317297 .view-service {
318 transition: all 0.2s ease-in-out;
298 transition: var(--transition-normal);
319299 opacity: 0.95;
320300 a {
321 padding: 0.25rem 0.6rem;
301 padding: var(--space-xs) 0.6rem;
322302 width: fit-content;
323 right: 1rem;
324 font-size: 0.9rem;
303 right: var(--space-md);
304 font-size: var(--text-sm);
325305 background: var(--accent-3);
326306 color: var(--accent-fg);
327307 text-decoration: none;
@@ -337,11 +317,9 @@ const {
337317 .warning {
338318 display: flex;
339319 align-items: center;
340 // justify-content: center;
341 gap: 0.25rem;
342 // opacity: 0.6;
343 font-size: 0.9rem;
344 padding: 0.5rem 0;
320 gap: var(--space-xs);
321 font-size: var(--text-sm);
322 padding: var(--space-sm) 0;
345323 :global(svg) {
346324 color: var(--foreground);
347325 width: 1.2rem;
@@ -351,7 +329,7 @@ const {
351329 text-decoration: none;
352330 color: var(--foreground);
353331 display: flex;
354 gap: 0.25rem;
332 gap: var(--space-xs);
355333 &:hover {
356334 color: var(--accent-3);
357335 :global(svg) {
@@ -367,9 +345,9 @@ const {
367345 }
368346 }
369347 .great {
370 color: #0fb953; // var(--success);
348 color: var(--success-muted);
371349 :global(svg) {
372 color: #0fb953; // var(--success);
350 color: var(--success-muted);
373351 }
374352 }
375353 }
@@ -379,13 +357,13 @@ const {
379357 section :global(.view-all) {
380358 width: fit-content;
381359 position: absolute;
382 right: 1rem;
360 right: var(--space-md);
383361 margin-top: -2.5rem;
384362 background: var(--accent-3);
385363 }
386364
387365 li:hover :global(.actions) {
388 opacity: 0.6;
366 opacity: var(--opacity-muted);
389367 :global(a):hover {
390368 opacity: 1;
391369 }
web/src/components/things/SmartSuggestions.svelte +13 −15
@@ -79,45 +79,45 @@
7979</section>
8080
8181<style lang="scss">
82 @use '../../styles/mixins' as *;
8283 h3 {
8384 width: 80vw;
8485 max-width: 900px;
85 margin: 1rem auto;
86 margin: var(--space-md) auto;
8687 color: var(--accent-3);
87 font-size: 1.6rem;
88 font-size: var(--text-xl);
8889 }
8990 section {
9091 display: grid;
9192 grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
92 gap: 1rem;
93 gap: var(--space-md);
9394 width: 80vw;
9495 max-width: 900px;
9596 margin: 0 auto;
9697 .service-result {
9798 background: var(--accent-fg);
98 padding: 1rem;
99 padding: var(--space-md);
99100 border-radius: var(--curve-sm);
100 border: 1px solid var(--box-outline);
101 box-shadow: 3px 3px 0 var(--box-outline);
101 border: var(--border-light);
102 box-shadow: var(--shadow-sm);
102103 color: var(--foreground);
103104 text-decoration: none;
104105
105106 .service-head {
106107 display: flex;
107108 align-items: center;
108 gap: 0.5rem;
109 gap: var(--space-sm);
109110 h4 {
110111 margin: 0;
111 font-size: 1.6rem;
112 font-size: var(--text-xl);
112113 display: flex;
113114 align-items: center;
114 gap: 0.5rem;
115 gap: var(--space-sm);
115116 .follow-with {
116 opacity: 0.7;
117 opacity: var(--opacity-soft);
117118 font-style: italic;
118119 margin: 0;
119 font-size: 0.85rem;
120 font-weight: 400;
120 font-size: var(--text-sm);
121121 max-width: 100px;
122122 display: -webkit-box;
123123 -webkit-line-clamp: 2;
@@ -137,9 +137,7 @@
137137
138138 .service-link {
139139 max-width: 300px;
140 text-overflow: ellipsis;
141 overflow: hidden;
142 white-space: nowrap;
140 @include truncate;
143141 }
144142 }
145143 }
web/src/components/things/WebsiteDetailedInfo.astro +42 −87
@@ -74,7 +74,7 @@ const screenshotUrl = `https://screenshot-cache.as93.workers.dev/${url}`;
7474 <li class="all-bad">
7575 <FontAwesome iconName="blacklistFound" /> {check}
7676 </li>
77 ))}
77 ))}
7878 </ul>
7979 </>
8080 ) : (
@@ -113,7 +113,7 @@ const screenshotUrl = `https://screenshot-cache.as93.workers.dev/${url}`;
113113 <span class="val">{websiteInfo.server_details.asn}</span>
114114 </li>
115115 </ul>
116
116
117117 {siteCategories.length > 0 && (
118118 <h4>Categories</h4>
119119 <p class="explainer">Some proxies may block this service, as it falls into the following categories</p>
@@ -144,7 +144,7 @@ const screenshotUrl = `https://screenshot-cache.as93.workers.dev/${url}`;
144144 <ul>
145145 {
146146 websiteInfo.domain_blacklist.engines
147 .sort((a, b) => Number(b.detected) - Number(a.detected))
147 .sort((a, b) => Number(b.detected) - Number(a.detected))
148148 .map((engine) => (
149149 engine.detected ? (
150150 <li class="blacklist-check blacklisted">
@@ -162,109 +162,64 @@ const screenshotUrl = `https://screenshot-cache.as93.workers.dev/${url}`;
162162 <h4>Website Preview</h4>
163163 <img class="preview-shot" src={screenshotUrl} width="300" height="50" />
164164 <div class="link-to-web-check">
165 <Button url={`https://web-check.xyz/results/${url}`}>
165 <Button url={`https://web-check.xyz/check/${url}`}>
166166 <span>View full report at</span><br /><b class="web-check-title">web-check.xyz</b>
167167 </Button>
168168 </div>
169
169
170170 </div>
171171</div>
172172
173173
174174<style lang="scss">
175@use '../../styles/mixins' as *;
175176.website-info-wrapper {
176 display: flex;
177 flex-wrap: wrap;
178 justify-content: space-between;
179 gap: 1rem;
180 .left, .right {
181 width: calc(50% - 1rem);
182 @media screen and (max-width: 768px){
183 width: 100%;
184 }
185 }
177 @include detail-info-layout;
186178}
187179
188h4 {
189 margin: 1rem 0 0 0;
190 font-size: 1.2rem;
191 }
180@include detail-info-base;
181
192182 p {
193 margin: 0;
194 display: flex;
195 align-items: center;
196 gap: 0.25rem;
197 :global(svg) {
198 width: 1rem;
199 }
200 img {
201 border-radius: var(--curve-sm);
202 }
203183 &.all-good {
204184 :global(svg) {
205 color: #35b969;
185 color: var(--rating-a);
206186 }
207187 }
208188 &.all-bad {
209189 :global(svg) {
210 color: #e3154f;
190 color: var(--rating-g);
211191 }
212192 }
213193 }
214194 li {
215195 :global(svg) {
216 width: 1rem;
196 width: var(--text-base);
217197 }
218
219 &.not-blacklisted :global(svg) { color: #35b969; }
220 &.blacklisted :global(svg), &.all-bad :global(svg) { color: #e3154f; }
221
198
199 &.not-blacklisted :global(svg) { color: var(--rating-a); }
200 &.blacklisted :global(svg), &.all-bad :global(svg) { color: var(--rating-g); }
201
222202 }
223203 ul {
224 padding-left: 0;
225 list-style: none;
226 max-height: 300px;
227 overflow-y: auto;
228 overflow-x: hidden;
229 img {
230 border-radius: var(--curve-sm);
231 }
232204 .list-item {
233 display: flex;
234 flex-direction: column;
235 margin-bottom: 0.5rem;
236205 .date-block {
237
238 font-size: 0.8rem;
239 opacity: 0.7;
206 font-size: var(--text-sm);
207 opacity: var(--opacity-soft);
240208 }
241209 }
242 &.list-table {
243 font-size: 0.9rem;
244 padding-left: 0;
245 li {
246 display: flex;
247 justify-content: space-between;
248 padding: 0.1rem 0;
249 .lbl {
250 font-weight: 500;
251 }
252 &:not(:last-child) {
253 border-bottom: 1px solid #5f53f440;
254 }
210 &.list-table li {
211 .lbl {
212 font-weight: 500;
255213 }
256214 }
257215 }
258216
259217 .website-title, .website-description {
260 font-size: 0.9rem;
261 opacity: 0.8;
262 display: -webkit-box;
263 -webkit-line-clamp: 1;
264 -webkit-box-orient: vertical;
265 overflow: hidden;
218 font-size: var(--text-sm);
219 opacity: var(--opacity-subtle);
220 @include line-clamp(1);
266221 border-left: 2px solid var(--accent-3);
267 padding-left: 0.5rem;
222 padding-left: var(--space-sm);
268223 }
269224 .website-title {
270225 font-weight: 500;
@@ -274,26 +229,26 @@ h4 {
274229 -webkit-line-clamp: 3;
275230 }
276231 .explainer {
277 font-size: 0.8rem;
278 opacity: 0.8;
232 font-size: var(--text-sm);
233 opacity: var(--opacity-subtle);
279234 font-style: italic;
280235 }
281236
282237 .risk {
283 font-size: 2rem;
238 font-size: var(--text-3xl);
284239 width: fit-content;
285 padding: 0.5rem 0.5rem;
240 padding: var(--space-sm) var(--space-sm);
286241 border-radius: var(--curve-lg);
287242 border: 4px solid;
288 margin: 0.5rem 0;
243 margin: var(--space-sm) 0;
289244 font-weight: bold;
290245
291 &.risk-unknown { --rating-color: grey; }
292 &.risk-safe { --rating-color: #35b969; }
293 &.risk-moderately-safe { --rating-color: #c7cc22; }
294 &.risk-risky { --rating-color: #df8b1e; }
295 &.risk-dangerous { --rating-color: #df541e; }
296 &.risk-very-dangerous { --rating-color: #df1e1e; }
246 &.risk-unknown { --rating-color: var(--rating-unknown); }
247 &.risk-safe { --rating-color: var(--rating-a); }
248 &.risk-moderately-safe { --rating-color: var(--rating-c); }
249 &.risk-risky { --rating-color: var(--rating-e); }
250 &.risk-dangerous { --rating-color: var(--rating-f); }
251 &.risk-very-dangerous { --rating-color: var(--rating-g); }
297252 color: var(--rating-color);
298253 border-color: var(--rating-color);
299254 }
@@ -303,26 +258,26 @@ h4 {
303258 height: auto;
304259 border-radius: var(--curve-sm);
305260 border: 2px solid var(--accent-3);
306 margin: 0.5rem auto;
261 margin: var(--space-sm) auto;
307262 display: flex;
308263 }
309264
310265 .link-to-web-check {
311266 width: 180px;
312267 float: right;
313 font-size: 1rem;
268 font-size: var(--text-base);
314269 transform: scale(0.8);
315 opacity: 0.85;
316 transition: all 0.2s ease-in-out;
270 opacity: var(--opacity-subtle);
271 transition: var(--transition-normal);
317272 &:hover { transform: scale(0.85); opacity: 1; }
318273 :global(.button) {
319274 background: var(--accent-3);
320275 }
321276 span {
322 font-size: 0.8rem;
277 font-size: var(--text-sm);
323278 }
324279 .web-check-title {
325 font-size: 1.4rem;
280 font-size: var(--text-lg);
326281 }
327282 }
328283
web/src/components/things/service-card.scss +22 −46
@@ -1,9 +1,11 @@
1@use '../../styles/mixins' as *;
2
13.service {
24 display: flex;
35 flex-direction: column;
4 padding: 1rem;
5 border: 2px solid var(--box-outline);
6 box-shadow: 6px 6px 0 var(--box-outline);
6 padding: var(--space-md);
7 border: var(--border-heavy);
8 box-shadow: var(--shadow-lg);
79 background: var(--accent-fg);
810 border-radius: var(--curve-sm);
911 position: relative;
@@ -12,86 +14,62 @@
1214 .service-head {
1315 display: flex;
1416 align-items: center;
15 gap: 0.5rem;
17 gap: var(--space-sm);
1618 h4 {
1719 margin: 0;
18 font-size: 1.4rem;
20 font-size: var(--text-lg);
1921 color: var(--foreground);
22 text-decoration: none;
23 @include underline-hover(var(--accent-3), 3px, 100%, 0.2s);
2024 }
2125 p {
2226 margin: 0;
23 font-size: 1rem;
24 opacity: 0.7;
27 font-size: var(--text-base);
28 opacity: var(--opacity-soft);
2529 }
2630 a {
2731 text-decoration: none;
2832 }
29 h4 {
30 text-decoration: none;
31 position: relative;
32 &:after {
33 background: none repeat scroll 0 0 transparent;
34 bottom: 0;
35 content: '';
36 display: block;
37 height: 3px;
38 left: 50%;
39 position: absolute;
40 background: var(--accent-3);
41 transition:
42 width 0.2s ease 0s,
43 left 0.2s ease 0s;
44 width: 0;
45 }
46 &:hover:after {
47 width: 100%;
48 left: 0;
49 }
50 }
5133 }
5234
5335 .save-listing {
5436 position: absolute;
55 top: 0.5rem;
56 right: 0.5rem;
37 top: var(--space-sm);
38 right: var(--space-sm);
5739 }
5840
5941 .service-body {
6042 display: flex;
6143 align-items: center;
62 gap: 0.5rem;
44 gap: var(--space-sm);
6345 img {
6446 border-radius: var(--curve-sm);
6547 font-size: 0.6rem;
6648 color: var(--accent);
6749 }
6850 :global(p) {
69 display: -webkit-box;
70 -webkit-line-clamp: 3;
71 -webkit-box-orient: vertical;
72 overflow: hidden;
73 margin: 0.5rem 0;
51 @include line-clamp(3);
52 margin: var(--space-sm) 0;
7453 width: calc(100% - 2rem);
75 overflow-x: hidden;
7654 }
7755 }
7856
7957 .service-links {
8058 display: flex;
81 gap: 0.5rem;
59 gap: var(--space-sm);
8260 justify-content: space-between;
8361 a {
8462 color: var(--accent-3);
85 font-size: 0.8rem;
63 font-size: var(--text-sm);
8664 display: inline-flex;
8765 align-items: center;
88 gap: 0.25rem;
89 opacity: 0.85;
66 gap: var(--space-xs);
67 opacity: var(--opacity-subtle);
9068 text-decoration: none;
9169 max-width: 50%;
9270 min-width: 25%;
9371 &:not(:last-child) {
94 margin-right: 0.5rem;
72 margin-right: var(--space-sm);
9573 }
9674 &:hover {
9775 text-decoration: underline;
@@ -103,9 +81,7 @@
10381 }
10482 span {
10583 max-width: calc(100% - 1rem);
106 text-overflow: ellipsis;
107 white-space: nowrap;
108 overflow: hidden;
84 @include truncate;
10985 }
11086 }
11187 }
web/src/layouts/Layout.astro +116 −1
@@ -154,7 +154,7 @@ const makeSearchLd = () => {
154154 @import '../styles/typography.css';
155155</style>
156156
157<style is:global>
157<style is:global lang="scss">
158158 html {
159159 ::selection {
160160 background: var(--accent);
@@ -168,4 +168,119 @@ const makeSearchLd = () => {
168168 color: var(--foreground);
169169 background: var(--background);
170170 }
171
172 :focus-visible {
173 outline: 2px solid var(--accent);
174 outline-offset: 2px;
175 }
176
177 .pagination-navigation {
178 display: flex;
179 justify-content: space-between;
180 align-items: center;
181 padding: var(--space-md) 0;
182 .button {
183 min-width: 120px;
184 width: fit-content;
185 padding: var(--space-xs) var(--space-md);
186 text-align: right;
187 &:first-child {
188 text-align: left;
189 }
190 p {
191 margin: 0;
192 font-weight: normal;
193 font-size: var(--text-base);
194 }
195 span {
196 font-size: var(--text-sm);
197 }
198 }
199 .nothing {
200 width: 120px;
201 }
202 .go-to-category {
203 color: var(--foreground);
204 font-size: var(--text-sm);
205 opacity: var(--opacity-dim);
206 @media (max-width: 768px) {
207 display: none;
208 }
209 }
210 }
211
212 .breadcrumbs {
213 opacity: var(--opacity-dim);
214 font-size: var(--text-sm);
215 position: absolute;
216 right: var(--space-md);
217 top: var(--space-md);
218 a {
219 color: var(--foreground);
220 transition: var(--transition-fast);
221 &:hover {
222 color: var(--accent);
223 }
224 }
225 @media (max-width: 768px) {
226 display: none;
227 }
228 }
229
230 .accent-heading {
231 font-size: var(--text-3xl);
232 margin: calc(var(--space-lg) * -1) 0 var(--space-md)
233 calc(var(--space-lg) * -1);
234 box-shadow: var(--shadow-lg);
235 background: var(--accent);
236 color: var(--accent-fg);
237 width: fit-content;
238 padding: var(--space-xs) var(--space-sm);
239 @media (max-width: 768px) {
240 margin: calc(var(--space-lg) * -1) auto var(--space-lg) auto;
241 }
242 }
243
244 .further-info,
245 .notable-mentions,
246 .word-of-warning,
247 .submit-alternative {
248 h3 {
249 font-size: var(--text-lg);
250 margin: var(--space-md) 0;
251 }
252 p {
253 font-size: var(--text-sm);
254 opacity: var(--opacity-soft);
255 strong {
256 font-weight: 500;
257 }
258 a {
259 color: var(--foreground);
260 transition: var(--transition-fast);
261 &:hover {
262 color: var(--accent);
263 }
264 }
265 }
266 strong {
267 font-weight: 500;
268 }
269 h4 {
270 font-size: var(--text-md);
271 margin: var(--space-sm) 0 0 0;
272 }
273 ul {
274 list-style: circle;
275 padding-left: var(--space-md);
276 font-size: var(--text-sm);
277 opacity: var(--opacity-soft);
278 li {
279 margin-bottom: var(--space-xs);
280 p {
281 display: inline;
282 }
283 }
284 }
285 }
171286</style>
web/src/pages/404.astro +8 −8
@@ -49,21 +49,21 @@ import Buton from '@components/form/Button.astro';
4949 .what-happened {
5050 font-size: 4rem;
5151 margin: 0;
52 opacity: 0.8;
52 opacity: var(--opacity-subtle);
5353 }
5454 .why-happened {
5555 font-size: 1.5rem;
5656 text-align: center;
57 margin-bottom: 2rem;
58 opacity: 0.6;
57 margin-bottom: var(--space-lg);
58 opacity: var(--opacity-muted);
5959 }
6060 .back-you-go-then :global(a) {
61 font-size: 2rem;
61 font-size: var(--text-3xl);
6262 }
6363
6464 .other-places {
65 opacity: 0.8;
66 margin: 2rem auto 1rem auto;
65 opacity: var(--opacity-subtle);
66 margin: var(--space-lg) auto var(--space-md) auto;
6767 text-align: center;
6868 &:hover {
6969 opacity: 1;
@@ -72,11 +72,11 @@ import Buton from '@components/form/Button.astro';
7272 list-style: none;
7373 display: flex;
7474 padding: 0;
75 gap: 0.5rem;
75 gap: var(--space-sm);
7676 li {
7777 &:not(:last-child) {
7878 border-right: 1px solid var(--accent);
79 padding-right: 0.5rem;
79 padding-right: var(--space-sm);
8080 }
8181 }
8282 li a {
web/src/pages/[...listing].astro +61 −145
@@ -180,8 +180,15 @@ const websiteData =
180180// Filter changelog entries relevant to this service
181181const serviceHistory = await fetchChangelog().then(({ entries }) => {
182182 const isMatch = (c: { name: string; category: string; section: string }) =>
183 c.name === name && c.category === categoryName && c.section === parentSection.name;
184 const results: Array<{ date: string; type: 'added' | 'removed' | 'modified'; fields?: string[]; pr?: import('@utils/fetch-changelog').ChangelogPr | null }> = [];
183 c.name === name &&
184 c.category === categoryName &&
185 c.section === parentSection.name;
186 const results: Array<{
187 date: string;
188 type: 'added' | 'removed' | 'modified';
189 fields?: string[];
190 pr?: import('@utils/fetch-changelog').ChangelogPr | null;
191 }> = [];
185192 for (const e of entries) {
186193 const s = e.changes?.services;
187194 const added = (s?.added || []).find(isMatch);
@@ -189,7 +196,13 @@ const serviceHistory = await fetchChangelog().then(({ entries }) => {
189196 const modified = (s?.modified || []).find(isMatch);
190197 if (added) results.push({ date: e.date, type: 'added', pr: e.pr });
191198 else if (removed) results.push({ date: e.date, type: 'removed', pr: e.pr });
192 else if (modified) results.push({ date: e.date, type: 'modified', fields: modified.fields, pr: e.pr });
199 else if (modified)
200 results.push({
201 date: e.date,
202 type: 'modified',
203 fields: modified.fields,
204 pr: e.pr,
205 });
193206 }
194207 return results;
195208});
@@ -333,8 +346,8 @@ const getApiEndpoint = () => {
333346 <li>
334347 <b>Web info:</b>
335348 <a
336 href={`https://web-check.xyz/results/${formatLink(url)}`}
337 >{`web-check.xyz/results/${formatLink(url).split('/')[0]}`}</a>
349 href={`https://web-check.xyz/check/${formatLink(url)}`}
350 >{`web-check.xyz/check/${formatLink(url).split('/')[0]}`}</a>
338351 </li>
339352 )
340353 }
@@ -563,48 +576,48 @@ const getApiEndpoint = () => {
563576
564577<style lang="scss">
565578 main {
566 margin: 2rem auto;
567 padding: 1rem;
568 width: 1200px;
569 max-width: calc(100% - 5rem);
579 margin: var(--space-lg) auto;
580 padding: var(--space-md);
581 width: var(--width-container);
582 max-width: var(--width-container-max);
570583 position: relative;
571584 @media (max-width: 768px) {
572585 max-width: 95%;
573 padding: 0.5rem;
586 padding: var(--space-sm);
574587 margin: 0 auto;
575588 }
576589 }
577590
578591 section {
579 margin: 1rem 0 4rem 0;
580 padding: 1rem;
592 margin: var(--space-md) 0 var(--space-2xl) 0;
593 padding: var(--space-md);
581594 min-height: 8rem;
582595 position: relative;
583 border: 2px solid var(--box-outline);
584 box-shadow: 6px 6px 0 var(--box-outline);
596 border: var(--border-heavy);
597 box-shadow: var(--shadow-lg);
585598 background: var(--accent-fg);
586599 }
587600
588601 p {
589 margin: 0.25rem 0 0.5rem 0;
602 margin: var(--space-xs) 0 var(--space-sm) 0;
590603 }
591604
592605 h3 {
593 font-size: 2rem;
594 margin: -2rem 0 1rem -2rem;
595 box-shadow: 6px 6px 0 var(--box-outline);
606 font-size: var(--text-3xl);
607 margin: -2rem 0 var(--space-md) -2rem;
608 box-shadow: var(--shadow-lg);
596609 background: var(--accent);
597610 color: var(--accent-fg);
598611 width: fit-content;
599 padding: 0.25rem 0.5rem;
612 padding: var(--space-xs) var(--space-sm);
600613 @media (max-width: 768px) {
601 margin: -2rem auto 2rem auto;
614 margin: -2rem auto var(--space-lg) auto;
602615 }
603616 }
604617
605618 .service-head {
606619 h2 {
607 font-size: 3rem;
620 font-size: var(--text-4xl);
608621 margin: 0;
609622 @media (max-width: 768px) {
610623 text-align: center;
@@ -613,13 +626,13 @@ const getApiEndpoint = () => {
613626 .url-wrap {
614627 display: flex;
615628 align-items: center;
616 gap: 0.5rem;
629 gap: var(--space-sm);
617630 a {
618 font-size: 1.2rem;
631 font-size: var(--text-md);
619632 }
620633 .follow-with {
621634 font-style: italic;
622 opacity: 0.6;
635 opacity: var(--opacity-muted);
623636 }
624637 @media (max-width: 768px) {
625638 flex-direction: column;
@@ -627,60 +640,41 @@ const getApiEndpoint = () => {
627640 }
628641 }
629642
630 .breadcrumbs {
631 opacity: 0.5;
632 font-size: 0.8rem;
633 position: absolute;
634 right: 1rem;
635 top: 1rem;
636 a {
637 color: var(--foreground);
638 transition: all 0.15s ease-in-out;
639
640 &:hover {
641 color: var(--accent);
642 }
643 }
644 @media (max-width: 768px) {
645 display: none;
646 }
647 }
648
649643 .save-listing {
650644 position: absolute;
651 top: 3rem;
652 right: 1rem;
645 top: var(--space-xl);
646 right: var(--space-md);
653647 }
654648
655649 h4 {
656 font-size: 1.4rem;
650 font-size: var(--text-lg);
657651 margin-bottom: 0;
658652 }
659653
660654 .intro {
661 font-size: 1.2rem;
655 font-size: var(--text-md);
662656 font-style: italic;
663657 opacity: 0.9;
664658 display: flex;
665 gap: 0.5rem;
659 gap: var(--space-sm);
666660 @media (max-width: 768px) {
667661 flex-direction: column;
668662 }
669663 .service-icon {
670664 border-radius: var(--curve-md);
671 margin-top: 1rem;
665 margin-top: var(--space-md);
672666 @media (max-width: 768px) {
673 margin: 1rem auto 0 auto;
667 margin: var(--space-md) auto 0 auto;
674668 }
675669 }
676670 ul {
677 padding-left: 1rem;
671 padding-left: var(--space-md);
678672 list-style: circle;
679673 font-style: normal;
680 font-size: 1rem;
674 font-size: var(--text-base);
681675 margin-top: 0;
682676 b {
683 font-size: 1rem;
677 font-size: var(--text-base);
684678 font-weight: 400;
685679 min-width: 100px;
686680 display: inline-block;
@@ -692,93 +686,16 @@ const getApiEndpoint = () => {
692686 }
693687 }
694688
695 .pagination-navigation {
696 display: flex;
697 justify-content: space-between;
698 align-items: center;
699 padding: 1rem 0;
700 :global(.button) {
701 min-width: 120px;
702 width: fit-content;
703 padding: 0.25rem 1rem;
704 text-align: right;
705 &:first-child {
706 text-align: left;
707 }
708 p {
709 margin: 0;
710 font-weight: normal;
711 font-size: 1rem;
712 }
713 span {
714 font-size: 0.8rem;
715 }
716 }
717 .nothing {
718 width: 120px;
719 }
720 .go-to-category {
721 color: var(--foreground);
722 font-size: 0.8rem;
723 opacity: 0.5;
724 @media (max-width: 768px) {
725 display: none;
726 }
727 }
728 }
729
730 .further-info,
731 .notable-mentions,
732 .word-of-warning {
733 h3 {
734 font-size: 1.4rem;
735 margin: 1rem 0;
736 }
737 :global(p) {
738 font-size: 0.9rem;
739 opacity: 0.7;
740 :global(strong) {
741 font-weight: 500;
742 }
743 :global(a) {
744 color: var(--foreground);
745 transition: all 0.15s ease-in-out;
746 &:hover {
747 color: var(--accent);
748 }
749 }
750 }
751 :global(strong) {
752 font-weight: 500;
753 }
754 :global(h4) {
755 font-size: 1.2rem;
756 margin: 0.5rem 0 0 0;
757 }
758 :global(ul) {
759 list-style: circle;
760 padding-left: 1rem;
761 font-size: 0.9rem;
762 opacity: 0.7;
763 li {
764 margin-bottom: 0.25rem;
765 :global(p) {
766 display: inline;
767 }
768 }
769 }
770 }
771
772689 pre {
773690 a {
774691 text-decoration: none;
775692 color: var(--foreground);
776693 code {
777 background: #acabb782;
694 background: var(--code-bg);
778695 padding: 0.2rem 0.4rem;
779696 border-radius: var(--curve-sm);
780 font-family: Courier New;
781 font-size: 0.9rem;
697 font-family: var(--font-code);
698 font-size: var(--text-sm);
782699 @media (max-width: 768px) {
783700 white-space: break-spaces;
784701 }
@@ -788,14 +705,14 @@ const getApiEndpoint = () => {
788705
789706 .social-wrap {
790707 display: flex;
791 gap: 1rem;
708 gap: var(--space-md);
792709 flex-wrap: wrap;
793710 justify-content: space-between;
794711 }
795712
796713 .highlights {
797714 display: flex;
798 gap: 1rem;
715 gap: var(--space-md);
799716 flex-wrap: wrap;
800717 align-items: center;
801718 justify-content: end;
@@ -804,21 +721,20 @@ const getApiEndpoint = () => {
804721 .warning {
805722 display: flex;
806723 align-items: center;
807 // justify-content: center;
808 gap: 0.25rem;
809 opacity: 0.6;
810 font-size: 0.9rem;
811 padding: 0.5rem 0;
724 gap: var(--space-xs);
725 opacity: var(--opacity-muted);
726 font-size: var(--text-sm);
727 padding: var(--space-sm) 0;
812728 :global(svg) {
813729 color: var(--foreground);
814 width: 1.2rem;
815 height: 1.2rem;
730 width: var(--text-md);
731 height: var(--text-md);
816732 }
817733 a {
818734 text-decoration: none;
819735 color: var(--foreground);
820736 display: flex;
821 gap: 0.25rem;
737 gap: var(--space-xs);
822738 &:hover {
823739 color: var(--accent-3);
824740 :global(svg) {
@@ -834,9 +750,9 @@ const getApiEndpoint = () => {
834750 }
835751 }
836752 .great {
837 color: #007930; // var(--success);
753 color: var(--success-muted);
838754 :global(svg) {
839 color: #007930; // var(--success);
755 color: var(--success-muted);
840756 }
841757 }
842758 }
web/src/pages/[...section].astro +8 −98
@@ -251,126 +251,36 @@ const { previous, next } = makePaginationLinks();
251251<style lang="scss">
252252
253253section {
254 padding-bottom: 1rem;
254 padding-bottom: var(--space-md);
255255 &:not(:last-child) {
256256 border-bottom: 2px solid var(--accent-3);
257257 }
258258}
259259
260260h2 {
261 font-size: 2rem;
262 margin: -2rem 0 2rem -2rem;
263 box-shadow: 6px 6px 0 var(--box-outline);
261 font-size: var(--text-3xl);
262 margin: -2rem 0 var(--space-lg) -2rem;
263 box-shadow: var(--shadow-lg);
264264 background: var(--accent);
265265 color: var(--accent-fg);
266266 width: fit-content;
267 padding: 0.25rem 0.5rem;
267 padding: var(--space-xs) var(--space-sm);
268268 }
269269
270.pagination-navigation {
271 display: flex;
272 justify-content: space-between;
273 align-items: center;
274 padding: 1rem 0;
275 :global(.button) {
276 min-width: 120px;
277 width: fit-content;
278 padding: 0.25rem 1rem;
279 text-align: right;
280 &:first-child { text-align: left; }
281 p {
282 margin: 0;
283 font-weight: normal;
284 font-size: 1rem;
285 }
286 span {
287 font-size: 0.8rem;
288 }
289
290 }
291 .nothing {
292 width: 120px;
293 }
294 .go-to-category {
295 color: var(--foreground);
296 font-size: 0.8rem;
297 opacity: 0.5;
298 @media (max-width: 768px) {
299 display: none;
300 }
301 }
302}
303270
304271.intro {
305272 font-style: italic;
306 opacity: 0.7;
273 opacity: var(--opacity-soft);
307274}
308275
309276
310.further-info, .notable-mentions, .word-of-warning, .submit-alternative {
311 h3 {
312 font-size: 1.4rem;
313 margin: 1rem 0;
314 }
315 :global(p) {
316 font-size: 0.9rem;
317 opacity: 0.7;
318 :global(strong) {
319 font-weight: 500;
320 }
321 :global(a) {
322 color: var(--foreground);
323 transition: all 0.15s ease-in-out;
324 &:hover {
325 color: var(--accent);
326 }
327 }
328 }
329 :global(strong) {
330 font-weight: 500;
331 }
332 :global(h4) {
333 font-size: 1.2rem;
334 margin: 0.5rem 0 0 0;
335 }
336 :global(ul) {
337 list-style: circle;
338 padding-left: 1rem;
339 font-size: 0.9rem;
340 opacity: 0.7;
341 li {
342 margin-bottom: 0.25rem;
343 :global(p) {
344 display: inline;
345 }
346 }
347 }
348}
349277.about-this-page {
350278 summary {
351279 display: none;
352280 }
353 font-size: 0.9rem;
354 opacity: 0.7;
281 font-size: var(--text-sm);
282 opacity: var(--opacity-soft);
355283}
356284
357.breadcrumbs {
358 opacity: 0.5;
359 font-size: 0.8rem;
360 position: absolute;
361 right: 1rem;
362 top: 1rem;
363 a {
364 color: var(--foreground);
365 transition: all 0.15s ease-in-out;
366
367 &:hover {
368 color: var(--accent);
369 }
370 }
371 @media(max-width: 768px) {
372 display: none;
373 }
374}
375285
376286</style>
web/src/pages/[category].astro −53
@@ -109,56 +109,3 @@ const { previous, next } = makePaginationLinks();
109109 </div>
110110 </Main>
111111</Layout>
112
113<style lang="scss">
114 .pagination-navigation {
115 display: flex;
116 justify-content: space-between;
117 align-items: center;
118 padding: 1rem 0;
119 :global(.button) {
120 min-width: 120px;
121 width: fit-content;
122 padding: 0.25rem 1rem;
123 text-align: right;
124 &:first-child {
125 text-align: left;
126 }
127 p {
128 margin: 0;
129 font-weight: normal;
130 font-size: 1rem;
131 }
132 span {
133 font-size: 0.8rem;
134 }
135 }
136 .nothing {
137 width: 120px;
138 }
139 .go-to-category {
140 color: var(--foreground);
141 font-size: 0.8rem;
142 opacity: 0.5;
143 }
144 }
145
146 .breadcrumbs {
147 opacity: 0.5;
148 font-size: 0.8rem;
149 position: absolute;
150 right: 1rem;
151 top: 1rem;
152 a {
153 color: var(--foreground);
154 transition: all 0.15s ease-in-out;
155
156 &:hover {
157 color: var(--accent);
158 }
159 }
160 @media (max-width: 768px) {
161 display: none;
162 }
163 }
164</style>
web/src/pages/about.astro +40 −42
@@ -310,15 +310,16 @@ const licenseContent = async () => {
310310</Layout>
311311
312312<style lang="scss">
313 @use '../styles/mixins' as *;
313314 h2 {
314 font-size: 2rem;
315 margin: 1rem 0 0.5rem 0;
315 font-size: var(--text-3xl);
316 margin: var(--space-md) 0 var(--space-sm) 0;
316317 }
317318 p {
318 font-size: 1.2rem;
319 font-size: var(--text-md);
319320 }
320321 hr {
321 margin: 2rem 0;
322 margin: var(--space-lg) 0;
322323 border: 0;
323324 border-top: 2px solid var(--accent);
324325 &:nth-child(6) {
@@ -330,59 +331,59 @@ const licenseContent = async () => {
330331 }
331332
332333 h3 {
333 font-size: 1.6rem;
334 font-size: var(--text-xl);
334335 }
335336
336337 .software-requirements,
337338 .about-the-data {
338339 :global(p) {
339 font-size: 1.2rem;
340 margin: 0 0 0.5rem 0;
340 font-size: var(--text-md);
341 margin: 0 0 var(--space-sm) 0;
341342 }
342343 :global(ul) {
343 padding-left: 0.5rem;
344 padding-left: var(--space-sm);
344345 list-style: none;
345 font-size: 1.2rem;
346 font-size: var(--text-md);
346347 :global(li ul) {
347 padding: 0 0 0.5rem 1rem;
348 padding: 0 0 var(--space-sm) var(--space-md);
348349 list-style: circle;
349350 }
350351 }
351352 :global(h3) {
352 font-size: 1.6rem;
353 font-size: var(--text-xl);
353354 margin-bottom: 0;
354355 }
355356 :global(strong) {
356357 font-weight: 500;
357358 }
358359 :global(small) {
359 font-size: 0.8rem;
360 opacity: 0.7;
360 font-size: var(--text-sm);
361 opacity: var(--opacity-soft);
361362 :global(a) {
362363 color: var(--accent-3);
363364 }
364365 }
365366 :global(code) {
366 font-family: 'Courier New', Courier, monospace;
367 background: #acabb782;
367 font-family: var(--font-code);
368 background: var(--code-bg);
368369 padding: 0.2rem 0.4rem;
369370 border-radius: var(--curve-sm);
370 font-size: 0.9rem;
371 font-size: var(--text-sm);
371372 }
372373 }
373374
374375 .user-list {
375376 display: flex;
376377 flex-wrap: wrap;
377 gap: 0.25rem;
378 margin: 2rem 0;
378 gap: var(--space-xs);
379 margin: var(--space-lg) 0;
379380 .user {
380381 width: 6rem;
381382 overflow: hidden;
382383 text-align: center;
383 padding: 0.5rem;
384 padding: var(--space-sm);
384385 border-radius: var(--curve-sm);
385 transition: background 0.2s ease-in-out;
386 transition: var(--transition-normal);
386387 &:hover {
387388 background: var(--background-form);
388389 }
@@ -392,19 +393,16 @@ const licenseContent = async () => {
392393 border-radius: var(--curve-md);
393394 }
394395 p {
395 margin: 0.5rem auto 0 auto;
396 font-size: 1rem;
397 display: -webkit-box;
398 -webkit-line-clamp: 1;
399 -webkit-box-orient: vertical;
400 overflow: hidden;
396 margin: var(--space-sm) auto 0 auto;
397 font-size: var(--text-base);
398 @include line-clamp(1);
401399 }
402400 }
403401 }
404402
405403 .fallback-img {
406404 max-width: 100%;
407 margin: 2rem 0;
405 margin: var(--space-lg) 0;
408406 border-radius: var(--curve-sm);
409407 }
410408
@@ -414,33 +412,33 @@ const licenseContent = async () => {
414412 background: var(--background-form);
415413 width: fit-content;
416414 border-radius: var(--curve-sm);
417 padding: 0.5rem;
418 font-size: 0.7rem;
419 font-family: 'Lekton', monospace;
415 padding: var(--space-sm);
416 font-size: var(--text-xs);
417 font-family: var(--font-subtitle);
420418 max-width: 100vw;
421419 white-space: pre-line;
422420 }
423421
424422 .help-list {
425 padding-left: 1rem;
423 padding-left: var(--space-md);
426424 list-style: circle;
427 font-size: 1.1rem;
425 font-size: var(--text-md);
428426 }
429427
430428 .author {
431429 p {
432 margin: 1rem 0 0 0;
430 margin: var(--space-md) 0 0 0;
433431 }
434432 ul {
435433 padding-left: 1.5rem;
436434 list-style: circle;
437435 margin-bottom: 0;
438436 li {
439 font-size: 1.1rem;
437 font-size: var(--text-md);
440438 }
441439 }
442440 .about {
443 font-size: 1.4rem;
441 font-size: var(--text-lg);
444442 font-style: italic;
445443 font-weight: 300;
446444 color: var(--accent-3);
@@ -450,24 +448,24 @@ const licenseContent = async () => {
450448 }
451449
452450 small {
453 font-size: 1rem;
454 margin: 1rem 0;
451 font-size: var(--text-base);
452 margin: var(--space-md) 0;
455453 }
456454 .pic-and-socials {
457455 float: right;
458456 img {
459 margin: 0.5rem 1rem;
457 margin: var(--space-sm) var(--space-md);
460458 border-radius: var(--curve-md);
461 border: 2px solid var(--box-outline);
462 box-shadow: 4px 4px 0 var(--box-outline);
459 border: var(--border-heavy);
460 box-shadow: var(--shadow-md);
463461 }
464462 .socials {
465463 display: flex;
466 margin: 0.5rem 1rem;
464 margin: var(--space-sm) var(--space-md);
467465 justify-content: space-between;
468466 :global(a svg) {
469467 color: var(--foreground);
470 transition: color 0.2s ease-in-out;
468 transition: var(--transition-normal);
471469 &:hover {
472470 color: var(--color);
473471 }
web/src/pages/all.astro +36 −37
@@ -112,10 +112,10 @@ const toggleSidebar = () => {
112112<style lang="scss">
113113
114114main {
115 margin: 0 auto 2rem auto;
116 padding: 1rem;
117 width: 1200px;
118 max-width: calc(100% - 5rem);
115 margin: 0 auto var(--space-lg) auto;
116 padding: var(--space-md);
117 width: var(--width-container);
118 max-width: var(--width-container-max);
119119
120120 display: flex;
121121 justify-content: space-between;
@@ -134,12 +134,11 @@ main {
134134 width: 600px;
135135 margin: 0 auto;
136136 background: var(--background-form);
137 padding: 1rem;
137 padding: var(--space-md);
138138 border-radius: var(--curve-sm);
139139}
140140
141141#toggle-sidebar {
142 // float: right;
143142 background: none;
144143 outline: none;
145144 border: none;
@@ -154,13 +153,13 @@ main {
154153.sidebar {
155154 border-radius: var(--curve-md);
156155 .sidebar-title {
157 font-size: 1.6rem;
156 font-size: var(--text-xl);
158157 background: var(--accent-3);
159158 color: var(--accent-fg);
160 border: 2px solid var(--box-outline);
161 box-shadow: 6px 6px 0 var(--box-outline);
159 border: var(--border-heavy);
160 box-shadow: var(--shadow-lg);
162161 border-radius: var(--curve-sm);
163 margin: 1rem auto;
162 margin: var(--space-md) auto;
164163 text-align: center;
165164 }
166165 ul {
@@ -170,7 +169,7 @@ main {
170169 a {
171170 text-decoration: none;
172171 color: var(--foreground);
173 transition: all 0.18s ease-in-out;
172 transition: var(--transition-fast);
174173 &:hover {
175174 color: var(--accent);
176175 opacity: 1;
@@ -181,61 +180,61 @@ main {
181180 }
182181 .top-level {
183182 font-weight: bold;
184 margin-top: 0.5rem;
183 margin-top: var(--space-sm);
185184 &:hover a {
186185 color: var(--accent-3);
187186 }
188187 }
189 }
188 }
190189}
191190
192191.section {
193192 display: grid;
194193 grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
195 gap: 1rem;
194 gap: var(--space-md);
196195 width: 100%;
197196 margin: 0 auto;
198197}
199198
200199.card {
201 margin: 2rem auto 5rem auto;
202 padding: 0 2rem;
203 border: 2px solid var(--box-outline);
204 box-shadow: 6px 6px 0 var(--box-outline);
200 margin: var(--space-lg) auto 5rem auto;
201 padding: 0 var(--space-lg);
202 border: var(--border-heavy);
203 box-shadow: var(--shadow-lg);
205204 background: var(--accent-fg);
206205}
207206
208207h2 {
209 margin: 2rem auto 0 auto;
210 font-size: 3rem;
208 margin: var(--space-lg) auto 0 auto;
209 font-size: var(--text-4xl);
211210 text-align: center;
212 opacity: 0.6;
211 opacity: var(--opacity-muted);
213212 display: flex;
214213 justify-content: center;
215214 align-items: center;
216 gap: 1rem;
215 gap: var(--space-md);
217216 a {
218217 color: var(--accent-3);
219218 text-decoration: none;
220219 }
221220 :global(svg) {
222 width: 3rem;
223 height: 3rem;
221 width: var(--text-4xl);
222 height: var(--text-4xl);
224223 color: var(--accent-3);
225224 }
226225}
227226
228227h3 {
229 font-size: 2rem;
230 margin: 2rem 0 1rem 0;
231 box-shadow: 6px 6px 0 var(--box-outline);
228 font-size: var(--text-3xl);
229 margin: var(--space-lg) 0 var(--space-md) 0;
230 box-shadow: var(--shadow-lg);
232231 background: var(--accent);
233232 color: var(--accent-fg);
234233 width: fit-content;
235 padding: 0.25rem 0.5rem;
234 padding: var(--space-xs) var(--space-sm);
236235 a {
237236 color: var(--accent-fg);
238 font-family: "Lekton", sans-serif;
237 font-family: var(--font-subtitle);
239238 text-decoration: none;
240239 }
241240 }
@@ -244,22 +243,22 @@ h3 {
244243 width: 100%;
245244 margin: 0 auto;
246245 background: var(--accent-fg);
247 border: 2px solid var(--box-outline);
248 box-shadow: 6px 6px 0 var(--box-outline);
246 border: var(--border-heavy);
247 box-shadow: var(--shadow-lg);
249248 border-radius: var(--curve-sm);
250249 display: flex;
251250
252251 p {
253 font-size: 1.2rem;
254 opacity: 0.8;
252 font-size: var(--text-md);
253 opacity: var(--opacity-subtle);
255254 font-style: italic;
256255 text-align: center;
257 margin: 4rem auto;
256 margin: var(--space-2xl) auto;
258257 }
259258 .quick-submit {
260 margin-top: 1rem;
261 font-size: 0.8rem;
262 opacity: 0.8;
259 margin-top: var(--space-md);
260 font-size: var(--text-sm);
261 opacity: var(--opacity-subtle);
263262 }
264263 }
265264
web/src/pages/browse.astro +23 −23
@@ -121,34 +121,34 @@ const categories: Category[] = (await fetchData())?.categories;
121121
122122<style lang="scss">
123123 .head-wrap {
124 margin: 1rem auto 0 auto;
124 margin: var(--space-md) auto 0 auto;
125125 width: 85vw;
126126 display: flex;
127127 align-items: center;
128128 justify-content: space-between;
129129 flex-wrap: wrap;
130130 .press-enter {
131 margin: 0.5rem 0 0 0;
132 opacity: 0.5;
131 margin: var(--space-sm) 0 0 0;
132 opacity: var(--opacity-dim);
133133 visibility: hidden;
134134 }
135135 input {
136 padding: 0.5rem;
137 border: 2px solid var(--box-outline);
136 padding: var(--space-sm);
137 border: var(--border-heavy);
138138 border-radius: var(--curve-sm);
139 font-size: 1.2rem;
140 box-shadow: 3px 3px 0 var(--box-outline);
139 font-size: var(--text-md);
140 box-shadow: var(--shadow-sm);
141141 color: var(--accent-3);
142142 background: var(--background-form);
143143 &:focus {
144144 outline: none;
145 box-shadow: 4px 4px 0 var(--box-outline);
145 box-shadow: var(--shadow-sm-hover);
146146 }
147147 }
148148 h2 {
149 font-family: 'Lekton', sans-serif;
149 font-family: var(--font-subtitle);
150150 font-weight: bold;
151 font-size: 3rem;
151 font-size: var(--text-4xl);
152152 margin: 0;
153153 color: var(--accent-3);
154154 }
@@ -165,52 +165,52 @@ const categories: Category[] = (await fetchData())?.categories;
165165 .no-results {
166166 text-align: center;
167167 width: 85vw;
168 margin: 2rem auto 4rem auto;
168 margin: var(--space-lg) auto var(--space-2xl) auto;
169169 display: none;
170170 .zilch {
171 font-size: 2rem;
171 font-size: var(--text-3xl);
172172 color: var(--accent-3);
173 opacity: 0.5;
173 opacity: var(--opacity-dim);
174174 font-weight: bold;
175175 }
176176 p {
177 margin: 0.25rem;
177 margin: var(--space-xs);
178178 }
179179 }
180180
181181 .categories {
182182 columns: 6 300px;
183 column-gap: 1rem;
183 column-gap: var(--space-md);
184184 margin: 0 auto;
185185 width: 85vw;
186186 max-width: 1800px;
187 padding: 1rem 0 2rem 0;
187 padding: var(--space-md) 0 var(--space-lg) 0;
188188 @media (max-width: 768px) {
189189 padding: 0;
190190 width: 95%;
191191 }
192192 .category {
193193 background: var(--accent-fg);
194 border: 2px solid var(--box-outline);
194 border: var(--border-heavy);
195195 border-radius: var(--curve-sm);
196 box-shadow: 4px 4px 0 var(--box-outline);
197 padding: 1rem;
196 box-shadow: var(--shadow-md);
197 padding: var(--space-md);
198198 width: 85%;
199199 display: inline-flex;
200200 flex-direction: column;
201 margin: 1rem;
201 margin: var(--space-md);
202202 .category-title {
203203 text-decoration: none;
204204 color: var(--foreground);
205205 }
206206 h3 {
207 font-family: 'Lekton', sans-serif;
207 font-family: var(--font-subtitle);
208208 font-weight: bold;
209209 margin: 0;
210 font-size: 1.8rem;
210 font-size: var(--text-2xl);
211211 }
212212 .sections {
213 padding-left: 1rem;
213 padding-left: var(--space-md);
214214 .section {
215215 a {
216216 text-decoration: none;
web/src/pages/changelog.astro +4 −4
@@ -27,15 +27,15 @@ const changelog = await fetchChangelog();
2727
2828<style lang="scss">
2929 h2 {
30 font-size: 2rem;
30 font-size: var(--text-3xl);
3131 margin: 0;
3232 }
3333 p {
34 font-size: 1.2rem;
35 margin: 0 0 1rem 0;
34 font-size: var(--text-md);
35 margin: 0 0 var(--space-md) 0;
3636 }
3737 .fallback {
3838 text-align: center;
39 opacity: 0.6;
39 opacity: var(--opacity-muted);
4040 }
4141</style>
web/src/pages/index.astro +22 −40
@@ -80,11 +80,12 @@ const description =
8080</Layout>
8181
8282<style lang="scss">
83 @use '../styles/mixins' as *;
8384 main {
8485 margin: auto;
85 padding: 1rem;
86 width: 1100px;
87 max-width: calc(100% - 5rem);
86 padding: var(--space-md);
87 width: var(--width-container);
88 max-width: var(--width-container-max);
8889 font-size: 20px;
8990 line-height: 1.6;
9091 @media (max-width: 768px) {
@@ -95,69 +96,50 @@ const description =
9596 width: 16rem;
9697 margin: 0 auto;
9798 span {
98 opacity: 0.5;
99 font-size: 1rem;
99 opacity: var(--opacity-dim);
100 font-size: var(--text-base);
100101 }
101102 }
102103 }
103104 h2 {
104 font-size: 3rem;
105 font-size: var(--text-4xl);
105106 color: var(--accent-3);
106 font-family: 'Lekton', sans-serif;
107 font-family: var(--font-subtitle);
107108 text-align: center;
108 margin: 3rem 0 1rem 0;
109 margin: var(--space-xl) 0 var(--space-md) 0;
109110 a {
110111 text-decoration: none;
111112 color: var(--accent-3);
112 font-family: 'Lekton', sans-serif;
113 position: relative;
114 &:after {
115 background: none repeat scroll 0 0 transparent;
116 bottom: 0;
117 content: '';
118 display: block;
119 height: 3px;
120 left: 50%;
121 position: absolute;
122 background: var(--accent);
123 transition:
124 width 0.3s ease 0s,
125 left 0.3s ease 0s;
126 width: 0;
127 }
128 &:hover:after {
129 width: 100%;
130 left: 0;
131 }
113 @include underline-hover(var(--accent));
132114 }
133115 }
134116
135117 .about-summary {
136118 background: var(--accent-fg);
137 border: 2px solid var(--box-outline);
119 border: var(--border-heavy);
138120 border-radius: var(--curve-sm);
139 box-shadow: 4px 4px 0 var(--box-outline);
140 padding: 1rem;
121 box-shadow: var(--shadow-md);
122 padding: var(--space-md);
141123 width: 85%;
142124 margin: 0 auto;
143125 }
144126
145127 .categories {
146128 columns: 6 300px;
147 column-gap: 1rem;
129 column-gap: var(--space-md);
148130 padding: 0;
149131 .category {
150132 background: var(--accent-fg);
151 border: 2px solid var(--box-outline);
133 border: var(--border-heavy);
152134 border-radius: var(--curve-sm);
153 box-shadow: 4px 4px 0 var(--box-outline);
154 padding: 1rem;
135 box-shadow: var(--shadow-md);
136 padding: var(--space-md);
155137 width: 85%;
156138 display: inline-flex;
157139 flex-direction: column;
158 margin: 1rem;
140 margin: var(--space-md);
159141 @media (max-width: 768px) {
160 margin: 1rem 0;
142 margin: var(--space-md) 0;
161143 width: 90%;
162144 }
163145 .category-title {
@@ -165,13 +147,13 @@ const description =
165147 color: var(--foreground);
166148 }
167149 h3 {
168 font-family: 'Lekton', sans-serif;
150 font-family: var(--font-subtitle);
169151 font-weight: bold;
170152 margin: 0;
171 font-size: 1.8rem;
153 font-size: var(--text-2xl);
172154 }
173155 .sections {
174 padding-left: 1rem;
156 padding-left: var(--space-md);
175157 .section {
176158 a {
177159 text-decoration: none;
web/src/pages/inventory/[...inventoryId].astro +13 −13
@@ -60,32 +60,32 @@ if (serviceList.error) {
6060
6161<style lang="scss">
6262 main {
63 margin: 0 auto 2rem auto;
64 padding: 1rem;
65 width: 1200px;
66 max-width: calc(100% - 5rem);
63 margin: 0 auto var(--space-lg) auto;
64 padding: var(--space-md);
65 width: var(--width-container);
66 max-width: var(--width-container-max);
6767 display: flex;
6868 justify-content: space-between;
6969 flex-direction: column;
7070 min-height: calc(100vh - 12rem);
71 font-size: 1.25rem;
71 font-size: var(--text-md);
7272 h2 {
73 font-family: 'Lekton', sans-serif;
73 font-family: var(--font-subtitle);
7474 font-weight: bold;
75 font-size: 3rem;
75 font-size: var(--text-4xl);
7676 margin: 0;
7777 color: var(--accent-3);
7878 }
7979 .buttons {
80 margin: 1rem auto;
80 margin: var(--space-md) auto;
8181 display: flex;
8282 flex-direction: column;
8383 }
8484 .error {
8585 text-align: center;
86 font-size: 1.4rem;
86 font-size: var(--text-lg);
8787 .oh-deary-me {
88 font-size: 1.8rem;
88 font-size: var(--text-2xl);
8989 margin: 0.2rem auto;
9090 }
9191 .what-the-fuck-happened {
@@ -93,9 +93,9 @@ if (serviceList.error) {
9393 margin: 0.2rem auto;
9494 }
9595 .what-next {
96 font-size: 1rem;
97 margin-top: 3rem;
98 opacity: 0.6;
96 font-size: var(--text-base);
97 margin-top: var(--space-xl);
98 opacity: var(--opacity-muted);
9999 a {
100100 color: var(--foreground);
101101 }
web/src/pages/inventory/index.astro +9 −9
@@ -28,30 +28,30 @@ const categories = (await fetchData())?.categories || ([] as Category[]);
2828
2929<style lang="scss">
3030 main {
31 margin: 0 auto 2rem auto;
32 padding: 1rem;
33 width: 1200px;
34 max-width: calc(100% - 5rem);
31 margin: 0 auto var(--space-lg) auto;
32 padding: var(--space-md);
33 width: var(--width-container);
34 max-width: var(--width-container-max);
3535 display: flex;
3636 justify-content: space-between;
3737 flex-direction: column;
3838 min-height: calc(100vh - 12rem);
39 font-size: 1.25rem;
39 font-size: var(--text-md);
4040 .top-row {
4141 display: flex;
4242 justify-content: space-between;
4343 align-items: center;
44 margin-bottom: 1rem;
44 margin-bottom: var(--space-md);
4545 }
4646 h2 {
47 font-family: 'Lekton', sans-serif;
47 font-family: var(--font-subtitle);
4848 font-weight: bold;
49 font-size: 3rem;
49 font-size: var(--text-4xl);
5050 margin: 0;
5151 color: var(--accent-3);
5252 }
5353 .buttons {
54 margin: 1rem auto;
54 margin: var(--space-md) auto;
5555 display: flex;
5656 flex-direction: column;
5757 }
web/src/pages/search/[...searchTerm].astro +26 −27
@@ -114,18 +114,17 @@ const beer = putResultsIntoGroups();
114114 section {
115115 display: flex;
116116 flex-direction: column;
117 padding: 1rem;
118 margin: 2rem auto;
119 padding: 1rem;
117 margin: var(--space-lg) auto;
118 padding: var(--space-md);
120119 width: calc(100% - 2rem);
121 max-width: 1100px;
120 max-width: var(--width-container);
122121
123122 h1 {
124 font-size: 3rem;
123 font-size: var(--text-4xl);
125124 color: var(--accent-3);
126 font-family: 'Lekton', sans-serif;
125 font-family: var(--font-subtitle);
127126 text-align: center;
128 margin: 1rem 0;
127 margin: var(--space-md) 0;
129128 }
130129 }
131130
@@ -133,35 +132,35 @@ const beer = putResultsIntoGroups();
133132 padding: 0;
134133 width: 80vw;
135134 max-width: 900px;
136 margin: 1rem auto 0 auto;
135 margin: var(--space-md) auto 0 auto;
137136 h3 {
138137 margin: 0;
139138 color: var(--accent-3);
140 font-size: 1.6rem;
139 font-size: var(--text-xl);
141140 }
142141 p {
143142 margin: 0;
144 opacity: 0.6;
143 opacity: var(--opacity-muted);
145144 }
146145 }
147146
148147 .results {
149 margin: 0 auto 2rem auto;
150 padding: 1rem;
148 margin: 0 auto var(--space-lg) auto;
149 padding: var(--space-md);
151150 width: calc(100% - 2rem);
152 max-width: 1100px;
151 max-width: var(--width-container);
153152 columns: 6 300px;
154 column-gap: 1rem;
153 column-gap: var(--space-md);
155154 .category {
156 padding: 1rem;
157 box-shadow: 4px 4px 0 var(--box-outline);
155 padding: var(--space-md);
156 box-shadow: var(--shadow-md);
158157 background: var(--accent-fg);
159 border: 2px solid var(--box-outline);
158 border: var(--border-heavy);
160159 border-radius: var(--curve-sm);
161160 display: inline-flex;
162161 flex-direction: column;
163162 width: 85%;
164 margin: 1rem;
163 margin: var(--space-md);
165164 position: relative;
166165 .category-title {
167166 text-decoration: none;
@@ -169,24 +168,24 @@ const beer = putResultsIntoGroups();
169168 z-index: 2;
170169 position: relative;
171170 h3 {
172 font-family: 'Lekton', sans-serif;
171 font-family: var(--font-subtitle);
173172 font-weight: bold;
174173 margin: 0;
175 font-size: 1.8rem;
174 font-size: var(--text-2xl);
176175 }
177176 }
178177 .section-icon {
179178 position: absolute;
180 right: 0.5rem;
181 top: 0.5rem;
179 right: var(--space-sm);
180 top: var(--space-sm);
182181 width: fit-content;
183182 :global(svg) {
184 width: 2rem;
185 height: 2rem;
186 opacity: 0.5;
183 width: var(--text-3xl);
184 height: var(--text-3xl);
185 opacity: var(--opacity-dim);
187186 text-shadow: 3px 3px 0 black;
188187 color: var(--accent-3);
189 transition: all 0.2s ease-in-out;
188 transition: var(--transition-normal);
190189 }
191190 }
192191 .section-list {
@@ -194,7 +193,7 @@ const beer = putResultsIntoGroups();
194193 padding: 0;
195194 margin: 0;
196195 h4 {
197 margin: 1rem 0 0 0;
196 margin: var(--space-md) 0 0 0;
198197 }
199198 .service-list {
200199 list-style: none;
web/src/pages/search/index.astro +14 −15
@@ -23,32 +23,31 @@ const categories = (await fetchData())?.categories;
2323 section {
2424 display: flex;
2525 flex-direction: column;
26 padding: 1rem;
27 box-shadow: 4px 4px 0 var(--box-outline);
26 box-shadow: var(--shadow-md);
2827 background: var(--accent-fg);
29 border: 2px solid var(--box-outline);
28 border: var(--border-heavy);
3029 border-radius: var(--curve-sm);
31 margin: 2rem auto;
32 padding: 1rem;
33 width: calc(100% - 5rem);
34 max-width: 1100px;
30 margin: var(--space-lg) auto;
31 padding: var(--space-md);
32 width: var(--width-container-max);
33 max-width: var(--width-container);
3534 min-height: 80vh;
3635
3736 h1 {
38 font-size: 3rem;
37 font-size: var(--text-4xl);
3938 color: var(--accent-3);
40 font-family: 'Lekton', sans-serif;
39 font-family: var(--font-subtitle);
4140 text-align: center;
42 margin: 1rem 0;
41 margin: var(--space-md) 0;
4342 }
4443 .sitemap-link {
45 opacity: 0.6;
44 opacity: var(--opacity-muted);
4645 text-align: center;
47 font-size: 0.8rem;
48 margin: 2rem auto;
49 transition: all 0.2s ease-in-out;
46 font-size: var(--text-sm);
47 margin: var(--space-lg) auto;
48 transition: var(--transition-normal);
5049 &:hover {
51 opacity: 0.8;
50 opacity: var(--opacity-subtle);
5251 }
5352 }
5453 }
web/src/pages/sitemap.astro +29 −32
@@ -142,31 +142,30 @@ const categories = ((await fetchData()) as AwesomePrivacy)?.categories || [];
142142
143143<style lang="scss">
144144 main {
145 padding: 1rem;
146 width: 1000px;
147 max-width: calc(100% - 5rem);
148 margin: 4rem auto 5rem auto;
149 padding: 0 2rem;
150 border: 2px solid var(--box-outline);
151 box-shadow: 6px 6px 0 var(--box-outline);
145 width: var(--width-container-narrow);
146 max-width: var(--width-container-max);
147 margin: var(--space-2xl) auto 5rem auto;
148 padding: 0 var(--space-lg);
149 border: var(--border-heavy);
150 box-shadow: var(--shadow-lg);
152151 background: var(--accent-fg);
153152 position: relative;
154153 p {
155 font-size: 1.3rem;
154 font-size: var(--text-lg);
156155 margin: 0;
157156 small {
158 font-size: 0.8rem;
159 opacity: 0.5;
160 transition: all 0.2s ease-in-out;
157 font-size: var(--text-sm);
158 opacity: var(--opacity-dim);
159 transition: var(--transition-normal);
161160 &:hover {
162 opacity: 0.8;
161 opacity: var(--opacity-subtle);
163162 }
164163 }
165164 }
166165 ul {
167166 padding-left: 1.2rem;
168167 list-style: none;
169 border-left: 3px solid #5f53f482;
168 border-left: 3px solid var(--transparent-accent);
170169 border-radius: 4px;
171170 li {
172171 font-weight: 600;
@@ -181,11 +180,11 @@ const categories = ((await fetchData()) as AwesomePrivacy)?.categories || [];
181180 }
182181 &::before {
183182 content: '━ ';
184 color: #5f53f482;
183 color: var(--transparent-accent);
185184 margin-left: -1.2rem;
186185 }
187186 a {
188 transition: all ease-in-out 0.2s;
187 transition: var(--transition-normal);
189188 text-decoration: none;
190189 &:hover {
191190 text-decoration: underline;
@@ -196,24 +195,22 @@ const categories = ((await fetchData()) as AwesomePrivacy)?.categories || [];
196195 }
197196
198197 h2 {
199 margin: 0;
200 gap: 1rem;
201 font-size: 2rem;
202 margin: -2rem 0 2rem -4rem;
203 box-shadow: 6px 6px 0 var(--box-outline);
198 font-size: var(--text-3xl);
199 margin: -2rem 0 var(--space-lg) -4rem;
200 box-shadow: var(--shadow-lg);
204201 background: var(--accent);
205202 color: var(--accent-fg);
206203 width: fit-content;
207 padding: 0.25rem 0.5rem;
204 padding: var(--space-xs) var(--space-sm);
208205 @media (max-width: 768px) {
209 margin: -2rem auto 1rem auto;
206 margin: -2rem auto var(--space-md) auto;
210207 }
211208 }
212209
213210 .search-controlls {
214211 float: right;
215 top: 1rem;
216 right: 1rem;
212 top: var(--space-md);
213 right: var(--space-md);
217214 position: absolute;
218215 @media (max-width: 768px) {
219216 position: relative;
@@ -222,22 +219,22 @@ const categories = ((await fetchData()) as AwesomePrivacy)?.categories || [];
222219 right: 0;
223220 }
224221 .press-enter {
225 margin: 0.5rem 0 0 0;
226 opacity: 0.5;
222 margin: var(--space-sm) 0 0 0;
223 opacity: var(--opacity-dim);
227224 visibility: hidden;
228 font-size: 1rem;
225 font-size: var(--text-base);
229226 }
230227 input {
231 padding: 0.25rem;
232 border: 2px solid var(--box-outline);
228 padding: var(--space-xs);
229 border: var(--border-heavy);
233230 border-radius: var(--curve-sm);
234 font-size: 1rem;
235 box-shadow: 3px 3px 0 var(--box-outline);
231 font-size: var(--text-base);
232 box-shadow: var(--shadow-sm);
236233 color: var(--accent-3);
237234 background: var(--background-form);
238235 &:focus {
239236 outline: none;
240 box-shadow: 4px 4px 0 var(--box-outline);
237 box-shadow: var(--shadow-sm-hover);
241238 }
242239 }
243240 }
web/src/pages/submit.astro +13 −14
@@ -136,51 +136,50 @@ const commits = ((await fetchGitHubStats('lissy93/awesome-privacy')) || {})
136136
137137<style lang="scss">
138138 section {
139 margin: 2rem auto;
140 padding: 1rem;
141 width: 1000px;
142 max-width: calc(100% - 5rem);
139 margin: var(--space-lg) auto;
140 width: var(--width-container-narrow);
141 max-width: var(--width-container-max);
143142 display: flex;
144143 flex-direction: column;
145144 justify-content: space-between;
146 padding: 0 2rem;
147 border: 2px solid var(--box-outline);
148 box-shadow: 6px 6px 0 var(--box-outline);
145 padding: 0 var(--space-lg);
146 border: var(--border-heavy);
147 box-shadow: var(--shadow-lg);
149148 background: var(--accent-fg);
150149 border-radius: var(--curve-sm);
151150 @media (max-width: 768px) {
152151 max-width: 95%;
153 padding: 0.5rem;
152 padding: var(--space-sm);
154153 margin: 0 auto;
155154 }
156155 p {
157156 margin-top: 0;
158157 }
159158 h2 {
160 margin-bottom: 0.5rem;
159 margin-bottom: var(--space-sm);
161160 }
162161 ul {
163162 margin-top: 0;
164 padding-left: 1rem;
163 padding-left: var(--space-md);
165164 list-style: circle;
166165 }
167166 .about-data {
168 font-size: 1.2rem;
167 font-size: var(--text-md);
169168 }
170169
171170 .commit-log {
172171 column-width: 350px;
173172 li {
174173 small {
175 font-size: 0.8rem;
176 opacity: 0.7;
174 font-size: var(--text-sm);
175 opacity: var(--opacity-soft);
177176 a {
178177 text-transform: capitalize;
179178 }
180179 }
181180 img {
182181 border-radius: var(--curve-md);
183 margin-right: 0.5rem;
182 margin-right: var(--space-sm);
184183 }
185184 }
186185 }
web/src/styles/_mixins.scss added +109
@@ -0,0 +1,109 @@
1$bp-mobile: 768px;
2
3@mixin underline-hover(
4 $color: var(--accent),
5 $height: 3px,
6 $width: 100%,
7 $speed: 0.3s
8) {
9 position: relative;
10 &:after {
11 content: '';
12 display: block;
13 position: absolute;
14 bottom: 0;
15 left: 50%;
16 width: 0;
17 height: $height;
18 background: $color;
19 transition:
20 width $speed ease,
21 left $speed ease;
22 }
23 &:hover:after {
24 width: $width;
25 left: 0;
26 }
27}
28
29@mixin truncate {
30 text-overflow: ellipsis;
31 overflow: hidden;
32 white-space: nowrap;
33}
34
35@mixin line-clamp($lines: 3) {
36 display: -webkit-box;
37 -webkit-line-clamp: $lines;
38 -webkit-box-orient: vertical;
39 overflow: hidden;
40}
41
42@mixin detail-info-layout {
43 display: flex;
44 flex-wrap: wrap;
45 justify-content: space-between;
46 gap: var(--space-md);
47 .left,
48 .right {
49 width: calc(50% - 1rem);
50 @media screen and (max-width: $bp-mobile) {
51 width: 100%;
52 }
53 }
54}
55
56@mixin detail-info-base {
57 h4 {
58 margin: var(--space-md) 0 0 0;
59 font-size: var(--text-md);
60 }
61 p {
62 margin: 0;
63 display: flex;
64 align-items: center;
65 gap: var(--space-xs);
66 :global(svg) {
67 width: var(--text-base);
68 }
69 img {
70 border-radius: var(--curve-sm);
71 }
72 }
73 ul {
74 padding-left: 0;
75 list-style: none;
76 max-height: 300px;
77 overflow-y: auto;
78 overflow-x: hidden;
79 img {
80 border-radius: var(--curve-sm);
81 }
82 .list-item {
83 display: flex;
84 flex-direction: column;
85 margin-bottom: var(--space-sm);
86 }
87 &.list-table {
88 font-size: var(--text-sm);
89 padding-left: 0;
90 li {
91 display: flex;
92 justify-content: space-between;
93 padding: 0.1rem 0;
94 &:not(:last-child) {
95 border-bottom: 1px solid var(--accent-3-translucent);
96 }
97 }
98 }
99 }
100}
101
102@mixin changelog-badge {
103 font-size: var(--text-sm);
104 padding: 0.05rem 0.35rem;
105 border-radius: var(--curve-sm);
106 font-family: var(--font-subtitle);
107 text-transform: uppercase;
108 font-weight: bold;
109}
web/src/styles/values.css +64 −17
@@ -11,11 +11,16 @@ html {
1111 --curve-sm: 4px;
1212 --curve-md: 6px;
1313 --curve-lg: 12px;
14 --curve-pill: 18px;
1415
1516 --danger: #ff0048;
1617 --success: #00ff64;
18 --success-muted: #0fb953;
1719
1820 --transparent-accent: #5f53f482;
21 --accent-translucent: #f453974d;
22 --accent-3-translucent: #5f53f440;
23 --code-bg: #acabb782;
1924
2025 --background: #151517;
2126 --bg-gradient-comp-1: #151517;
@@ -24,31 +29,73 @@ html {
2429
2530 --box-outline: #000;
2631
32 --font-heading: 'Libre Franklin', sans-serif;
33 --font-subtitle: 'Lekton', sans-serif;
34 --font-body: 'Rubik', sans-serif;
35
36 --shadow-lg: 6px 6px 0 var(--box-outline);
37 --shadow-md: 4px 4px 0 var(--box-outline);
38 --shadow-sm: 3px 3px 0 var(--box-outline);
39 --shadow-xs: 2px 2px 0 var(--box-outline);
40
41 --shadow-lg-hover: 8px 8px 0 var(--box-outline);
42 --shadow-sm-hover: 4px 4px 0 var(--box-outline);
43 --shadow-xs-hover: 3px 3px 0 var(--box-outline);
44
45 --border-heavy: 2px solid var(--box-outline);
46 --border-light: 1px solid var(--box-outline);
47
48 --font-code: 'Courier New', Courier, monospace;
49
50 --text-xs: 0.75rem;
51 --text-sm: 0.85rem;
52 --text-base: 1rem;
53 --text-md: 1.2rem;
54 --text-lg: 1.4rem;
55 --text-xl: 1.6rem;
56 --text-2xl: 1.8rem;
57 --text-3xl: 2rem;
58 --text-4xl: 3rem;
59 --text-5xl: 5rem;
60
61 --space-xs: 0.25rem;
62 --space-sm: 0.5rem;
63 --space-md: 1rem;
64 --space-lg: 2rem;
65 --space-xl: 3rem;
66 --space-2xl: 4rem;
67
68 --opacity-dim: 0.5;
69 --opacity-muted: 0.6;
70 --opacity-soft: 0.7;
71 --opacity-subtle: 0.8;
72
73 --width-container: 1200px;
74 --width-container-narrow: 1000px;
75 --width-container-max: calc(100% - 5rem);
76
77 --transition-fast: all 0.15s ease-in-out;
78 --transition-normal: all 0.2s ease-in-out;
79
80 --rating-a: #35b969;
81 --rating-b: #6bb935;
82 --rating-c: #c7cc22;
83 --rating-d: #e1bb23;
84 --rating-e: #df8b1e;
85 --rating-f: #df541e;
86 --rating-g: #df1e1e;
87 --rating-neutral: #ecd40f;
88 --rating-unknown: grey;
89
2790 --changelog-add: #6fdd8b;
2891 --changelog-rem: #fdcc0b;
2992 --changelog-mod: #42c1ff;
3093 --changelog-rej: #ff2d55;
3194
3295 &[data-theme='light'] {
33 --accent: #f45397;
3496 --accent-fg: #fff;
35
36 --accent-2: #ffdf60;
37 --accent-3: #5f53f4;
38 --accent-4: #28dffd;
39
4097 --foreground: #13151a;
41
42 --curve-sm: 4px;
43 --curve-md: 6px;
44 --curve-lg: 12px;
45
46 --danger: #ff0048;
47 --success: #00ff64;
48
49 --transparent-accent: #5f53f482;
50
51 --background: #feecff;
98 --background: #f1ebf1;
5299 --bg-gradient-comp-1: #feecff;
53100 --bg-gradient-comp-2: #e1e4fb;
54101 --background-form: #fff;
web/src/utils/fetch-changelog.ts +2 −2
@@ -1,8 +1,8 @@
11import { error } from './logger';
22
33const changelogUrl =
4 'https://raw.githubusercontent.com/Lissy93/awesome-privacy/main/.github/changelog.json';
5 // 'https://gist.githubusercontent.com/Lissy93/ddae176f3f21a0d3c0251f5f6cbd3b09/raw/0d5f8fbbb642be62af94fae8f83ed55b48ed355c/changelog.json';
4 // 'https://raw.githubusercontent.com/Lissy93/awesome-privacy/main/.github/changelog.json';
5 'https://gist.githubusercontent.com/Lissy93/ddae176f3f21a0d3c0251f5f6cbd3b09/raw/d0f897eae31bdccce58744d0dc8b444a45beba3b/changelog.json';
66
77export interface ChangelogPr {
88 number: number;