From b903b30d81eb531eead430db3c9cc934ab5dea8f Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Mon, 4 Jun 2018 21:12:57 +0800 Subject: Update old docs to new Pug templates --- docs/src/contents/modals.pug | 141 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 141 insertions(+) create mode 100644 docs/src/contents/modals.pug (limited to 'docs/src/contents/modals.pug') diff --git a/docs/src/contents/modals.pug b/docs/src/contents/modals.pug new file mode 100644 index 0000000..29580c9 --- /dev/null +++ b/docs/src/contents/modals.pug @@ -0,0 +1,141 @@ +p Modals are flexible dialog prompts. + +.columns + .column + a.btn.btn-primary(href="#example-modal-1") Open Modal + #example-modal-1.modal + a.modal-overlay(href="#modals" aria-label="Close") + .modal-container(role="document") + .modal-header + a.btn.btn-clear.float-right(href="#modals" aria-label="Close") + .modal-title.h5 Modal title + .modal-body + .content + p This is the content inside the modal. + h4 Lorem ipsum + p + | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent risus leo, dictum in vehicula sit amet, feugiat tempus tellus. Duis quis sodales risus. Etiam euismod ornare consequat. + p + | Climb leg rub face on everything give attitude nap all day for under the bed. Chase mice attack feet but rub face on everything hopped up on goofballs. + h4 Cupcake ipsum + p + | Jelly-o sesame snaps halvah croissant oat cake cookie. Cheesecake bear claw topping. Chupa chups apple pie carrot cake chocolate cake caramels. + p + | De braaaiiiins apocalypsi gorger omero prefrontal cortex undead survivor fornix dictum mauris. Hi brains mindless mortuis limbic cortex soulless creaturas optic nerve. + h4 Candy ipsum + p + | Efficiently unleash cross-media information without cross-media value. Quickly maximize timely deliverables for real-time schemas. Dramatically maintain clicks-and-mortar. + p + | Caerphilly swiss fromage frais. Brie cheese and wine fromage frais chalk and cheese danish fontina smelly cheese who moved my cheese cow. + .modal-footer + button.btn.btn-primary Share + a.btn.btn-link(href="#modals") Close + +p + | Add a container element with the #[code modal] class. + | And add a real container #[code modal-container] and overlay #[code modal-overlay] inside it. + | You can add child elements with the #[code modal-header], #[code modal-body] and #[code modal-footer] - any or all of them. +p + | Spectre.css does not include JavaScript code, you will need to implement your JS to interact with modals. + | To make a modal appear, add the #[code active] class to the #[code modal] container. + +pre.code(data-lang='HTML') + code + :highlight(lang="html") + + ++docs-subheading('modals-sizes', 'Modal sizes') + +.columns + .column.col-6.col-xs-12 + a.btn.btn-primary(href="#example-modal-2") Open small size Modal + #example-modal-2.modal.modal-sm + a.modal-overlay(href="#modals-sizes" aria-label="Close") + .modal-container(role="document") + .modal-header + a.btn.btn-clear.float-right(href="#modals-sizes" aria-label="Close") + .modal-title.h5 Modal title + .modal-body + .content + form + .form-group + label.form-label(for="input-example-7") Name + input#input-example-7.form-input(type="text" placeholder="Name") + .form-group + label.form-label Gender + label.form-radio + input(type="radio" name="gender") + i.form-icon + | Male + label.form-radio + input(type="radio" name="gender" checked="") + i.form-icon + | Female + .modal-footer + button.btn.btn-primary Submit + a.btn.btn-link(href="#modals-sizes" aria-label="Close") Close + +p + | Use the #[code modal-sm] class for a smaller modal dialog. + | The container max width is #[code 320px]. + +.columns + .column + a.btn.btn-primary(href="#example-modal-3") Open large size Modal + #example-modal-3.modal.modal-lg + a.modal-overlay(href="#modals-sizes" aria-label="Close") + .modal-container(role="document") + .modal-header + a.btn.btn-clear.float-right(href="#modals-sizes" aria-label="Close") + .modal-title.h5 Modal title + .modal-body + .content + p This is the content inside the modal. + h4 Lorem ipsum + p + | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent risus leo, dictum in vehicula sit amet, feugiat tempus tellus. Duis quis sodales risus. Etiam euismod ornare consequat. + p + | Climb leg rub face on everything give attitude nap all day for under the bed. Chase mice attack feet but rub face on everything hopped up on goofballs. + h4 Cupcake ipsum + p + | Jelly-o sesame snaps halvah croissant oat cake cookie. Cheesecake bear claw topping. Chupa chups apple pie carrot cake chocolate cake caramels. + p + | De braaaiiiins apocalypsi gorger omero prefrontal cortex undead survivor fornix dictum mauris. Hi brains mindless mortuis limbic cortex soulless creaturas optic nerve. + h4 Candy ipsum + p + | Efficiently unleash cross-media information without cross-media value. Quickly maximize timely deliverables for real-time schemas. Dramatically maintain clicks-and-mortar. + p + | Caerphilly swiss fromage frais. Brie cheese and wine fromage frais chalk and cheese danish fontina smelly cheese who moved my cheese cow. + .modal-footer + button.btn.btn-primary Share + a.btn.btn-link(href="#modals-sizes") Close + +p + | Use the #[code modal-lg] class for a full size modal. + | The container max width is #[code 960px]. + +pre.code(data-lang='HTML') + code + :highlight(lang="html") + \ No newline at end of file -- cgit v1.3.1-26-gb76a From c67deb4708c44178c3a0ea46d8279da1672c32b7 Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Tue, 5 Jun 2018 21:31:02 +0800 Subject: Update docs demo margin --- docs/components.html | 70 +++++++++++++-------------- docs/dist/docs.css | 9 ++-- docs/dist/docs.min.css | 2 +- docs/elements.html | 96 +++++++++++++++++--------------------- docs/experimentals.html | 26 +++++------ docs/layout.html | 18 +++---- docs/src/contents/accordions.pug | 2 +- docs/src/contents/autocomplete.pug | 4 +- docs/src/contents/avatars.pug | 6 +-- docs/src/contents/badges.pug | 4 +- docs/src/contents/bars.pug | 7 +-- docs/src/contents/breadcrumbs.pug | 2 +- docs/src/contents/buttons.pug | 25 +++++----- docs/src/contents/calendars.pug | 4 +- docs/src/contents/cards.pug | 2 +- docs/src/contents/carousels.pug | 2 +- docs/src/contents/chips.pug | 2 +- docs/src/contents/colors.pug | 6 +-- docs/src/contents/comparison.pug | 2 +- docs/src/contents/cursor.pug | 2 +- docs/src/contents/divider.pug | 8 ++-- docs/src/contents/empty.pug | 2 +- docs/src/contents/filters.pug | 2 +- docs/src/contents/forms.pug | 49 +++++++++---------- docs/src/contents/grid.pug | 8 ++-- docs/src/contents/labels.pug | 2 +- docs/src/contents/loading.pug | 4 +- docs/src/contents/media.pug | 6 +-- docs/src/contents/menu.pug | 6 +-- docs/src/contents/meters.pug | 2 +- docs/src/contents/modals.pug | 6 +-- docs/src/contents/nav.pug | 2 +- docs/src/contents/navbar.pug | 4 +- docs/src/contents/off-canvas.pug | 2 +- docs/src/contents/pagination.pug | 4 +- docs/src/contents/panels.pug | 2 +- docs/src/contents/parallax.pug | 2 +- docs/src/contents/popovers.pug | 3 +- docs/src/contents/progress.pug | 2 +- docs/src/contents/responsive.pug | 6 +-- docs/src/contents/shapes.pug | 2 +- docs/src/contents/sliders.pug | 2 +- docs/src/contents/steps.pug | 2 +- docs/src/contents/tables.pug | 2 +- docs/src/contents/tabs.pug | 6 +-- docs/src/contents/tiles.pug | 4 +- docs/src/contents/timelines.pug | 2 +- docs/src/contents/toasts.pug | 4 +- docs/src/contents/tooltips.pug | 2 +- docs/src/contents/typography.pug | 6 +-- docs/src/scss/docs.scss | 9 ++-- docs/utilities.html | 20 ++++---- 52 files changed, 222 insertions(+), 252 deletions(-) (limited to 'docs/src/contents/modals.pug') diff --git a/docs/components.html b/docs/components.html index 4185433..f30a70e 100644 --- a/docs/components.html +++ b/docs/components.html @@ -132,7 +132,7 @@

Accordions

Accordions are used to toggle sections of content.

-
+
@@ -239,7 +239,7 @@

Avatars

Avatars are user profile pictures.

-
+
Avatar XL
Avatar LG
@@ -264,7 +264,7 @@ Add the avatar class and avatar size class to <div> element. The data-initial attribute is the name appear inside the avatar.

-
+
AvatarAvatar
AvatarAvatar
@@ -290,7 +290,7 @@ <img src="img/avatar-1.png" alt="..."> </figure> -
+
@@ -312,7 +312,7 @@

Badges

Badges are often used as unread number indicators.

-
+
Notifications
Notifications
Notifications
@@ -323,7 +323,7 @@ The badge will appear in the top-right direction of the element.

If there is no data-badge or the attribute is not specified, the badge will appear as a dot.

-
+
@@ -361,21 +361,17 @@ Bars represent the progress of a task or the value within the known range. Bars are custom components for displaying HTML5 <progress>, <meter> and input range elements.

-
+
-
-
-
-
25%
@@ -403,7 +399,7 @@ </div>

Slider bars

-
+
@@ -411,8 +407,6 @@
-
-
@@ -449,7 +443,7 @@