-
-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
50 changed files
with
368 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
src/main/resources/generator/client/tikui/style/atom/_atom.scss.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
@use 'button/button'; | ||
@use 'input-text/input-text'; | ||
@use 'label/label'; | ||
@use 'page-title/page-title'; | ||
@use 'paragraph/paragraph'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/main/resources/generator/client/tikui/style/atom/page-title/_page-title.scss.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
@use '../../quark/placeholder'; | ||
|
||
.page-title { | ||
margin: 0; | ||
white-space: pre-line; | ||
color: var(--color-text); | ||
font-family: var(--font-family); | ||
font-size: 3rem; | ||
hyphens: auto; | ||
overflow-wrap: anywhere; | ||
font-weight: 700; | ||
@include placeholder.placeholder-alternative { | ||
max-width: 20rem; | ||
min-height: 3rem; | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
src/main/resources/generator/client/tikui/style/atom/page-title/page-title.code.pug.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
include page-title.mixin.pug | ||
|
||
+page-title Page title | ||
+page-title({placeholder: true}) |
1 change: 1 addition & 0 deletions
1
src/main/resources/generator/client/tikui/style/atom/page-title/page-title.md.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
## Page title |
5 changes: 5 additions & 0 deletions
5
...main/resources/generator/client/tikui/style/atom/page-title/page-title.mixin.pug.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
mixin page-title(options) | ||
- const { placeholder } = options || {}; | ||
- const placeholderClass = placeholder ? '-placeholder' : null; | ||
h1.page-title(class=placeholderClass) | ||
block |
4 changes: 4 additions & 0 deletions
4
...ain/resources/generator/client/tikui/style/atom/page-title/page-title.render.pug.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
extends /layout | ||
|
||
block body | ||
include page-title.code.pug |
13 changes: 13 additions & 0 deletions
13
src/main/resources/generator/client/tikui/style/atom/paragraph/_paragraph.scss.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
@use '../../quark/placeholder'; | ||
|
||
.paragraph { | ||
margin: 0; | ||
padding: 0; | ||
color: var(--color-text); | ||
font-family: var(--font-family); | ||
font-size: var(--font-size); | ||
@include placeholder.placeholder-alternative { | ||
min-height: var(--font-size); | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
src/main/resources/generator/client/tikui/style/atom/paragraph/paragraph.code.pug.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
include paragraph.mixin.pug | ||
|
||
+paragraph Paragraph | ||
+paragraph({placeholder: true}) |
1 change: 1 addition & 0 deletions
1
src/main/resources/generator/client/tikui/style/atom/paragraph/paragraph.md.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
## Paragraph |
5 changes: 5 additions & 0 deletions
5
src/main/resources/generator/client/tikui/style/atom/paragraph/paragraph.mixin.pug.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
mixin paragraph(options) | ||
- const { placeholder } = options || {}; | ||
- const placeholderClass = placeholder ? '-placeholder' : null; | ||
p.paragraph(class=placeholderClass) | ||
block |
4 changes: 4 additions & 0 deletions
4
src/main/resources/generator/client/tikui/style/atom/paragraph/paragraph.render.pug.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
extends /layout | ||
|
||
block body | ||
include paragraph.code.pug |
1 change: 1 addition & 0 deletions
1
src/main/resources/generator/client/tikui/style/molecule/_molecule.scss.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
@use 'field/field'; | ||
@use 'toast/toast'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
src/main/resources/generator/client/tikui/style/molecule/toast/_toast.scss.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.toast { | ||
border-radius: var(--radius-toast); | ||
box-shadow: 0 0 10px var(--color-shadow); | ||
background-color: var(--color-background); | ||
padding: var(--spacing-m); | ||
color: var(--color-text); | ||
font-family: var(--font-family); | ||
} |
3 changes: 3 additions & 0 deletions
3
src/main/resources/generator/client/tikui/style/molecule/toast/toast.code.pug.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
include toast.mixin.pug | ||
|
||
+toast Toast message |
1 change: 1 addition & 0 deletions
1
src/main/resources/generator/client/tikui/style/molecule/toast/toast.md.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
## Toast |
3 changes: 3 additions & 0 deletions
3
src/main/resources/generator/client/tikui/style/molecule/toast/toast.mixin.pug.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
mixin toast | ||
.toast | ||
block |
4 changes: 4 additions & 0 deletions
4
src/main/resources/generator/client/tikui/style/molecule/toast/toast.render.pug.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
extends /layout | ||
|
||
block body | ||
include toast.code.pug |
2 changes: 2 additions & 0 deletions
2
src/main/resources/generator/client/tikui/style/organism/_organism.scss.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
@use 'columns/columns'; | ||
@use 'lines/lines'; | ||
@use 'toasts/toasts'; |
19 changes: 19 additions & 0 deletions
19
src/main/resources/generator/client/tikui/style/organism/columns/_columns.scss.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
@use '../../quark/spacing'; | ||
|
||
.columns { | ||
--columns-gap: 0; | ||
display: flex; | ||
flex-wrap: wrap; | ||
gap: var(--columns-gap); | ||
&.-justify-center { | ||
justify-content: center; | ||
} | ||
|
||
&.-align-center { | ||
align-items: center; | ||
} | ||
|
||
@include spacing.spacing-alternatives('gap-', '--columns-gap'); | ||
} |
13 changes: 13 additions & 0 deletions
13
src/main/resources/generator/client/tikui/style/organism/columns/columns.code.pug.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
include columns.mixin.pug | ||
|
||
+columns('title-and-text') | ||
+columns--column First column | ||
+columns--column Second column | ||
|
||
+columns('paragraphs', {justify: 'center'}) | ||
+columns--column First #[br] column | ||
+columns--column Second column | ||
|
||
+columns('paragraphs', {align: 'center'}) | ||
+columns--column First #[br] column | ||
+columns--column Second column |
1 change: 1 addition & 0 deletions
1
src/main/resources/generator/client/tikui/style/organism/columns/columns.md.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
## Columns |
10 changes: 10 additions & 0 deletions
10
src/main/resources/generator/client/tikui/style/organism/columns/columns.mixin.pug.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
mixin columns(gap, options) | ||
- const { justify, align } = options || {}; | ||
- const justifyClass = justify ? `-justify-${justify}` : null; | ||
- const alignClass = align ? `-align-${align}` : null; | ||
.columns(class=[`-gap-${gap}`, justifyClass, alignClass, gapClass]) | ||
block | ||
|
||
mixin columns--column | ||
.columns--column | ||
block |
4 changes: 4 additions & 0 deletions
4
src/main/resources/generator/client/tikui/style/organism/columns/columns.render.pug.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
extends /layout | ||
|
||
block body | ||
include columns.code.pug |
8 changes: 6 additions & 2 deletions
8
src/main/resources/generator/client/tikui/style/organism/organism.pug.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
extends /layout-documentation | ||
|
||
block append vars | ||
-active='organism' | ||
- active = 'organism'; | ||
|
||
block title | ||
title Tikui - Organisms | ||
|
||
block content | ||
.tikui-vertical-spacing.-s32 | ||
.tikui-vertical-spacing--line | ||
h1.tikui-title-main#organisms Organisms | ||
h1#organisms.tikui-title-main Organisms | ||
.tikui-vertical-spacing--line | ||
include /documentation/atomic-design/quote/organism | ||
.tikui-vertical-spacing--line | ||
include:componentDoc columns/columns.md | ||
.tikui-vertical-spacing--line | ||
include:componentDoc(height=210) lines/lines.md | ||
.tikui-vertical-spacing--line | ||
include:componentDoc(height=210) toasts/toasts.md |
5 changes: 5 additions & 0 deletions
5
src/main/resources/generator/client/tikui/style/organism/toasts/_toasts.scss.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.toasts { | ||
display: flex; | ||
flex-direction: column; | ||
gap: var(--spacing-m); | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/generator/client/tikui/style/organism/toasts/toasts.code.pug.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
include toasts.mixin.pug | ||
|
||
+toasts | ||
+toasts--toast First toast message | ||
+toasts--toast Second toast message | ||
+toasts--toast Last toast message |
1 change: 1 addition & 0 deletions
1
src/main/resources/generator/client/tikui/style/organism/toasts/toasts.md.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
## Toasts |
10 changes: 10 additions & 0 deletions
10
src/main/resources/generator/client/tikui/style/organism/toasts/toasts.mixin.pug.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
include /molecule/toast/toast.mixin.pug | ||
|
||
mixin toasts | ||
.toasts | ||
block | ||
|
||
mixin toasts--toast | ||
.toasts--toast | ||
+toast | ||
block |
4 changes: 4 additions & 0 deletions
4
src/main/resources/generator/client/tikui/style/organism/toasts/toasts.render.pug.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
extends /layout | ||
|
||
block body | ||
include toasts.code.pug |
2 changes: 2 additions & 0 deletions
2
src/main/resources/generator/client/tikui/style/template/_template.scss.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@use 'template-page/template-page'; | ||
@use 'toasting/toasting'; |
22 changes: 22 additions & 0 deletions
22
...esources/generator/client/tikui/style/template/template-page/_template-page.scss.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
@use '../../variables/breakpoint'; | ||
|
||
.template-page { | ||
position: fixed; | ||
inset: 0; | ||
background-color: var(--color-background-page); | ||
overflow: auto; | ||
&--content { | ||
box-sizing: border-box; | ||
margin: 0 auto; | ||
background-color: var(--color-background); | ||
padding: var(--spacing-l); | ||
width: 100%; | ||
max-width: var(--content-width); | ||
min-height: 100vh; | ||
@media screen and (width >= #{breakpoint.$large}) { | ||
padding: var(--spacing-l) 5rem; | ||
} | ||
} | ||
} |
Oops, something went wrong.