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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
//
// Mixins
// --------------------------------------------------
// Bootstrap overrides and PatternFly-specific mixins
/* Bootstrap overrides */
// Button variants
.button-variant(@color; @background; @background-image-start; @background-image-stop; @border) {
background-color: @background;
#gradient .vertical(@background-image-start, @background-image-stop);
border-color: @border;
color: @color;
&:hover,
&:focus,
&:active,
&.active,
.open .dropdown-toggle& {
background-color: @background;
background-image: none;
border-color: @border;
color: @color;
}
&:active,
&.active,
.open .dropdown-toggle& {
background-image: none;
}
&.disabled,
&[disabled],
fieldset[disabled] & {
&,
&:hover,
&:focus,
&:active,
&.active {
background-color: @background;
border-color: @border
}
}
}
// Horizontal dividers
.nav-divider(@color: #e5e5e5, @margin: 4px 1px) {
background-color: @color;
height: 1px;
margin: @margin;
overflow: hidden;
}
// Placeholder text
.placeholder(@color: @input-color-placeholder) {
&:-moz-placeholder { color: @color; font-style: italic; } // Firefox 4-18
&::-moz-placeholder { color: @color; font-style: italic;} // Firefox 19+
&:-ms-input-placeholder { color: @color; font-style: italic; } // Internet Explorer 10+
&::-webkit-input-placeholder { color: @color; font-style: italic; } // Safari and Chrome
}
/* PatternFly-specific */
.tab-indicator(@background: @gray-light-pf, @left: 15px, @right: 15px) {
&:before {
background: @background;
bottom: -1px;
content: '';
display: block;
height: 2px;
left: @left;
position: absolute;
right: @right;
}
}
|