diff --git a/docs/contextual.html b/docs/contextual.html index 11d95d6..d0e06ee 100644 --- a/docs/contextual.html +++ b/docs/contextual.html @@ -75,7 +75,7 @@

Contextual

-

The contextual module provides you with simple tags, marks and highlights for your pages, allowing you to easily emphasize parts of your text. The contextual alerts aim to replace the commonly used modal dialog design paradigm with a more modern one. HTML5 elements and simple rules are used in order to make important messages and pieces of content stand out easily.

+

The contextual module provides you with simple tags, marks and highlights for your pages, allowing you to easily emphasize parts of your text. Contextual toasts and tooltips are also provided, aiming to help deliver important information to users. HTML5 elements and simple rules are used in order to make important messages and pieces of content stand out easily.

All examples showcased refer to the mini-default flavor, some class names and styles might differ based on the flavor you're using.


@@ -84,7 +84,7 @@

Quick overview

-

Almost every piece of content present on the web has some sort of content that needs highlighting in one way or another. The contextual module provides you with simple semantic text highlighting that utilises the <mark> HTML element. Apart from that, this module contains styles and definitions for a simple .alert container, that you can use to show alerts on your websites and web apps. Alerts replace the traditional design paradigms of modals, messages and alerts by defining a simple, usable container that is also mobile friendly. Finally, a simple accessible .tooltip implementation is included. All components in this module are fully accessible, so that's another thing not to worry about.


+

Almost every website present on the web has some sort of content that needs highlighting in one way or another. The contextual module provides you with simple semantic text highlighting that utilises the <mark> HTML element. Apart from that, this module contains styles and definitions for a simple .toast container, that you can use to display toast messages on your websites and web apps. Toasts mimic the native application notifications of certain devices, making them mobile friendly. Finally, a simple accessible .tooltip implementation is included. All components in this module are fully accessible, so that's another thing not to worry about.


Quick start

@@ -153,10 +153,11 @@
-
+ +
-

Alerts

+

Toasts

@@ -203,42 +204,6 @@
-
-
-
-
-

Animated alerts

-
-
-
-

This is an alert

Make sure you read this!

-

This is an urgent alert

Make absolutely sure you read this!

-

This is a critical alert

Make certain you read and actually understand this!

-
-
-
-

Alerts can be animated, so that they pop out a little more to make sure your users can see them. To animate an alert box, use the .animated class on an existing .alert and it shall periodically scale up a little bit to make users notice it.

-

Sample code

-
<div class="alert animated">
-  <h3>Animated alert</h3>
-</div>
-<div class="alert urgent animated">
-  <h3>Animated urgent alert</h3>
-</div>
-<div class="alert critical animated">
-  <h3>Animated critical alert</h3>
-</div>
-
-
-
-

Notes

-
    -
  • Animated alerts may not display properly on older browsers, especially legacy versions of Internet Explorer.
  • -
  • It has been reported that some Webkit-based browsers, such as Chrome, display animated alerts in a very blurry fashion. Despite our best attempts at solving these problems, they seem to be quite persistent and we do not yet know how to fix them. Thus, you might want to hold off on using animated alerts if you think this might be an issue or try to control them using Javascript code to make the animation stop after a short amount of time (i.e. removing the .animated class).
  • -
-
-
-
diff --git a/docs/customization/contextual.html b/docs/customization/contextual.html index a9136c2..717d268 100644 --- a/docs/customization/contextual.html +++ b/docs/customization/contextual.html @@ -72,7 +72,7 @@

Contextual

-

The contextual module provides you with simple tags, marks and highlights for your pages, allowing you to easily emphasize parts of your text. The contextual alerts aim to replace the commonly used modal dialog design paradigm with a more modern one. HTML5 elements and simple rules are used in order to make important messages and pieces of content stand out easily.

+

The contextual module provides you with simple tags, marks and highlights for your pages, allowing you to easily emphasize parts of your text. Contextual toasts and tooltips are also provided, aiming to help deliver important information to users. HTML5 elements and simple rules are used in order to make important messages and pieces of content stand out easily.

