Skip to content

Commit 704e695

Browse files
committed
Fixed formatting for Firefox
1 parent 67e93e3 commit 704e695

File tree

2 files changed

+20
-12
lines changed

2 files changed

+20
-12
lines changed

src/lib/devtools/defaults.clj

+1-5
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,7 @@
116116
(sanitize-css (string/join (check-semicolons evald-args))))))
117117

118118
(defmacro get-body-line-common-style []
119-
`(css "min-height: 14px;"
120-
; apply following only as part of Firefox-specific styling
121-
"-moz-display: flex;"
122-
"-moz-align-items: start;"))
119+
`(css "min-height: 14px;"))
123120

124121
(defmacro get-common-type-header-style []
125122
`(css (str "color: " (named-color :type-text) ";")
@@ -173,7 +170,6 @@
173170
"vertical-align: top;"
174171
"position: relative;"
175172
"margin-right: 3px;"
176-
"-moz-margin-top: 2px;" ; apply just under Firefox
177173
"border-radius: 2px;"
178174
"user-select: none;"
179175
(if (= ~kind :slim)

src/lib/devtools/defaults.cljs

+19-7
Original file line numberDiff line numberDiff line change
@@ -406,11 +406,23 @@
406406
; see https://github.com/binaryage/cljs-devtools/pull/73
407407
(def firefox-overrides-config
408408
(delay
409-
{:fn-header-style (css "display: inline-flex;"
410-
"align-items: center;")
411-
:type-ref-style (css (str "background-color:" (named-color :type) ";")
412-
"border-radius: 0 2px 2px 0;")
413-
:native-reference-style (css "padding: 0px 3px;"
414-
"position: relative;"
415-
"top: 1px;")
409+
{:native-reference-wrapper-style (css "line-height: 0;"
410+
"margin-top: -1px;")
411+
:symbol-style (css "overflow: initial;")
412+
:fn-header-style (css "display: inline-flex;"
413+
"align-items: center;")
414+
:type-ref-style (css (str "background-color:" (named-color :type) ";")
415+
"border-radius: 0 2px 2px 0;")
416+
:native-reference-style (css "padding: 0px 3px;"
417+
"position: relative;"
418+
"top: 1px;")
419+
:standard-li-style (css "margin-left: 0px;"
420+
"display: flex;"
421+
"align-items: start;")
422+
:standard-li-no-margin-style (css "margin-left: 0px;"
423+
"display: flex;"
424+
"align-items: start;")
425+
:aligned-li-style (css "margin-left: 0px;"
426+
"display: flex;"
427+
"align-items: start;")
416428
}))

0 commit comments

Comments
 (0)