diff --git a/docs/doc-fragments/docFragments.js b/docs/doc-fragments/docFragments.js
index aa1b228..acdf7e8 100644
--- a/docs/doc-fragments/docFragments.js
+++ b/docs/doc-fragments/docFragments.js
@@ -15,6 +15,7 @@ var navigationBar = require('./navigationBar');
var footer = require('./footer');
var drawer = require('./drawer');
var textHighlighting = require('./textHighlighting');
+var toasts = require('./toasts');
module.exports = [
gettingStarted,
@@ -22,5 +23,5 @@ module.exports = [
grid, cards, cardSections,
formsAndInput, buttons, inputGrouping,
header, navigationBar, footer, drawer,
- textHighlighting
+ textHighlighting, toasts
]
diff --git a/docs/doc-fragments/toasts.js b/docs/doc-fragments/toasts.js
new file mode 100644
index 0000000..56e03d9
--- /dev/null
+++ b/docs/doc-fragments/toasts.js
@@ -0,0 +1,21 @@
+module.exports = {
+ id: 'toasts',
+ title: 'Toasts',
+ keywords: [`span`, `highlight`, `text highlighting`, `tag`, `primary`, `secondary`, `tertiary`, `inline-block`],
+ description: `
mini.css provides you with toast messages (.toast
), allowing you to display native-looking notifications on mobile devices.
`,
+ example: `This is a toast message!
`,
+ samples: [`<span class="toast">This is a toast message!</span></mark>
`],
+ notes: [
+ `Toast elements do not have any pre-defined behavior, but you can use Javascript to add functionality to them.`
+ ],
+ customization: [
+ `Text color for toast messages can be changed by changing the value of the --toast-fore-color
variable.`,
+ `Background color for toast messages can be changed by changing the value of the --toast-back-color
variable.`,
+ `Universal margin for elements can be changed globally by changing the value of the --universal-margin
variable. As a rule of thumb, consider the universal margin to be the distance you want your paragraphs to have from the sides of the screen.`,
+ `Universal padding for elements can be changed globally by changing the value of the --universal-padding
variable.`,
+ `Universal border radius for elements can be changed globally by changing the value of the --universal-border-radius
variable.`
+ ],
+ modifiers: [],
+ dos: [],
+ donts: []
+}
diff --git a/docs/v3/DEVLOG.md b/docs/v3/DEVLOG.md
index 9624131..b837dfb 100644
--- a/docs/v3/DEVLOG.md
+++ b/docs/v3/DEVLOG.md
@@ -229,3 +229,4 @@
- Documented `mark` elements.
- Fixed a broken link in `index.html`.
- Added the appropriate script for generating Codepen links dynamically. Oh, yeah!
+- Documented `.toast` messages.
diff --git a/docs/v3/docs.html b/docs/v3/docs.html
index 3f6102f..e72b711 100644
--- a/docs/v3/docs.html
+++ b/docs/v3/docs.html
@@ -26,7 +26,7 @@
Notes
- Highlighted text scales according to its parent element, so it can be used inside any kind of element (headings, forms, paragraphs etc.).
Customization
- Text color for highlighted text can be changed by changing the value of the
--mark-fore-color
variable. - Background color for highlighted text can be changed by changing the value of the
--mark-back-color
variable. - Universal padding for elements can be changed globally by changing the value of the
--universal-padding
variable. - Universal border radius for elements can be changed globally by changing the value of the
--universal-border-radius
variable.
+
+
Toasts
+
mini.css provides you with toast messages (.toast
), allowing you to display native-looking notifications on mobile devices.
+
Example
This is a toast message!
+
Sample code
<span class="toast">This is a toast message!</span></mark>
+
+
+
Notes
- Toast elements do not have any pre-defined behavior, but you can use Javascript to add functionality to them.
+
Customization
- Text color for toast messages can be changed by changing the value of the
--toast-fore-color
variable. - Background color for toast messages can be changed by changing the value of the
--toast-back-color
variable. - Universal margin for elements can be changed globally by changing the value of the
--universal-margin
variable. As a rule of thumb, consider the universal margin to be the distance you want your paragraphs to have from the sides of the screen. - Universal padding for elements can be changed globally by changing the value of the
--universal-padding
variable. - Universal border radius for elements can be changed globally by changing the value of the
--universal-border-radius
variable.