docs.less 23.4 KB
Newer Older
1001
@media (min-width: 768px) {
Mark Otto's avatar
Mark Otto committed
1002
1003
1004
1005
  .bs-navbar-top-example .navbar-fixed-top,
  .bs-navbar-bottom-example .navbar-fixed-bottom {
    position: absolute;
  }
1006
1007
}

1008
// Pagination
1009
.bs-example .pagination {
1010
1011
  margin-top: .5rem;
  margin-bottom: .5rem;
1012
1013
}

1014
// Pager
Mark Otto's avatar
Mark Otto committed
1015
1016
1017
1018
.bs-example > .pager {
  margin-top: 0;
}

1019
// Example modals
Mark Otto's avatar
Mark Otto committed
1020
.bs-example-modal {
Mark Otto's avatar
Mark Otto committed
1021
1022
  background-color: #f5f5f5;
}
Mark Otto's avatar
Mark Otto committed
1023
.bs-example-modal .modal {
Mark Otto's avatar
Mark Otto committed
1024
1025
1026
1027
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
XhmikosR's avatar
XhmikosR committed
1028
  left: auto;
Mark Otto's avatar
Mark Otto committed
1029
1030
1031
  z-index: 1;
  display: block;
}
Mark Otto's avatar
Mark Otto committed
1032
.bs-example-modal .modal-dialog {
Mark Otto's avatar
Mark Otto committed
1033
1034
  left: auto;
  margin-right: auto;
XhmikosR's avatar
XhmikosR committed
1035
  margin-left: auto;
Mark Otto's avatar
Mark Otto committed
1036
1037
}

1038
// Example dropdowns
1039
1040
1041
.bs-example > .dropdown > .dropdown-toggle {
  float: left;
}
Mark Otto's avatar
Mark Otto committed
1042
.bs-example > .dropdown > .dropdown-menu {
Mark Otto's avatar
Mark Otto committed
1043
1044
  position: static;
  display: block;
1045
  margin-bottom: .25rem;
1046
  clear: left;
Mark Otto's avatar
Mark Otto committed
1047
}
Mark Otto's avatar
Mark Otto committed
1048

1049
// Example tabbable tabs
Mark Otto's avatar
Mark Otto committed
1050
.bs-example-tabs .nav-tabs {
1051
  margin-bottom: 1rem;
1052
1053
}

1054
// Tooltips
1055
.bs-example-tooltips {
1056
1057
  text-align: center;
}
1058
.bs-example-tooltips > .btn {
1059
1060
  margin-top: .25rem;
  margin-bottom: .25rem;
1061
}
1062

1063
// Popovers
Mark Otto's avatar
Mark Otto committed
1064
.bs-example-popover {
1065
  padding-bottom: 1.5rem;
1066
1067
  background-color: #f9f9f9;
}
Mark Otto's avatar
Mark Otto committed
1068
.bs-example-popover .popover {
1069
1070
1071
1072
  position: relative;
  display: block;
  float: left;
  width: 260px;
1073
  margin: 1.25rem;
1074
1075
}

1076
// Scrollspy demo on fixed height div
Mark Otto's avatar
Mark Otto committed
1077
1078
1079
.scrollspy-example {
  position: relative;
  height: 200px;
1080
  margin-top: .5rem;
Mark Otto's avatar
Mark Otto committed
1081
1082
1083
1084
  overflow: auto;
}


1085
1086
1087
//
// Code snippets
//
Mark Otto's avatar
Mark Otto committed
1088
1089

.highlight {
Mark Otto's avatar
Mark Otto committed
1090
1091
1092
  padding: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
Mark Otto's avatar
Mark Otto committed
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
  background-color: #f7f7f9;
}
.highlight pre {
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
  background-color: transparent;
  border: 0;
}
.highlight pre code {
  font-size: inherit;
1104
  color: @gray-dark; // Effectively the base text color
Mark Otto's avatar
Mark Otto committed
1105
1106
1107
}


1108
1109
1110
//
// Responsive tests
//
Mark Otto's avatar
Mark Otto committed
1111

1112
// Responsive (scrollable) doc tables
1113
.table-responsive .highlight pre {
1114
1115
1116
  white-space: normal;
}

1117
// Utility classes table
Mark Otto's avatar
Mark Otto committed
1118
.bs-table th small,
Mark Otto's avatar
Mark Otto committed
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
.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;
}

1139
// Responsive tests
Mark Otto's avatar
Mark Otto committed
1140
.responsive-utilities-test {
1141
  margin-top: .25rem;
Mark Otto's avatar
Mark Otto committed
1142
}
1143
.responsive-utilities-test .col-xs-6 {
1144
  margin-bottom: .5rem;
Mark Otto's avatar
Mark Otto committed
1145
1146
}
.responsive-utilities-test span {
1147
  display: block;
1148
1149
  padding: 1rem .5rem;
  font-size: 1rem;
1150
1151
1152
  font-weight: bold;
  line-height: 1.1;
  text-align: center;
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
  border-radius: .25rem;
}
.visible-on,
.hidden-on {
  .col-xs-6 {
    .hidden-xs,
    .hidden-sm,
    .hidden-md,
    .hidden-lg {
      color: #999;
      border: 1px solid #ddd;
    }
  }
}
.visible-on,
.hidden-on {
  .col-xs-6 {
    .visible-xs-block,
    .visible-sm-block,
    .visible-md-block,
    .visible-lg-block {
      color: #468847;
      background-color: #dff0d8;
      border: 1px solid #d6e9c6;
    }
  }
Mark Otto's avatar
Mark Otto committed
1179
1180
1181
}


