diff --git a/site/docs/base/code.md b/site/docs/base/code.md
index 774a5c5638..750d44cb5b 100644
--- a/site/docs/base/code.md
+++ b/site/docs/base/code.md
@@ -18,7 +18,7 @@ When you refer to code inline with other text, use the <code> ta
If you want to refer to a larger piece of code, use <pre> together with the <code> tag.
-
+
View example of the base code block
@@ -41,7 +41,7 @@ This component should be used when displaying a single line of code, accompanied
-
+
View example of the code copyable pattern
@@ -53,7 +53,7 @@ Please copy the entire JS in the example, for copy to clipboard functionality.
The code numbered pattern can be used when displaying large blocks of code to enable users to quickly reference a specific line.
-
+
View example of the code numbered pattern
diff --git a/site/docs/base/forms.md b/site/docs/base/forms.md
index 094960f72d..a76ff2ee07 100644
--- a/site/docs/base/forms.md
+++ b/site/docs/base/forms.md
@@ -10,7 +10,7 @@ context:
Form controls have global styling defined at the HTML element level. Labels and most input types are 100% width of the `
-
+
View example of a disabled input
@@ -140,7 +140,7 @@ If your form uses select elements then you will additionally need to wrap only t
Descriptive text relating to the element's validation status should use the class `p-form-validation__message`.
-
+
View example of form validation patterns
@@ -148,7 +148,7 @@ View example of form validation patterns
By applying the class `.is-required` the attribute specifies that an input field must be filled out before submitting the form.
-
+
View example of an input required element
@@ -156,7 +156,7 @@ View example of an input required element
In contexts where vertical space is limited, e.g. inside a table row, you might prefer form elements with reduced vertical padding. Add class `.is-dense` to achieve that:
-
+
View example of the dense form elements
diff --git a/site/docs/base/tables.md b/site/docs/base/tables.md
index 5df10348d1..d05c5f23c7 100644
--- a/site/docs/base/tables.md
+++ b/site/docs/base/tables.md
@@ -15,7 +15,7 @@ to the right by adding the class `.u-align--right` to each individual cell,
as in the example that follows. This is considered good practice when formatting
data tables as it makes it easier to scan and compare the values quickly.
-
+
View example of the base table
@@ -23,7 +23,7 @@ View example of the base table
Using the class `p-table--sortable` and assigning `role="columnheader"` and `aria-sort` to each `
` element will show each table column to be sortable. With javascript toggling between `ascending` and `descending` for the `aria-sort` attribute it will change the chevron icon in that direction.
-
+
View example of the table sortable pattern
@@ -35,7 +35,7 @@ This pattern should be used when a table requires configuration fields (add, edi
Using `p-table-expanding__panel` it can be hidden using the `aria-hidden` attribute. The table must contain all table cells required.
-
+
View example of the expanding table pattern
@@ -46,7 +46,7 @@ an `[aria-label]` to describe the cell on a mobile screen. We use the content to
The `` element is completely hidden from view on a smaller screen and if the table holds a `.p-contextual-menu` pattern all the children elements will be visible and be interactive.
-
+
View example of the patterns table mobile card
diff --git a/site/docs/base/typography.md b/site/docs/base/typography.md
index 7b55c65808..13279e6ba4 100644
--- a/site/docs/base/typography.md
+++ b/site/docs/base/typography.md
@@ -75,7 +75,7 @@ heading order and semantics.
In the following example, each heading is actually a `
diff --git a/site/docs/patterns/accordion.md b/site/docs/patterns/accordion.md
index c77cfe1632..13d302d882 100644
--- a/site/docs/patterns/accordion.md
+++ b/site/docs/patterns/accordion.md
@@ -20,7 +20,7 @@ Each tab styling can be changed to open or collapse using `aria-expanded`, set `
-
+
View example of the accordion pattern
diff --git a/site/docs/patterns/article-pagination.md b/site/docs/patterns/article-pagination.md
index a77e346e43..1924973beb 100644
--- a/site/docs/patterns/article-pagination.md
+++ b/site/docs/patterns/article-pagination.md
@@ -10,7 +10,7 @@ context:
The article pagination component should be used to navigate from one article to the next, or previous, in chronological order.
-
+
View example of the pagination pattern
diff --git a/site/docs/patterns/breadcrumbs.md b/site/docs/patterns/breadcrumbs.md
index a3c7b90039..d2ca067761 100644
--- a/site/docs/patterns/breadcrumbs.md
+++ b/site/docs/patterns/breadcrumbs.md
@@ -12,7 +12,7 @@ You can use the breadcrumbs pattern to indicate where the current page sits in
the site's navigation. The separators between each item are added via CSS, so
you don't have to include them manually.
-
+
View example of the breadcrumbs pattern
diff --git a/site/docs/patterns/buttons.md b/site/docs/patterns/buttons.md
index c89f5703cc..47e3dbd3a6 100644
--- a/site/docs/patterns/buttons.md
+++ b/site/docs/patterns/buttons.md
@@ -20,7 +20,7 @@ Buttons are clickable elements used to perform an action, you can apply `button`
A base button is usually used alongside a neutral button.
-
+
View example of the base button pattern
@@ -28,7 +28,7 @@ View example of the base button pattern
A neutral button can be used to indicate a positive action that isn't necessarily the main call-to-action.
-
+
View example of the neutral button pattern
@@ -36,7 +36,7 @@ View example of the neutral button pattern
A positive button can be used to indicate a positive action that is the main call-to-action.
-
+
View example of the positive button pattern
@@ -44,7 +44,7 @@ View example of the positive button pattern
A negative button can be used to indicate a negative action that is destructive or permanent.
-
+
View example of the negative button pattern
@@ -52,7 +52,7 @@ View example of the negative button pattern
You can use the brand button with the main color of your brand.
-
+
View example of the brand button pattern
@@ -60,7 +60,7 @@ View example of the brand button pattern
Should you wish to place a button after a line of inline text, as a CTA for example, you can do so by adding the state class `is-inline` to the button element.
-
+
View example of the inline button pattern
@@ -68,7 +68,7 @@ View example of the inline button pattern
In contexts where vertical space is limited, you might want a button with reduced vertical padding. Add class `.is-dense` to achieve that:
-
+
View example of the dense button pattern
@@ -76,7 +76,7 @@ View example of the dense button pattern
Should you wish to place an icon in a button. You will not want to button to become full width on small screens. Therefore, you can add the state class `has-icon` to the button. If the contrast between the icon chosen and the button background is not sufficient then the `is-dark` or `is-light` classes can be added to the icon where appropriate.
-
+
View example of the icon button pattern
diff --git a/site/docs/patterns/card.md b/site/docs/patterns/card.md
index b2ae4ad51b..70e9d2930e 100644
--- a/site/docs/patterns/card.md
+++ b/site/docs/patterns/card.md
@@ -14,7 +14,7 @@ There are four card styles available to use in Vanilla: default, header, highlig
The purpose of the default card is to display information, without user interaction.
-
+
View example of the default card pattern
@@ -22,7 +22,7 @@ View example of the default card pattern
The purpose of the header card is to display information, grouped under a heading.
-
+
View example of the header card pattern
@@ -30,7 +30,7 @@ View example of the header card pattern
The purpose of the highlighted card should be used when you can interact with the content.
-
+
View example of the highlighted card pattern
@@ -38,7 +38,7 @@ View example of the highlighted card pattern
The purpose of the overlay card is to make the text visible in conjunction with a strip image.
-
+
View example of the patterns card overlay
diff --git a/site/docs/patterns/contextual-menu.md b/site/docs/patterns/contextual-menu.md
index 13226852ba..8a773476e7 100644
--- a/site/docs/patterns/contextual-menu.md
+++ b/site/docs/patterns/contextual-menu.md
@@ -29,7 +29,7 @@ Using direction modifiers will change the placement of the drop-down menu. By de
-
+
View example of the contextual menu pattern
@@ -43,7 +43,7 @@ If you require a drop-down button with a state indicator then the `p-contextual-
-
+
View example of the contextual menu pattern
@@ -60,7 +60,7 @@ The contextual menu uses Vanilla's light theme by default. There are two ways to
- Change the default: go to `_settings_themes.scss` and set `$theme-default-p-contextual-menu` to `dark`
- Override the default by adding a state to `p-contextual-menu`: `is-dark` when the default navigation is light, or `is-light` when the default has been changed to dark:
-
+
View example of the contextual menu with an is-dark class
diff --git a/site/docs/patterns/grid.md b/site/docs/patterns/grid.md
index 38ec0e997c..43c23060cb 100644
--- a/site/docs/patterns/grid.md
+++ b/site/docs/patterns/grid.md
@@ -26,7 +26,7 @@ Layouts can be created combining rows with different number of columns to an ide
Read also: [Breakpoints](/settings/breakpoint-settings)
-
+
View example of the default grid
@@ -34,7 +34,7 @@ Read also: [Breakpoints](/settings/breakpoint-settings)
If you only want to constrain content so it matches the grid's fixed width, you can use the utility `.u-fixed-width`. It behaves as a grid `.row` with a single 12 column container inside:
-
+
View example of a fixed width container
@@ -44,7 +44,7 @@ Columns can be nested infinitely by adding `.row` classes within columns. When n
• keep track of the context (available columns), which is equal to the number of columns spanned by the parent element.
• Ensure `.col-*` classes are direct descendants of `.row` classes. Failing to do so will result in a broken layout.
-
+
View example of the nested columns within the grid
@@ -56,13 +56,13 @@ To leave gap columns, use `col-start-{breakpoint}{index}`, e.g.: `col-start-larg
`{index}` options: an integer between 1 and the available columns.
-
+
View example of the empty columns within the grid
Please note, specifying a value that exceeds the available number of columns will result in incorrect offsets. This happens because the grid implicitly creates additional columns to accommodate the grid-column-start property. You should always keep track of how many available columns you have, especially when nesting. In the example below, we are indicating we want a `div` to span 3 columns, and start at position 7. This requires 10 total columns inside a `div` spanning only 4.
-
+
View example of the incorrect column offset within a nested grid
diff --git a/site/docs/patterns/heading-icon.md b/site/docs/patterns/heading-icon.md
index d2df8d76bb..3424cb5853 100644
--- a/site/docs/patterns/heading-icon.md
+++ b/site/docs/patterns/heading-icon.md
@@ -11,7 +11,7 @@ context:
A header can be emphasised by adding an icon alongside the text.
-
+
View example of the pattern heading icons
@@ -19,7 +19,7 @@ View example of the pattern heading icons
This variant positions the icon vertically with the text content for an alternate layout.
-
+
View example of the pattern heading icon stacked
@@ -27,7 +27,7 @@ View example of the pattern heading icon stacked
The icon for this component is also available at a smaller size of 32 x 32 pixels rather than our default size of 60 x 60 pixels.
-
+
View example of the pattern heading icon small
diff --git a/site/docs/patterns/images.md b/site/docs/patterns/images.md
index 2fb715b2ae..301817fde9 100644
--- a/site/docs/patterns/images.md
+++ b/site/docs/patterns/images.md
@@ -14,7 +14,7 @@ Enhance images by adding a variant style with a border or drop shadow.
A simple key-line around your image.
-
+
View example of image with border
@@ -22,7 +22,7 @@ View example of image with border
Add depth using our drop shadow around your image.
-
+
View example of image with shadow
diff --git a/site/docs/patterns/inline-images.md b/site/docs/patterns/inline-images.md
index 91616aa58d..c8a39770d7 100644
--- a/site/docs/patterns/inline-images.md
+++ b/site/docs/patterns/inline-images.md
@@ -10,7 +10,7 @@ context:
The Inline images pattern can be used to showcase a group of related images, such as a group of customer or partner logos.
-
+
View example of the inline images pattern
diff --git a/site/docs/patterns/labels.md b/site/docs/patterns/labels.md
index a2a307942d..fedecd674f 100644
--- a/site/docs/patterns/labels.md
+++ b/site/docs/patterns/labels.md
@@ -20,7 +20,7 @@ Labels are static elements which you can apply to signify status, tags or any ot
Label to be used on newly released components, utilities or settings that are safe to use in projects.
-
+
View example of the new label pattern
@@ -28,7 +28,7 @@ View example of the new label pattern
Label to be used on components, utilities or settings are in the process of being removed and should no longer be used in projects.
-
+
View example of the deprecated label pattern
@@ -36,7 +36,7 @@ View example of the deprecated label pattern
Label to be used when a design spec and code implementation are not yet finished.
-
+
View example of the in progress label pattern
@@ -44,7 +44,7 @@ View example of the in progress label pattern
Label to be used on existing components, utilities or settings that have been updated either through design or code.
-
+
View example of the updated label pattern
@@ -52,7 +52,7 @@ View example of the updated label pattern
Label to be used on a proposal approved in our bi-weekly meeting. A design spec is created and development starts ready for code review.
-
+
View example of the validated label pattern
diff --git a/site/docs/patterns/links.md b/site/docs/patterns/links.md
index 79332ee181..4887a071ba 100644
--- a/site/docs/patterns/links.md
+++ b/site/docs/patterns/links.md
@@ -14,7 +14,7 @@ Links are used to embed actions or pathways to more information, allowing users
Default links are a color defined by `$color-link` and are 10% darker when already visited.
-
+
View example of the default link pattern
@@ -30,7 +30,7 @@ The `.p-link--external` class should be used on hyperlinks that go to a differen
-
+
View example of the external link pattern
@@ -38,7 +38,7 @@ View example of the external link pattern
The `.p-link--soft` class should be used on hyperlinks where many links are grouped together, such as a link cloud.
-
+
View example of the soft link pattern
@@ -46,7 +46,7 @@ View example of the soft link pattern
The `.p-link--inverted` class should be used where links are placed on a dark background.
-
+
View example of the inverted link pattern
@@ -54,7 +54,7 @@ View example of the inverted link pattern
The `.p-top` link can be used to make it easier to go back to the top on long pages. If the page is divided into different sections, you can use more than one per page.
-
+
View example of the back to top pattern
diff --git a/site/docs/patterns/list-tree.md b/site/docs/patterns/list-tree.md
index 70c94acef5..880f66b0bf 100644
--- a/site/docs/patterns/list-tree.md
+++ b/site/docs/patterns/list-tree.md
@@ -12,7 +12,7 @@ The list tree pattern can be used to show a directory style listing, such as a l
Each directory can be opened or collapse using `aria-hidden`, set `true` for open and `false` to close on the nested list. Using JS this can be changed and should also update the `aria-expanded` attribute on the folder element.
-
+
View example of the list tree pattern
diff --git a/site/docs/patterns/lists.md b/site/docs/patterns/lists.md
index 06e451853b..5aab271815 100644
--- a/site/docs/patterns/lists.md
+++ b/site/docs/patterns/lists.md
@@ -16,7 +16,7 @@ standard `` and `
`, we have 7 list styles at your disposal.
Use the class `.p-list` for a list without bullets and more spacing between
items than the basic lists.
-
+
View example of the list pattern
@@ -30,7 +30,7 @@ Add the class `.is-ticked` to each list item to display tick icons.
-
+
View example of the ticked list pattern
@@ -38,7 +38,7 @@ View example of the ticked list pattern
Use the class `.p-list--divided` to add horizontal lines between the items.
-
+
View example of the divided list pattern
@@ -47,7 +47,7 @@ View example of the divided list pattern
You can combine both `.is-ticked` and `.p-list--divided` to style a
list with horizontal dividers and tick icons.
-
+
View example of the ticked divided list pattern
@@ -55,7 +55,7 @@ View example of the ticked divided list pattern
A responsive divider inserts divider lines between sections of content. On small screens (up to `$breakpoint-medium`), the divider lines appear horizontally. On screens bigger than \$breakpoint-medium, the divider lines appear vertically, centered in the column gutters.
-
+
View example of lists with a responsive divider
@@ -63,7 +63,7 @@ View example of lists with a responsive divider
Apply the class `.p-inline-list` to display all the list items in one line.
-
+
View example of the inline list pattern
@@ -72,7 +72,7 @@ View example of the inline list pattern
Apply the class `.p-inline-list--middot` to add a middot character between
inline list items.
-
+
View example of the middot list pattern
@@ -81,7 +81,7 @@ View example of the middot list pattern
If you want to display a list of items that form a set of steps — like a
tutorial or instructions — you can use the class `.p-stepped-list`.
-
+
View example of the stepped list pattern
@@ -91,7 +91,7 @@ The stepped list should be used for step by step instructions. This pattern is b
used on a `.p-strip--light` as the description sections are displayed in a white
box.
-
+
View example of the pattern stepped list detailed
@@ -99,7 +99,7 @@ View example of the pattern stepped list detailed
If you wish to split the items in a list into two columns above `$breakpoint-medium`, you can do so by adding the class `is-split` to the list element.
-
+
View example of the patterns list split
diff --git a/site/docs/patterns/matrix.md b/site/docs/patterns/matrix.md
index a6ce9f1ccb..4d19dd6fba 100644
--- a/site/docs/patterns/matrix.md
+++ b/site/docs/patterns/matrix.md
@@ -18,7 +18,7 @@ Items will display in one column on small screens. At resolutions above `$breakp
-
+
View example of the matrix pattern
diff --git a/site/docs/patterns/media-object.md b/site/docs/patterns/media-object.md
index e6cec0c268..49cb1b4c31 100644
--- a/site/docs/patterns/media-object.md
+++ b/site/docs/patterns/media-object.md
@@ -11,7 +11,7 @@ context:
A media object should be used to display events or articles.
-
+
View example of the pattern media object
@@ -19,7 +19,7 @@ View example of the pattern media object
You can add an `is-round` state to the `.p-media-object__image` element to create a circular image style, which we recommend to be used for head shots of people. In order for this variant to work, the original image must be square.
-
+
View example of the pattern media object
@@ -27,7 +27,7 @@ View example of the pattern media object
Use a large variant of the component to display details of a single object on a page.
-
+
View example of the pattern media object large
diff --git a/site/docs/patterns/modal.md b/site/docs/patterns/modal.md
index 1eb683520e..31a92bf736 100644
--- a/site/docs/patterns/modal.md
+++ b/site/docs/patterns/modal.md
@@ -12,7 +12,7 @@ The modal component can be used to overlay an area of the screen which can conta
On `p-modal` set display to `display:flex` or `display:none` to toggle the visibility of the modal.
-
+
View example of the modal pattern
diff --git a/site/docs/patterns/muted-heading.md b/site/docs/patterns/muted-heading.md
index 9101cf7b93..a6dbc4d80a 100644
--- a/site/docs/patterns/muted-heading.md
+++ b/site/docs/patterns/muted-heading.md
@@ -11,7 +11,7 @@ context:
A muted heading can be used to subtly provide context to content without the heading itself being too prominent.
-
+
View example of the pattern muted heading
diff --git a/site/docs/patterns/navigation.md b/site/docs/patterns/navigation.md
index df22bfa868..eb74fb9a5e 100644
--- a/site/docs/patterns/navigation.md
+++ b/site/docs/patterns/navigation.md
@@ -32,7 +32,7 @@ You can also manually override the background color of the navigation using the
You can change the breakpoint at which the menu changes to a small screen menu
by adjusting the `$breakpoint-navigation-threshold` in `_settings_breakpoints.scss`.
-
+
View example of the navigation pattern
@@ -57,7 +57,7 @@ To open the subnav-menu you need to set the `is-active` class on `p-subnav` elem
By default the sub-navigation menus are left-aligned with their parent, if you'd prefer the menu to be positioned from the right, use the `p-subnav__items--right` modifier. This can be seen in the "My account" menu in the example.
-
+
View example of the sub-navigation pattern
diff --git a/site/docs/patterns/notification.md b/site/docs/patterns/notification.md
index 6216d487b8..6dc9eaa93a 100644
--- a/site/docs/patterns/notification.md
+++ b/site/docs/patterns/notification.md
@@ -16,7 +16,7 @@ You can also include a close button using the `p-icon--close` pattern, although
The default variant should be used to display global messages.
-
+
View example of the default notification pattern
@@ -24,7 +24,7 @@ View example of the default notification pattern
The caution variant should be used to convey information that is not critical but the user should be aware of.
-
+
View example of the caution notification pattern
@@ -32,7 +32,7 @@ View example of the caution notification pattern
The negative variant should be used to convey information that is critical and the user should take action.
-
+
View example of the negative notification pattern
@@ -40,7 +40,7 @@ View example of the negative notification pattern
The positive variant should be used to convey success or completion.
-
+
View example of the positive notification pattern
@@ -48,7 +48,7 @@ View example of the positive notification pattern
The information variant should be used to convey an information message.
-
+
View example of the information notification pattern
@@ -62,7 +62,7 @@ Notifications have the ability to add an action link to them. These should appea
-
+
View example of the caution notification pattern
diff --git a/site/docs/patterns/pagination.md b/site/docs/patterns/pagination.md
index 7ea15480ae..b834dd40b2 100644
--- a/site/docs/patterns/pagination.md
+++ b/site/docs/patterns/pagination.md
@@ -10,7 +10,7 @@ context:
The pagination component should be used to navigate between pages of content. Depending on the length provided, the pagination component will automatically scale.
-
+
View example of the pagination pattern
@@ -18,7 +18,7 @@ View example of the pagination pattern
When it is not possible to fit all pages into the component, a truncated option should be used to give the first, last and as many siblings of the current page as possible.
-
+
View example of the pagination pattern
@@ -26,7 +26,7 @@ View example of the pagination pattern
When a user is at the first or last item then the previous or next button, respectively, should be disabled.
-
+
View example of the pagination pattern
diff --git a/site/docs/patterns/pull-quote.md b/site/docs/patterns/pull-quote.md
index cc4c6d6ce8..ca28e7395b 100644
--- a/site/docs/patterns/pull-quote.md
+++ b/site/docs/patterns/pull-quote.md
@@ -11,7 +11,7 @@ context:
Use the pull quote pattern to highlight content from different sources in a
visually prominent way.
-
+
View example of the pull quote pattern
@@ -19,7 +19,7 @@ View example of the pull quote pattern
A small variant is available which displays the quote text at the same size as normal paragraph text.
-
+
View example of the small pull quote pattern
@@ -27,7 +27,7 @@ View example of the small pull quote pattern
To give more prominence to a quote, there is also a large variant.
-
+
View example of the small pull quote pattern
@@ -35,7 +35,7 @@ View example of the small pull quote pattern
To add an image to any size of pull-quote, add the class `has-image` and use the following markup for the image.
-
+
View example of the small pull quote pattern with an image
diff --git a/site/docs/patterns/search-box.md b/site/docs/patterns/search-box.md
index 08976d9e61..71aca02584 100644
--- a/site/docs/patterns/search-box.md
+++ b/site/docs/patterns/search-box.md
@@ -14,7 +14,7 @@ Search boxes enable search functionality on a page and are typically used in a n
The component expands to the full width of its container by default.
-
+
View examples of search box patterns
@@ -22,7 +22,7 @@ View examples of search box patterns
This component integrates with `.p-navigation__nav` for both small and large screens.
-
+
View examples of search box navigation patterns
diff --git a/site/docs/patterns/slider.md b/site/docs/patterns/slider.md
index 19c493eccd..55750ccc46 100644
--- a/site/docs/patterns/slider.md
+++ b/site/docs/patterns/slider.md
@@ -11,7 +11,7 @@ context:
The `p-slider__wrapper` and `p-slider__input` classes should be used with `` elements
when you want to provide a numeric representation of the slider value, as well as allow the user to specify a value.
-
+
View example of the slider pattern
diff --git a/site/docs/patterns/strip.md b/site/docs/patterns/strip.md
index edf98000e9..2d3c5e7d72 100644
--- a/site/docs/patterns/strip.md
+++ b/site/docs/patterns/strip.md
@@ -12,11 +12,11 @@ The strip pattern provides a full width strip container in which to wrap a row.
A `.p-strip` container should always be the parent of a `.row` (from the [Grid pattern](/patterns/grid/)) and never the other way around.
-
+
View example of the strip light pattern
-
+
View example of the strip dark pattern
@@ -25,7 +25,7 @@ View example of the strip dark pattern
The purpose of the strip accent pattern is to display content with a
highlighted strip using the accent colour.
-
+
View example of the pattern strip accent
@@ -42,7 +42,7 @@ This pattern allows for an image background to be appear as a background on a st
You can also add the classes '.is-light' and '.is-dark' to the strips to describe the background image.
These classes will then override the text color to ensure it remains visible.
-
+
View example of the pattern strip image
@@ -56,7 +56,7 @@ This pattern is used to add a dividing border at the bottom of the strip.
-
+
View example of the pattern strip is-bordered
@@ -64,7 +64,7 @@ View example of the pattern strip is-bordered
This state gives the strip larger vertical padding.
-
+
View example of the pattern strip is-deep
@@ -72,7 +72,7 @@ View example of the pattern strip is-deep
This state gives the strip smaller vertical padding.
-
+
View example of the pattern strip is-shallow
diff --git a/site/docs/patterns/switch.md b/site/docs/patterns/switch.md
index 8eec639741..72ada77b16 100644
--- a/site/docs/patterns/switch.md
+++ b/site/docs/patterns/switch.md
@@ -10,7 +10,7 @@ context:
You can use this switch component to display on and off content, such as for settings or simple controls. By changing the `aria-checked` attribute from true or false will animate the switch on/off.
-
+
View example of the switch pattern
diff --git a/site/docs/patterns/table-of-contents.md b/site/docs/patterns/table-of-contents.md
index a27098b023..561778f66c 100644
--- a/site/docs/patterns/table-of-contents.md
+++ b/site/docs/patterns/table-of-contents.md
@@ -10,7 +10,7 @@ context:
A table of contents can be used to display supplementary links to a page.
-
+
View example of the table of contents pattern
diff --git a/site/docs/patterns/tabs.md b/site/docs/patterns/tabs.md
index 030b71c213..ea3bcd63c7 100644
--- a/site/docs/patterns/tabs.md
+++ b/site/docs/patterns/tabs.md
@@ -14,7 +14,7 @@ To select the active tab add the attribute `aria-selected="true"` and that list
To horizontally align the tab list with other content, the whole tab set can be contained within a `.row` element to provide correct gutters.
-
+
View example of the tabs pattern
diff --git a/site/docs/patterns/tooltips.md b/site/docs/patterns/tooltips.md
index e139bee80c..7eb990deed 100644
--- a/site/docs/patterns/tooltips.md
+++ b/site/docs/patterns/tooltips.md
@@ -19,7 +19,7 @@ Tooltips are text labels that appear when the user hovers over, focuses on, or t
-
+
View example of the tooltips pattern
diff --git a/site/docs/settings/animation-settings.md b/site/docs/settings/animation-settings.md
index 8678c79656..bbfc9c8acc 100644
--- a/site/docs/settings/animation-settings.md
+++ b/site/docs/settings/animation-settings.md
@@ -43,7 +43,7 @@ Recommended durations for easing can be `easeInCubic` or `easeOutCubic`.
Add a spin animation to an element with the following utility class.
-
+
View example of the spin animation utility
diff --git a/site/docs/settings/spacing-settings.md b/site/docs/settings/spacing-settings.md
index 71081850e2..35fc9a5425 100644
--- a/site/docs/settings/spacing-settings.md
+++ b/site/docs/settings/spacing-settings.md
@@ -14,7 +14,7 @@ Vanilla uses numerous spacing variables across the codebase in order to ensure c
Vanilla uses a default spacing unit of `.5rem` (`8px`) as a basis to calculate spacing inside and between components, as well as the line-heights of the different type sizes.
-
+
View example of the baseline grid utility
diff --git a/site/docs/utilities/align.md b/site/docs/utilities/align.md
index 244a8390c2..50d8b23531 100644
--- a/site/docs/utilities/align.md
+++ b/site/docs/utilities/align.md
@@ -10,7 +10,7 @@ context:
You can use these utilities to force the content inside an element to align center, left or right.
-
+
View example of the content align utility
diff --git a/site/docs/utilities/baseline-grid.md b/site/docs/utilities/baseline-grid.md
index bd2b2e9a9e..3eb5fe01ba 100644
--- a/site/docs/utilities/baseline-grid.md
+++ b/site/docs/utilities/baseline-grid.md
@@ -10,7 +10,7 @@ context:
You can apply this utility to an element (such as ``) to visualise the `.5rem` baseline grid to which text elements adhere.
-
+
View example of the baseline grid utility
diff --git a/site/docs/utilities/clearfix.md b/site/docs/utilities/clearfix.md
index 6a8de0b3cd..72ba43b503 100644
--- a/site/docs/utilities/clearfix.md
+++ b/site/docs/utilities/clearfix.md
@@ -14,7 +14,7 @@ The clearfix is a way to combat the zero-height container problem for floated el
In the example below, the parent wrapping container does not collapse even though it's only two children are floated.
-
+
View example of the clearfix utility
diff --git a/site/docs/utilities/embedded-media.md b/site/docs/utilities/embedded-media.md
index 4202e4fbae..1b05836ab1 100644
--- a/site/docs/utilities/embedded-media.md
+++ b/site/docs/utilities/embedded-media.md
@@ -10,7 +10,7 @@ context:
Embed media objects such as videos, maps and calendars.
-
+
View example of the embedded media utility
diff --git a/site/docs/utilities/equal-height.md b/site/docs/utilities/equal-height.md
index 5844a151c4..763890aae4 100644
--- a/site/docs/utilities/equal-height.md
+++ b/site/docs/utilities/equal-height.md
@@ -10,7 +10,7 @@ context:
To ensure two or more elements have an equal height regardless of their content, add the class `.u-equal-height` to their wrapping parent element.
-
+
View example of the equal height utility
diff --git a/site/docs/utilities/floats.md b/site/docs/utilities/floats.md
index 2726c5c1d3..ce1cb7eac5 100644
--- a/site/docs/utilities/floats.md
+++ b/site/docs/utilities/floats.md
@@ -15,7 +15,7 @@ The float utilities allow you to float an element left or right.
You can use the following to float an element on left or right on all screen
sizes.
-
+
View example of the all screen floats utility
@@ -23,7 +23,7 @@ View example of the all screen floats utility
You can limit floats to only large screen sizes using the following example.
-
+
View example of the large screen floats utility
@@ -31,7 +31,7 @@ View example of the large screen floats utility
You can limit floats to only medium screen sizes using the following example.
-
+
View example of the medium screen floats utility
@@ -39,7 +39,7 @@ View example of the medium screen floats utility
You can limit floats to only small screen sizes using the following example.
-
+
View example of the small screen floats utility
diff --git a/site/docs/utilities/font-metrics.md b/site/docs/utilities/font-metrics.md
index ff423d0f7e..a6461b2591 100644
--- a/site/docs/utilities/font-metrics.md
+++ b/site/docs/utilities/font-metrics.md
@@ -12,7 +12,7 @@ Being able to visualise the FontForge. The values are stored in `_settings_font.scss` (the defaults apply to the Ubuntu font family). If you want to use this utility with another font, you will need to change the default values to match your font.
-
+
View an example of the font metrics utility
diff --git a/site/docs/utilities/hide.md b/site/docs/utilities/hide.md
index b9628a42b7..c6dd684558 100644
--- a/site/docs/utilities/hide.md
+++ b/site/docs/utilities/hide.md
@@ -14,7 +14,7 @@ To hide an element from the user, use the class `u-hide`.
To hide only at a specific viewport, add `--small`, `--medium` or `--large` modifiers to the `u-hide` class.
-
+
View example of the Hide utility
diff --git a/site/docs/utilities/image-position.md b/site/docs/utilities/image-position.md
index 7f1390aaf2..9fbb4c7dda 100644
--- a/site/docs/utilities/image-position.md
+++ b/site/docs/utilities/image-position.md
@@ -20,49 +20,49 @@ most cases it would be a strip.
### Bottom
-
+
View example of the utilities image position bottom
### Top
-
+
View example of the utilities image position top
### Left
-
+
View example of the utilities image position top
### Right
-
+
View example of the utilities image position top
### Top right
-
+
View example of the utilities image position top right
### Top left
-
+
View example of the utilities image position top left
### Bottom right
-
+
View example of the utilities image position bottom right
### Bottom left
-
+
View example of the utilities image position bottom left
diff --git a/site/docs/utilities/margin-collapse.md b/site/docs/utilities/margin-collapse.md
index 2f796c98c6..2949d76d2e 100644
--- a/site/docs/utilities/margin-collapse.md
+++ b/site/docs/utilities/margin-collapse.md
@@ -10,7 +10,7 @@ context:
Remove one or more margins of an element.
-
+
View example of the margin collapse utility
diff --git a/site/docs/utilities/no-print.md b/site/docs/utilities/no-print.md
index f2c63937b6..9e76315c41 100644
--- a/site/docs/utilities/no-print.md
+++ b/site/docs/utilities/no-print.md
@@ -13,7 +13,7 @@ Add the class `u-no-print` to elements you want to hide when the page is printed
Use your browser's print preview to see the following example working.
-
+
View example of the no-print utility
diff --git a/site/docs/utilities/off-screen.md b/site/docs/utilities/off-screen.md
index 6179289d2d..536c133d8d 100644
--- a/site/docs/utilities/off-screen.md
+++ b/site/docs/utilities/off-screen.md
@@ -10,7 +10,7 @@ context:
The `.u-off-screen` class will position an element out of the page flow and off-screen, while still making it available to screen readers.
-
+
View example of the off-screen utility
diff --git a/site/docs/utilities/padding-collapse.md b/site/docs/utilities/padding-collapse.md
index 5a03de0b48..7415c51536 100644
--- a/site/docs/utilities/padding-collapse.md
+++ b/site/docs/utilities/padding-collapse.md
@@ -10,7 +10,7 @@ context:
Remove one or more paddings on an element.
-
+
View example of the padding collapse utility
diff --git a/site/docs/utilities/show.md b/site/docs/utilities/show.md
index 8821b5e0cd..e1d287e92c 100644
--- a/site/docs/utilities/show.md
+++ b/site/docs/utilities/show.md
@@ -10,7 +10,7 @@ context:
Show an element within a certain breakpoint.
-
+
View example of the Show utility
diff --git a/site/docs/utilities/table-cell-padding-overlap.md b/site/docs/utilities/table-cell-padding-overlap.md
index 1b3a75637e..6951ca0c4c 100644
--- a/site/docs/utilities/table-cell-padding-overlap.md
+++ b/site/docs/utilities/table-cell-padding-overlap.md
@@ -12,6 +12,6 @@ Vanilla applies padding-top and padding bottom to table cells. This is done to p
In some cases it can be helpful to override this behaviour for specific children of the table cell, e.g. a `button`:
-
+
View example of the table padding overlap
diff --git a/site/docs/utilities/truncate.md b/site/docs/utilities/truncate.md
index 3506cb2e3d..2b1b2f28d0 100644
--- a/site/docs/utilities/truncate.md
+++ b/site/docs/utilities/truncate.md
@@ -13,7 +13,7 @@ To truncate text, use the class `u-truncate`.
When applied to a parent container, it will truncate any elements placed inside, so long as the parent's width is set.
When applied to individual elements within a parent, e.g. a table cell, only those elements will be truncated.
-
+
View example of the truncate utility
diff --git a/site/docs/utilities/vertically-center.md b/site/docs/utilities/vertically-center.md
index 4194f62b10..b4481df3ff 100644
--- a/site/docs/utilities/vertically-center.md
+++ b/site/docs/utilities/vertically-center.md
@@ -12,7 +12,7 @@ The `.u-vertically-center` class will vertically center the direct child of the
Note: only affects medium and large screens.
-
+
View example of the vertically center utility
From 54a97d8fd61652dcb8c113c627024ee7ebca726c Mon Sep 17 00:00:00 2001
From: Bartek Szopka
Date: Mon, 2 Mar 2020 18:07:10 +0100
Subject: [PATCH 03/23] Update docs path in prettierignore
---
.prettierignore | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.prettierignore b/.prettierignore
index 584c5a9337..05160a2229 100644
--- a/.prettierignore
+++ b/.prettierignore
@@ -1,2 +1,2 @@
# ignore html files in docs not to mess up with template formatting
-docs/**/*.html
+site/**/*.html
From 643a0363d2363d617fdd792b513dc07598577c66 Mon Sep 17 00:00:00 2001
From: Francisco Jimenez Cabrera
Date: Mon, 2 Mar 2020 14:57:10 +0000
Subject: [PATCH 04/23] Fix 'Utilities' links
---
site/_layouts/default.html | 66 +++++++++++++++++++++++++----------
site/docs/component-status.md | 6 ++--
2 files changed, 51 insertions(+), 21 deletions(-)
diff --git a/site/_layouts/default.html b/site/_layouts/default.html
index 3dfd2d82a3..834c586f34 100644
--- a/site/_layouts/default.html
+++ b/site/_layouts/default.html
@@ -123,30 +123,59 @@
diff --git a/site/docs/component-status.md b/site/docs/component-status.md
index f406a82c03..5524282980 100644
--- a/site/docs/component-status.md
+++ b/site/docs/component-status.md
@@ -95,7 +95,7 @@ When we add, make significant updates, or deprecate a component we update their
Optional state indicator was added to contextual menu
diff --git a/site/docs/base/typography.md b/site/docs/base/typography.md
index 13279e6ba4..4bb45590a8 100644
--- a/site/docs/base/typography.md
+++ b/site/docs/base/typography.md
@@ -227,4 +227,4 @@ For more information [view the typography design spec](https://github.com/ubuntu
### Related
-For more typographic related information view the [code](/base/code) and [pull quote pattern](/patterns/pull-quote) component or our [font settings](/settings/font-settings).
+For more typographic related information view the [code](/base/code) and [pull quote pattern](/patterns/pull-quote) component or our [font settings](/docs/settings/font-settings).
diff --git a/site/docs/customising-vanilla.md b/site/docs/customising-vanilla.md
index 508182f954..2ef3584ce5 100644
--- a/site/docs/customising-vanilla.md
+++ b/site/docs/customising-vanilla.md
@@ -53,22 +53,22 @@ Your project may not warrant including all of Vanilla, in which case you can inc
diff --git a/site/docs/base/code.md b/site/docs/base/code.md
index 750d44cb5b..c39b23f59a 100644
--- a/site/docs/base/code.md
+++ b/site/docs/base/code.md
@@ -69,7 +69,7 @@ To import just code copyable or numbered component into your project, copy eithe
@import 'patterns_code-numbered';
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
### Design
diff --git a/site/docs/base/forms.md b/site/docs/base/forms.md
index a76ff2ee07..e3a9955866 100644
--- a/site/docs/base/forms.md
+++ b/site/docs/base/forms.md
@@ -176,7 +176,7 @@ To add form help text or validation into your project, copy either or both snipp
@import 'patterns_form-validation';
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
### Design
diff --git a/site/docs/base/tables.md b/site/docs/base/tables.md
index d05c5f23c7..f3ef1188ad 100644
--- a/site/docs/base/tables.md
+++ b/site/docs/base/tables.md
@@ -66,7 +66,7 @@ To import either or all of these components into your project, copy the snippets
@import 'patterns_table-sortable';
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
### Design
diff --git a/site/docs/base/typography.md b/site/docs/base/typography.md
index 4bb45590a8..23ccb98dcf 100644
--- a/site/docs/base/typography.md
+++ b/site/docs/base/typography.md
@@ -219,7 +219,7 @@ To import just this base element into your project, copy the snippet below and i
@import 'patterns_headings';
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
### Design
diff --git a/site/docs/index.html b/site/docs/index.html
index 0e0b6a6eb7..58c272d1eb 100644
--- a/site/docs/index.html
+++ b/site/docs/index.html
@@ -15,7 +15,7 @@
// Include all of Vanilla Framework
@include vanilla;
-
For information on overriding settings and importing only parts of Vanilla, see Customising Vanilla.
+
For information on overriding settings and importing only parts of Vanilla, see Customising Vanilla.
diff --git a/site/docs/patterns/accordion.md b/site/docs/patterns/accordion.md
index 13d302d882..4f60a1ecd5 100644
--- a/site/docs/patterns/accordion.md
+++ b/site/docs/patterns/accordion.md
@@ -37,7 +37,7 @@ To import just this component into your project, copy the snippet below and incl
@include vf-p-accordion;
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
### Design
diff --git a/site/docs/patterns/article-pagination.md b/site/docs/patterns/article-pagination.md
index 1924973beb..5738725831 100644
--- a/site/docs/patterns/article-pagination.md
+++ b/site/docs/patterns/article-pagination.md
@@ -23,7 +23,7 @@ To import just this component into your project, copy the snippet below and incl
@include vf-p-article-pagination;
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
### Design
diff --git a/site/docs/patterns/breadcrumbs.md b/site/docs/patterns/breadcrumbs.md
index d2ca067761..042765df3e 100644
--- a/site/docs/patterns/breadcrumbs.md
+++ b/site/docs/patterns/breadcrumbs.md
@@ -25,7 +25,7 @@ To import just this component into your project, copy the snippet below and incl
@include vf-p-breadcrumbs;
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
### Design
diff --git a/site/docs/patterns/buttons.md b/site/docs/patterns/buttons.md
index 47e3dbd3a6..bb9b6f4b01 100644
--- a/site/docs/patterns/buttons.md
+++ b/site/docs/patterns/buttons.md
@@ -95,7 +95,7 @@ To import just this component into your project, copy the snippet below and incl
If you only need a small subset of the icons consider [including them individually](/patterns/icons/#import) to reduce the size of your CSS file.
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
### Design
diff --git a/site/docs/patterns/card.md b/site/docs/patterns/card.md
index 70e9d2930e..9ceb3d9f01 100644
--- a/site/docs/patterns/card.md
+++ b/site/docs/patterns/card.md
@@ -51,7 +51,7 @@ To import just this component into your project, copy the snippet below and incl
@include vf-p-card;
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
### Design
diff --git a/site/docs/patterns/contextual-menu.md b/site/docs/patterns/contextual-menu.md
index 8a773476e7..bddc6559f3 100644
--- a/site/docs/patterns/contextual-menu.md
+++ b/site/docs/patterns/contextual-menu.md
@@ -81,7 +81,7 @@ To import just this component into your project, copy the snippet below and incl
@include vf-p-icon-contextual-menu;
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
### Design
diff --git a/site/docs/patterns/grid.md b/site/docs/patterns/grid.md
index d197c77fc5..48040c4fbf 100644
--- a/site/docs/patterns/grid.md
+++ b/site/docs/patterns/grid.md
@@ -75,7 +75,7 @@ To import just this component into your project, copy the snippet below and incl
@include vf-p-grid;
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
### Design
diff --git a/site/docs/patterns/heading-icon.md b/site/docs/patterns/heading-icon.md
index 3424cb5853..52855ff972 100644
--- a/site/docs/patterns/heading-icon.md
+++ b/site/docs/patterns/heading-icon.md
@@ -40,7 +40,7 @@ To import just this component into your project, copy the snippet below and incl
@include vf-p-heading-icon;
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
### Design
diff --git a/site/docs/patterns/icons.md b/site/docs/patterns/icons.md
index 10717dba95..319ddb6b58 100644
--- a/site/docs/patterns/icons.md
+++ b/site/docs/patterns/icons.md
@@ -270,7 +270,7 @@ If you use a limited set of icons you may want to include them individually to r
@include vf-p-icon-in-button;
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
### Design
diff --git a/site/docs/patterns/images.md b/site/docs/patterns/images.md
index 301817fde9..6cdb4dc8a9 100644
--- a/site/docs/patterns/images.md
+++ b/site/docs/patterns/images.md
@@ -35,7 +35,7 @@ To import just this component into your project, copy the snippet below and incl
@include vf-p-image;
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
### Design
diff --git a/site/docs/patterns/inline-images.md b/site/docs/patterns/inline-images.md
index c8a39770d7..6cbb8b5bd7 100644
--- a/site/docs/patterns/inline-images.md
+++ b/site/docs/patterns/inline-images.md
@@ -23,7 +23,7 @@ To import just this component into your project, copy the snippet below and incl
@include vf-p-inline-images;
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
### Design
diff --git a/site/docs/patterns/labels.md b/site/docs/patterns/labels.md
index fedecd674f..fc84e65311 100644
--- a/site/docs/patterns/labels.md
+++ b/site/docs/patterns/labels.md
@@ -12,7 +12,7 @@ Labels are static elements which you can apply to signify status, tags or any ot
- Note:These labels are used to inform status of components in Vanilla.
+ Note:These labels are used to inform status of components in Vanilla.
@@ -65,7 +65,7 @@ To import just this component into your project, copy the snippet below and incl
@include vf-p-label;
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
### Design
diff --git a/site/docs/patterns/links.md b/site/docs/patterns/links.md
index 4887a071ba..3569a3ea30 100644
--- a/site/docs/patterns/links.md
+++ b/site/docs/patterns/links.md
@@ -67,7 +67,7 @@ To import just this component into your project, copy the snippet below and incl
@include vf-p-links;
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
### Design
diff --git a/site/docs/patterns/list-tree.md b/site/docs/patterns/list-tree.md
index 880f66b0bf..25b965e823 100644
--- a/site/docs/patterns/list-tree.md
+++ b/site/docs/patterns/list-tree.md
@@ -25,7 +25,7 @@ To import just this component into your project, copy the snippet below and incl
@include vf-p-list-tree;
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
### Design
diff --git a/site/docs/patterns/lists.md b/site/docs/patterns/lists.md
index 5aab271815..1a3687984e 100644
--- a/site/docs/patterns/lists.md
+++ b/site/docs/patterns/lists.md
@@ -123,7 +123,7 @@ To add dividers into your project, copy the snippet below and include it in your
@include vf-p-grid;
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
### Design
diff --git a/site/docs/patterns/matrix.md b/site/docs/patterns/matrix.md
index 4d19dd6fba..87de5ba432 100644
--- a/site/docs/patterns/matrix.md
+++ b/site/docs/patterns/matrix.md
@@ -31,7 +31,7 @@ To import just this component into your project, copy the snippet below and incl
@include vf-p-matrix;
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
### Design
diff --git a/site/docs/patterns/media-object.md b/site/docs/patterns/media-object.md
index 49cb1b4c31..a6a7c3daca 100644
--- a/site/docs/patterns/media-object.md
+++ b/site/docs/patterns/media-object.md
@@ -40,7 +40,7 @@ To import just this component into your project, copy the snippet below and incl
@include vf-p-media-object;
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
### Design
diff --git a/site/docs/patterns/modal.md b/site/docs/patterns/modal.md
index 31a92bf736..0134867162 100644
--- a/site/docs/patterns/modal.md
+++ b/site/docs/patterns/modal.md
@@ -25,7 +25,7 @@ To import just this component into your project, copy the snippet below and incl
@include vf-p-modal;
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
### Design
diff --git a/site/docs/patterns/muted-heading.md b/site/docs/patterns/muted-heading.md
index a6dbc4d80a..08ff341d23 100644
--- a/site/docs/patterns/muted-heading.md
+++ b/site/docs/patterns/muted-heading.md
@@ -24,7 +24,7 @@ To import just this component into your project, copy the snippet below and incl
@include vf-p-muted-heading;
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
### Design
diff --git a/site/docs/patterns/navigation.md b/site/docs/patterns/navigation.md
index eb74fb9a5e..291cad18cf 100644
--- a/site/docs/patterns/navigation.md
+++ b/site/docs/patterns/navigation.md
@@ -74,7 +74,7 @@ To import just navigation or sub-navigation component into your project, copy sn
@include vf-p-subnav;
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
### Design
diff --git a/site/docs/patterns/notification.md b/site/docs/patterns/notification.md
index 6dc9eaa93a..085dfd0676 100644
--- a/site/docs/patterns/notification.md
+++ b/site/docs/patterns/notification.md
@@ -75,7 +75,7 @@ To import just this component into your project, copy the snippet below and incl
@include vf-p-notification;
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
### Design
diff --git a/site/docs/patterns/pagination.md b/site/docs/patterns/pagination.md
index b834dd40b2..e83cda040d 100644
--- a/site/docs/patterns/pagination.md
+++ b/site/docs/patterns/pagination.md
@@ -44,7 +44,7 @@ To import just this component into your project, copy the snippet below and incl
@include vf-p-icon-contextual-menu;
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
### Design
diff --git a/site/docs/patterns/pull-quote.md b/site/docs/patterns/pull-quote.md
index ca28e7395b..e740dfc583 100644
--- a/site/docs/patterns/pull-quote.md
+++ b/site/docs/patterns/pull-quote.md
@@ -48,7 +48,7 @@ To import just this component into your project, copy the snippet below and incl
@include vf-p-pull-quotes;
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
### Design
diff --git a/site/docs/patterns/search-box.md b/site/docs/patterns/search-box.md
index 71aca02584..10d5c29961 100644
--- a/site/docs/patterns/search-box.md
+++ b/site/docs/patterns/search-box.md
@@ -41,7 +41,7 @@ To import just this component into your project, copy the snippet below and incl
@include vf-p-icon-search;
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
### Design
diff --git a/site/docs/patterns/slider.md b/site/docs/patterns/slider.md
index 55750ccc46..853e2c5334 100644
--- a/site/docs/patterns/slider.md
+++ b/site/docs/patterns/slider.md
@@ -27,7 +27,7 @@ To import just this component into your project, copy the snippet below and incl
@include vf-p-slider;
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
### Design
diff --git a/site/docs/patterns/strip.md b/site/docs/patterns/strip.md
index 2d3c5e7d72..824ebd83f5 100644
--- a/site/docs/patterns/strip.md
+++ b/site/docs/patterns/strip.md
@@ -85,7 +85,7 @@ To import just this component into your project, copy the snippet below and incl
@include vf-p-strip;
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
### Design
diff --git a/site/docs/patterns/switch.md b/site/docs/patterns/switch.md
index 72ada77b16..91da174d66 100644
--- a/site/docs/patterns/switch.md
+++ b/site/docs/patterns/switch.md
@@ -23,7 +23,7 @@ To import just this component into your project, copy the snippet below and incl
@include vf-p-switch;
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
### Design
diff --git a/site/docs/patterns/table-of-contents.md b/site/docs/patterns/table-of-contents.md
index 561778f66c..1ac3e5cf69 100644
--- a/site/docs/patterns/table-of-contents.md
+++ b/site/docs/patterns/table-of-contents.md
@@ -27,7 +27,7 @@ To import just this component into your project, copy the snippet below and incl
@include vf-p-lists;
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
### Design
diff --git a/site/docs/patterns/tabs.md b/site/docs/patterns/tabs.md
index ea3bcd63c7..7431307e16 100644
--- a/site/docs/patterns/tabs.md
+++ b/site/docs/patterns/tabs.md
@@ -45,7 +45,7 @@ To import just this component into your project, copy the snippet below and incl
@include vf-p-tabs;
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
### Design
diff --git a/site/docs/patterns/tooltips.md b/site/docs/patterns/tooltips.md
index 7eb990deed..39e01b95d9 100644
--- a/site/docs/patterns/tooltips.md
+++ b/site/docs/patterns/tooltips.md
@@ -32,7 +32,7 @@ To import just this component into your project, copy the snippet below and incl
@include vf-p-tooltips;
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
### Design
diff --git a/site/docs/settings/layout-settings.md b/site/docs/settings/layout-settings.md
index 1bb273aabb..43e1275d77 100644
--- a/site/docs/settings/layout-settings.md
+++ b/site/docs/settings/layout-settings.md
@@ -24,4 +24,4 @@ To import just this utility into your project, copy the snippet below and includ
@import 'utilities_layout';
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
diff --git a/site/docs/settings/spacing-settings.md b/site/docs/settings/spacing-settings.md
index 35fc9a5425..bf17dcdffd 100644
--- a/site/docs/settings/spacing-settings.md
+++ b/site/docs/settings/spacing-settings.md
@@ -99,4 +99,4 @@ To import just this utility into your project, copy the snippet below and includ
@import 'utilities_vertical-spacing';
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
diff --git a/site/docs/utilities/align.md b/site/docs/utilities/align.md
index 50d8b23531..5d76886f69 100644
--- a/site/docs/utilities/align.md
+++ b/site/docs/utilities/align.md
@@ -22,4 +22,4 @@ To import just this utility into your project, copy the snippet below and includ
@import 'utilities_content-align';
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
diff --git a/site/docs/utilities/baseline-grid.md b/site/docs/utilities/baseline-grid.md
index 3eb5fe01ba..cc39165524 100644
--- a/site/docs/utilities/baseline-grid.md
+++ b/site/docs/utilities/baseline-grid.md
@@ -22,4 +22,4 @@ To import just this utility into your project, copy the snippet below and includ
@import 'utilities_baseline-grid';
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
diff --git a/site/docs/utilities/clearfix.md b/site/docs/utilities/clearfix.md
index 72ba43b503..b54328cd0f 100644
--- a/site/docs/utilities/clearfix.md
+++ b/site/docs/utilities/clearfix.md
@@ -26,4 +26,4 @@ To import just this utility into your project, copy the snippet below and includ
@import 'utilities_clearfix';
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
diff --git a/site/docs/utilities/embedded-media.md b/site/docs/utilities/embedded-media.md
index 1b05836ab1..308f7e05ba 100644
--- a/site/docs/utilities/embedded-media.md
+++ b/site/docs/utilities/embedded-media.md
@@ -22,4 +22,4 @@ To import just this utility into your project, copy the snippet below and includ
@import 'utilities_embedded-media';
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
diff --git a/site/docs/utilities/equal-height.md b/site/docs/utilities/equal-height.md
index 763890aae4..fa12fc7c3d 100644
--- a/site/docs/utilities/equal-height.md
+++ b/site/docs/utilities/equal-height.md
@@ -22,4 +22,4 @@ To import just this utility into your project, copy the snippet below and includ
@import 'utilities_equal-height';
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
diff --git a/site/docs/utilities/floats.md b/site/docs/utilities/floats.md
index ce1cb7eac5..6aa017af7d 100644
--- a/site/docs/utilities/floats.md
+++ b/site/docs/utilities/floats.md
@@ -51,4 +51,4 @@ To import just this utility into your project, copy the snippet below and includ
@import 'utilities_floats';
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
diff --git a/site/docs/utilities/font-metrics.md b/site/docs/utilities/font-metrics.md
index a6461b2591..44caecc2b3 100644
--- a/site/docs/utilities/font-metrics.md
+++ b/site/docs/utilities/font-metrics.md
@@ -31,4 +31,4 @@ The `$horisontal-bleed` variable (default value `2rem`) makes the lines protrude
For more information on font metrics, this blog post gives a good overview.
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
diff --git a/site/docs/utilities/hide.md b/site/docs/utilities/hide.md
index c6dd684558..19de3afc47 100644
--- a/site/docs/utilities/hide.md
+++ b/site/docs/utilities/hide.md
@@ -26,4 +26,4 @@ To import just this utility into your project, copy the snippet below and includ
@import 'utilities_hide';
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
diff --git a/site/docs/utilities/image-position.md b/site/docs/utilities/image-position.md
index 9fbb4c7dda..ad9983e5d6 100644
--- a/site/docs/utilities/image-position.md
+++ b/site/docs/utilities/image-position.md
@@ -74,7 +74,7 @@ To import just this utility into your project, copy the snippet below and includ
@import 'utilities_image-position';
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
### Design
diff --git a/site/docs/utilities/margin-collapse.md b/site/docs/utilities/margin-collapse.md
index 2949d76d2e..3e43b35745 100644
--- a/site/docs/utilities/margin-collapse.md
+++ b/site/docs/utilities/margin-collapse.md
@@ -22,4 +22,4 @@ To import just this utility into your project, copy the snippet below and includ
@import 'utilities_margin-collapse';
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
diff --git a/site/docs/utilities/no-print.md b/site/docs/utilities/no-print.md
index 9e76315c41..cb881c823e 100644
--- a/site/docs/utilities/no-print.md
+++ b/site/docs/utilities/no-print.md
@@ -25,4 +25,4 @@ To import just this utility into your project, copy the snippet below and includ
@import 'utilities_no-print';
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
diff --git a/site/docs/utilities/off-screen.md b/site/docs/utilities/off-screen.md
index 536c133d8d..78b510e460 100644
--- a/site/docs/utilities/off-screen.md
+++ b/site/docs/utilities/off-screen.md
@@ -22,4 +22,4 @@ To import just this utility into your project, copy the snippet below and includ
@import 'utilities_off-screen';
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
diff --git a/site/docs/utilities/padding-collapse.md b/site/docs/utilities/padding-collapse.md
index 7415c51536..13da2ecb5b 100644
--- a/site/docs/utilities/padding-collapse.md
+++ b/site/docs/utilities/padding-collapse.md
@@ -22,4 +22,4 @@ To import just this utility into your project, copy the snippet below and includ
@import 'utilities_padding-collapse';
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
diff --git a/site/docs/utilities/show.md b/site/docs/utilities/show.md
index e1d287e92c..5f586e7c6f 100644
--- a/site/docs/utilities/show.md
+++ b/site/docs/utilities/show.md
@@ -22,4 +22,4 @@ To import just this utility into your project, copy the snippet below and includ
@import 'utilities_show';
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
diff --git a/site/docs/utilities/truncate.md b/site/docs/utilities/truncate.md
index 2b1b2f28d0..48ac4e3100 100644
--- a/site/docs/utilities/truncate.md
+++ b/site/docs/utilities/truncate.md
@@ -27,4 +27,4 @@ To import just this utility into your project, copy the snippet below and includ
@import 'utilities_truncate';
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
diff --git a/site/docs/utilities/vertically-center.md b/site/docs/utilities/vertically-center.md
index b4481df3ff..73bebfb4d7 100644
--- a/site/docs/utilities/vertically-center.md
+++ b/site/docs/utilities/vertically-center.md
@@ -24,4 +24,4 @@ To import just this utility into your project, copy the snippet below and includ
@import 'utilities_vertically-center';
```
-For more information see [Customising Vanilla](/customising-vanilla/) in your projects, which includes overrides and importing instructions.
+For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
From b358e52d6091e5be48edfa29e80569b9144372c1 Mon Sep 17 00:00:00 2001
From: Bartek Szopka
Date: Tue, 3 Mar 2020 09:23:12 +0100
Subject: [PATCH 07/23] Fix base links
---
site/_layouts/default.html | 10 +++++-----
site/docs/base/typography.md | 2 +-
site/docs/component-status.md | 10 +++++-----
site/docs/patterns/pull-quote.md | 2 +-
site/docs/settings/font-settings.md | 4 ++--
site/docs/utilities/functions.md | 2 +-
6 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/site/_layouts/default.html b/site/_layouts/default.html
index f801ca1475..d5399a14dc 100644
--- a/site/_layouts/default.html
+++ b/site/_layouts/default.html
@@ -76,11 +76,11 @@
diff --git a/site/docs/base/typography.md b/site/docs/base/typography.md
index 23ccb98dcf..60f75c5e7d 100644
--- a/site/docs/base/typography.md
+++ b/site/docs/base/typography.md
@@ -227,4 +227,4 @@ For more information [view the typography design spec](https://github.com/ubuntu
### Related
-For more typographic related information view the [code](/base/code) and [pull quote pattern](/patterns/pull-quote) component or our [font settings](/docs/settings/font-settings).
+For more typographic related information view the [code](/docs/base/code) and [pull quote pattern](/docs/patterns/pull-quote) component or our [font settings](/docs/settings/font-settings).
diff --git a/site/docs/component-status.md b/site/docs/component-status.md
index 5524282980..5a60ff395a 100644
--- a/site/docs/component-status.md
+++ b/site/docs/component-status.md
@@ -57,26 +57,26 @@ When we add, make significant updates, or deprecate a component we update their
Heading classes with numbers as words (p-heading--one, --two, ...) are deprecated and will be removed in future release v3.0. Please use class names with numbers (p-heading--1, --2, ...) instead.
diff --git a/site/docs/component-status.md b/site/docs/component-status.md
index 5a60ff395a..804f519d2e 100644
--- a/site/docs/component-status.md
+++ b/site/docs/component-status.md
@@ -23,13 +23,13 @@ When we add, make significant updates, or deprecate a component we update their
New navigation classes (p-navigation__items, p-navigation__item, p-navigation__link) were added to replace existing (p-navigation__links, p-navigation__link, and classless <a>).
Navigation classes p-navigation__links, p-navigation__link, and classless <a> are deprecated and will be removed in future release v3.0. Please use new class names (p-navigation__items, p-navigation__item, p-navigation__link) instead.
@@ -51,7 +51,7 @@ When we add, make significant updates, or deprecate a component we update their
We will be removing p-icon--canonical and p-icon--ubuntu from social icon set in future release v3.0
diff --git a/site/docs/patterns/buttons.md b/site/docs/patterns/buttons.md
index bb9b6f4b01..46c30b0e8a 100644
--- a/site/docs/patterns/buttons.md
+++ b/site/docs/patterns/buttons.md
@@ -93,7 +93,7 @@ To import just this component into your project, copy the snippet below and incl
@include vf-p-icons;
```
-If you only need a small subset of the icons consider [including them individually](/patterns/icons/#import) to reduce the size of your CSS file.
+If you only need a small subset of the icons consider [including them individually](/docs/patterns/icons/#import) to reduce the size of your CSS file.
For more information see [Customising Vanilla](/docs/customising-vanilla/) in your projects, which includes overrides and importing instructions.
diff --git a/site/docs/patterns/contextual-menu.md b/site/docs/patterns/contextual-menu.md
index bddc6559f3..ff3022b77a 100644
--- a/site/docs/patterns/contextual-menu.md
+++ b/site/docs/patterns/contextual-menu.md
@@ -89,4 +89,4 @@ For more information [view the contextual menu design spec](https://github.com/u
### Related
-For more interactive elements that hide/show content[view the tooltips component](https://docs.vanillaframework.io/patterns/tooltips).
+For more interactive elements that hide/show content[view the tooltips component](https://docs.vanillaframework.io/docs/patterns/tooltips).
diff --git a/site/docs/patterns/list-tree.md b/site/docs/patterns/list-tree.md
index 25b965e823..16a1324523 100644
--- a/site/docs/patterns/list-tree.md
+++ b/site/docs/patterns/list-tree.md
@@ -33,4 +33,4 @@ For more information view the [list tree design spec](https://github.com/ubuntud
### Related
-For alternative list style layouts [view our range of list components.](/patterns/lists)
+For alternative list style layouts [view our range of list components.](/docs/patterns/lists)
diff --git a/site/docs/patterns/lists.md b/site/docs/patterns/lists.md
index 1a3687984e..3f2a1b320b 100644
--- a/site/docs/patterns/lists.md
+++ b/site/docs/patterns/lists.md
@@ -131,4 +131,4 @@ For more information [view the lists design spec](https://github.com/ubuntudesig
### Related
-For a more interactive layered lists style [view the list tree component](/patterns/list-tree).
+For a more interactive layered lists style [view the list tree component](/docs/patterns/list-tree).
diff --git a/site/docs/patterns/search-box.md b/site/docs/patterns/search-box.md
index 10d5c29961..ca41929347 100644
--- a/site/docs/patterns/search-box.md
+++ b/site/docs/patterns/search-box.md
@@ -49,4 +49,4 @@ For more information [view the search design spec](https://github.com/ubuntudesi
### Related
-For more interactive information adding search [view the navigation component](/patterns/navigation).
+For more interactive information adding search [view the navigation component](/docs/patterns/navigation).
diff --git a/site/docs/patterns/strip.md b/site/docs/patterns/strip.md
index 824ebd83f5..c185d57fed 100644
--- a/site/docs/patterns/strip.md
+++ b/site/docs/patterns/strip.md
@@ -10,7 +10,7 @@ context:
The strip pattern provides a full width strip container in which to wrap a row. A strip can have light (`.p-strip--light`) or dark (`.p-strip--dark`) grey background.
-A `.p-strip` container should always be the parent of a `.row` (from the [Grid pattern](/patterns/grid/)) and never the other way around.
+A `.p-strip` container should always be the parent of a `.row` (from the [Grid pattern](/docs/patterns/grid/)) and never the other way around.
View example of the strip light pattern
diff --git a/site/docs/patterns/tooltips.md b/site/docs/patterns/tooltips.md
index 39e01b95d9..5ecf45fff9 100644
--- a/site/docs/patterns/tooltips.md
+++ b/site/docs/patterns/tooltips.md
@@ -40,4 +40,4 @@ For more information [view the tooltips design spec](https://github.com/ubuntude
### Related
-For an alternative way of displaying discoverable information [view our contextual menu component](/patterns/contextual-menu).
+For an alternative way of displaying discoverable information [view our contextual menu component](/docs/patterns/contextual-menu).
diff --git a/site/docs/settings/color-settings.md b/site/docs/settings/color-settings.md
index 17fba346a9..66340eaa1a 100644
--- a/site/docs/settings/color-settings.md
+++ b/site/docs/settings/color-settings.md
@@ -151,7 +151,7 @@ Starting with the [2.3.0](https://github.com/canonical-web-and-design/vanilla-fr
- `checkbox`
- `hr`
- `radio`
-- navigation
+- navigation
- search box
| Element / Component | Variable | Default value |
diff --git a/site/docs/settings/font-settings.md b/site/docs/settings/font-settings.md
index d29dd4fa96..d18e25c01b 100644
--- a/site/docs/settings/font-settings.md
+++ b/site/docs/settings/font-settings.md
@@ -32,4 +32,4 @@ All Ubuntu sites and applications should use the Ubuntu font, as it has been spe
- [Base typography](/docs/base/typography)
- [Code](/docs/base/code)
-- [Pull quote pattern](/patterns/pull-quote)
+- [Pull quote pattern](/docs/patterns/pull-quote)
diff --git a/site/docs/utilities/functions.md b/site/docs/utilities/functions.md
index 9ebecdffeb..8b662def88 100644
--- a/site/docs/utilities/functions.md
+++ b/site/docs/utilities/functions.md
@@ -110,6 +110,6 @@ This function adds a `3px` thick, coloured bar to one side of a component (for e
### Related
-- [Icons](/patterns/icons)
-- [Strip](/patterns/strip)
+- [Icons](/docs/patterns/icons)
+- [Strip](/docs/patterns/strip)
- [Typography](/docs/base/typography)
From e059a642b06755a6f798647c0bbee962fc8eb50c Mon Sep 17 00:00:00 2001
From: Francisco Jimenez Cabrera
Date: Tue, 3 Mar 2020 10:44:51 +0000
Subject: [PATCH 09/23] Add homepage
---
site/_layouts/site.html | 126 ++++++++++++++++++++++
site/index.html | 225 ++++++++++++++++++++++++++++++++++++++++
2 files changed, 351 insertions(+)
create mode 100644 site/_layouts/site.html
create mode 100644 site/index.html
diff --git a/site/_layouts/site.html b/site/_layouts/site.html
new file mode 100644
index 0000000000..8dcd8e4b09
--- /dev/null
+++ b/site/_layouts/site.html
@@ -0,0 +1,126 @@
+
+
+
+
+
+ Vanilla Framework
+
+
+
+
+
+
+
+
+
+
+ {% if self.description() %}
+
+ {% endif %}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {% if self.copydoc() %}
+
+ {% endif %}
+
+
+
+
+
+
+
+
+
Vanilla contains a responsive CSS grid, basic style for HTML elements and a selection of key useful patterns and utility classes that you can extend.
+
+
+
+
+
+
+
Composable
+
+
Designed to be composable — you can include the whole framework to avail of all styles or you can use only what you need for your project.
+
+
+
+
+
+
+
Open source
+
+
Anyone can contribute to Vanilla, improve it and extend it. All the code is available on GitHub and is licensed under LGPLv3 by Canonical.
+
+
+
+
+
+
+
+
+
Quick start
+
+
+
+
+
The recommended method of including Vanilla Framework in your project is via npm. You can then simply include the framework in your SCSS files and compile.
npm install --save-dev vanilla-framework
+export SASS_PATH=`pwd`/node_modules:${SASS_PATH}
+
+// Add to your main build scss file the following line
+@import'vanilla-framework/scss/build'
While traditionally accessibility focuses on making the web more accessible for users with permanent disabilities, a focus on accessibility can deliver an improved user experience for everyone, including those with a temporary or circumstantial disability.
+
Accessibility should permeate the entire design and development process, rather than being something that you only think about after everything else has been defined and implemented. You should focus on accessibility when you are:
+
+
Writing your content (whether that’s words, images, videos or any other media format)
+
Designing and building your components
+
+
While the accessibility of some of the existing Vanilla design patterns is still being improved, all new and updated patterns should meet WCAG 2.0level AA.
+
+
+
+
+
+
+
Accessibility testing
+
Ideally, prototypes should be tested with real users with real accessibility issues, but that is not always possible.
+
If you are not able to test design patterns with real users, have a look at Anne Gibson’s "Accessibility Alphabet" to consider a few real-world scenarios that might hamper a user’s accessibility. Can you improve these users’ access to content and features?
+
Use the following checklist to make sure your design patterns are designed and built to be accessible*:
+
+
+
+
+
+
Make sure there is enough contrast between text and its background color
+
Don't indicate important information using colour alone
+
Design focus states to help users navigate and understand where they are
+
Help users understand inputs, and help them avoid and correct mistakes
+
Write good alt text for your images
+
If an experience cannot be made accessible, create another route for users to get that information
+
Be as consistent and clear as possible in layout and copy
+
Use the correct HTML element for your content
+
Use the correct lang attribute on the html element
+
Support keyboard navigation
+
Understand and use HTML landmarks
+
Use ARIA attributes when applicable
+
Give users a way to skip top level navigation to access main content
+
Make links descriptive
+
Avoid images and iconography in pseudo-elements
+
Make SVGs accessible to assistive technology
+
Hide decorative elements from screen readers
+
Links should be visually identifiable and have clear :focus and :active states
+
HTML document should have a language attribute
+
Users should be able to navigate content using a screen reader
+
The general architecture and hierarchy of the content should make sense
+
Charts and images should all have alt-text so that users with screen readers or users on a slow connection will still be able to understand the images
The amount of different documents that revolve around the WCAG 2.0 guidelines can be disorienting. These are the official W3C documents, in order of relevance, that we think you should refer to when learning about and implementing accessibility:
+
+
+
+
+
WCAG 2.0: the W3C standard, includes principles, guidelines and success criteria
+
Understanding WCAG 2.0: detailed reference, includes intent, benefits to people with disabilities, examples, resources and techniques
+
How to Meet WCAG 2.0: a customisable quick reference, includes guidelines, success criteria and techniques
+
Techniques for WCAG 2.0: instructions for developers, includes browser and assistive technology support notes, examples, code, resources and test procedures
+
+
+
+
+
+
+
Useful tools
+
The web is abundant in tools that help to create and test for accessible sites. These are a few of the ones we consider the best and most useful ones:
Vanilla framework follows the principles of progressive enhancement and web standards. Users should be able to access core content and functionality from any browser or operating system, with varying degrees of access to visual and other enhancements — design components do not have to look exactly the same on every browser.
+
+
+
+
+
+
+
Bugs and prioritisation
+
+
If the bug prevents access to core content (for example, by hiding it or covering it), it should be prioritised
+
If the bug relates to visual differences that do not affect access to content on modern browsers, it should be queued up
+
Priority level should be determined case by case
+
If the bug relates to visual differences that do not affect access to content on old browsers, it should be deprioritised
+
+
+
+
+
+
Supported browsers
+
The following are the browsers that we actively test all components on. That does not mean other browsers are not supported or that bugs reported are not acted on.
When submitting a new issue, please check that it hasn't already been raised by someone else. We've provided a template for new issues which will help you structure your issue to ensure it can be picked up and actioned easily.
+
Please provide as much information possible detailing what you're currently experiencing and what you'd expect to experience.
+
To work on an issue, please fork this repo and create a new branch on your local fork. When you're happy and would like to propose that changeset to be merged back upstream, open a pull request to merge from your local origin/master to upstream/master.
+
When committing changes, make sure to group related changes so that the project is always in a working state. Use succinct yet descriptive commit messages to allow for easy reading of the commit log.
+
+
+
+
+
Guidelines
+
We follow two guideline documents that align with the practices that the Canonical Web Team follows across all projects.
+
We use GitHub issues to track all our bugs and feature requests.
+
+
+
Chat with us
+
Find out about new releases, latest features and get help on Twitter.
+
+
+
+
+
+
+
+
+
+
+
+
Running tests locally
+
+
+
The simplest way to run Vanilla framework is to first install Docker, and then use the ./run script to build the site. Before proposing a pull request, ensure that the tests pass on your local fork. To kick off the tests for your project, in the terminal ./run test.
diff --git a/site/docs/patterns/contextual-menu.md b/site/docs/patterns/contextual-menu.md
index ff3022b77a..94a14030f7 100644
--- a/site/docs/patterns/contextual-menu.md
+++ b/site/docs/patterns/contextual-menu.md
@@ -89,4 +89,4 @@ For more information [view the contextual menu design spec](https://github.com/u
### Related
-For more interactive elements that hide/show content[view the tooltips component](https://docs.vanillaframework.io/docs/patterns/tooltips).
+For more interactive elements that hide/show content[view the tooltips component](/docs/patterns/tooltips).
diff --git a/site/docs/patterns/pull-quote.md b/site/docs/patterns/pull-quote.md
index ee1f7fd91c..197bd442cd 100644
--- a/site/docs/patterns/pull-quote.md
+++ b/site/docs/patterns/pull-quote.md
@@ -56,4 +56,4 @@ For more information [view the quotes design spec](https://github.com/ubuntudesi
### Related
-For more typographic related information view the [blockquotes and citations](https://docs.vanillaframework.io/docs/base/typography#blockquotes-and-citations) in base typography.
+For more typographic related information view the [blockquotes and citations](/docs/base/typography#blockquotes-and-citations) in base typography.
diff --git a/site/index.html b/site/index.html
index c4f9fec372..b993c7c1e4 100644
--- a/site/index.html
+++ b/site/index.html
@@ -19,7 +19,7 @@
A simple extensible CSS framework
Backed by open-source code and written in Sass by the Canonical Web Team.