~gitpocket/gitpocket

1

style(basin): sourcehut blue and system fonts

commit
a549518608aee4576c58d936fcaf41972ee677c0 browse tree
parent
c0c040bdf21727465b64f1f6260ac12f75c23f9b
author
james <j@cpl0.zip>
signature
none
date
2026-09-22 20:56 UTC

5 files changed, +6 −99

static/fonts/inter.txt deleted

@@ -1,92 +0,0 @@
1-Copyright (c) 2016 The Inter Project Authors (https://github.com/rsms/inter)
2-
3-This Font Software is licensed under the SIL Open Font License, Version 1.1.
4-This license is copied below, and is also available with a FAQ at:
5-http://scripts.sil.org/OFL
6-
7------------------------------------------------------------
8-SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
9------------------------------------------------------------
10-
11-PREAMBLE
12-The goals of the Open Font License (OFL) are to stimulate worldwide
13-development of collaborative font projects, to support the font creation
14-efforts of academic and linguistic communities, and to provide a free and
15-open framework in which fonts may be shared and improved in partnership
16-with others.
17-
18-The OFL allows the licensed fonts to be used, studied, modified and
19-redistributed freely as long as they are not sold by themselves. The
20-fonts, including any derivative works, can be bundled, embedded,
21-redistributed and/or sold with any software provided that any reserved
22-names are not used by derivative works. The fonts and derivatives,
23-however, cannot be released under any other type of license. The
24-requirement for fonts to remain under this license does not apply
25-to any document created using the fonts or their derivatives.
26-
27-DEFINITIONS
28-"Font Software" refers to the set of files released by the Copyright
29-Holder(s) under this license and clearly marked as such. This may
30-include source files, build scripts and documentation.
31-
32-"Reserved Font Name" refers to any names specified as such after the
33-copyright statement(s).
34-
35-"Original Version" refers to the collection of Font Software components as
36-distributed by the Copyright Holder(s).
37-
38-"Modified Version" refers to any derivative made by adding to, deleting,
39-or substituting -- in part or in whole -- any of the components of the
40-Original Version, by changing formats or by porting the Font Software to a
41-new environment.
42-
43-"Author" refers to any designer, engineer, programmer, technical
44-writer or other person who contributed to the Font Software.
45-
46-PERMISSION AND CONDITIONS
47-Permission is hereby granted, free of charge, to any person obtaining
48-a copy of the Font Software, to use, study, copy, merge, embed, modify,
49-redistribute, and sell modified and unmodified copies of the Font
50-Software, subject to the following conditions:
51-
52-1) Neither the Font Software nor any of its individual components,
53-in Original or Modified Versions, may be sold by itself.
54-
55-2) Original or Modified Versions of the Font Software may be bundled,
56-redistributed and/or sold with any software, provided that each copy
57-contains the above copyright notice and this license. These can be
58-included either as stand-alone text files, human-readable headers or
59-in the appropriate machine-readable metadata fields within text or
60-binary files as long as those fields can be easily viewed by the user.
61-
62-3) No Modified Version of the Font Software may use the Reserved Font
63-Name(s) unless explicit written permission is granted by the corresponding
64-Copyright Holder. This restriction only applies to the primary font name as
65-presented to the users.
66-
67-4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
68-Software shall not be used to promote, endorse or advertise any
69-Modified Version, except to acknowledge the contribution(s) of the
70-Copyright Holder(s) and the Author(s) or with their explicit written
71-permission.
72-
73-5) The Font Software, modified or unmodified, in part or in whole,
74-must be distributed entirely under this license, and must not be
75-distributed under any other license. The requirement for fonts to
76-remain under this license does not apply to any document created
77-using the Font Software.
78-
79-TERMINATION
80-This license becomes null and void if any of the above conditions are
81-not met.
82-
83-DISCLAIMER
84-THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
85-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
86-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
87-OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
88-COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
89-INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
90-DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
91-FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
92-OTHER DEALINGS IN THE FONT SOFTWARE.

static/fonts/inter.woff2 deleted

Binary file.

static/style.css modified

