docs.less 24.1 KB
Newer Older
XhmikosR's avatar
XhmikosR committed
1001
  margin-left: 0;
Mark Otto's avatar
Mark Otto committed
1002
1003
}
.bs-navbar-top-example {
1004
  padding-bottom: 45px;
Mark Otto's avatar
Mark Otto committed
1005
1006
1007
}
.bs-navbar-top-example:after {
  top: auto;
1008
  bottom: 15px;
1009
}
1010
1011
.bs-navbar-top-example .navbar-fixed-top {
  top: -1px;
Mark Otto's avatar
Mark Otto committed
1012
1013
}
.bs-navbar-bottom-example {
1014
1015
  padding-top: 45px;
}
1016
1017
.bs-navbar-bottom-example .navbar-fixed-bottom {
  bottom: -1px;
Mark Otto's avatar
Mark Otto committed
1018
1019
1020
1021
}
.bs-navbar-bottom-example .navbar {
  margin-bottom: 0;
}
1022
@media (min-width: 768px) {
Mark Otto's avatar
Mark Otto committed
1023
1024
1025
1026
  .bs-navbar-top-example .navbar-fixed-top,
  .bs-navbar-bottom-example .navbar-fixed-bottom {
    position: absolute;
  }
1027
1028
}

1029
// Pagination
1030
1031
1032
1033
1034
.bs-example .pagination {
  margin-top: 10px;
  margin-bottom: 10px;
}

1035
// Pager
Mark Otto's avatar
Mark Otto committed
1036
1037
1038
1039
.bs-example > .pager {
  margin-top: 0;
}

1040
// Example modals
Mark Otto's avatar
Mark Otto committed
1041
.bs-example-modal {
Mark Otto's avatar
Mark Otto committed
1042
1043
  background-color: #f5f5f5;
}
Mark Otto's avatar
Mark Otto committed
1044
.bs-example-modal .modal {
Mark Otto's avatar
Mark Otto committed
1045
1046
1047
1048
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
XhmikosR's avatar
XhmikosR committed
1049
  left: auto;
Mark Otto's avatar
Mark Otto committed
1050
1051
1052
  z-index: 1;
  display: block;
}
Mark Otto's avatar
Mark Otto committed
1053
.bs-example-modal .modal-dialog {
Mark Otto's avatar
Mark Otto committed
1054
1055
  left: auto;
  margin-right: auto;
XhmikosR's avatar
XhmikosR committed
1056
  margin-left: auto;
Mark Otto's avatar
Mark Otto committed
1057
1058
}

1059
// Example dropdowns
1060
1061
1062
.bs-example > .dropdown > .dropdown-toggle {
  float: left;
}
Mark Otto's avatar
Mark Otto committed
1063
.bs-example > .dropdown > .dropdown-menu {
Mark Otto's avatar
Mark Otto committed
1064
1065
1066
  position: static;
  display: block;
  margin-bottom: 5px;
1067
  clear: left;
Mark Otto's avatar
Mark Otto committed
1068
}
Mark Otto's avatar
Mark Otto committed
1069

1070
// Example tabbable tabs
Mark Otto's avatar
Mark Otto committed
1071
.bs-example-tabs .nav-tabs {
1072
1073
1074
  margin-bottom: 15px;
}

1075
// Tooltips
1076
.bs-example-tooltips {
1077
1078
  text-align: center;
}
1079
1080
1081
1082
.bs-example-tooltips > .btn {
  margin-top: 5px;
  margin-bottom: 5px;
}
1083

1084
// Popovers
Mark Otto's avatar
Mark Otto committed
1085
.bs-example-popover {
1086
1087
1088
  padding-bottom: 24px;
  background-color: #f9f9f9;
}
Mark Otto's avatar
Mark Otto committed
1089
.bs-example-popover .popover {
1090
1091
1092
1093
1094
1095
1096
  position: relative;
  display: block;
  float: left;
  width: 260px;
  margin: 20px;
}

1097
// Scrollspy demo on fixed height div
Mark Otto's avatar
Mark Otto committed
1098
1099
1100
1101
1102
1103
1104
1105
.scrollspy-example {
  position: relative;
  height: 200px;
  margin-top: 10px;
  overflow: auto;
}


1106
1107
1108
//
// Code snippets
//
Mark Otto's avatar
Mark Otto committed
1109
1110

.highlight {
Mark Otto's avatar
Mark Otto committed
1111
1112
1113
  padding: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
Mark Otto's avatar
Mark Otto committed
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
  background-color: #f7f7f9;
}
.highlight pre {
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
  background-color: transparent;
  border: 0;
}
.highlight pre code {
  font-size: inherit;
1125
  color: @gray-dark; // Effectively the base text color
Mark Otto's avatar
Mark Otto committed
1126
1127
1128
}


1129
1130
1131
//
// Responsive tests
//
Mark Otto's avatar
Mark Otto committed
1132

1133
// Responsive (scrollable) doc tables
1134
.table-responsive .highlight pre {
1135
1136
1137
  white-space: normal;
}

