Skip to content

Commit

Permalink
Merge branch 'release/v0.22.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
holtwick committed Aug 12, 2024
2 parents 70ea7b0 + 0d09aea commit 11b3f3a
Show file tree
Hide file tree
Showing 9 changed files with 50 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/notification/oui-notification-activator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const ok = useSingleton('oui-notification')
<div
class="oui-notification"
:class="{
'-has-action': n?.onCancel == null,
_has_action: n?.onCancel == null,
[`oui-notification-${n?.mode}`]: n?.mode,
}"
@click.stop="n?.onCancel == null && n.action()"
Expand Down
2 changes: 1 addition & 1 deletion lib/notification/oui-notification.styl
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
gap: px(8);
cursor: default;

&.-has-action {
&._has_action {
cursor: unquote("pointer");

&:hover {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "oui-kit",
"type": "module",
"version": "0.22.3",
"version": "0.22.4",
"author": {
"email": "dirk.holtwick@gmail.com",
"name": "Dirk Holtwick",
Expand Down
1 change: 1 addition & 0 deletions src/css-form.styl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@require "../stylus/index";

oui-preset-layout();
oui-preset-layout-attrs2();

._form {
&_section {
Expand Down
3 changes: 2 additions & 1 deletion src/css-layout.styl
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@
background: -red-500;
}

oui-preset-layout();
oui-preset-layout();
oui-preset-layout-attrs2();
1 change: 1 addition & 0 deletions stylus/default-app.styl
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,6 @@ body {
}
*/
oui-preset-layout-attrs();
oui-preset-layout-attrs2();

@import "../lib/index.styl";
1 change: 1 addition & 0 deletions stylus/default-page.styl
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ body {
}

oui-preset-layout-attrs();
oui-preset-layout-attrs2();

@import "../lib/index.styl";
2 changes: 1 addition & 1 deletion stylus/preset/debug.styl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ oui-debug() {
padding: 1rem;
}

&:hover, &:active, &.-show {
&:hover, &:active, &:_active, &.-show {
border-radius: 4px;
padding: 1rem;
width: auto;
Expand Down
41 changes: 41 additions & 0 deletions stylus/preset/layout.styl
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,44 @@ oui-preset-layout-attrs() {
}
}
}

oui-preset-layout-attrs2() {
if __oui_once("layoutattrs2") {
.-x {
use: stack-x;
}

.-y {
use: stack-y;
}

.-center {
use: stack-item-center;
}

.-scroll {
use: stack-item-scroll;
contain: content;
}

.-grow {
flex: auto;
}

.-fix {
flex: 0;
}

.-gap {
gap: var(--space-s, px(8));
}

.-sep {
width: var(--space-s, px(8));
}

.-dots {
use: ellipsis;
}
}
}

0 comments on commit 11b3f3a

Please sign in to comment.