[PR #3104] [MERGED] Rework button styles on repo and commit page #16768

Closed
opened 2025-11-02 12:18:40 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/3104
Author: @silverwind
Created: 12/6/2017
Status: Merged
Merged: 12/7/2017
Merged by: @appleboy

Base: masterHead: fix-buttons


📝 Commits (1)

  • 0ce57ce Rework button styles on repo and commit page

📊 Changes

3 files changed (+9 additions, -7 deletions)

View changed files

📝 public/css/index.css (+1 -1)
📝 public/less/_base.less (+7 -5)
📝 templates/repo/commits.tmpl (+1 -1)

📄 Description

My fix in https://github.com/go-gitea/gitea/pull/3091 introduced an issue on some buttons because Semantic unexpectedly sets a font-size of 0 in some places, which breaks em units on children. I changed the way of overriding the selector to now target small or compact buttons specifically and reset their value to what it originally is. Results:

screen shot 2017-12-06 at 20 50 12 screen shot 2017-12-06 at 20 50 19 screen shot 2017-12-06 at 20 59 21

Fixes: https://github.com/go-gitea/gitea/issues/3094


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/3104 **Author:** [@silverwind](https://github.com/silverwind) **Created:** 12/6/2017 **Status:** ✅ Merged **Merged:** 12/7/2017 **Merged by:** [@appleboy](https://github.com/appleboy) **Base:** `master` ← **Head:** `fix-buttons` --- ### 📝 Commits (1) - [`0ce57ce`](https://github.com/go-gitea/gitea/commit/0ce57ceea13017317f898b1a5f2fc8039860c124) Rework button styles on repo and commit page ### 📊 Changes **3 files changed** (+9 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `public/css/index.css` (+1 -1) 📝 `public/less/_base.less` (+7 -5) 📝 `templates/repo/commits.tmpl` (+1 -1) </details> ### 📄 Description My fix in https://github.com/go-gitea/gitea/pull/3091 introduced an issue on some buttons because Semantic unexpectedly sets a font-size of `0` in some places, which breaks `em` units on children. I changed the way of overriding the selector to now target small or compact buttons specifically and reset their value to what it originally is. Results: <img width="287" alt="screen shot 2017-12-06 at 20 50 12" src="https://user-images.githubusercontent.com/115237/33682403-a167459e-dac7-11e7-87fa-b0990ea0b335.png"> <img width="396" alt="screen shot 2017-12-06 at 20 50 19" src="https://user-images.githubusercontent.com/115237/33682404-a18b6898-dac7-11e7-9b27-648cb694c5c7.png"> <img width="329" alt="screen shot 2017-12-06 at 20 59 21" src="https://user-images.githubusercontent.com/115237/33682632-60268d14-dac8-11e7-9211-61b3879729d6.png"> Fixes: https://github.com/go-gitea/gitea/issues/3094 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 12:18:40 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#16768