top | item 38094685

(no title)

dawidpotocki | 2 years ago

Seems to be down.

Here is my mirror, it should have all the commits: https://git.dawidpotocki.com/mirror/re3/

discuss

order

Zambyte|2 years ago

Hm... it's up for me? If you just tried cloning, I linked directly to the web view of the VC branch, since that's what they asked for. This is the clone link https://git.robbyzambito.me/mirror/re3.git

Thanks for your mirror though

dawidpotocki|2 years ago

Hmm, just checked and it seems that it doesn't work when I'm connecting through some Mullvad VPN exits, but works when I disconnect. Oh well. I assume you have something like fail2ban.

xcdzvyn|2 years 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|2 years ago

Yep, 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)"
        }