1182
1183
1184
//
// Customizer
//
Mark Otto's avatar
Mark Otto committed
1185

Mark Otto's avatar
Mark Otto committed
1186
1187
.bs-customizer .toggle {
  float: right;
Mark Otto's avatar
Mark Otto committed
1188
  margin-top: 1.5rem;
Mark Otto's avatar
Mark Otto committed
1189
}
Mark Otto's avatar
Mark Otto committed
1190

1191
// Headings and form controls
Mark Otto's avatar
Mark Otto committed
1192
.bs-customizer label {
Mark Otto's avatar
Mark Otto committed
1193
  margin-top: .5rem;
Mark Otto's avatar
Mark Otto committed
1194
  font-weight: 500;
1195
  color: #555;
Mark Otto's avatar
Mark Otto committed
1196
}
Mark Otto's avatar
Mark Otto committed
1197
.bs-customizer h2 {
Mark Otto's avatar
Mark Otto committed
1198
  padding-top: 2rem;
Mark Otto's avatar
Mark Otto committed
1199
  margin-top: 0;
Mark Otto's avatar
Mark Otto committed
1200
  margin-bottom: .25rem;
Mark Otto's avatar
Mark Otto committed
1201
}
1202
1203
1204
1205
.bs-customizer h3 {
  margin-bottom: 0;
}
.bs-customizer h4 {
Mark Otto's avatar
Mark Otto committed
1206
  margin-top: 1rem;
1207
1208
1209
  margin-bottom: 0;
}
.bs-customizer .bs-callout h4 {
1210
  margin-top: 0; // lame, but due to specificity we have to duplicate
Mark Otto's avatar
Mark Otto committed
1211
  margin-bottom: .25rem;
Mark Otto's avatar
Mark Otto committed
1212
}
Mark Otto's avatar
Mark Otto committed
1213
1214
1215
.bs-customizer input[type="text"] {
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  background-color: #fafafa;
Mark Otto's avatar
Mark Otto committed
1216
}
Mark Otto's avatar
Mark Otto committed
1217
.bs-customizer .help-block {
Mark Otto's avatar
Mark Otto committed
1218
1219
  margin-bottom: .25rem;
  font-size: 75%;
Mark Otto's avatar
Mark Otto committed
1220
1221
}

1222
// For the variables, use regular weight
Mark Otto's avatar
Mark Otto committed
1223
1224
#less-section label {
  font-weight: normal;
Mark Otto's avatar
Mark Otto committed
1225
}
Mark Otto's avatar
Mark Otto committed
1226

1227
1228
1229
.bs-customizer-input {
  float: left;
  width: 33.333333%;
Mark Otto's avatar
Mark Otto committed
1230
1231
  padding-right: 1rem;
  padding-left: 1rem;
1232
1233
}

1234
// Downloads
Mark Otto's avatar
Mark Otto committed
1235
1236
.bs-customize-download .btn-outline {
  padding: 20px;
Mark Otto's avatar
Mark Otto committed
1237
}
Mark Otto's avatar
Mark Otto committed
1238

1239
// Error handling
Mark Otto's avatar
Mark Otto committed
1240
1241
.bs-customizer-alert {
  position: fixed;
1242
  top: 0;
Mark Otto's avatar
Mark Otto committed
1243
  right: 0;
XhmikosR's avatar
XhmikosR committed
1244
  left: 0;
Mark Otto's avatar
Mark Otto committed
1245
  z-index: 1030;
Mark Otto's avatar
Mark Otto committed
1246
  padding: 1rem 0;
Mark Otto's avatar
Mark Otto committed
1247
1248
1249
  color: #fff;
  background-color: #d9534f;
  border-bottom: 1px solid #b94441;
Bas Bosman's avatar
Bas Bosman committed
1250
1251
  -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
1252
}
Mark Otto's avatar
Mark Otto committed
1253
.bs-customizer-alert .close {
Mark Otto's avatar
Mark Otto committed
1254
1255
  margin-top: -.25rem;
  font-size: 1.5rem;
Mark Otto's avatar
Mark Otto committed
1256
}
Mark Otto's avatar
Mark Otto committed
1257
1258
.bs-customizer-alert p {
  margin-bottom: 0;
1259
}
1260
.bs-customizer-alert .glyphicon {
Mark Otto's avatar
Mark Otto committed
1261
  margin-right: .25rem;
1262
1263
}
.bs-customizer-alert pre {
Mark Otto's avatar
Mark Otto committed
1264
  margin: .5rem 0 0;
1265
1266
1267
  color: #fff;
  background-color: #a83c3a;
  border-color: #973634;
Bas Bosman's avatar
Bas Bosman committed
1268
1269
  -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);
