Skip to content

Commit f25d306

Browse files
committed
CSS: Rename --color-size to --nav-size
It's the element that decides the height of the bar, so we shouldn't go beyond the nav in height
1 parent c365549 commit f25d306

File tree

7 files changed

+17
-17
lines changed

7 files changed

+17
-17
lines changed

build/kint.phar

75 Bytes
Binary file not shown.

resources/compiled/aante-dark.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.

resources/compiled/aante-light.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.

resources/compiled/original.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.

resources/compiled/solarized-dark.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.

resources/compiled/solarized.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.

resources/sass/_base.scss

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Variables for themes to override
22
.kint-rich {
33
--spacing: 4px;
4-
--color-size: 16px;
4+
--nav-size: 15px;
55

66
--backdrop-color: #{rgba(#fff, 0.9)};
77
--main-background: #e0eaef;
@@ -121,11 +121,11 @@
121121
// Caret styles
122122
dt.kint-parent > nav,
123123
> footer > nav {
124-
background: var(--caret-image) no-repeat scroll 0 0 / 15px 75px transparent;
124+
background: var(--caret-image) no-repeat scroll 0 0 / var(--nav-size) 75px transparent;
125125
cursor: pointer;
126126
display: inline-block;
127-
height: 15px;
128-
width: 15px;
127+
height: var(--nav-size);
128+
width: var(--nav-size);
129129
margin-right: 3px;
130130
vertical-align: middle;
131131
}
@@ -193,9 +193,9 @@
193193
.kint-search-trigger {
194194
background: color-mix(in srgb, var(--text-color) 80%, transparent);
195195
border-radius: 3px;
196-
height: var(--color-size);
197-
width: var(--color-size);
198-
font-size: var(--color-size);
196+
height: var(--nav-size);
197+
width: var(--nav-size);
198+
font-size: var(--nav-size);
199199
margin-left: 5px;
200200
font-weight: bold;
201201
text-align: center;
@@ -218,7 +218,7 @@
218218
// The ⌕ icon is slightly smaller than the others,
219219
// so make it a bit bigger to line it out better
220220
.kint-search-trigger {
221-
font-size: calc(var(--color-size) * 1.25);
221+
font-size: calc(var(--nav-size) * 1.25);
222222
}
223223

224224
input.kint-search {
@@ -231,8 +231,8 @@
231231
margin: calc(var(--spacing) * -1) 0;
232232
color: var(--variable-name-color);
233233
background: var(--secondary-background);
234-
height: calc(var(--color-size) + var(--spacing) * 2);
235-
width: calc(var(--color-size) * 10);
234+
height: calc(var(--nav-size) + var(--spacing) * 2);
235+
width: calc(var(--nav-size) * 10);
236236
position: relative;
237237
z-index: 100;
238238

@@ -383,8 +383,8 @@
383383
}
384384

385385
dt > .kint-color-preview {
386-
width: var(--color-size);
387-
height: var(--color-size);
386+
width: var(--nav-size);
387+
height: var(--nav-size);
388388
display: inline-block;
389389
vertical-align: middle;
390390
margin-left: 10px;

0 commit comments

Comments
 (0)