-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Introduce .secondary-nav
and handle .page-content
spacing universally
#29982
Conversation
Maybe later refactor to always have the |
Maybe it should not use |
done |
And I would suggest to revert #29922 and leave enough time to have a better framework-level design. |
It's quite simple. The first element inside If you want it cleaner, I will remove the built-in margin on And no, I disagree to reverting #29922, it is a important step. |
There is no general solution here. Some elements want margin, some don't. Some want different margin even. It can not be generalized on the |
So in essence we have two scenarios:
So maybe a general solution is possible but the selector for second element won't be pretty. I guess I would introduce |
@wxiaoguang what to you think about the above suggestion? Is that "framework" enough for you? |
If I understand correctly:
right? It looks like the same as what Fomantic UI does: |
Yes, like that. On repo page it currently uses 12px, but stuff like that can be overridden with tailwind and maybe we should just generally reduce from 15px to 12px. |
Actually on repo the |
Some general and well-defined classes look good to me. |
Ok I guess I will remove this |
.secondary-nav
and handle margin universally
Leaving open a bit more. |
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
.secondary-nav
and handle margin universally.secondary-nav
and handle page-content spacing universally
.secondary-nav
and handle page-content spacing universally.secondary-nav
and handle .page-content
spacing universally
* giteaofficial/main: (28 commits) Enable a few stylelint rules (go-gitea#30038) Remove remaining jQuery .css code (go-gitea#30015) Respect DEFAULT_ORG_MEMBER_VISIBLE setting when adding creator to org (go-gitea#30013) Remove jQuery `.attr` from the common global functions (go-gitea#30023) Migrate font-size helpers to tailwind (go-gitea#30029) Replace all simple inline styles with tailwind (go-gitea#30032) Migrate font-weight helpers to tailwind (go-gitea#30027) Remove jQuery from the issue "go to" button (go-gitea#30028) Determine fuzziness of bleve indexer by keyword length (go-gitea#29706) Escape paths for find file correctly (go-gitea#30026) Remove jQuery `.attr` from the diff page (go-gitea#30021) Remove jQuery `.attr` from the repository settings (go-gitea#30018) Remove jQuery `.attr` from the image diff again (go-gitea#30022) Introduce `.secondary-nav` and handle `.page-content` spacing universally (go-gitea#29982) Remove jQuery `.attr` from the branch/tag selector (go-gitea#30010) Remove jQuery `.attr` from the commit graph (go-gitea#30006) Remove jQuery from the citation modal (except fomantic) (go-gitea#30008) Remove jQuery `.attr` from the project page (go-gitea#30004) Fix incorrect tailwind migration (go-gitea#30007) Enforce trailing comma in JS on multiline (go-gitea#30002) ...
Fixes: #29981. Introduce
.secondary-nav
as a universal way for styling and margin adjustments inside.page-content
.If the first child of
.page-content
is.secondary-nav
, we add margin below it, otherwise we add padding to the first child. Notable changes:--color-header-wrapper
is replaced with--color-secondary-nav-bg
.navbar
class is removed.