docs.less 24.7 KB
Newer Older
Mark Otto's avatar
Mark Otto committed
1001
1002
  max-width: 400px;
}
1003

1004
// Navbars
1005
1006
1007
.bs-example .navbar:last-child {
  margin-bottom: 0;
}
Mark Otto's avatar
Mark Otto committed
1008
1009
1010
1011
.bs-navbar-top-example,
.bs-navbar-bottom-example {
  z-index: 1;
  padding: 0;
1012
  overflow: hidden; // cut the drop shadows off
Mark Otto's avatar
Mark Otto committed
1013
}
Mark Otto's avatar
Mark Otto committed
1014
1015
1016
1017
.bs-navbar-top-example .navbar-header,
.bs-navbar-bottom-example .navbar-header {
  margin-left: 0;
}
Mark Otto's avatar
Mark Otto committed
1018
1019
.bs-navbar-top-example .navbar-fixed-top,
.bs-navbar-bottom-example .navbar-fixed-bottom {
1020
  position: relative;
Mark Otto's avatar
Mark Otto committed
1021
  margin-right: 0;
XhmikosR's avatar
XhmikosR committed
1022
  margin-left: 0;
Mark Otto's avatar
Mark Otto committed
1023
1024
}
.bs-navbar-top-example {
1025
  padding-bottom: 45px;
Mark Otto's avatar
Mark Otto committed
1026
1027
1028
}
.bs-navbar-top-example:after {
  top: auto;
1029
  bottom: 15px;
1030
}
1031
1032
.bs-navbar-top-example .navbar-fixed-top {
  top: -1px;
Mark Otto's avatar
Mark Otto committed
1033
1034
}
.bs-navbar-bottom-example {
1035
1036
  padding-top: 45px;
}
1037
1038
.bs-navbar-bottom-example .navbar-fixed-bottom {
  bottom: -1px;
Mark Otto's avatar
Mark Otto committed
1039
1040
1041
1042
}
.bs-navbar-bottom-example .navbar {
  margin-bottom: 0;
}
1043
@media (min-width: 768px) {
Mark Otto's avatar
Mark Otto committed
1044
1045
1046
1047
  .bs-navbar-top-example .navbar-fixed-top,
  .bs-navbar-bottom-example .navbar-fixed-bottom {
    position: absolute;
  }
1048
1049
}

1050
// Pagination
1051
1052
1053
1054
1055
.bs-example .pagination {
  margin-top: 10px;
  margin-bottom: 10px;
}

1056
// Pager
Mark Otto's avatar
Mark Otto committed
1057
1058
1059
1060
.bs-example > .pager {
  margin-top: 0;
}

1061
// Example modals
Mark Otto's avatar
Mark Otto committed
1062
.bs-example-modal {
Mark Otto's avatar
Mark Otto committed
1063
1064
  background-color: #f5f5f5;
}
Mark Otto's avatar
Mark Otto committed
1065
.bs-example-modal .modal {
Mark Otto's avatar
Mark Otto committed
1066
1067
1068
1069
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
XhmikosR's avatar
XhmikosR committed
1070
  left: auto;
Mark Otto's avatar
Mark Otto committed
1071
1072
1073
  z-index: 1;
  display: block;
}
Mark Otto's avatar
Mark Otto committed
1074
.bs-example-modal .modal-dialog {
Mark Otto's avatar
Mark Otto committed
1075
1076
  left: auto;
  margin-right: auto;
XhmikosR's avatar
XhmikosR committed
1077
  margin-left: auto;
Mark Otto's avatar
Mark Otto committed
1078
1079
}

1080
// Example dropdowns
1081
1082
1083
.bs-example > .dropdown > .dropdown-toggle {
  float: left;
}
Mark Otto's avatar
Mark Otto committed
1084
.bs-example > .dropdown > .dropdown-menu {
Mark Otto's avatar
Mark Otto committed
1085
1086
1087
  position: static;
  display: block;
  margin-bottom: 5px;
1088
  clear: left;
Mark Otto's avatar
Mark Otto committed
1089
}
Mark Otto's avatar
Mark Otto committed
1090

1091
// Example tabbable tabs
Mark Otto's avatar
Mark Otto committed
1092
.bs-example-tabs .nav-tabs {
1093
1094
1095
  margin-bottom: 15px;
}

1096
// Tooltips
1097
.bs-example-tooltips {
1098
1099
  text-align: center;
}
1100
1101
1102
1103
.bs-example-tooltips > .btn {
  margin-top: 5px;
  margin-bottom: 5px;
}
1104

