Reorganize CSS files (#24739)

Reorganize various CSS files for clarity, group together by subdirectory
in `index.css`. This reorders some of the rules, but I don't think it
should introduce any issues because of that.
This commit is contained in:
silverwind 2023-05-16 06:13:30 +02:00 committed by GitHub
parent c78b923822
commit b926f96da7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
16 changed files with 35 additions and 28 deletions

View File

@ -5,7 +5,7 @@ ignoreFiles:
- "**/*.go" - "**/*.go"
overrides: overrides:
- files: ["**/chroma/*", "**/codemirror/*", "**/standalone/*", "**/console/*"] - files: ["**/chroma/*", "**/codemirror/*", "**/standalone/*", "**/console.css"]
rules: rules:
scale-unlimited/declaration-strict-value: null scale-unlimited/declaration-strict-value: null
- files: ["**/chroma/*", "**/codemirror/*"] - files: ["**/chroma/*", "**/codemirror/*"]

View File

@ -321,6 +321,16 @@ progress::-moz-progress-bar {
opacity: 1 !important; opacity: 1 !important;
} }
.svg {
display: inline-block;
vertical-align: text-top;
fill: currentcolor;
}
.middle .svg {
vertical-align: middle;
}
.unselectable, .unselectable,
.button, .button,
.lines-num, .lines-num,

View File

@ -1,47 +1,53 @@
@import "./animations.css"; @import "./modules/animations.css";
@import "./modules/tippy.css";
@import "./modules/modal.css";
@import "./modules/breadcrumb.css";
@import "./modules/card.css";
@import "./modules/comment.css";
@import "./shared/issuelist.css"; @import "./shared/issuelist.css";
@import "./shared/repoorg.css"; @import "./shared/repoorg.css";
@import "./features/dropzone.css"; @import "./features/dropzone.css";
@import "./features/gitgraph.css"; @import "./features/gitgraph.css";
@import "./features/heatmap.css"; @import "./features/heatmap.css";
@import "./features/imagediff.css"; @import "./features/imagediff.css";
@import "./features/codeeditor.css"; @import "./features/codeeditor.css";
@import "./features/projects.css"; @import "./features/projects.css";
@import "./modules/tippy.css"; @import "./features/tribute.css";
@import "./modules/modal.css"; @import "./features/console.css";
@import "./modules/breadcrumb.css";
@import "./modules/card.css";
@import "./modules/comment.css";
@import "./code/linebutton.css";
@import "./markup/content.css"; @import "./markup/content.css";
@import "./markup/codecopy.css"; @import "./markup/codecopy.css";
@import "./markup/asciicast.css"; @import "./markup/asciicast.css";
@import "./chroma/base.css"; @import "./chroma/base.css";
@import "./chroma/light.css"; @import "./chroma/light.css";
@import "./codemirror/base.css"; @import "./codemirror/base.css";
@import "./codemirror/light.css"; @import "./codemirror/light.css";
@import "./console/console.css";
@import "./svg.css";
@import "./tribute.css";
@import "./font_i18n.css"; @import "./font_i18n.css";
@import "./base.css"; @import "./base.css";
@import "./home.css"; @import "./home.css";
@import "./install.css"; @import "./install.css";
@import "./form.css"; @import "./form.css";
@import "./repository.css";
@import "./repository/release-tag.css"; @import "./repo.css";
@import "./repository/issue-label.css"; @import "./repo/release-tag.css";
@import "./repository/issue-list.css"; @import "./repo/issue-label.css";
@import "./repository/list-header.css"; @import "./repo/issue-list.css";
@import "./editor.css"; @import "./repo/list-header.css";
@import "./repo/linebutton.css";
@import "./editor/fileeditor.css";
@import "./editor/combomarkdowneditor.css"; @import "./editor/combomarkdowneditor.css";
@import "./organization.css";
@import "./org.css";
@import "./user.css"; @import "./user.css";
@import "./dashboard.css"; @import "./dashboard.css";
@import "./admin.css"; @import "./admin.css";
@import "./explore.css"; @import "./explore.css";
@import "./review.css"; @import "./review.css";
@import "./runner.css"; @import "./actions.css";
@import "./helpers.css"; @import "./helpers.css";

View File

@ -1,9 +0,0 @@
.svg {
display: inline-block;
vertical-align: text-top;
fill: currentcolor;
}
.middle .svg {
vertical-align: middle;
}