Merge "Add raw HTML output functionality"
[mediawiki.git] / resources / mediawiki.ui / components / default / buttons.less
bloba9317566461de92b089b8f4c3d58fb437fa136de
1 @import "../../settings/typography";
2 @import "../../mixins/effects";
4 @buttonBorderRadius: 3px;
6 // Button styling
7 .mw-ui-button {
8         // Container layout
9         display: inline-block;
10         padding: 0.4em 1em 0.4em 1em;
11         margin: 0;
13         // IE6/IE7 hack
14         // http://stackoverflow.com/a/5838575/365238
15         *display: inline;
16         zoom: 1;
18         // Container styling
19         .buttonColors();
20         border-radius: @buttonBorderRadius;
22         // Ensure that buttons and inputs are nicely aligned when they have differing heights
23         vertical-align: middle;
25         // Content styling
26         text-align: center;
27         text-decoration: none;
29         font-weight: bold;
31         // Interaction styling
32         cursor: pointer;
34         &:disabled,
35         &.mw-ui-disabled {
36                 cursor: default;
37         }
39         // Button sizes and displays
40         // -----------------------------------------
41         &.mw-ui-big {
42                 font-size: @baseFontSize * 1.3;
43         }
44         &.mw-ui-block {
45                 display: block;
46                 width: 100%;
47         }
50 // This overrides an underline declaration on a:hover and a:focus in commonElements.css, which the
51 // class alone isn't specific enough to do
52 a.mw-ui-button {
53         text-decoration: none;
56 // Button groups
57 .mw-ui-button-group > * {
58         border-radius: 0;
59         float: left;
61         &:first-child{
62                 border-top-left-radius: @buttonBorderRadius;
63                 border-bottom-left-radius: @buttonBorderRadius;
64         }
66         &:last-child{
67                 border-top-right-radius: @buttonBorderRadius;
68                 border-bottom-right-radius: @buttonBorderRadius;
69         }