1105
// Popovers
Mark Otto's avatar
Mark Otto committed
1106
.bs-example-popover {
1107
1108
1109
  padding-bottom: 24px;
  background-color: #f9f9f9;
}
Mark Otto's avatar
Mark Otto committed
1110
.bs-example-popover .popover {
1111
1112
1113
1114
1115
1116
1117
  position: relative;
  display: block;
  float: left;
  width: 260px;
  margin: 20px;
}

1118
// Scrollspy demo on fixed height div
Mark Otto's avatar
Mark Otto committed
1119
1120
1121
1122
1123
1124
1125
1126
.scrollspy-example {
  position: relative;
  height: 200px;
  margin-top: 10px;
  overflow: auto;
}


1127
1128
1129
//
// Code snippets
//
Mark Otto's avatar
Mark Otto committed
1130
1131

.highlight {
Mark Otto's avatar
Mark Otto committed
1132
1133
1134
  padding: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
Mark Otto's avatar
Mark Otto committed
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
  background-color: #f7f7f9;
}
.highlight pre {
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
  background-color: transparent;
  border: 0;
}
.highlight pre code {
  font-size: inherit;
1146
  color: @gray-dark; // Effectively the base text color
Mark Otto's avatar
Mark Otto committed
1147
1148
1149
}


1150
1151
1152
//
// Responsive tests
//
Mark Otto's avatar
Mark Otto committed
1153

1154
// Responsive (scrollable) doc tables
1155
.table-responsive .highlight pre {
1156
1157
1158
  white-space: normal;
}

1159
// Utility classes table
Mark Otto's avatar
Mark Otto committed
1160
.bs-table th small,
Mark Otto's avatar
Mark Otto committed
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
.responsive-utilities th small {
  display: block;
  font-weight: normal;
  color: #999;
}
.responsive-utilities tbody th {
  font-weight: normal;
}
.responsive-utilities td {
  text-align: center;
}
.responsive-utilities td.is-visible {
  color: #468847;
  background-color: #dff0d8 !important;
}
.responsive-utilities td.is-hidden {
  color: #ccc;
  background-color: #f9f9f9 !important;
}

1181
// Responsive tests
Mark Otto's avatar
Mark Otto committed
1182
1183
1184
.responsive-utilities-test {
  margin-top: 5px;
}
1185
1186
.responsive-utilities-test .col-xs-6 {
  margin-bottom: 10px;
Mark Otto's avatar
Mark Otto committed
1187
1188
}
.responsive-utilities-test span {
1189
  display: block;
1190
  padding: 15px 10px;
1191
1192
1193
1194
  font-size: 14px;
  font-weight: bold;
  line-height: 1.1;
  text-align: center;
1195
  border-radius: 4px;
Mark Otto's avatar
Mark Otto committed
1196
}
Mark Otto's avatar
Mark Otto committed
1197
1198
1199
1200
.visible-on .col-xs-6 .hidden-xs,
.visible-on .col-xs-6 .hidden-sm,
.visible-on .col-xs-6 .hidden-md,
.visible-on .col-xs-6 .hidden-lg,
1201
1202
1203
1204
.hidden-on .col-xs-6 .hidden-xs,
.hidden-on .col-xs-6 .hidden-sm,
.hidden-on .col-xs-6 .hidden-md,
.hidden-on .col-xs-6 .hidden-lg {
1205
1206
1207
  color: #999;
  border: 1px solid #ddd;
}
1208
1209
1210
1211
1212
1213
1214
1215
.visible-on .col-xs-6 .visible-xs-block,
.visible-on .col-xs-6 .visible-sm-block,
.visible-on .col-xs-6 .visible-md-block,
.visible-on .col-xs-6 .visible-lg-block,
.hidden-on .col-xs-6 .visible-xs-block,
.hidden-on .col-xs-6 .visible-sm-block,
.hidden-on .col-xs-6 .visible-md-block,
.hidden-on .col-xs-6 .visible-lg-block {
Mark Otto's avatar
Mark Otto committed
1216
1217
1218
1219
1220
1221
  color: #468847;
  background-color: #dff0d8;
  border: 1px solid #d6e9c6;
}


1222
1223
1224
//
// Customizer
//
Mark Otto's avatar
Mark Otto committed
1225

Mark Otto's avatar
Mark Otto committed
1226
1227
.bs-customizer .toggle {
  float: right;
1228
  margin-top: 25px;
Mark Otto's avatar
Mark Otto committed
1229
}
Mark Otto's avatar
Mark Otto committed
1230

