From 14b07815128e168ddbd616ff80d11a2dd9679b4e Mon Sep 17 00:00:00 2001 From: Phuoc Nguyen Date: Wed, 31 Mar 2021 20:55:44 +0700 Subject: [PATCH] Add CSS code for input patterns --- client/patterns/button-with-icon/Details.tsx | 18 ++-- client/patterns/chip/Details.tsx | 28 +++--- .../custom-checkbox-button/Details.tsx | 75 ++++++++-------- .../patterns/custom-radio-button/Details.tsx | 81 ++++++++++-------- client/patterns/floating-label/Details.tsx | 43 +++++----- client/patterns/input-addon/Details.tsx | 85 +++++++------------ .../patterns/radio-button-group/Details.tsx | 83 +++++++++--------- client/patterns/radio-switch/Details.tsx | 44 ++++++---- client/patterns/rating/Details.tsx | 32 ++++--- client/patterns/search-box/Details.tsx | 31 +++---- client/patterns/slider/Details.tsx | 67 ++++++++------- 11 files changed, 300 insertions(+), 287 deletions(-) diff --git a/client/patterns/button-with-icon/Details.tsx b/client/patterns/button-with-icon/Details.tsx index 578f603..a5f7f13 100644 --- a/client/patterns/button-with-icon/Details.tsx +++ b/client/patterns/button-with-icon/Details.tsx @@ -22,13 +22,7 @@ const Details: React.FC<{}> = () => {
+
`} -css={``} +css={` +.button { + /* Center the content */ + align-items: center; + display: flex; + flex-direction: row; + justify-content: center; +} +`} >
= () => {
+ +
+ ... +
+ + + + ... + +`} +css={` +.chip { /* Center the content */ align-items: center; display: inline-flex; @@ -40,18 +52,12 @@ html={` /* Spacing */ padding: 4px 8px; -"> - -
- ... -
+} - - - ... - +.chip__content { + margin-right: 4px; +} `} -css={``} >
= () => {
+