1 @import "../../settings/typography";
2 @import "../../mixins/effects";
8 @buttonBorderRadius: 3px;
12 // Basic button styling to be used on desktop skins. Can be any element.
13 // Due to a lack of a CSS reset, the exact styling of the button depends on what type of element is used.
16 // <div class="mw-ui-button">button.mw-ui-button</div>
21 display: inline-block;
22 padding: 0.4em 1em 0.4em 1em;
26 // http://stackoverflow.com/a/5838575/365238
32 border-radius: @buttonBorderRadius;
34 // Ensure that buttons and inputs are nicely aligned when they have differing heights
35 vertical-align: middle;
39 text-decoration: none;
43 // Interaction styling
51 // Styling for specific button types
52 // -----------------------------------------
54 font-size: @baseFontSize * 1.3;
64 // Do not use the mw-ui-primary class use mw-ui-constructive instead. For blue buttons
65 // use mw-ui-progressive (coming soon)
68 // <button class="mw-ui-button mw-ui-primary">mw-ui-primary</button>
72 .buttonColors(@agoraBlue);
75 // Constructive buttons
77 // Use constructive buttons for actions which result in a final action in the process that results
78 // in a change of state.
79 // e.g. save changes button
82 // <button class="mw-ui-button mw-ui-constructive">mw-ui-constructive</button>
85 &.mw-ui-constructive {
86 .buttonColors(@agoraGreen);
89 // Destructive buttons
91 // Use destructive buttons for actions which result in the destruction of data.
92 // e.g. deleting a page.
93 // This should not be used for cancel buttons.
96 // <button class="mw-ui-button mw-ui-destructive">mw-ui-destructive</button>
100 .buttonColors(@agoraRed);
104 // This overrides an underline declaration on a:hover and a:focus in commonElements.css, which the
105 // class alone isn't specific enough to do
107 text-decoration: none;
112 // Group of buttons. Make sure you clear the floating after using a mw-ui-button-group.
115 // <div class="mw-ui-button-group">
116 // <div class="mw-ui-button">A</div>
117 // <div class="mw-ui-button">B</div>
118 // <div class="mw-ui-button">C</div>
119 // <div class="mw-ui-button">D</div>
120 // </div><div style="clear:both"></div>
123 .mw-ui-button-group > * {
128 border-top-left-radius: @buttonBorderRadius;
129 border-bottom-left-radius: @buttonBorderRadius;
133 border-top-right-radius: @buttonBorderRadius;
134 border-bottom-right-radius: @buttonBorderRadius;