@@ -1,8 +1,7 @@
1-@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/static/fonts/inter.woff2) format('woff2')}
21 @font-face{font-family:Mono;font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/mono.woff2) format('woff2')}
3-:root{--fg:#212529;--muted:#6c757d;--line:#dee2e6;--soft:#f8f9fa;--bar:#ddd;--link:#0b5ab0;--primary:#0049d1;--add:#1a7f37;--del:#c0392b;--addbg:#e6ffec;--delbg:#ffebe9;--code:#f8f9fa}
2+:root{--fg:#212529;--muted:#6c757d;--line:#dee2e6;--soft:#f8f9fa;--bar:#ddd;--link:#0640e0;--primary:#0640e0;--add:#1a7f37;--del:#c0392b;--addbg:#e6ffec;--delbg:#ffebe9;--code:#f8f9fa}
43 *{box-sizing:border-box}
5-html{font:15px/1.5 Inter,system-ui,sans-serif;font-feature-settings:"cv05","ss03";background:#fff;color:var(--fg)}
4+html{font:15px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans","DejaVu Sans",Arial,sans-serif;background:#fff;color:var(--fg)}
65 body{margin:0}
76 a{color:var(--link);text-decoration:none}
87 a:hover{text-decoration:underline}
@@ -55,10 +54,10 @@ main{padding-bottom:3rem}
5554 .btn{display:inline-block;font:inherit;font-size:.9rem;background:#e9ecef;color:var(--fg);border:1px solid #ccc;padding:.25rem .7rem;cursor:pointer;line-height:1.4}
5655 .btn:hover{text-decoration:none;background:#dde1e5}
5756 .btn.primary{background:var(--primary);color:#fff;border-color:var(--primary)}
58-.btn.primary:hover{background:#003bb0}
57+.btn.primary:hover{background:#0535bd}
5958 .btn.danger{background:#fff;color:var(--del);border-color:var(--del)}
6059 .repos{display:flex;flex-direction:column;gap:.75rem}
61-.repo{border:1px solid var(--line);background:#fff}
60+.repo{border:1px solid var(--line);background:var(--soft)}
6261 .repo>a{display:block;font-size:1.1rem;padding:.35rem .7rem .3rem;border-bottom:1px solid var(--line)}
6362 .repo>div{padding:.3rem .7rem}
6463 .repo>div+div{padding-top:0}

templates/index.html modified

@@ -25,5 +25,5 @@
2525 </section>
2626 {{end}}
2727 {{define "repolist"}}
28-{{if .}}<div class="repos">{{range .}}<div class="repo"><a href="/{{.Path}}">{{.Path}}{{if .Private}} <span class="tag">private</span>{{end}}</a>{{if .Description}}<div>{{.Description}}</div>{{end}}<div class="muted small">{{ago .Created}}</div></div>{{end}}</div>{{else}}<p class="muted">Nothing here yet.</p>{{end}}
28+{{if .}}<div class="repos">{{range .}}<div class="repo"><a href="/{{.Path}}">{{.Path}}{{if .Private}} <span class="tag">private</span>{{end}}</a>{{if .Description}}<div>{{.Description}}</div>{{end}}</div>{{end}}</div>{{else}}<p class="muted">Nothing here yet.</p>{{end}}
2929 {{end}}

templates/user.html modified

@@ -16,7 +16,7 @@
1616 {{if $own}}<a class="btn primary block" href="/create">Create a new repository ▸</a><a class="btn block" href="/settings">Edit your profile ▸</a>{{end}}
1717 </aside>
1818 <div class="main">
19-{{if .Data.Repos}}<div class="repos">{{range .Data.Repos}}<div class="repo"><a href="/{{.Path}}">{{.Name}}{{if .Private}} <span class="tag">private</span>{{end}}</a>{{if .Description}}<div>{{.Description}}</div>{{end}}<div class="muted small">{{ago .Created}}</div></div>{{end}}</div>{{else}}<p class="info">This user does not have any repositories.</p>{{end}}
19+{{if .Data.Repos}}<div class="repos">{{range .Data.Repos}}<div class="repo"><a href="/{{.Path}}">{{.Name}}{{if .Private}} <span class="tag">private</span>{{end}}</a>{{if .Description}}<div>{{.Description}}</div>{{end}}</div>{{end}}</div>{{else}}<p class="info">This user does not have any repositories.</p>{{end}}
2020 </div>
2121 </div>
2222 {{end}}