Skip to content

Commit ea8e271

Browse files
committed
Improvements for gutters and line numbers in popovers
1 parent 632849d commit ea8e271

File tree

10 files changed

+63
-9
lines changed

10 files changed

+63
-9
lines changed

Minimal.css

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,16 @@ body :not(.canvas-node) .markdown-source-view.mod-cm6 .cm-gutters {
754754
z-index: 0;
755755
margin-inline-end: 0;
756756
}
757+
body :not(.canvas-node) .markdown-source-view.mod-cm6 .cm-gutters .cm-gutter:before {
758+
content: "";
759+
height: 100%;
760+
top: -100%;
761+
width: 100%;
762+
position: absolute;
763+
z-index: 1;
764+
background-color: var(--gutter-background);
765+
min-width: var(--folding-offset);
766+
}
757767

758768
body :not(.canvas-node) .markdown-source-view.mod-cm6.is-rtl .cm-gutters {
759769
right: 0;
@@ -1337,7 +1347,14 @@ button.mod-warning:hover {
13371347
}
13381348

13391349
.popover {
1340-
--file-margins: var(--size-4-4) var(--size-4-6) var(--size-4-6);
1350+
--file-margins: var(--size-4-6) var(--size-4-6) var(--size-4-6);
1351+
}
1352+
1353+
.minimal-line-nums .popover .markdown-source-view {
1354+
--file-margins: var(--size-4-4) var(--size-4-6) var(--size-4-6) var(--size-4-12);
1355+
}
1356+
.minimal-line-nums .popover .markdown-source-view.is-rtl {
1357+
--file-margins: var(--size-4-4) var(--size-4-12) var(--size-4-6) var(--size-4-6);
13411358
}
13421359

13431360
/* Progress bars */
@@ -9222,6 +9239,7 @@ settings:
92229239
title: Gutter background
92239240
type: variable-themed-color
92249241
format: hex
9242+
opacity: true
92259243
default-light: '#'
92269244
default-dark: '#'
92279245
-

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Minimal",
3-
"version": "7.7.13",
3+
"version": "7.7.14",
44
"minAppVersion": "1.6.1",
55
"author": "@kepano",
66
"authorUrl": "https://twitter.com/kepano",

src/css/main.css

Lines changed: 18 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/css/main.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/css/main.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/css/main.min.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/css/style-settings.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,6 +1185,7 @@ settings:
11851185
title: Gutter background
11861186
type: variable-themed-color
11871187
format: hex
1188+
opacity: true
11881189
default-light: '#'
11891190
default-dark: '#'
11901191
-

src/scss/app/editor.scss

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,16 @@ body :not(.canvas-node) .markdown-source-view.mod-cm6 .cm-gutters {
3737
position:absolute !important;
3838
z-index:0;
3939
margin-inline-end: 0;
40-
40+
.cm-gutter:before {
41+
content: "";
42+
height: 100%;
43+
top: -100%;
44+
width: 100%;
45+
position: absolute;
46+
z-index: 1;
47+
background-color: var(--gutter-background);
48+
min-width: var(--folding-offset);
49+
}
4150
}
4251
body :not(.canvas-node) .markdown-source-view.mod-cm6.is-rtl .cm-gutters {
4352
right: 0;

src/scss/components/popovers.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
.popover {
2-
--file-margins: var(--size-4-4) var(--size-4-6) var(--size-4-6);
2+
--file-margins: var(--size-4-6) var(--size-4-6) var(--size-4-6);
3+
}
4+
.minimal-line-nums {
5+
.popover .markdown-source-view {
6+
--file-margins: var(--size-4-4) var(--size-4-6) var(--size-4-6) var(--size-4-12);
7+
}
8+
.popover .markdown-source-view.is-rtl {
9+
--file-margins: var(--size-4-4) var(--size-4-12) var(--size-4-6) var(--size-4-6);
10+
}
311
}

theme.css

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)