diff options
author | Volpeon <git@volpeon.ink> | 2022-03-27 11:23:45 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2022-03-27 11:23:45 +0200 |
commit | cac07ec50d360f3916e84bc3af6164ef07ac2f83 (patch) | |
tree | 8bd37d0c30ba176f5a2079dde171c0a80d6f86b6 /src/objects | |
parent | Lots of updates, especially dialog (diff) | |
download | iro-design-cac07ec50d360f3916e84bc3af6164ef07ac2f83.tar.gz iro-design-cac07ec50d360f3916e84bc3af6164ef07ac2f83.tar.bz2 iro-design-cac07ec50d360f3916e84bc3af6164ef07ac2f83.zip |
Update
Diffstat (limited to 'src/objects')
-rw-r--r-- | src/objects/_action-menu.scss | 1 | ||||
-rw-r--r-- | src/objects/_bubble.scss | 48 | ||||
-rw-r--r-- | src/objects/_dialog.scss | 8 |
3 files changed, 54 insertions, 3 deletions
diff --git a/src/objects/_action-menu.scss b/src/objects/_action-menu.scss index 88e84d6..a3e1ca1 100644 --- a/src/objects/_action-menu.scss +++ b/src/objects/_action-menu.scss | |||
@@ -56,6 +56,7 @@ | |||
56 | transform: translate(var(--x), var(--y)); | 56 | transform: translate(var(--x), var(--y)); |
57 | border: fn.dim(--border) solid fn.color(--border); | 57 | border: fn.dim(--border) solid fn.color(--border); |
58 | border-radius: fn.dim(--rounding); | 58 | border-radius: fn.dim(--rounding); |
59 | background-clip: padding-box; | ||
59 | background-color: fn.global-color(--bg); | 60 | background-color: fn.global-color(--bg); |
60 | box-shadow: fn.color(--shadow); | 61 | box-shadow: fn.color(--shadow); |
61 | color: fn.global-color(--fg); | 62 | color: fn.global-color(--fg); |
diff --git a/src/objects/_bubble.scss b/src/objects/_bubble.scss new file mode 100644 index 0000000..26746fe --- /dev/null +++ b/src/objects/_bubble.scss | |||
@@ -0,0 +1,48 @@ | |||
1 | @use 'iro-sass/src/index' as iro; | ||
2 | @use '../functions' as fn; | ||
3 | |||
4 | @include iro.props-namespace('bubble') { | ||
5 | @include iro.props-store(( | ||
6 | --colors: ( | ||
7 | --image-bg: fn.global-color(--obj), | ||
8 | ), | ||
9 | ), 'colors'); | ||
10 | |||
11 | @include iro.props-store(( | ||
12 | --dims: ( | ||
13 | --pad-x: fn.global-dim(--size --150), | ||
14 | --pad-y: fn.global-dim(--size --85), | ||
15 | --rounding: 3px, | ||
16 | --arrow-size: fn.global-dim(--size --100), | ||
17 | ) | ||
18 | ), 'dims'); | ||
19 | |||
20 | @include iro.bem-object(iro.props-namespace()) { | ||
21 | position: relative; | ||
22 | padding: fn.dim(--pad-y) fn.dim(--pad-x); | ||
23 | border-radius: fn.dim(--rounding); | ||
24 | background-color: fn.global-color(--bg); | ||
25 | color: fn.global-color(--fg); | ||
26 | |||
27 | &::before { | ||
28 | content: ''; | ||
29 | display: none; | ||
30 | position: absolute; | ||
31 | top: 0; | ||
32 | left: calc(-1 * fn.dim(--arrow-size)); | ||
33 | border: fn.dim(--arrow-size) solid fn.global-color(--bg); | ||
34 | border-bottom-color: transparent; | ||
35 | border-left-color: transparent; | ||
36 | } | ||
37 | |||
38 | @include iro.bem-elem('user') { | ||
39 | display: block; | ||
40 | } | ||
41 | |||
42 | @include iro.bem-elem('time') { | ||
43 | margin-left: 1em; | ||
44 | float: right; | ||
45 | transform: translate(.2em, .2em); | ||
46 | } | ||
47 | } | ||
48 | } | ||
diff --git a/src/objects/_dialog.scss b/src/objects/_dialog.scss index f6e8e63..094e09b 100644 --- a/src/objects/_dialog.scss +++ b/src/objects/_dialog.scss | |||
@@ -9,7 +9,7 @@ | |||
9 | --width-sm: iro.fn-px-to-rem(500px), | 9 | --width-sm: iro.fn-px-to-rem(500px), |
10 | --width-md: iro.fn-px-to-rem(800px), | 10 | --width-md: iro.fn-px-to-rem(800px), |
11 | --width-lg: iro.fn-px-to-rem(1100px), | 11 | --width-lg: iro.fn-px-to-rem(1100px), |
12 | --rounding: 3px, | 12 | --rounding: 8px, |
13 | --border: 1px, | 13 | --border: 1px, |
14 | 14 | ||
15 | --body: ( | 15 | --body: ( |
@@ -28,7 +28,7 @@ | |||
28 | 28 | ||
29 | @include iro.props-store(( | 29 | @include iro.props-store(( |
30 | --colors: ( | 30 | --colors: ( |
31 | --border: rgba(#000, .05), | 31 | --border: rgba(#000, .2), |
32 | --shadow: 0 .2em .5em rgba(#000, .2), | 32 | --shadow: 0 .2em .5em rgba(#000, .2), |
33 | 33 | ||
34 | --sidebar: ( | 34 | --sidebar: ( |
@@ -57,9 +57,11 @@ | |||
57 | max-width: fn.dim(--width-md); | 57 | max-width: fn.dim(--width-md); |
58 | margin: 0 auto; | 58 | margin: 0 auto; |
59 | overflow: hidden; | 59 | overflow: hidden; |
60 | border: fn.dim(--border) solid fn.color(--border); | ||
60 | border-radius: fn.dim(--rounding); | 61 | border-radius: fn.dim(--rounding); |
62 | background-clip: padding-box; | ||
61 | background-color: fn.global-color(--bg); | 63 | background-color: fn.global-color(--bg); |
62 | box-shadow: 0 0 0 1px fn.color(--border), fn.color(--shadow); | 64 | box-shadow: fn.color(--shadow); |
63 | color: fn.global-color(--fg); | 65 | color: fn.global-color(--fg); |
64 | 66 | ||
65 | @include iro.bem-modifier('sm') { | 67 | @include iro.bem-modifier('sm') { |