All examples showcased refer to the mini-default flavor, some class names and styles might differ based on the flavor you're using.


@@ -81,7 +81,7 @@

Quick overview

-

Almost every piece of content present on the web has some sort of content that needs highlighting in one way or another. The contextual module provides you with simple semantic text highlighting that utilises the <mark> HTML element. Apart from that, this module contains styles and definitions for a simple .alert container, that you can use to show alerts on your websites and web apps. Alerts replace the traditional design paradigms of modals, messages and alerts by defining a simple, usable container that is also mobile friendly. Finally, a simple accessible .tooltip implementation is included. All components in this module are fully accessible, so that's another thing not to worry about.


+

Almost every website present on the web has some sort of content that needs highlighting in one way or another. The contextual module provides you with simple semantic text highlighting that utilises the <mark> HTML element. Apart from that, this module contains styles and definitions for a simple .toast container, that you can use to display toast messages on your websites and web apps. Toasts mimic the native application notifications of certain devices, making them mobile friendly. Finally, a simple accessible .tooltip implementation is included. All components in this module are fully accessible, so that's another thing not to worry about.


Quick start

@@ -150,10 +150,11 @@
-
+ +
-

Alerts

+

Toasts

The contextual module's contains custom classes and styles for defining alerts.


@@ -365,10 +366,11 @@ -
+ +
-

Alert mixins

+

Toast mixins

The contextual module contains a couple of mixins for adding custom styles to alerts (color and style variants).


diff --git a/docs/modules.html b/docs/modules.html index cafda64..d2d5397 100644 --- a/docs/modules.html +++ b/docs/modules.html @@ -158,7 +158,7 @@

 Contextual

-

The contextual module provides you with simple tags, marks and highlights for your pages, allowing you to easily emphasize parts of your text. The contextual alerts aim to replace the commonly used modal dialog design paradigm with a more modern one. HTML5 elements and simple rules are used in order to make important messages and pieces of content stand out easily. More specifically, the contextual module contains:

    +

    The contextual module provides you with simple tags, marks and highlights for your pages, allowing you to easily emphasize parts of your text. Contextual toasts and tooltips are also provided, aiming to help deliver important information to users. HTML5 elements and simple rules are used in order to make important messages and pieces of content stand out easily. More specifically, the contextual module contains:

+
-

Alerts  View on Codepen

+

Toasts  View on Codepen

<div class="alert">
   <h3>This is an alert</h3>
   <p>Make sure you read this!</p>
@@ -985,27 +986,6 @@
 				  
  • Use either the role="alert" attribute or the role="alertdialog" attribute for accessible alerts
  • -
    -
    -
    -

    Animated alerts  View on Codepen

    -
    <div class="alert animated">
    -  <h3>Animated alert</h3>
    -</div>
    -<div class="alert urgent animated">
    -  <h3>Animated urgent alert</h3>
    -</div>
    -<div class="alert critical animated">
    -  <h3>Animated critical alert</h3>
    -</div>
    -
    -
    -

    Notes

    -
      -
    • Animated alerts are available using the .animated class
    • -
    • Compatible with modern browsers, but might cause some problems and bluriness in Webkit-based or older browsers
    • -
    -
    diff --git a/docs/v2/DEVLOG.md b/docs/v2/DEVLOG.md index b51eaf6..af9e9ea 100644 --- a/docs/v2/DEVLOG.md +++ b/docs/v2/DEVLOG.md @@ -1120,3 +1120,4 @@ - Forked old codepens that used `.nano` and `.shadow-...` classes, updated links in `quick_reference` for all of them now. - Updated both `mini-default` and `mini-dark` to use the latest classes built in the `card` module with proper colors. - Deprecated `.alert` and all that comes with it, updated flavors to reflect this. I will update all docs after commiting, just to be on the safe side. By the way, `mini-default` is now `6.12KB` without the deprecated components and with a few of the additions already built-in. Pretty happy with how it's coming along right now! +- Updated docs just barely to make sure that the new `.toast` component will easily find a suitable home in them.