Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow custom CSS to be appended to Gitea #688

Closed
2 of 6 tasks
pgaskin opened this issue Jan 17, 2017 · 9 comments
Closed
2 of 6 tasks

Allow custom CSS to be appended to Gitea #688

pgaskin opened this issue Jan 17, 2017 · 9 comments
Labels
type/feature Completely new functionality. Can only be merged if feature freeze is not active.
Milestone

Comments

@pgaskin
Copy link
Contributor

pgaskin commented Jan 17, 2017

  • Gitea version (or commit ref): 1.0.1
  • Git version: 2.9.3
  • Operating system: Alpine Linux
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant

Description

I have a Gitea server. I would like to be able to append custom CSS to the page to make small changes, such as the size of the buttons, and padding on certain elements. Sometimes, I want to make other small changes. I would like a way CSS can be injected from a file to the end of the page, so I can do this quickly, and without rebuilding Gitea after patching it with my CSS.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/41043453-allow-custom-css-to-be-appended-to-gitea?utm_campaign=plugin&utm_content=tracker%2F47456670&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F47456670&utm_medium=issues&utm_source=github).
@esell
Copy link
Contributor

esell commented Jan 17, 2017

As of today if you build from source without the bindata tag you can use custom templates which in this case would get you what you want. Once you've compiled the code without bindata you'll be able to update the CSS whenever you want.

EDIT: as a reference you can check out this existing issue: #529

@pgaskin
Copy link
Contributor Author

pgaskin commented Jan 17, 2017

I already know about bindata, but I require bindata at the moment. Also, if I modify the original CSS, I cannot update without losing my changes.

I am asking about a file which gitea would append CSS from automatically, even with bindata.

@tboerger
Copy link
Member

With custom templates you can add additional css files, but there is currently an open issue related to that.

@tboerger
Copy link
Member

A pr for custom public data have been merged, hopefully I can fix custom templates as well soon

@pgaskin
Copy link
Contributor Author

pgaskin commented Jan 29, 2017

@tboerger I have opened pull request #784. This builds on your work on #782 to allow custom css without overriding the whole gitea stylesheet.

@lunny lunny added this to the 1.1.0 milestone Jan 29, 2017
@lunny lunny added the type/feature Completely new functionality. Can only be merged if feature freeze is not active. label Jan 29, 2017
@lunny lunny modified the milestones: 1.2.0, 1.1.0 Feb 23, 2017
@lunny lunny modified the milestones: 1.x.x, 1.2.0 Apr 20, 2017
@hooch
Copy link

hooch commented Jan 9, 2018

+1 ?

Pulling out the head.tmpl is getting more complicated with each release.

@tboerger
Copy link
Member

tboerger commented Jan 9, 2018

Pulling out the head.tmpl is getting more complicated with each release.

Just use this custom template: https://github.com/go-gitea/gitea/blob/master/templates/base/head.tmpl#L130

@lafriks
Copy link
Member

lafriks commented Jan 9, 2018

I think this can be closed already as we provide custom block to be added in head

@lafriks lafriks modified the milestones: 1.x.x, 1.4.0 Jan 9, 2018
@lafriks lafriks closed this as completed Jan 9, 2018
@lafriks
Copy link
Member

lafriks commented Jan 9, 2018

Implemented by #3051

@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/feature Completely new functionality. Can only be merged if feature freeze is not active.
Projects
None yet
Development

No branches or pull requests

6 participants