summaryrefslogtreecommitdiffstats
path: root/tpl
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2022-03-12 09:53:20 +0100
committerVolpeon <git@volpeon.ink>2022-03-12 09:53:20 +0100
commit8c4acea85943a34e62299f419e93a8f3ce142bb9 (patch)
treef9df57f1116986f5e55382a21aa45b777d719dbd /tpl
parentAdded fixed sizes to badge (diff)
downloadiro-design-8c4acea85943a34e62299f419e93a8f3ce142bb9.tar.gz
iro-design-8c4acea85943a34e62299f419e93a8f3ce142bb9.tar.bz2
iro-design-8c4acea85943a34e62299f419e93a8f3ce142bb9.zip
Added list group
Diffstat (limited to 'tpl')
-rw-r--r--tpl/index.pug23
-rw-r--r--tpl/objects/list-group.pug13
-rw-r--r--tpl/objects/text-field.pug3
3 files changed, 35 insertions, 4 deletions
diff --git a/tpl/index.pug b/tpl/index.pug
index f682c26..e1a6445 100644
--- a/tpl/index.pug
+++ b/tpl/index.pug
@@ -21,9 +21,10 @@ include objects/menu.pug
21include objects/backdrop.pug 21include objects/backdrop.pug
22include objects/dialog.pug 22include objects/dialog.pug
23include objects/lightbox.pug 23include objects/lightbox.pug
24include objects/list-group.pug
24 25
25mixin box 26mixin box
26 +container(padX=true padY=true inPage=true theme="raised") 27 +container(padX=true padY=true inPage=true)
27 block 28 block
28 29
29mixin user-card(name, hue) 30mixin user-card(name, hue)
@@ -558,7 +559,6 @@ html
558 +slot('body') 559 +slot('body')
559 p.u-mt-0= loremIpsum 560 p.u-mt-0= loremIpsum
560 561
561
562 //----------------------------------------- 562 //-----------------------------------------
563 563
564 +h1-heading('xl')= 'Lightbox' 564 +h1-heading('xl')= 'Lightbox'
@@ -577,4 +577,23 @@ html
577 a(href="https://mk.vulpes.one/files/081e0684-08dc-4a42-b810-b0ac63ec7d06") 577 a(href="https://mk.vulpes.one/files/081e0684-08dc-4a42-b810-b0ac63ec7d06")
578 = "https://mk.vulpes.one/files/081e0684-08dc-4a42-b810-b0ac63ec7d06" 578 = "https://mk.vulpes.one/files/081e0684-08dc-4a42-b810-b0ac63ec7d06"
579 579
580 //-----------------------------------------
581
582 +h1-heading('xl')= 'List group'
583 +rule('medium')
584
585 +box
586 +list-group
587 +list-group-item= 'First item'
588 +list-group-item= 'Second item'
589 +list-group-item= 'Third item'
590 +list-group-item= 'Fourth item'
591
592 +box
593 +list-group
594 +list-group-item(action=true)= 'First item'
595 +list-group-item(action=true)= 'Second item'
596 +list-group-item(action=true)= 'Third item'
597 +list-group-item(action=true)= 'Fourth item'
598
580 599
diff --git a/tpl/objects/list-group.pug b/tpl/objects/list-group.pug
new file mode 100644
index 0000000..36be264
--- /dev/null
+++ b/tpl/objects/list-group.pug
@@ -0,0 +1,13 @@
1mixin list-group
2 .o-list-group
3 block
4
5mixin list-group-item
6 -
7 let classes = {
8 'o-list-group__item': true,
9 'o-list-group__item--action': attributes.action,
10 }
11
12 div(class=classes)
13 block
diff --git a/tpl/objects/text-field.pug b/tpl/objects/text-field.pug
index 2e9827b..cbdb8c4 100644
--- a/tpl/objects/text-field.pug
+++ b/tpl/objects/text-field.pug
@@ -16,8 +16,7 @@ mixin text-field
16 'is-disabled': attributes.disabled, 16 'is-disabled': attributes.disabled,
17 'l-card': !!block, 17 'l-card': !!block,
18 'l-card--flush': !!block, 18 'l-card--flush': !!block,
19 'l-card--gapless': !!block, 19 'l-card--gapless': !!block
20 'u-p-xs': !!block
21 } 20 }
22 21
23 div(class=classes aria-disabled=attributes.disabled && String(attributes.disabled)) 22 div(class=classes aria-disabled=attributes.disabled && String(attributes.disabled))