From ff215d0f5673368b5da5abbcf64793bde48dba12 Mon Sep 17 00:00:00 2001 From: Kia King Ishii Date: Mon, 6 Nov 2023 19:43:24 +0900 Subject: [PATCH] feat(m): add `` (motion) component --- lib/components/SM.vue | 56 ++++++++++++++++ lib/components/SMFade.vue | 18 +++++ stories/components/SM.01_Playground.story.vue | 66 +++++++++++++++++++ .../components/SM.02_Presets_SMFade.story.vue | 60 +++++++++++++++++ stories/styles.css | 10 ++- 5 files changed, 208 insertions(+), 2 deletions(-) create mode 100644 lib/components/SM.vue create mode 100644 lib/components/SMFade.vue create mode 100644 stories/components/SM.01_Playground.story.vue create mode 100644 stories/components/SM.02_Presets_SMFade.story.vue diff --git a/lib/components/SM.vue b/lib/components/SM.vue new file mode 100644 index 00000000..8920752b --- /dev/null +++ b/lib/components/SM.vue @@ -0,0 +1,56 @@ + + + + + diff --git a/lib/components/SMFade.vue b/lib/components/SMFade.vue new file mode 100644 index 00000000..160e6093 --- /dev/null +++ b/lib/components/SMFade.vue @@ -0,0 +1,18 @@ + + + diff --git a/stories/components/SM.01_Playground.story.vue b/stories/components/SM.01_Playground.story.vue new file mode 100644 index 00000000..b9f19b44 --- /dev/null +++ b/stories/components/SM.01_Playground.story.vue @@ -0,0 +1,66 @@ + + + diff --git a/stories/components/SM.02_Presets_SMFade.story.vue b/stories/components/SM.02_Presets_SMFade.story.vue new file mode 100644 index 00000000..11de0d80 --- /dev/null +++ b/stories/components/SM.02_Presets_SMFade.story.vue @@ -0,0 +1,60 @@ + + + diff --git a/stories/styles.css b/stories/styles.css index 715dfb9c..fd4f4c1e 100644 --- a/stories/styles.css +++ b/stories/styles.css @@ -39,8 +39,14 @@ body { .rounded-6 { border-radius: 6px; } -.p-8 { padding: 8px; } -.p-12 { padding: 12px; } +.p-8 { padding: 8px; } +.p-12 { padding: 12px; } +.p-256 { padding: 256px; } + +.py-256 { padding: 256px 0 256px; } + +.pt-256 { padding-top: 256px; } +.pt-512 { padding-top: 512px; } .flex { display: flex;