Skip to content

Commit

Permalink
Small CSS fixups
Browse files Browse the repository at this point in the history
* Solarized actually names its colors 03, 02, 01, 00, 0, 1, 2, 3
  so those leading digits are actually relevant.
* It turns out .kint-trace hasn't been a thing since kint 1 back
  in 2016 (Wow)
* I'm very glad that highlight color has been broken all this
  time, it's horrible. Scrapped
* The problem with the color preview box is that you can change
  the width and height, so setting a max doesn't actually solve
  the underlying issue. It's just hard to get the checker pattern
  to line up with the box it's in even if you know the dimensions.
  • Loading branch information
jnvsor committed Nov 11, 2024
1 parent 63fcf33 commit c365549
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 25 deletions.
Binary file modified build/kint.phar
Binary file not shown.
2 changes: 1 addition & 1 deletion resources/compiled/aante-dark.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/compiled/aante-light.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/compiled/original.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/compiled/solarized-dark.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/compiled/solarized.css

Large diffs are not rendered by default.

8 changes: 3 additions & 5 deletions resources/sass/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
margin-left: 5px;
font-weight: bold;
text-align: center;
line-height: var(--color-size);
line-height: 1;
float: right !important;
cursor: pointer;
color: var(--main-background);
Expand Down Expand Up @@ -231,7 +231,7 @@
margin: calc(var(--spacing) * -1) 0;
color: var(--variable-name-color);
background: var(--secondary-background);
height: calc(var(--color-size) * 1 + var(--spacing) * 2);
height: calc(var(--color-size) + var(--spacing) * 2);
width: calc(var(--color-size) * 10);
position: relative;
z-index: 100;
Expand Down Expand Up @@ -389,12 +389,10 @@
vertical-align: middle;
margin-left: 10px;
border: var(--border);
max-width: 30px;
max-height: 30px;
background: {
color: #ccc;
image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2 2"><path fill="%23FFF" d="M0 0h1v2h1V1H0z"/></svg>');
size: 100%;
size: min(20px, 100%);
}

&:hover {
Expand Down
13 changes: 3 additions & 10 deletions resources/sass/original.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,17 @@
--gradient-end: #c0d4df;
--tabs-gradient-start: #9dbed0;
--tabs-gradient-end: #b2ccda;
--highlight-color: #f0eb96;

> dl > dt {
background: linear-gradient(to bottom, var(--gradient-start) 0%, var(--gradient-end) 100%);
}
ul.kint-tabs {
background: linear-gradient(to bottom, var(--tabs-gradient-start) 0%, var(--tabs-gradient-end) 100%);
}
& > dl:not(.kint-trace) > dd > ul.kint-tabs li {
> dl > dd > ul.kint-tabs li {
background: var(--main-background);
&.kint-active-tab {
background: var(--secondary-background);
}
}
& > dl.kint-trace > dt {
background: linear-gradient(to bottom, var(--gradient-end) 0%, var(--gradient-start) 100%);
}
.kint-source .kint-highlight {
background: var(--highlight-color);
ul.kint-tabs {
background: linear-gradient(to bottom, var(--tabs-gradient-start) 0%, var(--tabs-gradient-end) 100%);
}
}
6 changes: 3 additions & 3 deletions resources/sass/solarized-dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
.kint-rich {
--spacing: 5px;

// base 3
// base 03
--main-background: #002b36;

// base 2
// base 02
--secondary-background: #073642;

--backdrop-color: var(--secondary-background);
Expand All @@ -23,7 +23,7 @@
// cyan
--variable-type-color-hover: #2aa198;

// base 1
// base 01
--border-color: #586e75;

// blue
Expand Down
4 changes: 2 additions & 2 deletions resources/sass/solarized.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
// base 2
--secondary-background: #eee8d5;

// base 0
// base 00
--text-color: #657b83;

// base 1
// base 01
--variable-name-color: #586e75;

// blue
Expand Down

1 comment on commit c365549

@DRSDavidSoft
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, nice changes! 👍

Please sign in to comment.