0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-06 06:09:07 +01:00
gitea/web_src/css
wxiaoguang 704f3aa91c
Fine tune markdown editor toolbar (#24046)
1. Remove unnecessary `btn-link` `muted` classes
* Link is link, button is button, I can't see a real requirement to make
a button like a link.
* If anyone insists, please help to show me real example from modern
frameworks / websites, how and why they do so.
    * No need to duplicate a lot of class names on similar elements
* Declare styles clearly, for example, `markdown-toolbar` itself should
have `display: flex`, but not use `gt-df` to overwrite the `display:
block`.
2. Remove unnecessary `role` attribute
    * https://github.com/github/markdown-toolbar-element/issues/70
* The `markdown-toolbar-element` does want to add `role=button`, but
there is a bug.
* So we do the similar thing as upstream does (add the role by JS),
until they fix their bugs.
3. Indent `markdown-switch-easymde` (before it doesn't have a proper
indent)

Screenshot:

![image](https://user-images.githubusercontent.com/2114189/231090912-f6ba01cb-d0eb-40ad-bf8c-ffc597d9a778.png)
2023-04-11 16:36:18 +08:00
..
chroma Replace Less with CSS (#23481) 2023-03-14 22:20:19 -04:00
code Fix some broken css (#23560) 2023-03-18 17:53:12 -04:00
codemirror Replace Less with CSS (#23481) 2023-03-14 22:20:19 -04:00
console Replace Less with CSS (#23481) 2023-03-14 22:20:19 -04:00
features Set opaque background on markup and images (#23578) 2023-03-21 17:38:04 -04:00
markup Show errors for KaTeX and mermaid on the preview tab (#24009) 2023-04-09 08:07:43 -04:00
modules Replace Less with CSS (#23481) 2023-03-14 22:20:19 -04:00
shared Convert issue list checkboxes to native (#23596) 2023-03-30 11:02:47 -04:00
standalone Replace Less with CSS (#23481) 2023-03-14 22:20:19 -04:00
themes CSS color tweaks (#23828) 2023-03-31 16:24:47 +08:00
admin.css Replace Less with CSS (#23481) 2023-03-14 22:20:19 -04:00
animations.css Replace Less with CSS (#23481) 2023-03-14 22:20:19 -04:00
base.css Fine tune markdown editor toolbar (#24046) 2023-04-11 16:36:18 +08:00
dashboard.css Replace Less with CSS (#23481) 2023-03-14 22:20:19 -04:00
editor-markdown.css Fine tune markdown editor toolbar (#24046) 2023-04-11 16:36:18 +08:00
editor.css Introduce GitHub markdown editor, keep EasyMDE as fallback (#23876) 2023-04-03 18:06:57 +08:00
explore.css Fix long name ui issues and label ui issue (#23541) 2023-03-18 17:07:59 +01:00
font_i18n.css Replace Less with CSS (#23481) 2023-03-14 22:20:19 -04:00
form.css Replace tribute with text-expander-element for textarea (#23985) 2023-04-09 12:18:45 -04:00
helpers.css Use graceful editorconfig loader to reduce errors when loading malformed editorconfigs (#21257) 2023-04-06 16:01:20 -04:00
home.css Replace Less with CSS (#23481) 2023-03-14 22:20:19 -04:00
index.css Introduce GitHub markdown editor, keep EasyMDE as fallback (#23876) 2023-04-03 18:06:57 +08:00
install.css Replace Less with CSS (#23481) 2023-03-14 22:20:19 -04:00
organization.css Org pages style fixes (#23901) 2023-04-04 06:49:09 +02:00
package.css Replace Less with CSS (#23481) 2023-03-14 22:20:19 -04:00
repository.css Adjust sticky pr header to cover background (#23956) 2023-04-08 20:43:15 +08:00
review.css Expand/Collapse all changed files (#23639) 2023-04-09 21:11:02 +08:00
runner.css Replace Less with CSS (#23481) 2023-03-14 22:20:19 -04:00
svg.css Replace Less with CSS (#23481) 2023-03-14 22:20:19 -04:00
tribute.css Replace Less with CSS (#23481) 2023-03-14 22:20:19 -04:00
user.css Fix user profile description rendering (#23882) 2023-04-03 16:11:16 -04:00