1231
// Headings and form controls
Mark Otto's avatar
Mark Otto committed
1232
1233
1234
.bs-customizer label {
  margin-top: 10px;
  font-weight: 500;
1235
  color: #555;
Mark Otto's avatar
Mark Otto committed
1236
}
Mark Otto's avatar
Mark Otto committed
1237
.bs-customizer h2 {
XhmikosR's avatar
XhmikosR committed
1238
  padding-top: 30px;
Mark Otto's avatar
Mark Otto committed
1239
1240
  margin-top: 0;
  margin-bottom: 5px;
Mark Otto's avatar
Mark Otto committed
1241
}
1242
1243
1244
1245
.bs-customizer h3 {
  margin-bottom: 0;
}
.bs-customizer h4 {
Mark Otto's avatar
Mark Otto committed
1246
  margin-top: 15px;
1247
1248
1249
  margin-bottom: 0;
}
.bs-customizer .bs-callout h4 {
1250
  margin-top: 0; // lame, but due to specificity we have to duplicate
Heinrich Fenkart's avatar
Heinrich Fenkart committed
1251
  margin-bottom: 5px;
Mark Otto's avatar
Mark Otto committed
1252
}
Mark Otto's avatar
Mark Otto committed
1253
1254
1255
.bs-customizer input[type="text"] {
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  background-color: #fafafa;
Mark Otto's avatar
Mark Otto committed
1256
}
Mark Otto's avatar
Mark Otto committed
1257
.bs-customizer .help-block {
1258
  margin-bottom: 5px;
XhmikosR's avatar
XhmikosR committed
1259
  font-size: 12px;
Mark Otto's avatar
Mark Otto committed
1260
1261
}

1262
// For the variables, use regular weight
Mark Otto's avatar
Mark Otto committed
1263
1264
#less-section label {
  font-weight: normal;
Mark Otto's avatar
Mark Otto committed
1265
}
Mark Otto's avatar
Mark Otto committed
1266

1267
1268
1269
1270
.bs-customizer-input {
  float: left;
  width: 33.333333%;
  padding-right: 15px;
XhmikosR's avatar
XhmikosR committed
1271
  padding-left: 15px;
1272
1273
}

1274
// Downloads
Mark Otto's avatar
Mark Otto committed
1275
1276
.bs-customize-download .btn-outline {
  padding: 20px;
Mark Otto's avatar
Mark Otto committed
1277
}
Mark Otto's avatar
Mark Otto committed
1278

1279
// Error handling
Mark Otto's avatar
Mark Otto committed
1280
1281
.bs-customizer-alert {
  position: fixed;
1282
  top: 0;
Mark Otto's avatar
Mark Otto committed
1283
  right: 0;
XhmikosR's avatar
XhmikosR committed
1284
  left: 0;
Mark Otto's avatar
Mark Otto committed
1285
1286
1287
1288
1289
  z-index: 1030;
  padding: 15px 0;
  color: #fff;
  background-color: #d9534f;
  border-bottom: 1px solid #b94441;
Bas Bosman's avatar
Bas Bosman committed
1290
1291
  -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
          box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
Mark Otto's avatar
Mark Otto committed
1292
}
Mark Otto's avatar
Mark Otto committed
1293
.bs-customizer-alert .close {
1294
1295
  margin-top: -4px;
  font-size: 24px;
Mark Otto's avatar
Mark Otto committed
1296
}
Mark Otto's avatar
Mark Otto committed
1297
1298
.bs-customizer-alert p {
  margin-bottom: 0;
1299
}
1300
.bs-customizer-alert .glyphicon {
1301
1302
1303
1304
1305
1306
1307
  margin-right: 5px;
}
.bs-customizer-alert pre {
  margin: 10px 0 0;
  color: #fff;
  background-color: #a83c3a;
  border-color: #973634;
Bas Bosman's avatar
Bas Bosman committed
1308
1309
  -webkit-box-shadow: inset 0 2px 4px rgba(0,0,0,.05), 0 1px 0 rgba(255,255,255,.1);
          box-shadow: inset 0 2px 4px rgba(0,0,0,.05), 0 1px 0 rgba(255,255,255,.1);
1310
}
Mark Otto's avatar
Mark Otto committed
1311
1312


1313
1314
1315
//
// Brand guidelines
//
Mark Otto's avatar
Mark Otto committed
1316

1317
// Logo series wrapper
Mark Otto's avatar
Mark Otto committed
1318
1319
1320
1321
1322
1323
1324
.bs-brand-logos {
  display: table;
  width: 100%;
  margin-bottom: 15px;
  overflow: hidden;
  color: #563d7c;
  background-color: #f9f9f9;
Mark Otto's avatar
Mark Otto committed
1325
1326
  border-radius: 4px;
}
Mark Otto's avatar
Mark Otto committed
1327

