Skip to content

Commit 4a2a5a5

Browse files
committed
fix: font-size and pre tag design
1 parent 08685ae commit 4a2a5a5

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

styles/atom-ide-datatips-marked.less

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
.datatip-marked-container {
99
color: @syntax-text-color;
1010
font-family: var(--editor-font-family);
11-
font-size: max(var(--editor-font-size), 0.9rem);
11+
font-size: var(--editor-font-size);
1212
max-width: 800px;
1313
overflow: auto;
1414
padding: 8px;
@@ -25,6 +25,8 @@
2525

2626
pre {
2727
font-family: var(--editor-font-family);
28-
font-size: max(var(--editor-font-size), 0.9rem);
28+
font-size: var(--editor-font-size);
29+
margin-bottom: 8px;
30+
border-radius: 0;
2931
}
3032
}

styles/atom-ide-datatips.less

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@
1212
pointer-events: all;
1313
max-width: 800px;
1414
overflow: none;
15+
16+
p {
17+
margin-left: 8px;
18+
margin-right: 8px;
19+
20+
&:last-child { margin-bottom: 8px; }
21+
}
1522
}
1623

1724
.datatip-overlay {
@@ -30,7 +37,7 @@
3037
padding: 8px;
3138
white-space: pre-wrap;
3239
font-family: var(--editor-font-family);
33-
font-size: max(var(--editor-font-size), 0.9rem);
40+
font-size: var(--editor-font-size);
3441
&:hover {
3542
background-color: mix(@syntax-background-color, @syntax-selection-color, 50%);
3643
}

0 commit comments

Comments
 (0)