blob: 0bbb440f3fa7e814dbf349af14fe44f5d422db46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
// Utilities
//
// Other things which effect the behaviour of components
// Flush left
//
// Used when you want to push an element to the left of its containing element
//
// Markup:
// <div class="mw-ui-vform-field">
// <label>Username <a href="#" class="mw-ui-flush-left">?</a></label>
// <input>
// </div>
.mw-ui-flush-left {
float: left;
margin-left: 0;
padding-left: 0;
}
// Flush right
//
// Used when you want to push an element to the right of its containing element
//
// Markup:
// <div class="mw-ui-vform-field">
// <label>Username <a href="#" class="mw-ui-flush-right">?</a></label>
// <input>
// </div>
.mw-ui-flush-right {
float: right;
padding-right: 0;
margin-right: 0;
}
// Center block
//
// Centers the element in its containing element
//
// Markup:
// <div>
// <button class="mw-ui-center-block">click me</button>
// </div>
.mw-ui-center-block {
display: block;
margin-left: auto;
margin-right: auto;
}
|