summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2024-12-10 22:12:37 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2024-12-10 22:12:37 +0000
commit4a74fcccae8099c17950340a6cfdbd54930cf495 (patch)
treec7f1f8127e6778196c58bb38b5e58771f71615e4
parent3a1357fcf08aefda1ef9e314d152fad5cf9e0cb3 (diff)
downloadredmine-4a74fcccae8099c17950340a6cfdbd54930cf495.tar.gz
redmine-4a74fcccae8099c17950340a6cfdbd54930cf495.zip
Refactors nested CSS selectors in order to improve compatibility with older browsers (#41957).
git-svn-id: https://svn.redmine.org/redmine/trunk@23378 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/assets/stylesheets/application.css65
1 files changed, 30 insertions, 35 deletions
diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css
index a45f821b6..b442da7e3 100644
--- a/app/assets/stylesheets/application.css
+++ b/app/assets/stylesheets/application.css
@@ -180,14 +180,14 @@ pre, code {font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace;}
padding: 3px 0;
padding-right: 28px;
width: 100%;
+}
- svg {
- stroke: #555;
- }
+#sidebar-switch-button svg {
+ stroke: #555;
+}
- &:hover {
- background-color: #eeeeee;
- }
+#sidebar-switch-button:hover {
+ background-color: #eeeeee;
}
#content { flex-grow: 1; background-color: #fff; margin: 0px; padding: 10px 16px 10px 16px; overflow-x: auto;}
@@ -1455,13 +1455,10 @@ button.tab-left.disabled, button.tab-right.disabled {
}
/***** Wiki *****/
-div.wiki {
- font-variant-numeric: proportional-nums;
- & table, & pre, & code, & ol>li::marker {
- font-variant-numeric: tabular-nums;
- }
-}
+div.wiki { font-variant-numeric: proportional-nums; }
+div.wiki table, div.wiki pre, div.wiki code, div.wiki ol>li::marker { font-variant-numeric: tabular-nums; }
+/* Wiki tables */
div.wiki table {
border-collapse: collapse;
margin-bottom: 1em;
@@ -1776,33 +1773,31 @@ svg.icon-ok {
stroke: #ffc400;
}
-svg {
- &.icon-svg {
- stroke: #169;
- fill: none;
- stroke-width: 1.5;
- vertical-align: middle;
- }
+svg.icon-svg {
+ stroke: #169;
+ fill: none;
+ stroke-width: 1.5;
+ vertical-align: middle;
+}
- &.s20 {
- width: 1.25rem;
- height: 1.25rem;
- }
+svg.s20 {
+ width: 1.25rem;
+ height: 1.25rem;
+}
- &.s18 {
- width: 1.125rem;
- height: 1.125rem;
- }
+svg.s18 {
+ width: 1.125rem;
+ height: 1.125rem;
+}
- &.s14 {
- width: 0.875rem;
- height: 0.875rem;
- }
+svg.s14 {
+ width: 0.875rem;
+ height: 0.875rem;
+}
- &.s12 {
- width: 0.75rem;
- height: 0.75rem;
- }
+svg.s12 {
+ width: 0.75rem;
+ height: 0.75rem;
}
span.icon-label {