1138
// Utility classes table
Mark Otto's avatar
Mark Otto committed
1139
.bs-table th small,
Mark Otto's avatar
Mark Otto committed
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
.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;
}

1160
// Responsive tests
Mark Otto's avatar
Mark Otto committed
1161
1162
1163
.responsive-utilities-test {
  margin-top: 5px;
}
1164
1165
.responsive-utilities-test .col-xs-6 {
  margin-bottom: 10px;
Mark Otto's avatar
Mark Otto committed
1166
1167
}
.responsive-utilities-test span {
1168
  display: block;
1169
  padding: 15px 10px;
1170
1171
1172
1173
  font-size: 14px;
  font-weight: bold;
  line-height: 1.1;
  text-align: center;
1174
  border-radius: 4px;
Mark Otto's avatar
Mark Otto committed
1175
}
Mark Otto's avatar
Mark Otto committed
1176
1177
1178
1179
.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,
1180
1181
1182
1183
.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 {
1184
1185
1186
  color: #999;
  border: 1px solid #ddd;
}
1187
1188
1189
1190
1191
1192
1193
1194
.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
1195
1196
1197
1198
1199
1200
  color: #468847;
  background-color: #dff0d8;
  border: 1px solid #d6e9c6;
}


1201
1202
1203
//
// Customizer
//
Mark Otto's avatar
Mark Otto committed
1204

Mark Otto's avatar
Mark Otto committed
1205
1206
.bs-customizer .toggle {
  float: right;
1207
  margin-top: 25px;
Mark Otto's avatar
Mark Otto committed
1208
}
Mark Otto's avatar
Mark Otto committed
1209

1210
// Headings and form controls
Mark Otto's avatar
Mark Otto committed
1211
1212
1213
.bs-customizer label {
  margin-top: 10px;
  font-weight: 500;
1214
  color: #555;
Mark Otto's avatar
Mark Otto committed
1215
}
Mark Otto's avatar
Mark Otto committed
1216
.bs-customizer h2 {
XhmikosR's avatar
XhmikosR committed
1217
  padding-top: 30px;
Mark Otto's avatar
Mark Otto committed
1218
1219
  margin-top: 0;
  margin-bottom: 5px;
Mark Otto's avatar
Mark Otto committed
1220
}
1221
1222
1223
1224
.bs-customizer h3 {
  margin-bottom: 0;
}
.bs-customizer h4 {
Mark Otto's avatar
Mark Otto committed
1225
  margin-top: 15px;
1226
1227
1228
  margin-bottom: 0;
}
.bs-customizer .bs-callout h4 {
1229
  margin-top: 0; // lame, but due to specificity we have to duplicate
Heinrich Fenkart's avatar
Heinrich Fenkart committed
1230
  margin-bottom: 5px;
Mark Otto's avatar
Mark Otto committed
1231
}
Mark Otto's avatar
Mark Otto committed
1232
1233
1234
.bs-customizer input[type="text"] {
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  background-color: #fafafa;
Mark Otto's avatar
Mark Otto committed
1235
}
Mark Otto's avatar
Mark Otto committed
1236
.bs-customizer .help-block {
1237
  margin-bottom: 5px;
XhmikosR's avatar
XhmikosR committed
1238
  font-size: 12px;
Mark Otto's avatar
Mark Otto committed
1239
1240
}

1241
// For the variables, use regular weight
Mark Otto's avatar
Mark Otto committed
1242
1243
#less-section label {
  font-weight: normal;
Mark Otto's avatar
Mark Otto committed
1244
}
Mark Otto's avatar
Mark Otto committed
1245

1246
1247
1248
1249
.bs-customizer-input {
  float: left;
  width: 33.333333%;
  padding-right: 15px;
XhmikosR's avatar
XhmikosR committed
1250
  padding-left: 15px;
1251
1252
}

1253
// Downloads
Mark Otto's avatar
Mark Otto committed
1254
1255
.bs-customize-download .btn-outline {
  padding: 20px;
Mark Otto's avatar
Mark Otto committed
1256
}
Mark Otto's avatar
Mark Otto committed
1257

1258
// Error handling
Mark Otto's avatar
Mark Otto committed
1259
1260
.bs-customizer-alert {
  position: fixed;
1261
  top: 0;
Mark Otto's avatar
Mark Otto committed
1262
  right: 0;
XhmikosR's avatar
XhmikosR committed
1263
  left: 0;
Mark Otto's avatar
Mark Otto committed
1264
1265
1266
1267
1268
  z-index: 1030;
  padding: 15px 0;
  color: #fff;
  background-color: #d9534f;
  border-bottom: 1px solid #b94441;
Bas Bosman's avatar
Bas Bosman committed
1269
1270
  -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
1271
}
Mark Otto's avatar
Mark Otto committed
1272
.bs-customizer-alert .close {
1273
1274
  margin-top: -4px;
  font-size: 24px;
Mark Otto's avatar
Mark Otto committed
1275
}
Mark Otto's avatar
Mark Otto committed
1276
1277
.bs-customizer-alert p {
  margin-bottom: 0;
1278
}
1279
.bs-customizer-alert .glyphicon {
1280
1281
1282
1283
1284
1285
1286
  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
1287
1288
  -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);
