Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
tborychowski committed May 15, 2024
1 parent 8cb6cef commit 5c1e5c8
Show file tree
Hide file tree
Showing 11 changed files with 156 additions and 170 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ Changelog
=========



## v9.5.2 *(2024-05-15)*
- Fix `--ui-shadow-large` in light-mode (was a bit too dark).
- Animation speed increased from 0.3 to 0.25s.
- Fix `Dialog`'s rendering artifacts in Safari.


## v9.5.1, v9.5.0 *(2024-05-12)*
- New property for `Dialog`: `modal`.
- Fix square radiobuttons bug.
Expand Down
6 changes: 6 additions & 0 deletions docs-src/pages/changelog.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
<h1>Changelog</h1>
<h2>v9.5.2 <em>(2024-05-15)</em></h2>
<ul>
<li>Fix <code>--ui-shadow-large</code> in light-mode (was a bit too dark).</li>
<li>Animation speed increased from 0.3 to 0.25s.</li>
<li>Fix <code>Dialog</code>&#39;s rendering artifacts in Safari.</li>
</ul>
<h2>v9.5.1, v9.5.0 <em>(2024-05-12)</em></h2>
<ul>
<li>New property for <code>Dialog</code>: <code>modal</code>.</li>
Expand Down
2 changes: 1 addition & 1 deletion docs/docs.css

Large diffs are not rendered by default.

196 changes: 98 additions & 98 deletions docs/docs.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/ui.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { createGulpEsbuild } from 'gulp-esbuild';
import { deleteAsync } from 'del';
import cache from 'gulp-cached';
import cleanCSS from 'gulp-clean-css';
import cleanCSS from 'gulp-cleaner-css';
import clear from 'screen-clear';
import concat from 'gulp-concat';
import fs from 'fs';
Expand Down
75 changes: 24 additions & 51 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"globals": "^15.2.0",
"gulp": "^5.0.0",
"gulp-cached": "^1.1.1",
"gulp-clean-css": "^4.3.0",
"gulp-cleaner-css": "^4.3.2",
"gulp-concat": "^2.6.1",
"gulp-esbuild": "^0.12.0",
"gulp-eslint-new": "^2.0.0",
Expand Down
28 changes: 14 additions & 14 deletions src/dialog/Dialog.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@


.dialog {
--ui-dialog-border-radius: var(--ui-border-radius-l);
--ui-dialog-inner-border-radius: calc(var(--ui-dialog-border-radius) - 1px);

opacity: 0;
transform: scale(0.8);
transition:
Expand All @@ -30,15 +33,14 @@
min-width: 15rem;
max-width: 95vw;
color: var(--ui-color-text);
border-radius: var(--ui-border-radius-m);
border-radius: var(--ui-dialog-border-radius);
background: var(--ui-popup-background);
border: var(--ui-popup-border);
box-shadow: var(--ui-shadow-large);
display: flex;
flex-flow: column;
align-items: stretch;
justify-content: stretch;
overflow: hidden;
}

.opened .dialog { opacity: 1; transform: scale(1); }
Expand All @@ -51,9 +53,7 @@
font-size: var(--ui-font-xl);
font-weight: 300;
margin: 0;
border-bottom: 1px solid var(--ui-color-border);
border-top-left-radius: calc(var(--ui-border-radius-m) - 1px);
border-top-right-radius: calc(var(--ui-border-radius-m) - 1px);
border-bottom: 0.5px solid var(--ui-color-border);
}

.dialog-content {
Expand All @@ -73,12 +73,10 @@
box-shadow: var(--ui-shadow-focus) inset;
}


.dialog-footer {
border-top: 1px solid var(--ui-color-border);

border-bottom-left-radius: calc(var(--ui-border-radius-m) - 1px);
border-bottom-right-radius: calc(var(--ui-border-radius-m) - 1px);
border-top: 0.5px solid var(--ui-color-border);
border-bottom-left-radius: var(--ui-dialog-inner-border-radius);
border-bottom-right-radius: var(--ui-dialog-inner-border-radius);
}

.dialog-footer [slot="footer"] {
Expand All @@ -90,9 +88,14 @@
gap: 0.5rem;
}

.dialog-footer .button-has-text { min-width: 9ch; }


.dialog-footer .button-has-text { min-width: 9ch; }
.dialog-header,
.dialog.no-title .dialog-content {
border-top-left-radius: var(--ui-dialog-inner-border-radius);
border-top-right-radius: var(--ui-dialog-inner-border-radius);
}

.dialog-header:empty { display: none; }

Expand All @@ -105,9 +108,6 @@
box-shadow: none;
}




@supports ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
.dialog-backdrop.opened {
-webkit-backdrop-filter: contrast(0.8) grayscale(0.5) brightness(0.5) blur(1px);
Expand Down
2 changes: 1 addition & 1 deletion src/dialog/Dialog.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
bind:this="{element}"
on:mousedown="{onBackdropMousedown}"
on:click="{onBackdropClick}">
<div class="dialog" bind:this="{dialogEl}">
<div class="dialog" class:no-title="{!title}" bind:this="{dialogEl}">
<div tabindex="0" class="focus-trap focus-trap-top" on:focus="{focusLast}"></div>
<h1 class="dialog-header">{title}</h1>
<div class="dialog-content" bind:this="{contentEl}"><slot/></div>
Expand Down
4 changes: 2 additions & 2 deletions src/root.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
--ui-margin-l: 1rem; /* 16px */


--ui-animation-speed: .3s;
--ui-animation-speed: .25s;
--ui-button-height: 2.25rem; /* 36px */


Expand All @@ -31,7 +31,7 @@
--ui-shadow-focus: 0 0 2px 1px var(--ui-color-accent);
--ui-shadow-danger: 0 0 2px 1px var(--ui-color-danger);
--ui-shadow-small: 0 0 0 0.5px #fff4, 0 3px 10px #0006;
--ui-shadow-large: 0 0 0 1px #000, 0 5px 20px #000a;
--ui-shadow-large: 0 0 0 1px #0003, 0 5px 20px #000a;
--ui-shadow-fancy:
0 0 0 0.5px #111,
0 1px 5px rgb(0 0 0 / 30%),
Expand Down

0 comments on commit 5c1e5c8

Please sign in to comment.