1328
// Individual items
Mark Otto's avatar
Mark Otto committed
1329
1330
.bs-brand-item {
  padding: 60px 0;
Mark Otto's avatar
Mark Otto committed
1331
1332
  text-align: center;
}
Mark Otto's avatar
Mark Otto committed
1333
.bs-brand-item + .bs-brand-item {
Mark Otto's avatar
Mark Otto committed
1334
  border-top: 1px solid #fff;
Mark Otto's avatar
Mark Otto committed
1335
1336
1337
1338
1339
}
.bs-brand-logos .inverse {
  color: #fff;
  background-color: #563d7c;
}
Mark Otto's avatar
Mark Otto committed
1340
.bs-brand-item .svg {
Mark Otto's avatar
Mark Otto committed
1341
  width: 144px;
Mark Otto's avatar
Mark Otto committed
1342
1343
  height: 144px;
}
Mark Otto's avatar
Mark Otto committed
1344

1345
// Heading content within
Mark Otto's avatar
Mark Otto committed
1346
1347
1348
1349
1350
.bs-brand-item h1,
.bs-brand-item h3 {
  margin-top: 0;
  margin-bottom: 0;
}
1351
.bs-brand-item .bs-docs-booticon {
Mark Otto's avatar
Mark Otto committed
1352
  margin-right: auto;
XhmikosR's avatar
XhmikosR committed
1353
  margin-left: auto;
Mark Otto's avatar
Mark Otto committed
1354
1355
}

1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
// Make the icons stand out on what is/isn't okay
// .bs-brand-item .glyphicon {
//   width: 30px;
//   height: 30px;
//   margin: 10px auto -10px;
//   line-height: 30px;
//   color: #fff;
//   border-radius: 50%;
// }
// .bs-brand-item .glyphicon-ok {
//   background-color: #5cb85c;
// }
// .bs-brand-item .glyphicon-remove {
//   background-color: #d9534f;
// }
Mark Otto's avatar
Mark Otto committed
1371

Mark Otto's avatar
Mark Otto committed
1372
@media (min-width: 768px) {
Mark Otto's avatar
Mark Otto committed
1373
1374
1375
1376
1377
1378
1379
  .bs-brand-item {
    display: table-cell;
    width: 1%;
  }
  .bs-brand-item + .bs-brand-item {
    border-top: 0;
    border-left: 1px solid #fff;
Mark Otto's avatar
Mark Otto committed
1380
  }
Mark Otto's avatar
Mark Otto committed
1381
1382
1383
1384
  .bs-brand-item h1 {
    font-size: 60px;
  }
}
Mark Otto's avatar
Mark Otto committed
1385
1386


1387
1388
1389
//
// ZeroClipboard styles
//
Mark Otto's avatar
Mark Otto committed
1390

1391
1392
.zero-clipboard {
  position: relative;
Mark Otto's avatar
Mark Otto committed
1393
  display: none;
Mark Otto's avatar
Mark Otto committed
1394
  float: right;
Mark Otto's avatar
Mark Otto committed
1395
}
1396
1397
.btn-clipboard {
  position: absolute;
Mark Otto's avatar
Mark Otto committed
1398
  top: 0;
1399
1400
  right: 0;
  z-index: 10;
Mark Otto's avatar
Mark Otto committed
1401
  display: block;
Mark Otto's avatar
Mark Otto committed
1402
1403
1404
  padding: .25rem .5rem;
  font-size: 75%;
  color: #818a91;
1405
  cursor: pointer;
Mark Otto's avatar
Mark Otto committed
1406
1407
  background-color: #eceeef;
  border-radius: .2rem;
Mark Otto's avatar
Mark Otto committed
1408
}
1409
.btn-clipboard-hover {
Mark Otto's avatar
Mark Otto committed
1410
  color: #fff;
Mark Otto's avatar
Mark Otto committed
1411
  background-color: #027de7;
1412
1413
}

Mark Otto's avatar
Mark Otto committed
1414
1415
1416
@media (min-width: 768px) {
  .zero-clipboard {
    display: block;
1417
  }
Mark Otto's avatar
Mark Otto committed
1418
}
Mark Otto's avatar
Mark Otto committed
1419

1420

1421
1422
1423
//
// Miscellaneous
//
1424

1425
// Pseudo :focus state for showing how it looks in the docs
1426
#focusedInput {
1427
  border-color: @input-border-focus;
Mark Otto's avatar
Mark Otto committed
1428
  outline: 0;
1429
1430
  outline: thin dotted \9; // IE9
  box-shadow: 0 0 8px @input-box-shadow-focus;
Mark Otto's avatar
Mark Otto committed
1431
}
For faster browsing, not all history is shown. View entire blame