1289
}
Mark Otto's avatar
Mark Otto committed
1290
1291


1292
1293
1294
//
// Brand guidelines
//
Mark Otto's avatar
Mark Otto committed
1295

1296
// Logo series wrapper
Mark Otto's avatar
Mark Otto committed
1297
1298
1299
1300
1301
1302
1303
.bs-brand-logos {
  display: table;
  width: 100%;
  margin-bottom: 15px;
  overflow: hidden;
  color: #563d7c;
  background-color: #f9f9f9;
Mark Otto's avatar
Mark Otto committed
1304
1305
  border-radius: 4px;
}
Mark Otto's avatar
Mark Otto committed
1306

1307
// Individual items
Mark Otto's avatar
Mark Otto committed
1308
1309
.bs-brand-item {
  padding: 60px 0;
Mark Otto's avatar
Mark Otto committed
1310
1311
  text-align: center;
}
Mark Otto's avatar
Mark Otto committed
1312
.bs-brand-item + .bs-brand-item {
Mark Otto's avatar
Mark Otto committed
1313
  border-top: 1px solid #fff;
Mark Otto's avatar
Mark Otto committed
1314
1315
1316
1317
1318
}
.bs-brand-logos .inverse {
  color: #fff;
  background-color: #563d7c;
}
Mark Otto's avatar
Mark Otto committed
1319
.bs-brand-item .svg {
Mark Otto's avatar
Mark Otto committed
1320
  width: 144px;
Mark Otto's avatar
Mark Otto committed
1321
1322
  height: 144px;
}
Mark Otto's avatar
Mark Otto committed
1323

1324
// Heading content within
Mark Otto's avatar
Mark Otto committed
1325
1326
1327
1328
1329
.bs-brand-item h1,
.bs-brand-item h3 {
  margin-top: 0;
  margin-bottom: 0;
}
1330
.bs-brand-item .bs-docs-booticon {
Mark Otto's avatar
Mark Otto committed
1331
  margin-right: auto;
XhmikosR's avatar
XhmikosR committed
1332
  margin-left: auto;
Mark Otto's avatar
Mark Otto committed
1333
1334
}

1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
// 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
1350

Mark Otto's avatar
Mark Otto committed
1351
@media (min-width: 768px) {
Mark Otto's avatar
Mark Otto committed
1352
1353
1354
1355
1356
1357
1358
  .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
1359
  }
Mark Otto's avatar
Mark Otto committed
1360
1361
1362
1363
  .bs-brand-item h1 {
    font-size: 60px;
  }
}
Mark Otto's avatar
Mark Otto committed
1364
1365


1366
1367
1368
//
// ZeroClipboard styles
//
Mark Otto's avatar
Mark Otto committed
1369

1370
1371
.zero-clipboard {
  position: relative;
Mark Otto's avatar
Mark Otto committed
1372
  display: none;
Mark Otto's avatar
Mark Otto committed
1373
  float: right;
Mark Otto's avatar
Mark Otto committed
1374
}
1375
1376
.btn-clipboard {
  position: absolute;
Mark Otto's avatar
Mark Otto committed
1377
  top: 0;
1378
1379
  right: 0;
  z-index: 10;
Mark Otto's avatar
Mark Otto committed
1380
  display: block;
Mark Otto's avatar
Mark Otto committed
1381
1382
1383
  padding: .25rem .5rem;
  font-size: 75%;
  color: #818a91;
1384
  cursor: pointer;
Mark Otto's avatar
Mark Otto committed
1385
1386
  background-color: #eceeef;
  border-radius: .2rem;
Mark Otto's avatar
Mark Otto committed
1387
}
1388
.btn-clipboard-hover {
Mark Otto's avatar
Mark Otto committed
1389
  color: #fff;
Mark Otto's avatar
Mark Otto committed
1390
  background-color: #027de7;
1391
1392
}

Mark Otto's avatar
Mark Otto committed
1393
1394
1395
@media (min-width: 768px) {
  .zero-clipboard {
    display: block;
1396
  }
Mark Otto's avatar
Mark Otto committed
1397
}
Mark Otto's avatar
Mark Otto committed
1398

1399

1400
1401
1402
//
// Miscellaneous
//
1403

1404
// Pseudo :focus state for showing how it looks in the docs
1405
#focusedInput {
1406
  border-color: @input-border-focus;
Mark Otto's avatar
Mark Otto committed
1407
  outline: 0;
1408
1409
  outline: thin dotted \9; // IE9
  box-shadow: 0 0 8px @input-box-shadow-focus;
Mark Otto's avatar
Mark Otto committed
1410
}
For faster browsing, not all history is shown. View entire blame