Commit 7b6b11a6 authored by Paul Slaughter's avatar Paul Slaughter

Merge branch '32676-misalignment-of-line-numbers-in-code-view-on-safari' into 'master'

Properly align line numbers with code lines in Safari

See merge request gitlab-org/gitlab!24820
parents 50d3b8b7 8e568ef5
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
.line { .line {
display: block; display: block;
width: 100%; width: 100%;
min-height: 1.5em;
padding-left: 10px; padding-left: 10px;
padding-right: 10px; padding-right: 10px;
white-space: pre; white-space: pre;
...@@ -48,7 +47,6 @@ ...@@ -48,7 +47,6 @@
font-family: $monospace-font; font-family: $monospace-font;
display: block; display: block;
font-size: $code-font-size !important; font-size: $code-font-size !important;
min-height: 1.5em;
white-space: nowrap; white-space: nowrap;
i, i,
...@@ -70,6 +68,13 @@ ...@@ -70,6 +68,13 @@
} }
} }
} }
pre .line,
.line-numbers a {
font-size: 0.8125rem;
line-height: 1.1875rem;
min-height: 1.1875rem;
}
} }
// Vertically aligns <table> line numbers (eg. blame view) // Vertically aligns <table> line numbers (eg. blame view)
......
---
title: Fix code line and line number alignment in Safari
merge_request: 24820
author:
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment