diff --git a/vanilla/component_tabs.yaml b/vanilla/component_tabs.yaml index 237205c..9d92a61 100644 --- a/vanilla/component_tabs.yaml +++ b/vanilla/component_tabs.yaml @@ -1,9 +1,4 @@ -foundations/icon: - accessibility: True - design_guidelines: True - react: True - figma: True -foundations/typography: +foundations/icons: accessibility: True design_guidelines: True react: False @@ -29,11 +24,6 @@ components/button: design_guidelines: True react: True figma: True -components/card: - accessibility: True - design_guidelines: True - react: True - figma: True components/checkbox: accessibility: True design_guidelines: True @@ -64,37 +54,27 @@ components/divider: design_guidelines: True react: True figma: True -components/empty-state: - accessibility: True - design_guidelines: True - react: True - figma: True -components/equal-height-row: - accessibility: True - design_guidelines: True - react: True - figma: True -components/fieldset: +components/hero: accessibility: True design_guidelines: True react: True figma: True -components/grid: +components/horizontal-rule: accessibility: True design_guidelines: True react: True figma: True -components/heading-icon: +components/image: accessibility: True design_guidelines: True react: True figma: True -components/image: +components/input: accessibility: True design_guidelines: True react: True figma: True -components/input: +components/key-value-pair: accessibility: True design_guidelines: True react: True @@ -119,144 +99,129 @@ components/logo-section: design_guidelines: True react: True figma: True -components/matrix: - accessibility: True - design_guidelines: True - react: True - figma: True components/media-object: accessibility: True design_guidelines: True react: True figma: True -components/modal: - accessibility: True - design_guidelines: True - react: True - figma: True -components/muted-heading: +components/pagination: accessibility: True design_guidelines: True react: True figma: True -components/navigation: +components/quote: accessibility: True design_guidelines: True react: True figma: True -components/notification: +components/radio: accessibility: True design_guidelines: True react: True figma: True -components/pagination: +components/radio-panel: accessibility: True design_guidelines: True react: True figma: True -components/pull-quote: +components/range: accessibility: True design_guidelines: True react: True figma: True -components/radio: +components/search-box: accessibility: True design_guidelines: True react: True figma: True -components/range: +components/segmented-control: accessibility: True design_guidelines: True react: True figma: True -components/rule: +components/select: accessibility: True design_guidelines: True react: True figma: True -components/search-and-filter: +components/slider: accessibility: True design_guidelines: True react: True figma: True -components/search-box: +components/status-labels: accessibility: True design_guidelines: True react: True figma: True -components/section: +components/switch: accessibility: True design_guidelines: True react: True figma: True -components/segmented-control: +components/tab: accessibility: True design_guidelines: True react: True figma: True -components/select: +components/table-of-contents: accessibility: True design_guidelines: True react: True figma: True -components/separator: +components/textarea: accessibility: True design_guidelines: True react: True figma: True -components/slider: +components/tooltip: accessibility: True design_guidelines: True react: True figma: True -components/status-labels: + +complex-components/code-snippet: accessibility: True design_guidelines: True react: True figma: True -components/strip: +complex-components/modular-table: accessibility: True design_guidelines: True react: True figma: True -components/switch: +complex-components/navigation-bar: accessibility: True design_guidelines: True react: True figma: True -components/table-of-contents: +complex-components/notification: accessibility: True design_guidelines: True react: True figma: True -components/tab: +complex-components/search-and-filter: accessibility: True design_guidelines: True react: True figma: True -components/textarea: +complex-components/side-navigation: accessibility: True design_guidelines: True react: True figma: True -components/tooltip: +complex-components/table: accessibility: True design_guidelines: True react: True figma: True -complex-components/form: +patterns/card: accessibility: True design_guidelines: True react: True figma: True -complex-components/table: - accessibility: True - design_guidelines: True - react: True - figma: True - -patterns/example: +patterns/modal: accessibility: True design_guidelines: True react: True diff --git a/vanilla/side-navigation.yaml b/vanilla/side-navigation.yaml index a71ca2f..22cc52b 100644 --- a/vanilla/side-navigation.yaml +++ b/vanilla/side-navigation.yaml @@ -1,7 +1,15 @@ +- heading: Contributing + subheadings: + - title: Getting started + url: /docs/getting-started - heading: Foundations subheadings: + - title: Grid + url: /docs/foundations/grid - title: Icons url: /docs/foundations/icons + - title: Suru + url: /docs/foundations/suru - title: Typography url: /docs/foundations/typography - heading: Components @@ -14,8 +22,6 @@ url: /docs/components/breadcrumb - title: Button url: /docs/components/button - - title: Card - url: /docs/components/card - title: Checkbox url: /docs/components/checkbox - title: Chip @@ -28,90 +34,78 @@ url: /docs/components/datalist - title: Divider url: /docs/components/divider - - title: Empty state - url: /docs/components/empty-state - - title: Equal height row - url: /docs/components/equal-height-row - - title: Fieldset - url: /docs/components/fieldset - - title: Grid - url: /docs/components/grid - - title: Heading icon - url: /docs/components/heading-icon + - title: Hero + url: /docs/components/hero + - title: Horizontal rule + url: /docs/components/horizontal-rule - title: Image url: /docs/components/image - title: Input url: /docs/components/input + - title: Key-value pair + url: /docs/components/key-value-pair - title: Link url: /docs/components/link - - title: List tree - url: /docs/components/list-tree - title: List url: /docs/components/list + - title: List tree + url: /docs/components/list-tree - title: Logo section url: /docs/components/logo-section - - title: Matrix - url: /docs/components/matrix - title: Media object url: /docs/components/media-object - - title: Modal - url: /docs/components/modal - - title: Muted heading - url: /docs/components/muted-heading - - title: Navigation - url: /docs/components/navigation - - title: Notification - url: /docs/components/notification - title: Pagination url: /docs/components/pagination - - title: Pull quote - url: /docs/components/pull-quote + - title: Quote + url: /docs/components/quote - title: Radio url: /docs/components/radio + - title: Radio panel + url: /docs/components/radio-panel - title: Range url: /docs/components/range - - title: Rule - url: /docs/components/rule - - title: Search and filter - url: /docs/components/search-and-filter - title: Search box url: /docs/components/search-box - - title: Section - url: /docs/components/section - title: Segmented control url: /docs/components/segmented-control - title: Select url: /docs/components/select - - title: Separator - url: /docs/components/separator - title: Slider url: /docs/components/slider - title: Status label url: /docs/components/status-label - - title: Strip - url: /docs/components/strip - - title: Suru - url: /docs/components/suru - title: Switch url: /docs/components/switch - - title: Table of contents - url: /docs/components/table-of-contents - title: Tab url: /docs/components/tab + - title: Table of contents + url: /docs/components/table-of-contents - title: Textarea url: /docs/components/textarea - title: Tooltip url: /docs/components/tooltip - heading: Complex components subheadings: - - title: Form - url: /docs/complex-components/form + - title: Code snippet + url: /docs/complex-components/code-snippet + - title: Modular table + url: /docs/complex-components/modular-table + - title: Navigation bar + url: /docs/complex-components/navigation-bar + - title: Notification + url: /docs/complex-components/notification + - title: Search and filter + url: /docs/complex-components/search-and-filter + - title: Side navigation + url: /docs/complex-components/side-navigation - title: Table url: /docs/complex-components/table - heading: Patterns subheadings: - - title: Example - url: /docs/patterns/example + - title: Card + url: /docs/patterns/card + - title: Modal + url: /docs/patterns/modal - heading: Pages subheadings: - title: Example @@ -124,13 +118,25 @@ url: /docs/layouts/brochure - title: Documentation url: /docs/layouts/documentation + - title: Equal-heights row + url: /docs/layouts/equal-heights-row - title: Fluid breakout url: /docs/layouts/fluid-breakout - title: Full-width url: /docs/layouts/full-width + - title: Section + url: /docs/layouts/section - title: Sticky footer url: /docs/layouts/sticky-footer + - title: Strip + url: /docs/layouts/strip - heading: Guidelines subheadings: - - title: Example - url: /docs/guidelines/example + - title: Data visualisation + url: /docs/guidelines/data-visualisation + - title: Empty state + url: /docs/guidelines/empty-state + - title: Forms + url: /docs/guidelines/forms + - title: Navigation + url: /docs/guidelines/navigation diff --git a/vanilla/templates/docs/complex-components/code-snippet/accessibility/index.md b/vanilla/templates/docs/complex-components/code-snippet/accessibility/index.md new file mode 100644 index 0000000..b74789c --- /dev/null +++ b/vanilla/templates/docs/complex-components/code-snippet/accessibility/index.md @@ -0,0 +1,7 @@ +--- +wrapper_template: '_layouts/docs.html' +context: + title: Code snippet | Accessibility +--- + +# 🚧 WIP 🚧 diff --git a/vanilla/templates/docs/complex-components/code-snippet/design-guidelines/index.md b/vanilla/templates/docs/complex-components/code-snippet/design-guidelines/index.md new file mode 100644 index 0000000..d24de63 --- /dev/null +++ b/vanilla/templates/docs/complex-components/code-snippet/design-guidelines/index.md @@ -0,0 +1,7 @@ +--- +wrapper_template: '_layouts/docs.html' +context: + title: Code snippet | Design Guidelines +--- + +# 🚧 WIP 🚧 diff --git a/vanilla/templates/docs/complex-components/code-snippet/figma/index.md b/vanilla/templates/docs/complex-components/code-snippet/figma/index.md new file mode 100644 index 0000000..8914eba --- /dev/null +++ b/vanilla/templates/docs/complex-components/code-snippet/figma/index.md @@ -0,0 +1,7 @@ +--- +wrapper_template: '_layouts/docs.html' +context: + title: Code snippet | Figma +--- + +# 🚧 WIP 🚧 diff --git a/vanilla/templates/docs/complex-components/code-snippet/index.md b/vanilla/templates/docs/complex-components/code-snippet/index.md new file mode 100644 index 0000000..c70b0aa --- /dev/null +++ b/vanilla/templates/docs/complex-components/code-snippet/index.md @@ -0,0 +1,5 @@ +--- +wrapper_template: '_layouts/docs.html' +context: + title: Code snippet | Implementation +--- diff --git a/vanilla/templates/docs/complex-components/code-snippet/react/index.md b/vanilla/templates/docs/complex-components/code-snippet/react/index.md new file mode 100644 index 0000000..17f1a7d --- /dev/null +++ b/vanilla/templates/docs/complex-components/code-snippet/react/index.md @@ -0,0 +1,7 @@ +--- +wrapper_template: '_layouts/docs.html' +context: + title: Code snippet | React +--- + +# 🚧 WIP 🚧 diff --git a/vanilla/templates/docs/complex-components/form/accessibility/index.md b/vanilla/templates/docs/complex-components/form/accessibility/index.md deleted file mode 100644 index 7107674..0000000 --- a/vanilla/templates/docs/complex-components/form/accessibility/index.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -wrapper_template: '_layouts/docs.html' -context: - title: Form | Accessibility ---- - -Validated form input elements should indicate errors with `aria-invalid` attribute. - -See [WCAG Success Criterion 3.3.1 - Using Aria-Invalid to Indicate An Error Field](https://www.w3.org/WAI/WCAG21/Techniques/aria/ARIA21) for further information. diff --git a/vanilla/templates/docs/complex-components/form/index.md b/vanilla/templates/docs/complex-components/form/index.md deleted file mode 100644 index 64ee8d6..0000000 --- a/vanilla/templates/docs/complex-components/form/index.md +++ /dev/null @@ -1,125 +0,0 @@ ---- -wrapper_template: '_layouts/docs.html' -context: - title: Form | Implementation ---- - -## Inline - -By applying the class `.p-form--inline` and wrapping any form control in `.p-form__group` you can change the layout style of any form to be inline. - -
-View examples of form inline patterns -
- -## Stacked - -By applying the class `.p-form--stacked` and wrapping any form control in `.p-form__group` you can change the layout style of any form to be stacked. - -
-View examples of form stacked patterns -
- -## Disabled - -Adding the `disabled` attribute to an input will prevent user interaction. - -
-

- Note: - All disabled inputs have an opacity of 0.5 and not-allowed cursor on hover. -

-
- -
-View example of a disabled input -
- -## Help text - -Supplementary help text can be provided for the form fields by adding an element with `.p-form-help-text` class name. If the help text follows a checkbox or radio button use an additional `is-tick-element` class name to align help text with the label. - -
-View example of a form fields with help text -
- -## Validation - -To use form validation feedback - which includes feedback messages, icons and border colours - wrap individual input elements in a `p-form-validation` and additionally apply the `.is-error`, `.is-caution` or `.is-success` to the wrapper as appropriate. - -If your form uses select elements then you will additionally need to wrap only the ` + + + + + + + + + +{% endblock %} diff --git a/vanilla/templates/docs/examples/base/forms/disabled-input.html b/vanilla/templates/docs/examples/base/forms/disabled-input.html new file mode 100644 index 0000000..81a31b3 --- /dev/null +++ b/vanilla/templates/docs/examples/base/forms/disabled-input.html @@ -0,0 +1,11 @@ +{% extends "_layouts/examples.html" %} +{% block title %}Forms / Disabled input{% endblock %} + +{% block standalone_css %}base{% endblock %} + +{% block content %} +
+ + +
+{% endblock %} diff --git a/vanilla/templates/docs/examples/base/forms/fieldset.html b/vanilla/templates/docs/examples/base/forms/fieldset.html new file mode 100644 index 0000000..92d975d --- /dev/null +++ b/vanilla/templates/docs/examples/base/forms/fieldset.html @@ -0,0 +1,17 @@ +{% extends "_layouts/examples.html" %} +{% block title %}Forms / Fieldset{% endblock %} + +{% block standalone_css %}base{% endblock %} + +{% block content %} +
+
+ + + + + + +
+
+{% endblock %} diff --git a/vanilla/templates/docs/examples/base/forms/form.html b/vanilla/templates/docs/examples/base/forms/form.html new file mode 100644 index 0000000..380208b --- /dev/null +++ b/vanilla/templates/docs/examples/base/forms/form.html @@ -0,0 +1,16 @@ +{% extends "_layouts/examples.html" %} +{% block title %}Forms / Base form{% endblock %} + +{% block standalone_css %}base{% endblock %} + +{% block content %} +
+ + + + + + + +
+{% endblock %} diff --git a/vanilla/templates/docs/examples/base/forms/input.html b/vanilla/templates/docs/examples/base/forms/input.html new file mode 100644 index 0000000..b88edc8 --- /dev/null +++ b/vanilla/templates/docs/examples/base/forms/input.html @@ -0,0 +1,11 @@ +{% extends "_layouts/examples.html" %} +{% block title %}Forms / Input{% endblock %} + +{% block standalone_css %}base{% endblock %} + +{% block content %} +
+ + +
+{% endblock %} diff --git a/vanilla/templates/docs/examples/base/forms/labels.html b/vanilla/templates/docs/examples/base/forms/labels.html new file mode 100644 index 0000000..526fdd3 --- /dev/null +++ b/vanilla/templates/docs/examples/base/forms/labels.html @@ -0,0 +1,15 @@ +{% extends "_layouts/examples.html" %} +{% block title %}Forms / Labels{% endblock %} + +{% block standalone_css %}base{% endblock %} + +{% block content %} +
+ + + + + + +
+{% endblock %} diff --git a/vanilla/templates/docs/examples/base/forms/range.html b/vanilla/templates/docs/examples/base/forms/range.html new file mode 100644 index 0000000..fd7cbb7 --- /dev/null +++ b/vanilla/templates/docs/examples/base/forms/range.html @@ -0,0 +1,53 @@ +{% extends "_layouts/examples.html" %} +{% block title %}Forms / Range input{% endblock %} + +{% block standalone_css %}base{% endblock %} + +{% block content %} + + + + +{% endblock %} diff --git a/vanilla/templates/docs/examples/base/forms/select-multiple.html b/vanilla/templates/docs/examples/base/forms/select-multiple.html new file mode 100644 index 0000000..005e1a8 --- /dev/null +++ b/vanilla/templates/docs/examples/base/forms/select-multiple.html @@ -0,0 +1,16 @@ +{% extends "_layouts/examples.html" %} +{% block title %}Forms / Select multiple{% endblock %} + +{% block standalone_css %}base{% endblock %} + +{% block content %} +
+ + +
+{% endblock %} diff --git a/vanilla/templates/docs/examples/base/forms/selects.html b/vanilla/templates/docs/examples/base/forms/selects.html new file mode 100644 index 0000000..320bd94 --- /dev/null +++ b/vanilla/templates/docs/examples/base/forms/selects.html @@ -0,0 +1,16 @@ +{% extends "_layouts/examples.html" %} +{% block title %}Forms / Selects{% endblock %} + +{% block standalone_css %}base{% endblock %} + +{% block content %} +
+ + +
+{% endblock %} diff --git a/vanilla/templates/docs/examples/base/forms/textarea.html b/vanilla/templates/docs/examples/base/forms/textarea.html new file mode 100644 index 0000000..81f2316 --- /dev/null +++ b/vanilla/templates/docs/examples/base/forms/textarea.html @@ -0,0 +1,11 @@ +{% extends "_layouts/examples.html" %} +{% block title %}Forms / Textarea{% endblock %} + +{% block standalone_css %}base{% endblock %} + +{% block content %} +
+ + +
+{% endblock %} diff --git a/vanilla/templates/docs/examples/base/forms/tick-elements.html b/vanilla/templates/docs/examples/base/forms/tick-elements.html new file mode 100644 index 0000000..db5e3c5 --- /dev/null +++ b/vanilla/templates/docs/examples/base/forms/tick-elements.html @@ -0,0 +1,39 @@ +{% extends "_layouts/examples.html" %} +{% block title %}Forms / Tick Elements{% endblock %} + +{% block standalone_css %}base{% endblock %} + +{% block content %} +

This is not the recommended way to implement checkboxes and radio inputs in Vanilla. Please use the tick element patterns instead.

+
+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+
+{% endblock %} diff --git a/vanilla/templates/docs/examples/base/headings-accented.html b/vanilla/templates/docs/examples/base/headings-accented.html new file mode 100644 index 0000000..f7ce91e --- /dev/null +++ b/vanilla/templates/docs/examples/base/headings-accented.html @@ -0,0 +1,8 @@ +{% extends "_layouts/examples.html" %} +{% block title %}Headings / Accented{% endblock %} + +{% block standalone_css %}base{% endblock %} + +{% block content %} +

This is a sample of an accented heading

+{% endblock %} diff --git a/vanilla/templates/docs/examples/base/headings.html b/vanilla/templates/docs/examples/base/headings.html new file mode 100644 index 0000000..cd9e75f --- /dev/null +++ b/vanilla/templates/docs/examples/base/headings.html @@ -0,0 +1,13 @@ +{% extends "_layouts/examples.html" %} +{% block title %}Headings{% endblock %} + +{% block standalone_css %}base{% endblock %} + +{% block content %} +

This is a sample of the <h1> heading

+

This is a sample of the <h2> heading

+

This is a sample of the <h3> heading

+

This is a sample of the <h4> heading

+
This is a sample of the <h5> heading
+
This is a sample of the <h6> heading
+{% endblock %} diff --git a/vanilla/templates/docs/examples/base/hr-dark.html b/vanilla/templates/docs/examples/base/hr-dark.html new file mode 100644 index 0000000..6c10a89 --- /dev/null +++ b/vanilla/templates/docs/examples/base/hr-dark.html @@ -0,0 +1,17 @@ +{% extends "_layouts/examples.html" %} +{% block title %}HR dark{% endblock %} + +{% block standalone_css %}base{% endblock %} + +{% block style %} + +{% endblock %} + +{% set is_dark = True %} +{% block content %} +
+{% endblock %} diff --git a/vanilla/templates/docs/examples/base/hr-fixed-width.html b/vanilla/templates/docs/examples/base/hr-fixed-width.html new file mode 100644 index 0000000..8be8883 --- /dev/null +++ b/vanilla/templates/docs/examples/base/hr-fixed-width.html @@ -0,0 +1,16 @@ +{% extends "_layouts/examples.html" %} +{% block title %}HR fixed width{% endblock %} + +{% block standalone_css %}base{% endblock %} + +{% block style %} + +{% endblock %} + +{% block content %} +
+{% endblock %} diff --git a/vanilla/templates/docs/examples/base/hr-muted.html b/vanilla/templates/docs/examples/base/hr-muted.html new file mode 100644 index 0000000..cd2d35a --- /dev/null +++ b/vanilla/templates/docs/examples/base/hr-muted.html @@ -0,0 +1,16 @@ +{% extends "_layouts/examples.html" %} +{% block title %}HR muted{% endblock %} + +{% block standalone_css %}base{% endblock %} + +{% block style %} + +{% endblock %} + +{% block content %} +
+{% endblock %} diff --git a/vanilla/templates/docs/examples/base/hr.html b/vanilla/templates/docs/examples/base/hr.html new file mode 100644 index 0000000..9b897b2 --- /dev/null +++ b/vanilla/templates/docs/examples/base/hr.html @@ -0,0 +1,16 @@ +{% extends "_layouts/examples.html" %} +{% block title %}HR{% endblock %} + +{% block standalone_css %}base{% endblock %} + +{% block style %} + +{% endblock %} + +{% block content %} +
+{% endblock %} diff --git a/vanilla/templates/docs/examples/base/links.html b/vanilla/templates/docs/examples/base/links.html new file mode 100644 index 0000000..311acec --- /dev/null +++ b/vanilla/templates/docs/examples/base/links.html @@ -0,0 +1,8 @@ +{% extends "_layouts/examples.html" %} +{% block title %}Links{% endblock %} + +{% block standalone_css %}base{% endblock %} + +{% block content %} +Fast, secure and simple, Ubuntu powers millions of PCs worldwide +{% endblock %} diff --git a/vanilla/templates/docs/examples/base/lists/definition-list.html b/vanilla/templates/docs/examples/base/lists/definition-list.html new file mode 100644 index 0000000..636c7ef --- /dev/null +++ b/vanilla/templates/docs/examples/base/lists/definition-list.html @@ -0,0 +1,14 @@ +{% extends "_layouts/examples.html" %} +{% block title %}Lists / Definition List{% endblock %} + +{% block standalone_css %}base{% endblock %} + +{% block content %} +
+
Type
+
Logical volume
+
bcache
+
Tags
+
tag-jb5WSQ
+
+{% endblock %} diff --git a/vanilla/templates/docs/examples/base/lists/ordered-list.html b/vanilla/templates/docs/examples/base/lists/ordered-list.html new file mode 100644 index 0000000..6dd14c4 --- /dev/null +++ b/vanilla/templates/docs/examples/base/lists/ordered-list.html @@ -0,0 +1,20 @@ +{% extends "_layouts/examples.html" %} +{% block title %}Lists / Ordered List{% endblock %} + +{% block standalone_css %}base{% endblock %} + +{% block content %} +
    +
  1. What Ubuntu Pro is and how to use it
  2. +
  3. How to check the source of your installed packages
  4. +
  5. How to attach an Ubuntu Pro subscription to your existing Ubuntu LTS machine
  6. +
  7. Install Conjure up using the instructions for your OS +
      +
    1. Ubuntu
    2. +
    3. Some obscure OS that has a very very very long name so that it wraps and shows that things align correctly.
    4. +
    5. macOS
    6. +
    +
  8. +
  9. How to check for and apply security updates on your Ubuntu machine, including security updates for Ubuntu Universe packages which are only available with Ubuntu Pro
  10. +
+{% endblock %} diff --git a/vanilla/templates/docs/examples/base/lists/unordered-list.html b/vanilla/templates/docs/examples/base/lists/unordered-list.html new file mode 100644 index 0000000..953d064 --- /dev/null +++ b/vanilla/templates/docs/examples/base/lists/unordered-list.html @@ -0,0 +1,23 @@ +{% extends "_layouts/examples.html" %} +{% block title %}Lists / Unordered List{% endblock %} + +{% block standalone_css %}base{% endblock %} + +{% block content %} + +{% endblock %} diff --git a/vanilla/templates/docs/examples/base/paper/input-on-paper.html b/vanilla/templates/docs/examples/base/paper/input-on-paper.html new file mode 100644 index 0000000..69c9b7c --- /dev/null +++ b/vanilla/templates/docs/examples/base/paper/input-on-paper.html @@ -0,0 +1,15 @@ +{% extends "_layouts/examples.html" %} +{% block title %}Paper background / Inputs{% endblock %} + +{% block standalone_css %}patterns_forms{% endblock %} +{% set is_paper = True %} + +{% block content %} + + + +
+ + +
+{% endblock %} diff --git a/vanilla/templates/docs/examples/base/paper/search-box-on-paper.html b/vanilla/templates/docs/examples/base/paper/search-box-on-paper.html new file mode 100644 index 0000000..0e14c97 --- /dev/null +++ b/vanilla/templates/docs/examples/base/paper/search-box-on-paper.html @@ -0,0 +1,23 @@ +{% extends "_layouts/examples.html" %} +{% block title %}Paper background / Search box{% endblock %} + +{% block standalone_css %}patterns_forms{% endblock %} +{% set is_paper = True %} + +{% block content %} + + +
+ +
+{% endblock %} diff --git a/vanilla/templates/docs/examples/base/pre.html b/vanilla/templates/docs/examples/base/pre.html new file mode 100644 index 0000000..c025501 --- /dev/null +++ b/vanilla/templates/docs/examples/base/pre.html @@ -0,0 +1,12 @@ +{% extends "_layouts/examples.html" %} +{% block title %}Pre{% endblock %} + +{% block standalone_css %}base{% endblock %} + +{% block content %} +
bolla.internal
+  - lldp:descr:
+    label: SysDescr
+    Ubuntu 18.04.4 LTS Linux 4.15.0-106-generic #107-Ubuntu SMP Thu Jun 4 11:27:52 UTC 2020 x86_64
+  
+{% endblock %} diff --git a/vanilla/templates/docs/examples/base/small.html b/vanilla/templates/docs/examples/base/small.html new file mode 100644 index 0000000..5afe0e4 --- /dev/null +++ b/vanilla/templates/docs/examples/base/small.html @@ -0,0 +1,10 @@ +{% extends "_layouts/examples.html" %} +{% block title %}Small text{% endblock %} + +{% block standalone_css %}base{% endblock %} + +{% block content %} +This is some <small> text with a font size of 14 pixels. + +

This is a p.p-text--small with a font size of 14 pixels.

+{% endblock %} diff --git a/vanilla/templates/docs/examples/base/strong.html b/vanilla/templates/docs/examples/base/strong.html new file mode 100644 index 0000000..3db325c --- /dev/null +++ b/vanilla/templates/docs/examples/base/strong.html @@ -0,0 +1,8 @@ +{% extends "_layouts/examples.html" %} +{% block title %}Strong text{% endblock %} + +{% block standalone_css %}base{% endblock %} + +{% block content %} +

The pastebin is blocked.

+{% endblock %} diff --git a/vanilla/templates/docs/examples/base/sub-headings.html b/vanilla/templates/docs/examples/base/sub-headings.html new file mode 100644 index 0000000..919180b --- /dev/null +++ b/vanilla/templates/docs/examples/base/sub-headings.html @@ -0,0 +1,14 @@ +{% extends "_layouts/examples.html" %} +{% block title %}Sub-headings{% endblock %} + +{% block standalone_css %}base{% endblock %} + +{% block content %} +

Title

+

Sub-heading

+

Lorem ipsum dolor sit amet consectetur adipiscing elit praesent justo.

+ +

Title

+

Sub-heading

+

Lorem ipsum dolor sit amet consectetur adipiscing elit praesent justo.

+{% endblock %} diff --git a/vanilla/templates/docs/examples/base/sub.html b/vanilla/templates/docs/examples/base/sub.html new file mode 100644 index 0000000..a32104e --- /dev/null +++ b/vanilla/templates/docs/examples/base/sub.html @@ -0,0 +1,9 @@ +{% extends "_layouts/examples.html" %} +{% block title %}Sub{% endblock %} + +{% block standalone_css %}base{% endblock %} + +{% block content %} +

The chemical formula of water: H2O

+

The chemical formula of water: H2O

+{% endblock %} diff --git a/vanilla/templates/docs/examples/base/sup.html b/vanilla/templates/docs/examples/base/sup.html new file mode 100644 index 0000000..236b866 --- /dev/null +++ b/vanilla/templates/docs/examples/base/sup.html @@ -0,0 +1,9 @@ +{% extends "_layouts/examples.html" %} +{% block title %}Sup{% endblock %} + +{% block standalone_css %}base{% endblock %} + +{% block content %} +

This is an example of sup© in title

+

This is an example of sup© in text

+{% endblock %} diff --git a/vanilla/templates/docs/examples/base/table-empty.html b/vanilla/templates/docs/examples/base/table-empty.html new file mode 100644 index 0000000..4f1d5d3 --- /dev/null +++ b/vanilla/templates/docs/examples/base/table-empty.html @@ -0,0 +1,19 @@ +{% extends "_layouts/examples.html" %} +{% block title %}Table / Empty{% endblock %} + +{% block standalone_css %}base{% endblock %} + +{% block content %} + + + + + + + + + + + +
NameStatusCoresRAMDisks
No data available
+{% endblock %} diff --git a/vanilla/templates/docs/examples/base/table.html b/vanilla/templates/docs/examples/base/table.html new file mode 100644 index 0000000..2349dd2 --- /dev/null +++ b/vanilla/templates/docs/examples/base/table.html @@ -0,0 +1,35 @@ +{% extends "_layouts/examples.html" %} +{% block title %}Table{% endblock %} + +{% block standalone_css %}base{% endblock %} + +{% block content %} + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Foundation CloudFoundation Cloud Plus
Expert delivery of an Ubuntu OpenStack cloudReference architectureCustom architecture
Workshop and training2-days4-days
One-time price$75,000$150,000
+{% endblock %} diff --git a/vanilla/templates/docs/examples/base/variable-font.html b/vanilla/templates/docs/examples/base/variable-font.html new file mode 100644 index 0000000..430dca3 --- /dev/null +++ b/vanilla/templates/docs/examples/base/variable-font.html @@ -0,0 +1,28 @@ +{% extends "_layouts/examples.html" %} +{% block title %}Variable font{% endblock %} + +{% block standalone_css %}base{% endblock %} + + +{% block content %} +

This is a paragraph of Ubuntu variable font.

+

This is a paragraph of Ubuntu variable font in italic.

+

This is a paragraph of Ubuntu Mono variable font.

+ + + + + + +{% endblock %} + diff --git a/vanilla/templates/docs/examples/brochure/25-25-25-25-split-structure.html b/vanilla/templates/docs/examples/brochure/25-25-25-25-split-structure.html new file mode 100644 index 0000000..8caf748 --- /dev/null +++ b/vanilla/templates/docs/examples/brochure/25-25-25-25-split-structure.html @@ -0,0 +1,11 @@ +{% extends "_layouts/examples.html" %} +{% block title %}Brochure site / 25/25/25/25 structure{% endblock %} + +{% block style %} +{% endblock %} + +{% block content %} + +{% include "/docs/examples/brochure/_25-25-25-25-structure.html" %} + +{% endblock %} diff --git a/vanilla/templates/docs/examples/brochure/25-25-50-split-structure.html b/vanilla/templates/docs/examples/brochure/25-25-50-split-structure.html new file mode 100644 index 0000000..81231e1 --- /dev/null +++ b/vanilla/templates/docs/examples/brochure/25-25-50-split-structure.html @@ -0,0 +1,11 @@ +{% extends "_layouts/examples.html" %} +{% block title %}Brochure site / 25/25/50 structure{% endblock %} + +{% block style %} +{% endblock %} + +{% block content %} + +{% include "/docs/examples/brochure/_25-25-50-structure.html" %} + +{% endblock %} diff --git a/vanilla/templates/docs/examples/brochure/25-25-50-split.html b/vanilla/templates/docs/examples/brochure/25-25-50-split.html new file mode 100644 index 0000000..5b96caa --- /dev/null +++ b/vanilla/templates/docs/examples/brochure/25-25-50-split.html @@ -0,0 +1,12 @@ +{% extends "_layouts/examples.html" %} +{% block title %}Brochure site / 25/25/50 example{% endblock %} + +{% block style %} +{% endblock %} + + +{% block content %} + +{% include "/docs/examples/brochure/_25-25-50.html" %} + +{% endblock %} diff --git a/vanilla/templates/docs/examples/brochure/25-75-nested.html b/vanilla/templates/docs/examples/brochure/25-75-nested.html new file mode 100644 index 0000000..5eeb1fa --- /dev/null +++ b/vanilla/templates/docs/examples/brochure/25-75-nested.html @@ -0,0 +1,11 @@ +{% extends "_layouts/examples.html" %} +{% block title %}Brochure site / 25/75 nested{% endblock %} + +{% block style %} +{% endblock %} + +{% block content %} + +{% include "/docs/examples/brochure/_25-75-nested.html" %} + +{% endblock %} diff --git a/vanilla/templates/docs/examples/brochure/25-75-offset-structure.html b/vanilla/templates/docs/examples/brochure/25-75-offset-structure.html new file mode 100644 index 0000000..f05c0e0 --- /dev/null +++ b/vanilla/templates/docs/examples/brochure/25-75-offset-structure.html @@ -0,0 +1,11 @@ +{% extends "_layouts/examples.html" %} +{% block title %}Brochure site / (25)/75 structure {% endblock %} + +{% block style %} +{% endblock %} + +{% block content %} + +{% include "/docs/examples/brochure/_25-75-offset-structure.html" %} + +{% endblock %} diff --git a/vanilla/templates/docs/examples/brochure/25-75-offset.html b/vanilla/templates/docs/examples/brochure/25-75-offset.html new file mode 100644 index 0000000..2da847f --- /dev/null +++ b/vanilla/templates/docs/examples/brochure/25-75-offset.html @@ -0,0 +1,11 @@ +{% extends "_layouts/examples.html" %} +{% block title %}Brochure site / (25)/75 example{% endblock %} + +{% block style %} +{% endblock %} + +{% block content %} + +{% include "/docs/examples/brochure/_25-75-offset.html" %} + +{% endblock %} diff --git a/vanilla/templates/docs/examples/brochure/25-75-split-responsive-structure.html b/vanilla/templates/docs/examples/brochure/25-75-split-responsive-structure.html new file mode 100644 index 0000000..99213a1 --- /dev/null +++ b/vanilla/templates/docs/examples/brochure/25-75-split-responsive-structure.html @@ -0,0 +1,11 @@ +{% extends "_layouts/examples.html" %} +{% block title %}Brochure site / 25/75 responsive structure{% endblock %} + +{% block style %} +{% endblock %} + +{% block content %} + +{% include "/docs/examples/brochure/_25-75-responsive-structure.html" %} + +{% endblock %} diff --git a/vanilla/templates/docs/examples/brochure/25-75-split-structure.html b/vanilla/templates/docs/examples/brochure/25-75-split-structure.html new file mode 100644 index 0000000..25346d9 --- /dev/null +++ b/vanilla/templates/docs/examples/brochure/25-75-split-structure.html @@ -0,0 +1,11 @@ +{% extends "_layouts/examples.html" %} +{% block title %}Brochure site / 25/75 structure{% endblock %} + +{% block style %} +{% endblock %} + +{% block content %} + +{% include "/docs/examples/brochure/_25-75-structure.html" %} + +{% endblock %} diff --git a/vanilla/templates/docs/examples/brochure/25-75-split.html b/vanilla/templates/docs/examples/brochure/25-75-split.html new file mode 100644 index 0000000..6b06bdc --- /dev/null +++ b/vanilla/templates/docs/examples/brochure/25-75-split.html @@ -0,0 +1,11 @@ +{% extends "_layouts/examples.html" %} +{% block title %}Brochure site / 25/75 example{% endblock %} + +{% block style %} +{% endblock %} + +{% block content %} + +{% include "/docs/examples/brochure/_25-75.html" %} + +{% endblock %} diff --git a/vanilla/templates/docs/examples/brochure/50-50-split-structure.html b/vanilla/templates/docs/examples/brochure/50-50-split-structure.html new file mode 100644 index 0000000..f2ddcbd --- /dev/null +++ b/vanilla/templates/docs/examples/brochure/50-50-split-structure.html @@ -0,0 +1,11 @@ +{% extends "_layouts/examples.html" %} +{% block title %}Brochure site / 50/50 structure{% endblock %} + +{% block style %} +{% endblock %} + +{% block content %} + +{% include "/docs/examples/brochure/_50-50-structure.html" %} + +{% endblock %} diff --git a/vanilla/templates/docs/examples/brochure/50-50-split.html b/vanilla/templates/docs/examples/brochure/50-50-split.html new file mode 100644 index 0000000..8cf4988 --- /dev/null +++ b/vanilla/templates/docs/examples/brochure/50-50-split.html @@ -0,0 +1,11 @@ +{% extends "_layouts/examples.html" %} +{% block title %}Brochure site / 50/50 example{% endblock %} + +{% block style %} +{% endblock %} + +{% block content %} + +{% include "/docs/examples/brochure/_50-50.html" %} + +{% endblock %} diff --git a/vanilla/templates/docs/examples/brochure/_25-25-25-25-structure.html b/vanilla/templates/docs/examples/brochure/_25-25-25-25-structure.html new file mode 100644 index 0000000..da83b4a --- /dev/null +++ b/vanilla/templates/docs/examples/brochure/_25-25-25-25-structure.html @@ -0,0 +1,14 @@ +
+
+

25/25/25/25 split

+
+
+

Use 25/25/25/25 for a section with 4 columns split.

+
+
+

On medium screens it becomes 2 rows of 50/50 + 50/50 split.

+
+
+

To achieve that use row--25-25-25-25 on the row and col class names on all the columns.

+
+
\ No newline at end of file diff --git a/vanilla/templates/docs/examples/brochure/_25-25-50-structure.html b/vanilla/templates/docs/examples/brochure/_25-25-50-structure.html new file mode 100644 index 0000000..2b911ee --- /dev/null +++ b/vanilla/templates/docs/examples/brochure/_25-25-50-structure.html @@ -0,0 +1,12 @@ +
+
+

25/25/50 split

+
+
+

Use 25/25/50 split on section with 3 columns where 2 columns have less content than the last large column.

+
+
+

On medium screens it becomes 2 rows of 50/50 + 100 split.

+

To achieve that use row--25-25-50 class name on the row and col on the column.

+
+
diff --git a/vanilla/templates/docs/examples/brochure/_25-25-50.html b/vanilla/templates/docs/examples/brochure/_25-25-50.html new file mode 100644 index 0000000..50c8fea --- /dev/null +++ b/vanilla/templates/docs/examples/brochure/_25-25-50.html @@ -0,0 +1,54 @@ +
+
+
+
+
+
+ +
+
+

+ Derry Cheng
+ Product Manager for Compute Engine +

+
+
+ +

+ “For the last decade, Google has partnered with Canonical to promote the adoption of open-source + software. +

+

+ By offering Ubuntu Pro on Google Compute Engine, together we help customers enhance the security and + compliance for their production workloads.” +

+
+
+
+
+
+
+
+
+ +
+
+

+ Robert Huber
+ Chief Security Officer +

+
+
+ +

+ “Tenable and Canonical collaborate to provide timely, accurate and actionable vulnerability alerts. +

+

+ Ubuntu Pro offers security patch assurance for a broad spectrum of open-source software. Together, we give + customers a foundation for the trustworthy open source. + ” +

+
+
+
+
diff --git a/vanilla/templates/docs/examples/brochure/_25-75-nested.html b/vanilla/templates/docs/examples/brochure/_25-75-nested.html new file mode 100644 index 0000000..b6a503d --- /dev/null +++ b/vanilla/templates/docs/examples/brochure/_25-75-nested.html @@ -0,0 +1,29 @@ +
+
+
+
+
+
+

We’re Canonical

+
+
+
+
+
+

950+
Employees

+
+
+
+

89
Countries

+
+
+
+

78
Languages

+
+
+

The future is already here, as open source. Canonical delivers it to the world. We play a critical role in broadening the benefits of open source to more people and more industries than ever before. This means bringing new work opportunities to people regardless of their location too.

+
+
+
+
+
\ No newline at end of file diff --git a/vanilla/templates/docs/examples/brochure/_25-75-offset-structure.html b/vanilla/templates/docs/examples/brochure/_25-75-offset-structure.html new file mode 100644 index 0000000..bb397c9 --- /dev/null +++ b/vanilla/templates/docs/examples/brochure/_25-75-offset-structure.html @@ -0,0 +1,7 @@ +
+
+

(25)/75 offset split

+

Use (25)/75 split with offset when first column is empty and the rest of the content is to be aligned with other 75% section of the page.

+

To achieve that use row--25-75 class name and only one col child.

+
+
\ No newline at end of file diff --git a/vanilla/templates/docs/examples/brochure/_25-75-offset.html b/vanilla/templates/docs/examples/brochure/_25-75-offset.html new file mode 100644 index 0000000..151df46 --- /dev/null +++ b/vanilla/templates/docs/examples/brochure/_25-75-offset.html @@ -0,0 +1,8 @@ +
+
+
+

Company culture

+

We believe that talent is evenly distributed around the world.  Diversity is part of our strength. What unifies us isn’t our background,  it’s our mission to amplify open source.

+
+
+
\ No newline at end of file diff --git a/vanilla/templates/docs/examples/brochure/_25-75-responsive-structure.html b/vanilla/templates/docs/examples/brochure/_25-75-responsive-structure.html new file mode 100644 index 0000000..36241e8 --- /dev/null +++ b/vanilla/templates/docs/examples/brochure/_25-75-responsive-structure.html @@ -0,0 +1,10 @@ +
+
+

25/75 split on large

+
+
+

Use the 25/75 split on large screens for sections with a narrow first column (usually a heading), followed by a large content area that can be split into smaller nested grid if needed.

+

On medium and small screens, columns will be stacked.

+

To achieve that, use the row--25-75-on-large class name on the row and col on the columns.

+
+
\ No newline at end of file diff --git a/vanilla/templates/docs/examples/brochure/_25-75-structure.html b/vanilla/templates/docs/examples/brochure/_25-75-structure.html new file mode 100644 index 0000000..798cab5 --- /dev/null +++ b/vanilla/templates/docs/examples/brochure/_25-75-structure.html @@ -0,0 +1,11 @@ +
+
+

25/75 split

+
+
+

Use 25/75 split on sections with narrow first column (usually a heading) followed by large content area that isn't split into smaller columns.

+

On medium screens the 25/75 split is adjusted to be 33/66 (2 columns and 4 columns)

+

On small screens it becomes 2 rows of 100 + 100 split.

+

To achieve that use row--25-75 class name on the row and col on the columns.

+
+
\ No newline at end of file diff --git a/vanilla/templates/docs/examples/brochure/_25-75.html b/vanilla/templates/docs/examples/brochure/_25-75.html new file mode 100644 index 0000000..c98c163 --- /dev/null +++ b/vanilla/templates/docs/examples/brochure/_25-75.html @@ -0,0 +1,12 @@ +
+
+
+

Our mission

+
+
+

Seamless consumption of open source across the compute spectrum

+

Join an intense global mission - to deliver the world's best open source experience, from platform to platform.

+ +
+
+
\ No newline at end of file diff --git a/vanilla/templates/docs/examples/brochure/_50-50-structure.html b/vanilla/templates/docs/examples/brochure/_50-50-structure.html new file mode 100644 index 0000000..a2b1702 --- /dev/null +++ b/vanilla/templates/docs/examples/brochure/_50-50-structure.html @@ -0,0 +1,9 @@ +
+
+

50/50 split

+
+
+

Use 50/50 split for standard section with a heading and some content.

+

The 50/50 split should be preserved on large and medium screen sizes.

+
+
diff --git a/vanilla/templates/docs/examples/brochure/_50-50.html b/vanilla/templates/docs/examples/brochure/_50-50.html new file mode 100644 index 0000000..fe0b830 --- /dev/null +++ b/vanilla/templates/docs/examples/brochure/_50-50.html @@ -0,0 +1,55 @@ +
+
+
+
+
+
+
+

Become a customer

+
+
+

For enterprices to cover their Ubuntu estate - servers and workstations.
+ See Ubuntu Pro pricing +

+ +
+
+
+
+
+
+
+
+
+

Free for personal use

+
+
+

Anyone can use Ubuntu Pro for free on up to 5 machines, or 50 if you are an officialUbuntu Community member. +

+ +
+
+
+
+
+
+
+
+
+

Trial at no extra cost for existing Ubuntu Advantage customers

+
+
+

If you were an active customer before January 26th, 2023 you can try Ubuntu Pro for up to 1 year - until the end of your current contract. At the end of the trial, you can choose to upgrade to full Pro (at extra cost), or remain with your current plan. +

+ +
+
+
+
diff --git a/vanilla/templates/docs/examples/brochure/index.html b/vanilla/templates/docs/examples/brochure/index.html new file mode 100644 index 0000000..3c81e22 --- /dev/null +++ b/vanilla/templates/docs/examples/brochure/index.html @@ -0,0 +1,130 @@ +{% extends "_layouts/examples.html" %} +{% block title %}Brochure site / full page{% endblock %} + +{% block style %} + +{% endblock %} + +{% set is_paper = True %} +{% block content %} + + +
+
+
+

+ How to build
a brochure site +

+
+
+

+ This page showcases and documents the use of Vanilla framework to build a brochure site. +

+

All the sections of the page should be implemented using one of the grid layouts demonstrated below. By default all content should be inside the containers that use 25% of the full width (3 columns out of 12 column grid on large screens) or multiplication of it.

+

The grid layout should also be responsive, making sure that relative size is preserved on medium screen as much as possible (for details check the individual documentation of each split). On small screens all columns should take whole width of the page and appear in sequence (as by default Vanilla behaviour).

+
+
+
+ +
+
+
+
+ +
+
+

Layouts

+
+
+

In the sections below we demonstrate how to implement the available layouts using standard Vanilla grid.

+
+
+
+ +
+ {% include "/docs/examples/brochure/_50-50-structure.html" %} +
+ +
+
Example
+
+ +{% include "/docs/examples/brochure/_50-50.html" %} + +
+ {% include "/docs/examples/brochure/_25-25-50-structure.html" %} +
+ +
+
Example
+
+ +{% include "/docs/examples/brochure/_25-25-50.html" %} + +
+ {% include "/docs/examples/brochure/_25-75-structure.html" %} +
+ +
+
Example
+
+
+
+
+ +{% include "/docs/examples/brochure/_25-75.html" %} + +
+ {% include "/docs/examples/brochure/_25-75-responsive-structure.html" %} +
+ +{% include "/docs/examples/brochure/_25-75-nested.html" %} + +
+ {% include "/docs/examples/brochure/_25-75-offset-structure.html" %} +
+ +
+
Example
+
+
+
+
+ +{% include "/docs/examples/brochure/_25-75-offset.html" %} + +
+ {% include "/docs/examples/brochure/_25-25-25-25-structure.html" %} +
+ +{% endblock %} diff --git a/vanilla/templates/docs/examples/index.html b/vanilla/templates/docs/examples/index.html new file mode 100644 index 0000000..d61a1b7 --- /dev/null +++ b/vanilla/templates/docs/examples/index.html @@ -0,0 +1,91 @@ +{% extends "_layouts/_root.html" %} + +{% block custom_head %} + +{% endblock %} + +{% block title %}Component examples{% endblock %} + +{% block body %} +
+
+

Component examples

+
+
+ +
+
+

Base elements

+ +
+
+

Components

+ +
+
+

Utilities

+ +
+
+

Brochure site

+ +

Layouts

+ +

Templates

+ +
+
+ +
+

Examples using standalone component CSS for testing/debugging

+
+
+{% endblock %} diff --git a/vanilla/templates/docs/examples/layouts/_global-nav.html b/vanilla/templates/docs/examples/layouts/_global-nav.html new file mode 100644 index 0000000..81e2ad5 --- /dev/null +++ b/vanilla/templates/docs/examples/layouts/_global-nav.html @@ -0,0 +1,16 @@ + diff --git a/vanilla/templates/docs/examples/layouts/application/JAAS.html b/vanilla/templates/docs/examples/layouts/application/JAAS.html new file mode 100644 index 0000000..71d2057 --- /dev/null +++ b/vanilla/templates/docs/examples/layouts/application/JAAS.html @@ -0,0 +1,331 @@ +{% extends "_layouts/examples.html" %} +{% block title %}Application / JAAS{% endblock %} + +{% block style %} + + +{% endblock %} + +{% block content %} +