go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
44.91k stars 5.48k forks source link

Why does editing global CSS files breaks my design? #26647

Closed byjove01 closed 1 year ago

byjove01 commented 1 year ago

Description

In a more precise way, why is the structure of my web pages broken whileas I did put "web_src/css" folder from the main repository in my "custom" directory, and despite the only thing I edited being the body background? Is there something else I should put so the structure could work again?

Screenshots

https://i.imgur.com/3L6R2F6.png

Gitea Version

Gitea version 1.20.2 built with GNU Make 4.4.1, go1.21.0 : bindata, sqlite, sqlite_unlock_notify, pam

Can you reproduce the bug on the Gitea demo site?

No

Operating System

Arch Linux with kernel 6.4.11-arch1-1

Browser Version

LibreWolf Firefox 115.0.2-2

wxiaoguang commented 1 year ago
  1. You need to use the same release version
  2. You might not really want to edit the generated CSS files, but you can add a new file and override the defaults, eg: css/my-styles.css and include it in the custom template.