4 ms·
Is this a fork of cgit? Do you have the source? It's lovely :) Edit: I see, it's just some CSS. New question: Is it FOSS?
by xcdzvyn 3y ago
Is this a fork of cgit? Do you have the source? It's lovely :)
Edit: I see, it's just some CSS. New question: Is it FOSS?
- dawidpotocki 3y agoYep, just some CSS. I have not cleaned it up for release or anything, so it's a bit messy, but feel free to use it under the licence terms of cgit (GPLv2.0-only) and if you don't mind, put an attribution somewhere, like at least at the top of the CSS file. EDIT: You will also need this in your <head>, otherwise you won't have a mobile-friendly layout: <meta name="viewport" content="width=device-width" /> And also a custom pygments config so it uses the correct variables for colours, like this: class BiualStyle(Style): background_color = "#000000" highlight_color = "#222222" default_style = "#cccccc" styles = { Token: "var(--code-cyan)", Whitespace: "", Comment: "var(--code-blue)", Comment.Preproc: "", Comment.Special: "var(--code-red)", Comment.Hashbang: "var(--code-magenta)", Keyword: "var(--code-yellow)", Keyword.Declaration: "var(--code-green)", Keyword.Namespace: "var(--code-magenta)", Keyword.Pseudo: "", Keyword.Type: "var(--code-magenta)", Operator: "var(--code-yellow)", Operator.Word: "var(--code-yellow)", Name: "", Name.Class: "var(--code-cyan)", Name.Builtin: "var(--magenta)", Name.Exception: "var(--code-green)", Name.Variable: "var(--code-cyan)", String: "var(--code-red)", Number: "var(--code-magenta)", Generic.Heading: "var(--code-green)", Generic.Subheading: "var(--code-magenta)", Generic.Deleted: "var(--code-red)", Generic.Inserted: "var(--code-green)", Generic.Error: "var(--code-red)", Generic.Emph: "italic", Generic.Strong: "bold", Generic.Prompt: "bold var(--code-blue)", Generic.Output: "var(--code-gray)", Generic.Traceback: "var(--code-blue)", Error: "border:var(--code-red)" }
- xcdzvyn 3y agoThanks a lot!