You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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)
2 years ago
..
chroma Replace Less with CSS (#23481) 2 years ago
code Fix some broken css (#23560) 2 years ago
codemirror Replace Less with CSS (#23481) 2 years ago
console Replace Less with CSS (#23481) 2 years ago
features Set opaque background on markup and images (#23578) 2 years ago
markup Show errors for KaTeX and mermaid on the preview tab (#24009) 2 years ago
modules Replace Less with CSS (#23481) 2 years ago
shared Convert issue list checkboxes to native (#23596) 2 years ago
standalone Replace Less with CSS (#23481) 2 years ago
themes CSS color tweaks (#23828) 2 years ago
admin.css Replace Less with CSS (#23481) 2 years ago
animations.css Replace Less with CSS (#23481) 2 years ago
base.css Fine tune markdown editor toolbar (#24046) 2 years ago
dashboard.css Replace Less with CSS (#23481) 2 years ago
editor-markdown.css Fine tune markdown editor toolbar (#24046) 2 years ago
editor.css Introduce GitHub markdown editor, keep EasyMDE as fallback (#23876) 2 years ago
explore.css Fix long name ui issues and label ui issue (#23541) 2 years ago
font_i18n.css Replace Less with CSS (#23481) 2 years ago
form.css Replace tribute with text-expander-element for textarea (#23985) 2 years ago
helpers.css Use graceful editorconfig loader to reduce errors when loading malformed editorconfigs (#21257) 2 years ago
home.css Replace Less with CSS (#23481) 2 years ago
index.css Introduce GitHub markdown editor, keep EasyMDE as fallback (#23876) 2 years ago
install.css Replace Less with CSS (#23481) 2 years ago
organization.css Org pages style fixes (#23901) 2 years ago
package.css Replace Less with CSS (#23481) 2 years ago
repository.css Adjust sticky pr header to cover background (#23956) 2 years ago
review.css Expand/Collapse all changed files (#23639) 2 years ago
runner.css Replace Less with CSS (#23481) 2 years ago
svg.css Replace Less with CSS (#23481) 2 years ago
tribute.css Replace Less with CSS (#23481) 2 years ago
user.css Fix user profile description rendering (#23882) 2 years ago