summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2024-12-11 06:32:35 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2024-12-11 06:32:35 +0000
commit0e56ef74c95538620c34cb5c4c5546ad9b1e8a25 (patch)
tree8d7d172025c693a6c2a9897a0cf765f1a433e020
parentf3509b504bd7b70561687332912c8f39e2a579cd (diff)
downloadredmine-0e56ef74c95538620c34cb5c4c5546ad9b1e8a25.tar.gz
redmine-0e56ef74c95538620c34cb5c4c5546ad9b1e8a25.zip
Refactors nested CSS selectors (#41957).
Patch by Katsuya HIDAKA (user:hidakatsuya). git-svn-id: https://svn.redmine.org/redmine/trunk@23387 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/assets/stylesheets/application.css6
-rw-r--r--app/assets/stylesheets/wiki_syntax.css35
2 files changed, 18 insertions, 23 deletions
diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css
index 1707bc172..8590db99a 100644
--- a/app/assets/stylesheets/application.css
+++ b/app/assets/stylesheets/application.css
@@ -1745,10 +1745,10 @@ td.gantt_selected_column .gantt_hdr,.gantt_selected_column_container {
display: inline-flex;
align-items: center;
vertical-align: middle;
+}
- svg {
- flex-shrink: 0;
- }
+.icon svg, .icon-only svg {
+ flex-shrink: 0;
}
a.icon:hover svg, a.icon-only:hover svg {
diff --git a/app/assets/stylesheets/wiki_syntax.css b/app/assets/stylesheets/wiki_syntax.css
index 068bae969..d326a3293 100644
--- a/app/assets/stylesheets/wiki_syntax.css
+++ b/app/assets/stylesheets/wiki_syntax.css
@@ -23,26 +23,21 @@
h1 { font-family: var(--fonts-main); font-size: 0.875rem; text-align: center; color: #444; }
body { font-family: var(--fonts-main); font-size: 0.75rem; color: #444; }
pre, code {font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; }
-table th {
- padding-top: 1em;
-
- img {
- border: 1px solid #bbb;
- opacity: 0.7;
- }
-
- .syntax-pre {
- display: inline-block;
- border: 1px solid #bbb;
- width: 18px;
- height: 18px;
-
- &:before {
- content: "pre";
- font-size: 0.625rem;
- color: #666;
- }
- }
+table th { padding-top: 1em; }
+table th img {
+ border: 1px solid #bbb;
+ opacity: 0.7;
+}
+table th .syntax-pre {
+ display: inline-block;
+ border: 1px solid #bbb;
+ width: 18px;
+ height: 18px;
+}
+table th .syntax-pre:before {
+ content: "pre";
+ font-size: 0.625rem;
+ color: #666;
}
table td { background-color: #f5f5f5; height: 2em; vertical-align: middle;}
table td code { font-size: 1.2em; }