1270
}
Mark Otto's avatar
Mark Otto committed
1271
1272


1273
1274
1275
//
// Brand guidelines
//
Mark Otto's avatar
Mark Otto committed
1276

1277
// Logo series wrapper
Mark Otto's avatar
Mark Otto committed
1278
1279
1280
.bs-brand-logos {
  display: table;
  width: 100%;
Mark Otto's avatar
Mark Otto committed
1281
  margin-bottom: 1rem;
Mark Otto's avatar
Mark Otto committed
1282
1283
1284
  overflow: hidden;
  color: #563d7c;
  background-color: #f9f9f9;
Mark Otto's avatar
Mark Otto committed
1285
  border-radius: .25rem;
Mark Otto's avatar
Mark Otto committed
1286
}
Mark Otto's avatar
Mark Otto committed
1287

1288
// Individual items
Mark Otto's avatar
Mark Otto committed
1289
.bs-brand-item {
Mark Otto's avatar
Mark Otto committed
1290
  padding: 4rem 0;
Mark Otto's avatar
Mark Otto committed
1291
1292
  text-align: center;
}
Mark Otto's avatar
Mark Otto committed
1293
.bs-brand-item + .bs-brand-item {
Mark Otto's avatar
Mark Otto committed
1294
  border-top: 1px solid #fff;
Mark Otto's avatar
Mark Otto committed
1295
1296
1297
1298
1299
}
.bs-brand-logos .inverse {
  color: #fff;
  background-color: #563d7c;
}
Mark Otto's avatar
Mark Otto committed
1300
.bs-brand-item .svg {
Mark Otto's avatar
Mark Otto committed
1301
1302
  width: 9rem;
  height: 9rem;
Mark Otto's avatar
Mark Otto committed
1303
}
Mark Otto's avatar
Mark Otto committed
1304

1305
// Heading content within
Mark Otto's avatar
Mark Otto committed
1306
1307
1308
1309
1310
.bs-brand-item h1,
.bs-brand-item h3 {
  margin-top: 0;
  margin-bottom: 0;
}
1311
.bs-brand-item .bs-docs-booticon {
Mark Otto's avatar
Mark Otto committed
1312
  margin-right: auto;
XhmikosR's avatar
XhmikosR committed
1313
  margin-left: auto;
Mark Otto's avatar
Mark Otto committed
1314
1315
}

1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
// 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
1331

Mark Otto's avatar
Mark Otto committed
1332
@media (min-width: 768px) {
Mark Otto's avatar
Mark Otto committed
1333
1334
1335
1336
1337
1338
1339
  .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
1340
  }
Mark Otto's avatar
Mark Otto committed
1341
  .bs-brand-item h1 {
Mark Otto's avatar
Mark Otto committed
1342
    font-size: 4rem;
Mark Otto's avatar
Mark Otto committed
1343
1344
  }
}
Mark Otto's avatar
Mark Otto committed
1345
1346


1347
1348
1349
//
// ZeroClipboard styles
//
Mark Otto's avatar
Mark Otto committed
1350

1351
1352
.zero-clipboard {
  position: relative;
Mark Otto's avatar
Mark Otto committed
1353
  display: none;
Mark Otto's avatar
Mark Otto committed
1354
  float: right;
Mark Otto's avatar
Mark Otto committed
1355
}
1356
1357
.btn-clipboard {
  position: absolute;
Mark Otto's avatar
Mark Otto committed
1358
  top: 0;
1359
1360
  right: 0;
  z-index: 10;
Mark Otto's avatar
Mark Otto committed
1361
  display: block;
Mark Otto's avatar
Mark Otto committed
1362
1363
1364
  padding: .25rem .5rem;
  font-size: 75%;
  color: #818a91;
1365
  cursor: pointer;
Mark Otto's avatar
Mark Otto committed
1366
1367
  background-color: #eceeef;
  border-radius: .2rem;
Mark Otto's avatar
Mark Otto committed
1368
}
1369
.btn-clipboard-hover {
Mark Otto's avatar
Mark Otto committed
1370
  color: #fff;
Mark Otto's avatar
Mark Otto committed
1371
  background-color: #027de7;
1372
1373
}

Mark Otto's avatar
Mark Otto committed
1374
1375
1376
@media (min-width: 768px) {
  .zero-clipboard {
    display: block;
1377
  }
Mark Otto's avatar
Mark Otto committed
1378
}
Mark Otto's avatar
Mark Otto committed
1379

1380

1381
1382
1383
//
// Miscellaneous
//
1384

1385
// Pseudo :focus state for showing how it looks in the docs
1386
#focusedInput {
1387
  border-color: @input-border-focus;
Mark Otto's avatar
Mark Otto committed
1388
  outline: 0;
1389
  outline: thin dotted \9; // IE9
Mark Otto's avatar
Mark Otto committed
1390
  box-shadow: 0 0 .5rem @input-box-shadow-focus;
Mark Otto's avatar
Mark Otto committed
1391
}
For faster browsing, not all history is shown. View entire blame