-
Notifications
You must be signed in to change notification settings - Fork 2k
/
toolbar.less
126 lines (101 loc) · 1.91 KB
/
toolbar.less
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
.toolbar {
.clearfix;
margin-top: -10px;
margin-bottom: 10px;
padding: 5px 0;
}
.toolbar .breadcrumb {
.clearfix;
.box-shadow(none);
position: relative;
float: left;
margin: 0;
padding: 0;
border: none;
background: none;
font-size: 20px;
}
.ie .toolbar .breadcrumb,
.ie9 .toolbar .breadcrumb {
filter: none; // Remove filter set by the gradient mixin.
}
.toolbar li [class^=icon]:before {
width: auto; // Fix Bootstrap icon widths
}
.ie .toolbar .breadcrumb li {
float: left; // Fixes inline block display issues.
}
.ie7 .toolbar .breadcrumb li {
padding-right: 10px;
margin-right: 5px;
background: transparent url("@{imagePath}/breadcrumb-slash-ie7.png") 100% 50% no-repeat;
&.active {
background-image: none;
}
}
.toolbar .breadcrumb li:after {
content: " / ";
}
.ie .toolbar .breadcrumb li:after {
margin: 0 0.2em;
}
.toolbar .breadcrumb li.active:after {
content: "";
}
// Needs to be a separate declaration as IE chokes on the last-of-type.
.toolbar .breadcrumb li:last-of-type:after {
content: "";
}
.toolbar .home a {
text-decoration: none;
}
.toolbar .home span {
display: none;
}
.toolbar .breadcrumb a {
color: @breadcrumbTextColor;
line-height: 28px;
}
.toolbar .breadcrumb .active a {
font-weight: bold;
}
.toolbar .actions {
.unstyled;
}
.toolbar .actions li {
display: inline-block;
margin-right: 5px;
}
.toolbar .actions li {
.ie7-inline-block;
}
.toolbar .actions li:last-of-type {
margin-right: 0;
}
.toolbar .btn {
padding: 0 10px 0 8px;
border-color: #b7b7b7;
line-height: 27px;
}
// Now redefine the other button backgrounds that we just overrode.
.toolbar .btn-success {
.btn-success;
}
.toolbar .btn-primary {
.btn-primary;
}
.toolbar .btn-warning {
.btn-warning;
}
.toolbar .btn-danger {
.btn-danger;
}
.toolbar .btn-success {
.btn-success;
}
.toolbar .btn-info {
.btn-info;
}
.toolbar .btn-inverse {
.btn-inverse;
}