forked from theforeman/foreman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap_and_overrides.scss
224 lines (189 loc) · 3.85 KB
/
bootstrap_and_overrides.scss
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
@import "mixin";
@import "colors";
$navbar-default-bg: $primary_color;
@import "bootstrap";
.dropdown-menu {
border-radius: 0 0 6px 6px;
}
// Necessary because bootstrap3 nav dropdown does not have top arrow
.nav li .dropdown-menu:after {
content: '';
display: inline-block;
border-left: 6px solid transparent;
border-right: 6px solid transparent;
border-bottom: 6px solid #ffffff;
position: absolute;
top: -6px;
left: 10px;
}
.navbar .navbar-right > li > .dropdown-menu:after,
.navbar .nav > li > .dropdown-menu.pull-right:after {
left: auto;
right: 13px;
}
.nav li.dropdown-submenu .dropdown-menu:after{
display: none;
}
// Necessary because bootstrap3 does not support dropdown sub menus.
.dropdown-submenu {
position:relative;
}
.dropdown-submenu > .dropdown-menu {
top:0;
left:100%;
margin-top:-6px;
margin-left:-1px;
max-height: 420px;
overflow-y: auto;
}
.dropdown-submenu > a:after {
display:block;content:" ";
float:right;
width:0;
height:0;
border-color:transparent;
border-style:solid;
border-width:5px 0 5px 5px;
border-left-color:#cccccc;
margin-top:5px;
margin-right:-10px;
}
.dropdown-submenu:hover > a:after {
border-left-color:#ffffff;
}
.dropdown-submenu.pull-left {
float:none;
}
.dropdown-submenu.pull-left > .dropdown-menu {
left:-100%;
margin-left:10px;
}
// Bootstrap 3 no longer has icon-color classes
.icon-white {
color: white;
}
.badge.badge-inverse {
background-color: black;
}
span.input-group-btn .hidden-xs {display:inline !important;}
@media (max-width: 768px) {
span.input-group-btn .hidden-xs {display:none !important;}
}
span.btn a {
text-decoration: none;
color: #333333;
}
a {
cursor: pointer;
}
// help-inline is not defined in Bootstrap3
.help-inline{
margin: 0 5px;
line-height: 2.428571;
display: inline;
}
.well {
padding: 19px 19px 19px 36px;
background-color: white;
}
.label-default {
background-color: #cccccc;
}
.form-actions {
padding: 19px 20px 20px;
margin-top: 20px;
margin-bottom: 20px;
}
.navbar.navbar-form{
background-color: #f8f8f8;
padding: 10px;
border: 1px solid #e7e7e7;
border-radius: 4px;
margin-right: 18px;
}
.nav.nav-tabs{
margin-bottom: 20px;
}
.tab-content{
min-height: 420px;
}
.badge.close{
font-size: 14px;
opacity: 1;
}
.table > thead > tr > th,
.table > thead > tr > td,
.table > tbody > tr > th,
.table > tbody > tr > td,
.table > tfoot > tr > th,
.table > tfoot > tr > td{
vertical-align: middle;
}
.btn-toolbar .btn-group{
float: none;
}
.popover{max-width: none}
@-moz-document url-prefix() {
/* Workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=688556 */
*, *:before, *:after {
background-clip: padding-box;
}
}
.smart-var-left{
max-height:500px;
direction: rtl;
float:left;
text-align: left;
overflow-y: auto;
padding-right:0;
}
.stacked-content.tab-content {
padding: 19px;
min-height: 460px;
border: 1px solid $primary_gradient_start;
@include box-shadow(-2px 0 5px 0px rgba(0, 0, 0, 0.2));
}
.nav.nav-pills.nav-stacked .btn.btn-success:hover{
background-color: #47a447;
}
.nav.nav-pills.nav-stacked {
padding-right: 0;
& > li > a {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
.clip {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
direction: ltr;
display: inline-block;
width: 90%;
}
}
}
.tooltip {
word-wrap: break-word;
}
.has-error {
color: #a94442
}
body.modal-open {
overflow: visible;
}
// The following block can be safely replaced by form-control-feedback on Bootstrap 3.1+
// form-control-feedback backport from Bootstrap 3.1+
.form-control {
padding-right: 30px;
}
.form-control + .glyphicon {
position: absolute;
right: 0;
padding: 9px 37px;
}
.input-addon {
color: black;
}
// eof form-control-feedback
.puppetca-filters {
min-width: 150px;
}