diff --git a/_includes/nav-css.html b/_includes/nav-css.html index 57aafd470..ae5962c7c 100644 --- a/_includes/nav-css.html +++ b/_includes/nav-css.html @@ -67,6 +67,7 @@
diff --git a/css.html b/css.html index 99283f2f9..cc482f95e 100644 --- a/css.html +++ b/css.html @@ -2112,6 +2112,32 @@ For example,<section> should be wrapped as inline.
{% endhighlight %}
+ Buttons will appear pressed (with a darker background, darker border, and inset shadow) when active. For <button> elements, this is done via :active. For <a> elements, it's done with .active. However, you may use .active <button>s should you need to replicate the active state progammatically.
No need to add :active as it's a pseudo state, but if you need it, go ahead and add .active.
+ + +
+{% highlight html %} + + +{% endhighlight %} + +Add the .active class to <a> buttons.
+ Primary link + Link +
+{% highlight html %} +Primary link +Link +{% endhighlight %} + +Make buttons look unclickable by fading them back 50%.