1
0
mirror of https://github.com/Chalarangelo/mini.css.git synced 2025-08-05 21:37:23 +02:00

Toast message documentation

This commit is contained in:
Angelos Chalaris
2017-12-11 17:34:25 +02:00
parent 95e31bd4ed
commit 68dedaea91
4 changed files with 35 additions and 3 deletions

View File

@@ -0,0 +1,21 @@
module.exports = {
id: 'toasts',
title: 'Toasts',
keywords: [`span`, `highlight`, `text highlighting`, `tag`, `primary`, `secondary`, `tertiary`, `inline-block`],
description: `<p><strong>mini.css</strong> provides you with toast messages (<code>.toast</code>), allowing you to display native-looking notifications on mobile devices.</p>`,
example: `<div class="container" style="height: 8rem; position: relative;"><span class="toast doc" style="position: absolute;">This is a toast message!</span></div>`,
samples: [`<pre><span class="code-line"><span class="highlight-a">&lt;span</span> <span class="highlight-b">class</span>=<span class="highlight-c">&quot;toast&quot;</span><span class="highlight-a">&gt;</span>This is a toast message!<span class="highlight-a">&lt;/span&gt;</span><span class="highlight-a">&lt;/mark&gt;</span></span></pre>`],
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 <code>--toast-fore-color</code> variable.`,
`Background color for toast messages can be changed by changing the value of the <code>--toast-back-color</code> variable.`,
`Universal margin for elements can be changed globally by changing the value of the <code>--universal-margin</code> 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 <code>--universal-padding</code> variable.`,
`Universal border radius for elements can be changed globally by changing the value of the <code>--universal-border-radius</code> variable.`
],
modifiers: [],
dos: [],
donts: []
}