Commit 282e3bc060

282e3bc060068a9acefd87fad8c50b662470257d

parent: 043dbc4f27

Unsigned

Alicia Sykes <alicia@omg.lol> · 2024-03-05 23:15 UTC

Adds edit/remove capabilities, improves responsivness, makes service name hoverable, implements new screenshot service

Layout: unified · split

web/src/components/form/FontAwesome.svelte +4
@@ -23,6 +23,10 @@
23 faceMeh: solidIcons.faMeh, 23 faceMeh: solidIcons.faMeh,
24 faceBad: solidIcons.faFrown, 24 faceBad: solidIcons.faFrown,
25 25
26 // Service actions
27 delete: solidIcons.faTrash,
28 edit: solidIcons.faPenToSquare,
29
26 // Website Detailed Stats 30 // Website Detailed Stats
27 blacklistFound: solidIcons.faDoNotEnter, 31 blacklistFound: solidIcons.faDoNotEnter,
28 blacklistNotFound: solidIcons.faShieldCheck, 32 blacklistNotFound: solidIcons.faShieldCheck,
web/src/components/things/GitHubDetailedInfo.astro +20 −15
@@ -13,7 +13,6 @@ const { gitHubData, repo } = Astro.props;
13 13
14 14
15function generateChartData(languages: Record<string, number>): string { 15function generateChartData(languages: Record<string, number>): string {
16
17 const colorMap: { [key: string]: string } = { 16 const colorMap: { [key: string]: string } = {
18 'TypeScript': '#2b7489', 17 'TypeScript': '#2b7489',
19 'Objective-C++': '#6866fb', 18 'Objective-C++': '#6866fb',
@@ -21,26 +20,26 @@ function generateChartData(languages: Record<string, number>): string {
21 'Dart': '#00B4AB', 20 'Dart': '#00B4AB',
22 'Shell': '#89e051', 21 'Shell': '#89e051',
23 'Elixir': '#6e4a7e', 22 'Elixir': '#6e4a7e',
24 'Kotlin': '#F18E33', 23 'Kotlin': '#7F52FF',
25 'Objective-C': '#438eff', 24 'Objective-C': '#438eff',
26 'Ruby': '#701516', 25 'Ruby': '#CC342D',
27 'Go': '#375eab', 26 'Go': '#00ADD8',
28 'PHP': '#4F5D95', 27 'PHP': '#4F5D95',
29 'Java': '#b07219', 28 'Java': '#b07219',
30 'Scala': '#DC322F', 29 'Scala': '#DC322F',
31 'Makefile': '#427819', 30 'Makefile': '#427819',
32 'Perl': '#0298c3', 31 'Perl': '#39457E',
33 'Lua': '#000080', 32 'Lua': '#2C2D72',
34 'Vue': '#2c3e50', 33 'Vue': '#4FC08D',
35 'HTML': '#e44b23', 34 'HTML': '#E34F26',
36 'Swift': '#ffac45', 35 'Swift': '#F05138',
37 'C': '#555555', 36 'C': '#A8B9CC',
38 'C#': '#097c01', 37 'C#': '#097c01',
39 'Clojure': '#db5855', 38 'Clojure': '#db5855',
40 'Rust': '#dea584', 39 'Rust': '#dea584',
41 'Assembly': '#6E4C13', 40 'Assembly': '#6E4C13',
42 'Arduino': '#bd79d1', 41 'Arduino': '#bd79d1',
43 'C Sharp': '#178600', 42 'C Sharp': '#512BD4',
44 'CSS': '#563d7c', 43 'CSS': '#563d7c',
45 'TeX': '#3D6117', 44 'TeX': '#3D6117',
46 'OCaml': '#3be133', 45 'OCaml': '#3be133',
@@ -55,7 +54,9 @@ function generateChartData(languages: Record<string, number>): string {
55 'Common Lisp': '#3fb68b', 54 'Common Lisp': '#3fb68b',
56 'Groovy': '#e69f56', 55 'Groovy': '#e69f56',
57 'Julia': '#a270ba', 56 'Julia': '#a270ba',
58 'cpp': '#f34b7d', 57 'cpp': '#00599C',
58 'C++': '#00599C',
59 'Dockerfile': '#2496ED',
59 }; 60 };
60 61
61 // Arrays to hold the data, labels, and colors 62 // Arrays to hold the data, labels, and colors
@@ -131,7 +132,7 @@ const languageChart = `https://quickchart.io/chart?c=${generateChartData(gitHubD
131 <h4>Author</h4> 132 <h4>Author</h4>
132 <p> 133 <p>
133 <img src={gitHubData.info.ownerAvatar} width="20" height="20" /> 134 <img src={gitHubData.info.ownerAvatar} width="20" height="20" />
134 <a href={`https://github.com/${gitHubData.info.ownerUsername}`}> 135 <a target="_blank" href={`https://github.com/${gitHubData.info.ownerUsername}`}>
135 {gitHubData.info.ownerUsername} 136 {gitHubData.info.ownerUsername}
136 </a> 137 </a>
137 </p> 138 </p>
@@ -184,7 +185,9 @@ const languageChart = `https://quickchart.io/chart?c=${generateChartData(gitHubD
184 {gitHubData.contributors.map((contributor) => ( 185 {gitHubData.contributors.map((contributor) => (
185 <li> 186 <li>
186 <img src={contributor.avatar} width="20" height="20" /> 187 <img src={contributor.avatar} width="20" height="20" />
187 <a href={`https://github.com/${contributor.username}`}>@{contributor.username}</a> ({contributor.contributions}) 188 <a href={`https://github.com/${contributor.username}`} target="_blank">
189 @{contributor.username}
190 </a> ({contributor.contributions})
188 </li> 191 </li>
189 ))} 192 ))}
190 </ul> 193 </ul>
@@ -195,7 +198,9 @@ const languageChart = `https://quickchart.io/chart?c=${generateChartData(gitHubD
195 {gitHubData.commits.map((commit) => ( 198 {gitHubData.commits.map((commit) => (
196 <li> 199 <li>
197 <img src={commit.authorAvatar} width="20" height="20" /> 200 <img src={commit.authorAvatar} width="20" height="20" />
198 <a href={`https://github.com/${commit.authorUsername}`}>{commit.authorName}</a> 201 <a href={`https://github.com/${commit.authorUsername}`} target="_blank">
202 {commit.authorName}
203 </a>
199 <span class="date" title={timeAgo(commit.authorDate)}>({formatDate(commit.authorDate)})</span> 204 <span class="date" title={timeAgo(commit.authorDate)}>({formatDate(commit.authorDate)})</span>
200 <p class="commit-msg">{commit.message}</p> 205 <p class="commit-msg">{commit.message}</p>
201 </li> 206 </li>
web/src/components/things/ItemGitHubMetrics.astro +1 −1
@@ -90,7 +90,7 @@ const {
90 <FontAwesome iconName="openSource" /> Open Source 90 <FontAwesome iconName="openSource" /> Open Source
91 </span> --> 91 </span> -->
92 <span title={`GitHub repository: ${github}`}> 92 <span title={`GitHub repository: ${github}`}>
93 <a href={`https://github.com/${github}`}><FontAwesome iconName="github" /> {github}</a> 93 <a href={`https://github.com/${github}`} target="_blank"><FontAwesome iconName="github" /> {github}</a>
94 </span> 94 </span>
95 { stats.statusCode === 200 && stats.data && ( 95 { stats.statusCode === 200 && stats.data && (
96 <span title={`GitHub Star Count: ${stargazers_count}`}> 96 <span title={`GitHub Star Count: ${stargazers_count}`}>
web/src/components/things/ServiceList.astro +32 −12
@@ -4,6 +4,7 @@ import Button from '@components/form/Button.astro';
4import { parseMarkdown, formatLink } from '@utils/parse-markdown'; 4import { parseMarkdown, formatLink } from '@utils/parse-markdown';
5import type { Service } from 'src/types/Service'; 5import type { Service } from 'src/types/Service';
6import FontAwesome from '@components/form/FontAwesome.svelte'; 6import FontAwesome from '@components/form/FontAwesome.svelte';
7import DeleteListing from '@components/things/DeleteListing.svelte';
7import { slugify } from '@utils/fetch-data'; 8import { slugify } from '@utils/fetch-data';
8 9
9import GitHubMetrics from '@components/things/ItemGitHubMetrics.astro'; 10import GitHubMetrics from '@components/things/ItemGitHubMetrics.astro';
@@ -52,9 +53,7 @@ const {
52 <ul> 53 <ul>
53 {services.map((service: Service) => ( 54 {services.map((service: Service) => (
54 <li id={slugify(service.name)}> 55 <li id={slugify(service.name)}>
55 <div class="actions"> 56 <DeleteListing client:load categoryName={categoryName} sectionName={sectionName} serviceName={service.name} />
56
57 </div>
58 <div class="service-head"> 57 <div class="service-head">
59 <img 58 <img
60 width="40" 59 width="40"
@@ -106,7 +105,7 @@ const {
106 { service.github && !noGitHubMetrics && <GitHubMetrics github={service.github} /> } 105 { service.github && !noGitHubMetrics && <GitHubMetrics github={service.github} /> }
107 { service.github && noGitHubMetrics && ( 106 { service.github && noGitHubMetrics && (
108 <span class="meta-item" title={`View ${service.name} on GitHub`}> 107 <span class="meta-item" title={`View ${service.name} on GitHub`}>
109 <a href={`https://github.com/${service.github}`}> 108 <a href={`https://github.com/${service.github}`} target="_blank">
110 <FontAwesome iconName="github" /> {service.github} 109 <FontAwesome iconName="github" /> {service.github}
111 </a> 110 </a>
112 </span> 111 </span>
@@ -155,6 +154,7 @@ const {
155 margin: 0 0 3rem 0; 154 margin: 0 0 3rem 0;
156 li { 155 li {
157 margin-bottom: 1rem; 156 margin-bottom: 1rem;
157 position: relative;
158 .service-head { 158 .service-head {
159 display: flex; 159 display: flex;
160 align-items: center; 160 align-items: center;
@@ -167,6 +167,24 @@ const {
167 margin: 0; 167 margin: 0;
168 font-size: 1.6rem; 168 font-size: 1.6rem;
169 } 169 }
170
171 position: relative;
172 &:after {
173 background: none repeat scroll 0 0 transparent;
174 bottom: 0;
175 content: "";
176 display: block;
177 height: 3px;
178 left: 50%;
179 position: absolute;
180 background: var(--accent-3);
181 transition: width 0.3s ease 0s, left 0.3s ease 0s;
182 width: 0;
183 }
184 &:hover:after {
185 width: 100%;
186 left: 0;
187 }
170 } 188 }
171 189
172 .service-icon { 190 .service-icon {
@@ -275,14 +293,16 @@ const {
275 } 293 }
276 } 294 }
277 295
296 section :global(.view-all) {
297 width: fit-content;
298 position: absolute;
299 right: 1rem;
300 margin-top: -2.5rem;
301 background: var(--accent-3);
302 }
278 303
279 304 li:hover :global(.actions) {
280section :global(.view-all) { 305 opacity: 0.5;
281 width: fit-content; 306 }
282 position: absolute;
283 right: 1rem;
284 margin-top: -2.5rem;
285 background: var(--accent-3);
286}
287 307
288</style> 308</style>
web/src/components/things/WebsiteDetailedInfo.astro +1 −5
@@ -39,11 +39,7 @@ else if (risk < 50) riskText = 'risky';
39else if (risk < 75) riskText = 'dangerous'; 39else if (risk < 75) riskText = 'dangerous';
40else if (risk >= 75) riskText = 'very dangerous'; 40else if (risk >= 75) riskText = 'very dangerous';
41 41
42 42const screenshotUrl = `https://screenshot-cache.as93.workers.dev/${url}`;
43const clientSideKey = 'cd02a8520c90410bbc32440950bd3b7e';
44const screenshotOptions = 'format=png&width=960&height=540&ttl=2419200&response_type=image&no_cookie_banners=true&no_ads=true';
45const screenshotEndpoint = 'https://api.apiflash.com/v1';
46const screenshotUrl = `${screenshotEndpoint}/urltoimage?access_key=${clientSideKey}&url=${encodeURIComponent(url)}&${screenshotOptions}`;
47 43
48--- 44---
49 45
web/src/pages/[...listing].astro +82 −4
@@ -6,6 +6,7 @@ import Comments from '@components/things/Comments.svelte';
6import GitHubDetailedInfo from '@components/things/GitHubDetailedInfo.astro'; 6import GitHubDetailedInfo from '@components/things/GitHubDetailedInfo.astro';
7import PrivacyPolicyDetails from '@components/things/PrivacyPolicyDetails.astro'; 7import PrivacyPolicyDetails from '@components/things/PrivacyPolicyDetails.astro';
8import WebsiteDetailedInfo from '@components/things/WebsiteDetailedInfo.astro'; 8import WebsiteDetailedInfo from '@components/things/WebsiteDetailedInfo.astro';
9import DataActions from '@components/things/DataActions.svelte';
9import type { AwesomePrivacy, Section, Service } from '../types/Service'; 10import type { AwesomePrivacy, Section, Service } from '../types/Service';
10import { fetchData, slugify } from '@utils/fetch-data'; 11import { fetchData, slugify } from '@utils/fetch-data';
11import { fetchGitHubStats } from '@utils/fetch-repo-info'; 12import { fetchGitHubStats } from '@utils/fetch-repo-info';
@@ -123,6 +124,10 @@ const githubData = github ? await fetchGitHubStats(github) : null;
123const privacyData = tosdrId ? await fetchTosdrPrivacy(tosdrId) : null; 124const privacyData = tosdrId ? await fetchTosdrPrivacy(tosdrId) : null;
124const websiteData = (url && !ignoredSites.some(ignoredSite => url.includes(ignoredSite))) ? await fetchWebsiteInfo(url) : null; 125const websiteData = (url && !ignoredSites.some(ignoredSite => url.includes(ignoredSite))) ? await fetchWebsiteInfo(url) : null;
125 126
127const getApiEndpoint = () => {
128 return `https://api.awesome-privacy.xyz/${slugify(categoryName)}/${slugify(parentSection.name)}/${slugify(name)}`;
129}
130
126--- 131---
127 132
128<Layout title={makePageTitle()} keywords={makeKeyWordTag()} description={makeDescriptionTag()} > 133<Layout title={makePageTitle()} keywords={makeKeyWordTag()} description={makeDescriptionTag()} >
@@ -171,7 +176,7 @@ const websiteData = (url && !ignoredSites.some(ignoredSite => url.includes(ignor
171 )} 176 )}
172 { tosdrId && ( 177 { tosdrId && (
173 <li> 178 <li>
174 <b>ToS;DR:</b> 179 <b>Privacy:</b>
175 <a href={`https://tosdr.org/en/service/${tosdrId}`}>{`tosdr.org/en/service/${tosdrId}`}</a> 180 <a href={`https://tosdr.org/en/service/${tosdrId}`}>{`tosdr.org/en/service/${tosdrId}`}</a>
176 </li> 181 </li>
177 )} 182 )}
@@ -247,6 +252,29 @@ const websiteData = (url && !ignoredSites.some(ignoredSite => url.includes(ignor
247 sectionName={parentSection.name} 252 sectionName={parentSection.name}
248 /> 253 />
249 </section> 254 </section>
255 <section>
256 <h3>About the Data: {name}</h3>
257 <DataActions client:load categoryName={categoryName} sectionName={parentSection.name} serviceName={name} />
258 <h4>API</h4>
259 <p>
260 You can access {name}'s data programmatically via our API.
261 Simply make a <code>GET</code> request to:
262 </p>
263 <pre><a href={getApiEndpoint()}><code>{getApiEndpoint()}</code></a></pre>
264 <p>
265 The REST API is free, no-auth and CORS-enabled.
266 To learn more, view the <a href="/api/docs">Swagger Docs</a> or read the <a href="/about#our-api">API Usage Guide</a>.
267 </p>
268
269 <h4>About the Data</h4>
270 <p>
271 Beyond the user-submitted YAML you see above, we also augment each listing with
272 additional data dynamically fetched from several sources.
273 To learn more about where the rest of data included in this page comes from,
274 and how it is computed,
275 see the <a href="/about#our-data">About the Data</a> section of our About page.
276 </p>
277 </section>
250 278
251 <div class="pagination-navigation"> 279 <div class="pagination-navigation">
252 { previous ? ( 280 { previous ? (
@@ -276,6 +304,11 @@ main {
276 width: 1000px; 304 width: 1000px;
277 max-width: calc(100% - 5rem); 305 max-width: calc(100% - 5rem);
278 position: relative; 306 position: relative;
307 @media(max-width: 768px) {
308 max-width: 95%;
309 padding: 0.5rem;
310 margin: 0 auto;
311 }
279} 312}
280 313
281section { 314section {
@@ -289,6 +322,10 @@ section {
289 322
290} 323}
291 324
325p {
326 margin: 0.25rem 0 0.5rem 0;
327}
328
292h3 { 329h3 {
293 font-size: 2rem; 330 font-size: 2rem;
294 margin: -2rem 0 1rem -2rem; 331 margin: -2rem 0 1rem -2rem;
@@ -297,12 +334,18 @@ h3 {
297 color: var(--accent-fg); 334 color: var(--accent-fg);
298 width: fit-content; 335 width: fit-content;
299 padding: 0.25rem 0.5rem; 336 padding: 0.25rem 0.5rem;
337 @media(max-width: 768px) {
338 margin: -2rem auto 2rem auto;
339 }
300 } 340 }
301 341
302.service-head { 342.service-head {
303 h2 { 343 h2 {
304 font-size: 3rem; 344 font-size: 3rem;
305 margin: 0; 345 margin: 0;
346 @media(max-width: 768px) {
347 text-align: center;
348 }
306 } 349 }
307 .url-wrap { 350 .url-wrap {
308 display: flex; 351 display: flex;
@@ -315,6 +358,9 @@ h3 {
315 font-style: italic; 358 font-style: italic;
316 opacity: 0.6; 359 opacity: 0.6;
317 } 360 }
361 @media(max-width: 768px) {
362 flex-direction: column;
363 }
318 } 364 }
319 365
320} 366}
@@ -333,6 +379,14 @@ h3 {
333 color: var(--accent); 379 color: var(--accent);
334 } 380 }
335 } 381 }
382 @media(max-width: 768px) {
383 display: none;
384 }
385}
386
387h4 {
388 font-size: 1.4rem;
389 margin-bottom: 0;
336} 390}
337 391
338.intro { 392.intro {
@@ -341,12 +395,15 @@ h3 {
341 opacity: 0.9; 395 opacity: 0.9;
342 display: flex; 396 display: flex;
343 gap: 0.5rem; 397 gap: 0.5rem;
398 @media(max-width: 768px) {
399 flex-direction: column;
400 }
344 .service-icon { 401 .service-icon {
345 border-radius: var(--curve-md); 402 border-radius: var(--curve-md);
346 margin-top: 1rem; 403 margin-top: 1rem;
347 } 404 @media(max-width: 768px) {
348 h4 { 405 margin: 1rem auto 0 auto;
349 margin-bottom: 0; 406 }
350 } 407 }
351 ul { 408 ul {
352 padding-left: 1rem; 409 padding-left: 1rem;
@@ -359,6 +416,10 @@ h3 {
359 font-weight: 400; 416 font-weight: 400;
360 min-width: 85px; 417 min-width: 85px;
361 display: inline-block; 418 display: inline-block;
419 @media(max-width: 768px) {
420 width: auto;
421 display: block;
422 }
362 } 423 }
363 } 424 }
364} 425}
@@ -439,6 +500,23 @@ h3 {
439 } 500 }
440} 501}
441 502
503pre {
504 a {
505 text-decoration: none;
506 color: var(--foreground);
507 code {
508 background: #acabb782;
509 padding: 0.2rem 0.4rem;
510 border-radius: var(--curve-sm);
511 font-family: Courier New;
512 font-size: 0.9rem;
513 @media(max-width: 768px) {
514 white-space: break-spaces;
515 }
516 }
517 }
518}
519
442.highlights { 520.highlights {
443 display: flex; 521 display: flex;
444 gap: 1rem; 522 gap: 1rem;
web/src/pages/about.astro +62 −4
@@ -32,6 +32,41 @@ const licenseContent = async () => {
32 return await response.text(); 32 return await response.text();
33}; 33};
34 34
35const aboutOurData = `
36All data is stored in
37[\`awesome-privacy.yml\`](https://github.com/lissy93/awesome-privacy/blob/main/awesome-privacy.yml).
38
39This file is then pulled into the website at build-time, and also used to generate
40the repositories README file.
41We use this method in the interest of transparency and data integrity,
42as Git makes it possible to maintain a full log of what was changed, when, by who and why.
43
44### Augmention
45The data is augmented with some extra info, to add additional context to each service.
46The aim of this is to give you a broader picture of each service, to help you make a more informed decision.
47Currently, this extra data is pulled from:
48
49- **GitHub API** - To fetch info about each project's repository
50 - Including author & contributors, creation & last updated date, languages, license and star count
51- **Web Check** - To fetch info about each project's website
52 - Including SSL chain, WHOIS, server location, blacklist check and a screenshot
53- **ToS;DR** - To fetch a summerized version of each services Privacy Policy
54 - Including policy and terms of service links, postives + negatives and privacy score
55- **User Reviews** - User-submitted comments + feedback on a given service
56 - Implemented using self-hosted instance of Remark42
57- **Portainer Templates** - To fetch info about each project's Docker image (if it's self-hosted)
58 - Including supported architectures, run command, pull count, last updated and config options
59
60### API
61We also have a free, no-auth, CORS-enabled RESR API,
62which you can use to access Awesome Privacy's data programmatically,
63or to build your own apps on top of it.
64
65The [Swagger Spec](#) outlines all endpoints, usage and examples.
66
67The host is: \`https://api.awesome-privacy.xyz\`
68`;
69
35const projectRequrements = ` 70const projectRequrements = `
36For software to be included in this list, it must meet the following requirements: 71For software to be included in this list, it must meet the following requirements:
37 72
@@ -43,13 +78,16 @@ For software to be included in this list, it must meet the following requirement
43 - The software must be secure by default, without requiring additional configuration 78 - The software must be secure by default, without requiring additional configuration
44 - There should be no current, critical security issues 79 - There should be no current, critical security issues
45 - The handling of past issues must have been prompt, transparent and effective 80 - The handling of past issues must have been prompt, transparent and effective
81 - Ideally hosted services should have been security audited, with the report published publicly
46- **Open Source** 82- **Open Source**
47 - The full source code should be released under an open source license 83 - The full source code should be released under an open source license
48 - Ideally it should be possible for the user to build and run/deploy the software themselves from source 84 - Ideally it should be possible for the user to build and run/deploy the software themselves from source
49- **Actively Maintained** 85- **Actively Maintained**
50 - The developers should address dependency updates and security patches in a timely manner 86 - The developers should address dependency updates and security patches in a timely manner
87 - Ideally the source should have been updated within the last 12 months
51- **Transparent** 88- **Transparent**
52 - It should be clear who is behind the project, what their motives are, and what (if any) the funding model is 89 - It should be clear who is behind the project, what their motives are, and what (if any) the funding model is
90 - For hosted solutions, the privacy policy should clearly state what data is collected, how it's used and how long it's stored
53- **Ethical** 91- **Ethical**
54 - Must not suppress free speech, discriminate or disregard any human rights 92 - Must not suppress free speech, discriminate or disregard any human rights
55- **Relevant** 93- **Relevant**
@@ -176,6 +214,10 @@ const description = 'Privacy is a fundamental human right; '
176 <div class="software-requirements"><p set:html={parseMarkdown(projectRequrements)}></p></div> 214 <div class="software-requirements"><p set:html={parseMarkdown(projectRequrements)}></p></div>
177 <hr /> 215 <hr />
178 216
217 <h2 id="our-data">Our Data</h2>
218 <div class="about-the-data"><p set:html={parseMarkdown(aboutOurData)}></p></div>
219 <hr />
220
179 <h2 id="contributing">Contributing</h2> 221 <h2 id="contributing">Contributing</h2>
180 <p> 222 <p>
181 Awesome Privacy (including all data and code) is fully open source, 223 Awesome Privacy (including all data and code) is fully open source,
@@ -305,7 +347,7 @@ h2 {
305 margin: 2rem 0 1rem 0; 347 margin: 2rem 0 1rem 0;
306} 348}
307p { 349p {
308 font-size: 1.4rem; 350 font-size: 1.2rem;
309} 351}
310hr { 352hr {
311 margin: 2rem 0; 353 margin: 2rem 0;
@@ -323,14 +365,15 @@ h3 {
323 font-size: 1.6rem; 365 font-size: 1.6rem;
324} 366}
325 367
326.software-requirements { 368.software-requirements, .about-the-data {
327 :global(p) { 369 :global(p) {
328 font-size: 1.4rem; 370 font-size: 1.2rem;
371 margin: 0 0 0.5rem 0;
329 } 372 }
330 :global(ul) { 373 :global(ul) {
331 padding-left: 0.5rem; 374 padding-left: 0.5rem;
332 list-style: none; 375 list-style: none;
333 font-size: 1.1rem; 376 font-size: 1.2rem;
334 :global(li ul) { 377 :global(li ul) {
335 padding: 0 0 0.5rem 1rem; 378 padding: 0 0 0.5rem 1rem;
336 list-style: circle; 379 list-style: circle;
@@ -341,6 +384,20 @@ h3 {
341 transition: color 0.2s ease-in-out; 384 transition: color 0.2s ease-in-out;
342 color: var(--accent-3); 385 color: var(--accent-3);
343 } 386 }
387 :global(h3) {
388 font-size: 1.6rem;
389 margin-bottom: 0;
390 }
391 :global(strong) {
392 font-weight: 500;
393 }
394 :global(code) {
395 font-family: 'Courier New', Courier, monospace;
396 background: #acabb782;
397 padding: 0.2rem 0.4rem;
398 border-radius: var(--curve-sm);
399 font-size: 0.9rem;
400 }
344} 401}
345 402
346.user-list { 403.user-list {
@@ -401,6 +458,7 @@ h3 {
401 max-width: 550px; 458 max-width: 550px;
402 margin: 0 auto; 459 margin: 0 auto;
403 } 460 }
461
404 small { 462 small {
405 font-size: 1rem; 463 font-size: 1rem;
406 margin: 1rem 0; 464 margin: 1rem 0;
web/src/styles/typography.css +1 −1
@@ -84,7 +84,7 @@ code {
84 font-style: normal; 84 font-style: normal;
85} 85}
86 86
87html, body, p, a, ul, ol, li, blockquote, pre, code, strong, i { 87html, body, p, a, ul, ol, li, blockquote, pre, strong, i {
88 font-family: "Rubik", sans-serif; 88 font-family: "Rubik", sans-serif;
89} 89}
90 90