diff options
Diffstat (limited to 'src_demo')
-rw-r--r-- | src_demo/_base.scss | 4 | ||||
-rw-r--r-- | src_demo/components/_box.scss | 21 | ||||
-rw-r--r-- | src_demo/components/_content.scss | 10 | ||||
-rw-r--r-- | src_demo/components/_sidebar.scss | 13 | ||||
-rw-r--r-- | src_demo/components/_view.scss | 13 | ||||
-rw-r--r-- | src_demo/index.scss | 63 |
6 files changed, 73 insertions, 51 deletions
diff --git a/src_demo/_base.scss b/src_demo/_base.scss index 129b319..67dfa06 100644 --- a/src_demo/_base.scss +++ b/src_demo/_base.scss | |||
@@ -1,13 +1,13 @@ | |||
1 | body { | 1 | body { |
2 | display: grid; | 2 | display: grid; |
3 | grid-template-columns: auto 1fr; | ||
4 | grid-template-areas: 'sidebar content'; | 3 | grid-template-areas: 'sidebar content'; |
4 | grid-template-columns: auto 1fr; | ||
5 | } | 5 | } |
6 | 6 | ||
7 | @font-face { | 7 | @font-face { |
8 | font-family: 'Garet'; | 8 | font-family: 'Garet'; |
9 | font-style: normal; | 9 | font-style: normal; |
10 | font-weight: 50 950; | 10 | font-weight: 50 950; |
11 | font-display: swap; | ||
12 | src: url('/garet.woff2') format('woff2-variations'); | 11 | src: url('/garet.woff2') format('woff2-variations'); |
12 | font-display: swap; | ||
13 | } | 13 | } |
diff --git a/src_demo/components/_box.scss b/src_demo/components/_box.scss index 21d61c0..d40a8b2 100644 --- a/src_demo/components/_box.scss +++ b/src_demo/components/_box.scss | |||
@@ -1,16 +1,9 @@ | |||
1 | @use 'iro-sass/src/index' as iro; | 1 | @use 'iro-sass/src/bem'; |
2 | @use '../../src/functions' as fn; | 2 | @use 'iro-sass/src/props'; |
3 | @use '../../src/core.vars'; | ||
3 | 4 | ||
4 | @include iro.props-namespace('box') { | 5 | @include bem.component('box') { |
5 | @include iro.props-store(( | 6 | padding: 2em; |
6 | --colors: ( | 7 | margin-block: 2em; |
7 | --border: fn.global-color(--border), | 8 | border: 1px solid props.get(core.$theme, --border); |
8 | ), | ||
9 | )); | ||
10 | |||
11 | @include iro.bem-component(iro.props-namespace()) { | ||
12 | margin-block: 2em; | ||
13 | padding: 2em; | ||
14 | border: 1px solid fn.color(--border); | ||
15 | } | ||
16 | } | 9 | } |
diff --git a/src_demo/components/_content.scss b/src_demo/components/_content.scss index 2f9a2d0..026b0ec 100644 --- a/src_demo/components/_content.scss +++ b/src_demo/components/_content.scss | |||
@@ -1,8 +1,6 @@ | |||
1 | @use 'iro-sass/src/index' as iro; | 1 | @use 'iro-sass/src/bem'; |
2 | 2 | ||
3 | @include iro.props-namespace('content') { | 3 | @include bem.component('content') { |
4 | @include iro.bem-component(iro.props-namespace()) { | 4 | grid-area: content; |
5 | grid-area: content; | 5 | overflow: auto; |
6 | overflow: auto; | ||
7 | } | ||
8 | } | 6 | } |
diff --git a/src_demo/components/_sidebar.scss b/src_demo/components/_sidebar.scss index 7dca65a..da5d27c 100644 --- a/src_demo/components/_sidebar.scss +++ b/src_demo/components/_sidebar.scss | |||
@@ -1,10 +1,7 @@ | |||
1 | @use 'iro-sass/src/index' as iro; | 1 | @use 'iro-sass/src/bem'; |
2 | @use '../../src/functions' as fn; | ||
3 | 2 | ||
4 | @include iro.props-namespace('sidebar') { | 3 | @include bem.component('sidebar') { |
5 | @include iro.bem-component(iro.props-namespace()) { | 4 | grid-area: sidebar; |
6 | grid-area: sidebar; | 5 | min-inline-size: 15em; |
7 | min-inline-size: 15em; | 6 | min-block-size: 0; |
8 | min-block-size: 0; | ||
9 | } | ||
10 | } | 7 | } |
diff --git a/src_demo/components/_view.scss b/src_demo/components/_view.scss index 8086280..95e9db5 100644 --- a/src_demo/components/_view.scss +++ b/src_demo/components/_view.scss | |||
@@ -1,12 +1,9 @@ | |||
1 | @use 'iro-sass/src/index' as iro; | 1 | @use 'iro-sass/src/bem'; |
2 | @use '../../src/functions' as fn; | ||
3 | 2 | ||
4 | @include iro.props-namespace('view') { | 3 | @include bem.component('view') { |
5 | @include iro.bem-component(iro.props-namespace()) { | 4 | display: none; |
6 | display: none; | ||
7 | 5 | ||
8 | &:target { | 6 | &:target { |
9 | display: block; | 7 | display: block; |
10 | } | ||
11 | } | 8 | } |
12 | } | 9 | } |
diff --git a/src_demo/index.scss b/src_demo/index.scss index 4845e03..1fdf290 100644 --- a/src_demo/index.scss +++ b/src_demo/index.scss | |||
@@ -1,18 +1,55 @@ | |||
1 | @use '../src/declare-vars'; | 1 | @use '../src/iro-design' as iro; |
2 | 2 | ||
3 | @use '../src/base'; | 3 | @include iro.core--styles; |
4 | @use 'base' as demo-base; | ||
5 | 4 | ||
6 | @use 'components/sidebar'; | 5 | @include iro.s-implicit--styles; |
7 | @use 'components/content'; | 6 | @include iro.s-blockquotes--styles; |
8 | @use 'components/box'; | 7 | @include iro.s-code--styles; |
9 | @use 'components/view'; | 8 | @include iro.s-headings--styles; |
9 | @include iro.s-links--styles; | ||
10 | @include iro.s-lists--styles; | ||
11 | @include iro.s-tables--styles; | ||
10 | 12 | ||
11 | @use '../src/layouts'; | 13 | @include iro.l-button-group--styles; |
12 | @use '../src/objects'; | 14 | @include iro.l-card-list--styles; |
13 | @use '../src/scopes'; | 15 | @include iro.l-container--styles; |
14 | @use '../src/themes'; | 16 | @include iro.l-flex--styles; |
15 | @use '../src/utils'; | 17 | @include iro.l-form--styles; |
18 | @include iro.l-media--styles; | ||
19 | @include iro.l-overflow--styles; | ||
20 | @include iro.l-split-view--styles; | ||
16 | 21 | ||
17 | @use '../src/apply-vars'; | 22 | @include iro.o-icon--styles; |
23 | @include iro.o-action-button--styles; | ||
24 | @include iro.o-alert--styles; | ||
25 | @include iro.o-avatar--styles; | ||
26 | @include iro.o-backdrop--styles; | ||
27 | @include iro.o-badge--styles; | ||
28 | @include iro.o-button--styles; | ||
29 | @include iro.o-card--styles; | ||
30 | @include iro.o-checkbox--styles; | ||
31 | @include iro.o-divider--styles; | ||
32 | @include iro.o-emoji--styles; | ||
33 | @include iro.o-field-label--styles; | ||
34 | @include iro.o-heading--styles; | ||
35 | @include iro.o-lightbox--styles; | ||
36 | @include iro.o-menu--styles; | ||
37 | @include iro.o-palette--styles; | ||
38 | @include iro.o-popover--styles; | ||
39 | @include iro.o-radio--styles; | ||
40 | @include iro.o-side-nav--styles; | ||
41 | @include iro.o-status-indicator--styles; | ||
42 | @include iro.o-switch--styles; | ||
43 | @include iro.o-table--styles; | ||
44 | @include iro.o-text-field--styles; | ||
45 | @include iro.o-thumbnail--styles; | ||
18 | 46 | ||
47 | @include iro.utils--styles; | ||
48 | |||
49 | @include iro.themes--styles; | ||
50 | |||
51 | @import 'base'; | ||
52 | @import 'components/box'; | ||
53 | @import 'components/content'; | ||
54 | @import 'components/sidebar'; | ||
55 | @import 'components/view'; | ||