From 3ab3a9d09955772ec56ddadbba49954b4edd6a3e Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Tue, 6 Nov 2018 18:52:37 +0800 Subject: Update the Docs completely --- docs/src/utilities/colors.pug | 111 ++++++++++++++++++++++++++++++++++++++++ docs/src/utilities/cursors.pug | 47 +++++++++++++++++ docs/src/utilities/display.pug | 42 +++++++++++++++ docs/src/utilities/divider.pug | 72 ++++++++++++++++++++++++++ docs/src/utilities/loading.pug | 37 ++++++++++++++ docs/src/utilities/position.pug | 57 +++++++++++++++++++++ docs/src/utilities/shapes.pug | 33 ++++++++++++ docs/src/utilities/text.pug | 52 +++++++++++++++++++ 8 files changed, 451 insertions(+) create mode 100644 docs/src/utilities/colors.pug create mode 100644 docs/src/utilities/cursors.pug create mode 100644 docs/src/utilities/display.pug create mode 100644 docs/src/utilities/divider.pug create mode 100644 docs/src/utilities/loading.pug create mode 100644 docs/src/utilities/position.pug create mode 100644 docs/src/utilities/shapes.pug create mode 100644 docs/src/utilities/text.pug (limited to 'docs/src/utilities') diff --git a/docs/src/utilities/colors.pug b/docs/src/utilities/colors.pug new file mode 100644 index 0000000..a5a306c --- /dev/null +++ b/docs/src/utilities/colors.pug @@ -0,0 +1,111 @@ +extends ../_layout/_docs-layout.pug + +block variables + - var slug = 'colors' + - var parent = 'utilities' + - var title = 'Color utilities - Utilities - Spectre.css CSS Framework' + - var description = 'Spectre.css is a lightweight, responsive and modern CSS framework for faster and extensible development. Spectre provides basic styles for typography and elements, flexbox based responsive layout system, pure CSS components and utilities with best practice coding and consistent design language.' + +block docs-content + +docs-heading('colors', 'Color utilities') + include ../_layout/_ad-g.pug + + p Color utilities are used for changing colors for text, link and background. + + +docs-subheading('colors-text', 'Text colors') + + .docs-demo.columns + .column.col-12 + p + span.text-primary primary color + p + span.text-secondary secondary color + p + span.text-dark dark color + p + span.text-gray gray color + p + span.text-light.bg-dark.p-1.rounded light color + p + span.text-success success color + p + span.text-warning warning color + p + span.text-error error color + + pre.code(data-lang='HTML') + code + :highlight(lang="html") + primary color + secondary color + dark color + gray color + light color + success color + warning color + error color + + .docs-demo.columns + .column.col-12 + p + a.text-primary.p-1(href="#colors") primary link + p + a.text-secondary.p-1(href="#colors") secondary link + p + a.text-dark.p-1(href="#colors") dark link + p + a.text-gray.p-1(href="#colors") gray link + p + a.text-light.bg-dark.p-1.rounded(href="#colors") light link + p + a.text-success.p-1(href="#colors") success link + p + a.text-warning.p-1(href="#colors") warning link + p + a.text-error.p-1(href="#colors") error link + + pre.code(data-lang='HTML') + code + :highlight(lang="html") + primary color + secondary color + dark color + gray color + light color + success color + warning color + error color + + +docs-subheading('colors-background', 'Background colors') + + .docs-demo.columns + .column.col-12 + p + span.bg-primary.p-1.rounded primary bg + p + span.bg-secondary.text-primary.p-1.rounded secondary bg + p + span.bg-dark.p-1.rounded dark bg + p + span.bg-gray.p-1.rounded gray bg + p + span.bg-success.p-1.rounded success bg + p + span.bg-warning.p-1.rounded warning bg + p + span.bg-error.p-1.rounded error bg + + pre.code(data-lang='HTML') + code + :highlight(lang="html") +
primary bg
+
secondary bg
+
dark bg
+
gray bg
+
success bg
+
warning bg
+
error bg
+ + include ../_layout/_ad-c.pug + + include ../_layout/_footer.pug \ No newline at end of file diff --git a/docs/src/utilities/cursors.pug b/docs/src/utilities/cursors.pug new file mode 100644 index 0000000..c816795 --- /dev/null +++ b/docs/src/utilities/cursors.pug @@ -0,0 +1,47 @@ +extends ../_layout/_docs-layout.pug + +block variables + - var slug = 'cursors' + - var parent = 'utilities' + - var title = 'Cursor utilities - Utilities - Spectre.css CSS Framework' + - var description = 'Spectre.css is a lightweight, responsive and modern CSS framework for faster and extensible development. Spectre provides basic styles for typography and elements, flexbox based responsive layout system, pure CSS components and utilities with best practice coding and consistent design language.' + +block docs-content + +docs-heading('cursors', 'Cursor utilities') + include ../_layout/_ad-g.pug + + p Cursor utilities specify which mouse cursor to display when mouseover. + + .docs-demo.columns + .column.col-4 + .bg-gray.docs-block.c-hand c-hand + .column.col-4 + .bg-gray.docs-block.c-move c-move + .column.col-4 + .bg-gray.docs-block.c-zoom-in c-zoom-in + .column.col-4 + .bg-gray.docs-block.c-zoom-out c-zoom-out + .column.col-4 + .bg-gray.docs-block.c-not-allowed c-not-allowed + .column.col-4 + .bg-gray.docs-block.c-auto c-auto + + pre.code(data-lang='HTML') + code + :highlight(lang="html") + +
+ +
+ +
+ +
+ +
+ +
+ + include ../_layout/_ad-c.pug + + include ../_layout/_footer.pug \ No newline at end of file diff --git a/docs/src/utilities/display.pug b/docs/src/utilities/display.pug new file mode 100644 index 0000000..d69e514 --- /dev/null +++ b/docs/src/utilities/display.pug @@ -0,0 +1,42 @@ +extends ../_layout/_docs-layout.pug + +block variables + - var slug = 'display' + - var parent = 'utilities' + - var title = 'Display utilities - Utilities - Spectre.css CSS Framework' + - var description = 'Spectre.css is a lightweight, responsive and modern CSS framework for faster and extensible development. Spectre provides basic styles for typography and elements, flexbox based responsive layout system, pure CSS components and utilities with best practice coding and consistent design language.' + +block docs-content + +docs-heading('display', 'Display utilities') + include ../_layout/_ad-g.pug + + p Display utilities are used for display and hidden things. + + pre.code(data-lang='HTML') + code + :highlight(lang="html") + +
+ +
+ +
+ +
+ +
+ +
+
+ +
+ +
+ +
+ +
+ + include ../_layout/_ad-c.pug + + include ../_layout/_footer.pug \ No newline at end of file diff --git a/docs/src/utilities/divider.pug b/docs/src/utilities/divider.pug new file mode 100644 index 0000000..be6fea7 --- /dev/null +++ b/docs/src/utilities/divider.pug @@ -0,0 +1,72 @@ +extends ../_layout/_docs-layout.pug + +block variables + - var slug = 'divider' + - var parent = 'utilities' + - var title = 'Divider - Utilities - Spectre.css CSS Framework' + - var description = 'Spectre.css is a lightweight, responsive and modern CSS framework for faster and extensible development. Spectre provides basic styles for typography and elements, flexbox based responsive layout system, pure CSS components and utilities with best practice coding and consistent design language.' + +block docs-content + +docs-heading('divider', 'Divider') + include ../_layout/_ad-g.pug + + p A Divider is used for separating elements. + + .docs-demo.columns + .column + .divider + + .docs-demo.columns + .column + | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent risus leo, dictum in vehicula sit amet, feugiat tempus tellus. + .divider.text-center(data-content="OR") + | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent risus leo, dictum in vehicula sit amet, feugiat tempus tellus. + + .docs-demo.columns + .column + form + .form-group + label.form-label(for="input-example-1") Email + input#input-example-1.form-input(type="text" placeholder="Email") + .form-group + label.form-label(for="input-example-2") Password + input#input-example-2.form-input(type="password" placeholder="Password") + .form-group + label.form-checkbox + input(type="checkbox") + i.form-icon + | Remember me + .form-group + button.btn.btn-primary Sign in + .divider-vert(data-content="OR") + .column + form + .form-group + label.form-label(for="input-example-3") Email + input#input-example-3.form-input(type="text" placeholder="Email") + .form-group + button.btn.btn-primary.btn-block Sign up + button.btn.btn-link.btn-block Learn more + + pre.code(data-lang='HTML') + code + :highlight(lang="html") + +
+ +
+ + +
+
+ +
+
+
+ +
+
+ + include ../_layout/_ad-c.pug + + include ../_layout/_footer.pug \ No newline at end of file diff --git a/docs/src/utilities/loading.pug b/docs/src/utilities/loading.pug new file mode 100644 index 0000000..f5ddb67 --- /dev/null +++ b/docs/src/utilities/loading.pug @@ -0,0 +1,37 @@ +extends ../_layout/_docs-layout.pug + +block variables + - var slug = 'loading' + - var parent = 'utilities' + - var title = 'Loading - Utilities - Spectre.css CSS Framework' + - var description = 'Spectre.css is a lightweight, responsive and modern CSS framework for faster and extensible development. Spectre provides basic styles for typography and elements, flexbox based responsive layout system, pure CSS components and utilities with best practice coding and consistent design language.' + +block docs-content + +docs-heading('loading', 'Loading') + include ../_layout/_ad-g.pug + + p + | Loading indicator is used for loading or updating. + | You can add the #[code loading] class to a container for loading status. + + .docs-demo.columns + .column.col-12.text-center + .loading + + p + | Add the #[code loading-lg] class for large size. + + .docs-demo.columns + .column.col-12.text-center + .loading.loading-lg + + pre.code(data-lang='HTML') + code + :highlight(lang="html") + +
+
+ + include ../_layout/_ad-c.pug + + include ../_layout/_footer.pug \ No newline at end of file diff --git a/docs/src/utilities/position.pug b/docs/src/utilities/position.pug new file mode 100644 index 0000000..dc0d718 --- /dev/null +++ b/docs/src/utilities/position.pug @@ -0,0 +1,57 @@ +extends ../_layout/_docs-layout.pug + +block variables + - var slug = 'position' + - var parent = 'utilities' + - var title = 'Position utilities - Utilities - Spectre.css CSS Framework' + - var description = 'Spectre.css is a lightweight, responsive and modern CSS framework for faster and extensible development. Spectre provides basic styles for typography and elements, flexbox based responsive layout system, pure CSS components and utilities with best practice coding and consistent design language.' + +block docs-content + +docs-heading('position', 'Position utilities') + include ../_layout/_ad-g.pug + + p + | Position utilities are used for useful layout and position things, including clearfix, float, position and margin/padding utilities. + + pre.code(data-lang='HTML') + code + :highlight(lang="html") + +
+ +
+
+ +
+
+
+
+ +
+ + +
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+ +
+
+
+
+ + include ../_layout/_ad-c.pug + + include ../_layout/_footer.pug \ No newline at end of file diff --git a/docs/src/utilities/shapes.pug b/docs/src/utilities/shapes.pug new file mode 100644 index 0000000..c445cfb --- /dev/null +++ b/docs/src/utilities/shapes.pug @@ -0,0 +1,33 @@ +extends ../_layout/_docs-layout.pug + +block variables + - var slug = 'shapes' + - var parent = 'utilities' + - var title = 'Shape utilities - Utilities - Spectre.css CSS Framework' + - var description = 'Spectre.css is a lightweight, responsive and modern CSS framework for faster and extensible development. Spectre provides basic styles for typography and elements, flexbox based responsive layout system, pure CSS components and utilities with best practice coding and consistent design language.' + +block docs-content + +docs-heading('shapes', 'Shape utilities') + include ../_layout/_ad-g.pug + + p Shape utilities are used for change element shapes. + + .docs-demo.columns + .column.col-6.text-center + .bg-primary.text-light.docs-shape.s-rounded.centered + | s-rounded + .column.col-6.text-center + .bg-primary.text-light.docs-shape.s-circle.centered + | s-circle + + pre.code(data-lang='HTML') + code + :highlight(lang="html") + +
+ +
+ + include ../_layout/_ad-c.pug + + include ../_layout/_footer.pug \ No newline at end of file diff --git a/docs/src/utilities/text.pug b/docs/src/utilities/text.pug new file mode 100644 index 0000000..d383128 --- /dev/null +++ b/docs/src/utilities/text.pug @@ -0,0 +1,52 @@ +extends ../_layout/_docs-layout.pug + +block variables + - var slug = 'text' + - var parent = 'utilities' + - var title = 'Text utilities - Utilities - Spectre.css CSS Framework' + - var description = 'Spectre.css is a lightweight, responsive and modern CSS framework for faster and extensible development. Spectre provides basic styles for typography and elements, flexbox based responsive layout system, pure CSS components and utilities with best practice coding and consistent design language.' + +block docs-content + +docs-heading('text', 'Text utilities') + include ../_layout/_ad-g.pug + + p Text utilities are used for text alignment, styles and overflow things. + + pre.code(data-lang='HTML') + code + :highlight(lang="html") + +
+ +
+ +
+ +
+ + +
+ +
+ +
+ + +
+ +
+ +
+ +
+ + +
+ +
+ +
+ + include ../_layout/_ad-c.pug + + include ../_layout/_footer.pug \ No newline at end of file -- cgit v1.3.1-23-gd82d