From c6973507c92cde5cd274579d3b9308c9b8d0eabd Mon Sep 17 00:00:00 2001 From: Phuoc Nguyen Date: Wed, 31 Mar 2021 14:49:56 +0700 Subject: [PATCH] Add CSS panel --- client/index.html | 2 +- client/patterns/accordion/Details.tsx | 160 ++++---- client/patterns/arrow-buttons/Details.tsx | 293 +++++++------- client/patterns/avatar-list/Details.tsx | 38 +- client/patterns/avatar/Details.tsx | 86 ++-- client/patterns/badge/Details.tsx | 62 +-- client/patterns/breadcrumb/Details.tsx | 48 +-- client/patterns/button-with-icon/Details.tsx | 62 +-- client/patterns/card-layout/Details.tsx | 66 ++-- client/patterns/card/Details.tsx | 64 +-- client/patterns/centering/Details.tsx | 38 +- client/patterns/chip/Details.tsx | 30 +- .../patterns/circular-navigation/Details.tsx | 54 +-- client/patterns/close-button/Details.tsx | 96 ++--- client/patterns/cookie-banner/Details.tsx | 70 ++-- client/patterns/corner-ribbon/Details.tsx | 92 ++--- client/patterns/curved-background/Details.tsx | 40 +- .../custom-checkbox-button/Details.tsx | 96 ++--- .../patterns/custom-radio-button/Details.tsx | 96 ++--- client/patterns/diagonal-section/Details.tsx | 82 ++-- client/patterns/docked-at-corner/Details.tsx | 76 ++-- client/patterns/dot-leader/Details.tsx | 106 ++--- client/patterns/dot-navigation/Details.tsx | 60 +-- client/patterns/drawer/Details.tsx | 70 ++-- client/patterns/drop-area/Details.tsx | 62 +-- client/patterns/drop-cap/Details.tsx | 46 +-- client/patterns/dropdown/Details.tsx | 142 +++---- .../patterns/fading-long-section/Details.tsx | 72 ++-- .../patterns/feature-comparison/Details.tsx | 216 +++++----- client/patterns/feature-list/Details.tsx | 58 +-- client/patterns/fixed-at-corner/Details.tsx | 36 +- client/patterns/fixed-at-side/Details.tsx | 46 +-- client/patterns/floating-label/Details.tsx | 96 ++--- client/patterns/full-background/Details.tsx | 58 +-- client/patterns/full-screen-menu/Details.tsx | 150 +++---- client/patterns/holy-grail/Details.tsx | 106 ++--- client/patterns/initial-avatar/Details.tsx | 78 ++-- client/patterns/input-addon/Details.tsx | 254 ++++++------ client/patterns/keyboard-shortcut/Details.tsx | 52 +-- client/patterns/lined-paper/Details.tsx | 66 ++-- client/patterns/media-object/Details.tsx | 46 +-- client/patterns/mega-menu/Details.tsx | 132 +++---- client/patterns/menu/Details.tsx | 230 +++++------ client/patterns/modal/Details.tsx | 104 ++--- client/patterns/nested-dropdowns/Details.tsx | 66 ++-- client/patterns/notification/Details.tsx | 82 ++-- .../patterns/overlay-play-button/Details.tsx | 100 ++--- client/patterns/pagination/Details.tsx | 180 ++++----- client/patterns/popover-arrow/Details.tsx | 370 +++++++++--------- .../patterns/presence-indicator/Details.tsx | 72 ++-- .../previous-next-buttons/Details.tsx | 108 ++--- client/patterns/pricing-table/Details.tsx | 166 ++++---- client/patterns/progress-bar/Details.tsx | 80 ++-- client/patterns/property-list/Details.tsx | 66 ++-- .../questions-and-answers/Details.tsx | 118 +++--- .../patterns/radial-progress-bar/Details.tsx | 32 +- .../patterns/radio-button-group/Details.tsx | 68 ++-- client/patterns/radio-switch/Details.tsx | 152 +++---- client/patterns/rating/Details.tsx | 40 +- client/patterns/resizable-element/Details.tsx | 240 ++++++------ client/patterns/ribbon/Details.tsx | 142 +++---- .../patterns/same-height-columns/Details.tsx | 146 +++---- client/patterns/search-box/Details.tsx | 120 +++--- client/patterns/separator/Details.tsx | 86 ++-- client/patterns/sidebar/Details.tsx | 64 +-- client/patterns/simple-grid/Details.tsx | 172 ++++---- client/patterns/slider/Details.tsx | 54 +-- client/patterns/spin-button/Details.tsx | 126 +++--- client/patterns/split-navigation/Details.tsx | 64 +-- client/patterns/split-screen/Details.tsx | 66 ++-- client/patterns/stacked-cards/Details.tsx | 94 ++--- client/patterns/stamp-border/Details.tsx | 68 ++-- client/patterns/statistic/Details.tsx | 58 +-- client/patterns/status-light/Details.tsx | 72 ++-- client/patterns/stepper-input/Details.tsx | 146 +++---- client/patterns/sticky-footer/Details.tsx | 66 ++-- client/patterns/sticky-header/Details.tsx | 44 +-- client/patterns/sticky-sections/Details.tsx | 76 ++-- .../patterns/sticky-table-column/Details.tsx | 198 +++++----- .../patterns/sticky-table-headers/Details.tsx | 144 +++---- client/patterns/switch/Details.tsx | 86 ++-- client/patterns/tab/Details.tsx | 76 ++-- client/patterns/teardrop/Details.tsx | 62 +-- client/patterns/timeline/Details.tsx | 144 +++---- .../toggle-password-visibility/Details.tsx | 120 +++--- client/patterns/tooltip/Details.tsx | 68 ++-- client/patterns/triangle-buttons/Details.tsx | 284 +++++++------- client/patterns/upload-button/Details.tsx | 124 +++--- client/patterns/validation-icon/Details.tsx | 196 +++++----- client/patterns/video-background/Details.tsx | 124 +++--- client/patterns/watermark/Details.tsx | 122 +++--- client/patterns/wizard/Details.tsx | 190 ++++----- client/placeholders/BrowserFrame.tsx | 15 +- client/placeholders/browserFrame.css | 7 +- 94 files changed, 4762 insertions(+), 4739 deletions(-) diff --git a/client/index.html b/client/index.html index aa4c700..7bc0488 100644 --- a/client/index.html +++ b/client/index.html @@ -18,4 +18,4 @@ gtag('js', new Date()); gtag('config', 'UA-139616701-3'); - + \ No newline at end of file diff --git a/client/patterns/accordion/Details.tsx b/client/patterns/accordion/Details.tsx index 0bd314d..0903b21 100644 --- a/client/patterns/accordion/Details.tsx +++ b/client/patterns/accordion/Details.tsx @@ -64,89 +64,24 @@ const Details: React.FC<{}> = () => {
-
-
} - > -
- -
} - > -
- - } - > -
-
- - - )} - source={` +html={` -
+
-
+
-
+
-
...
+
...
-
+
...
-
+
...
@@ -155,7 +90,86 @@ const Details: React.FC<{}> = () => { ...
`} - /> +css={` +.container { + /* Border */ + border: 1px solid rgba(0, 0, 0, 0.3); + border-bottom-color: transparent; + border-radius: 4px; +} + +.item { + border-bottom: 1px solid rgba(0, 0, 0, 0.3); +} + +.header { + /* Center the content horizontally */ + align-items: center; + display: flex; + + cursor: pointer; + padding: 16px; +} +.toggle { + margin-right: 12px; +} +.title { + /* Take remaining width */ + flex: 1; +} + +.content { + /* For not selected item */ + display: none; + + border-top: 1px solid rgba(0, 0, 0, 0.3); + padding: 16px; +} +.content.selected { + /* For selected item */ + display: block; +} +`} + > +
+
+
} + > +
+ +
} + > +
+ +
} + > +
+ +
+
+
diff --git a/client/patterns/arrow-buttons/Details.tsx b/client/patterns/arrow-buttons/Details.tsx index 3fdc596..779da39 100644 --- a/client/patterns/arrow-buttons/Details.tsx +++ b/client/patterns/arrow-buttons/Details.tsx @@ -20,151 +20,7 @@ const Details: React.FC<{}> = () => {
-
-
- -
-
- -
-
- -
-
- -
-
-
- )} - source={` +html={`
`} - /> +css={``} + > +
+
+
+
+
+
+5
+
+ = () => {
-
- - - -
-
- )} - source={` +html={`
+ + +
+ + diff --git a/client/patterns/badge/Details.tsx b/client/patterns/badge/Details.tsx index 025df0a..9d853f7 100644 --- a/client/patterns/badge/Details.tsx +++ b/client/patterns/badge/Details.tsx @@ -20,36 +20,7 @@ const Details: React.FC<{}> = () => {
-
- 1 -
-
- )} - source={` +html={`
= () => { ...
`} - /> +css={``} + > +
+
+
+
/
+
+
/
+
+
/
+
+
+
+ ); diff --git a/client/patterns/button-with-icon/Details.tsx b/client/patterns/button-with-icon/Details.tsx index c47699a..578f603 100644 --- a/client/patterns/button-with-icon/Details.tsx +++ b/client/patterns/button-with-icon/Details.tsx @@ -21,36 +21,7 @@ const Details: React.FC<{}> = () => {
-
- -
-
- )} - source={` +html={` - - )} - source={` +html={` `} - /> +css={``} + > +
+ +
+ diff --git a/client/patterns/cookie-banner/Details.tsx b/client/patterns/cookie-banner/Details.tsx index aec2f57..6469e28 100644 --- a/client/patterns/cookie-banner/Details.tsx +++ b/client/patterns/cookie-banner/Details.tsx @@ -22,40 +22,7 @@ const Details: React.FC<{}> = () => {
-
-
- -
-
- -
-
-
- )} - source={` +html={`
@@ -109,7 +65,51 @@ const Details: React.FC<{}> = () => {
`} - /> +css={``} + > +
+
+
+
+
+
+
+
diff --git a/client/patterns/curved-background/Details.tsx b/client/patterns/curved-background/Details.tsx index 6d467bf..d09fb7b 100644 --- a/client/patterns/curved-background/Details.tsx +++ b/client/patterns/curved-background/Details.tsx @@ -20,25 +20,7 @@ const Details: React.FC<{}> = () => {
-
-
- )} - source={` +html={`
= () => { ...
`} - /> +css={``} + > +
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+
+
diff --git a/client/patterns/custom-radio-button/Details.tsx b/client/patterns/custom-radio-button/Details.tsx index d36cd06..2398ce1 100644 --- a/client/patterns/custom-radio-button/Details.tsx +++ b/client/patterns/custom-radio-button/Details.tsx @@ -71,53 +71,7 @@ const Details: React.FC<{}> = () => {
-
-
- -
-
-
-
- -
-
-
-
- -
-
-
-
-
- )} - source={` +html={`