From 82d97b556403d4d7e3d025232a6d2eff9b109b22 Mon Sep 17 00:00:00 2001 From: jrobson Date: Wed, 29 Jan 2014 12:25:32 -0800 Subject: [PATCH] Documentation: Tweak documentation of MediaWiki UI buttons Document big and block Change-Id: Idebda1bca28f93d077ba77cbcbd1b1aee9e5f2ef --- .../components/default/buttons.less | 46 +++++++++++++++---- 1 file changed, 38 insertions(+), 8 deletions(-) diff --git a/resources/mediawiki.ui/components/default/buttons.less b/resources/mediawiki.ui/components/default/buttons.less index b3b77480e7..553d07772d 100644 --- a/resources/mediawiki.ui/components/default/buttons.less +++ b/resources/mediawiki.ui/components/default/buttons.less @@ -21,8 +21,6 @@ // Markup: // // -// -// // // Styleguide 2.1. .mw-ui-button { @@ -61,10 +59,34 @@ // Styling for specific button types // ----------------------------------------- + + // Big buttons + // + // Not all buttons are equal. You can emphasise certain actions over others + // using the mw-ui-big class. + // + // Markup: + // + // + // + // + // + // Styleguide 2.1.6. &.mw-ui-big { font-size: @baseFontSize * 1.3; } + // Block buttons + // + // Some buttons might need to be stacked. + // + // Markup: + // + // + // + // + // + // Styleguide 2.1.5. &.mw-ui-block { display: block; width: 100%; @@ -78,8 +100,6 @@ // Markup: // // - // - // // // Styleguide 2.1.1. &.mw-ui-progressive, @@ -100,8 +120,6 @@ // Markup: // // - // - // // // Styleguide 2.1.2. &.mw-ui-constructive { @@ -121,8 +139,6 @@ // Markup: // // - // - // // // Styleguide 2.1.3. &.mw-ui-destructive { @@ -133,6 +149,20 @@ } } + // Quiet buttons + // + // Use quiet buttons when they are less important and alongisde other progressive/destructive/progressive buttons. + // + // Markup: + // + // + // + // + // + // + // + // + // Styleguide 2.1.4. &.mw-ui-quiet { background: transparent; border: none; -- 2.20.1