docs.scss 23.2 KB
Newer Older
Mark Otto's avatar
Mark Otto committed
1001
1002
1003
1004
1005
.bs-example-type h2,
.bs-example-type h3,
.bs-example-type h4,
.bs-example-type h5,
.bs-example-type h6 {
1006
1007
1008
  margin: 0;
}

1009
// Contextual background colors
1010
.bs-example-bg-classes p {
1011
  padding: 1rem;
1012
1013
}

1014
// Images
1015
1016
1017
.bs-example > .img-circle,
.bs-example > .img-rounded,
.bs-example > .img-thumbnail {
1018
  margin: .25rem;
1019
1020
}

1021
1022
1023
1024
// Tables
// .bs-example > .table-responsive > .table {
//   background-color: #fff;
// }
1025

1026
// Buttons
1027
.bs-example > .btn-group {
1028
1029
  margin-top: .25rem;
  margin-bottom: .25rem;
1030
}
1031
.bs-example > .btn-toolbar + .btn-toolbar {
1032
  margin-top: .5rem;
1033
}
1034

1035
// Forms
1036
.bs-example-control-sizing select,
1037
.bs-example-control-sizing input[type="text"] + input[type="text"] {
1038
  margin-top: .5rem;
1039
}
1040
.bs-example-form .input-group {
1041
  margin-bottom: .5rem;
1042
}
Mark Otto's avatar
Mark Otto committed
1043
1044
1045
.bs-example > textarea.form-control {
  resize: vertical;
}
1046

1047
// List groups
Mark Otto's avatar
Mark Otto committed
1048
.bs-example > .list-group {
Mark Otto's avatar
Mark Otto committed
1049
1050
  max-width: 400px;
}
1051

1052
// Navbars
1053
1054
1055
.bs-example .navbar:last-child {
  margin-bottom: 0;
}
Mark Otto's avatar
Mark Otto committed
1056
1057
1058
1059
.bs-navbar-top-example,
.bs-navbar-bottom-example {
  z-index: 1;
  padding: 0;
1060
  overflow: hidden; // cut the drop shadows off
Mark Otto's avatar
Mark Otto committed
1061
}
Mark Otto's avatar
Mark Otto committed
1062
1063
1064
1065
.bs-navbar-top-example .navbar-header,
.bs-navbar-bottom-example .navbar-header {
  margin-left: 0;
}
Mark Otto's avatar
Mark Otto committed
1066
1067
.bs-navbar-top-example .navbar-fixed-top,
.bs-navbar-bottom-example .navbar-fixed-bottom {
1068
  position: relative;
Mark Otto's avatar
Mark Otto committed
1069
  margin-right: 0;
XhmikosR's avatar
XhmikosR committed
1070
  margin-left: 0;
Mark Otto's avatar
Mark Otto committed
1071
1072
}
.bs-navbar-top-example {
1073
  padding-bottom: 45px;
Mark Otto's avatar
Mark Otto committed
1074
}
1075
1076
.bs-navbar-top-example .navbar-fixed-top {
  top: -1px;
Mark Otto's avatar
Mark Otto committed
1077
1078
}
.bs-navbar-bottom-example {
1079
1080
  padding-top: 45px;
}
1081
1082
.bs-navbar-bottom-example .navbar-fixed-bottom {
  bottom: -1px;
Mark Otto's avatar
Mark Otto committed
1083
1084
1085
1086
}
.bs-navbar-bottom-example .navbar {
  margin-bottom: 0;
}
1087
@media (min-width: 768px) {
Mark Otto's avatar
Mark Otto committed
1088
1089
1090
1091
  .bs-navbar-top-example .navbar-fixed-top,
  .bs-navbar-bottom-example .navbar-fixed-bottom {
    position: absolute;
  }
1092
1093
}

1094
// Pagination
1095
.bs-example .pagination {
1096
1097
  margin-top: .5rem;
  margin-bottom: .5rem;
1098
1099
}

1100
// Pager
Mark Otto's avatar
Mark Otto committed
1101
1102
1103
1104
.bs-example > .pager {
  margin-top: 0;
}

1105
// Example modals
Mark Otto's avatar
Mark Otto committed
1106
.bs-example-modal {
Mark Otto's avatar
Mark Otto committed
1107
1108
  background-color: #f5f5f5;
}
Mark Otto's avatar
Mark Otto committed
1109
.bs-example-modal .modal {
Mark Otto's avatar
Mark Otto committed
1110
1111
1112
1113
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
XhmikosR's avatar
XhmikosR committed
1114
  left: auto;
Mark Otto's avatar
Mark Otto committed
1115
1116
1117
  z-index: 1;
  display: block;
}
Mark Otto's avatar
Mark Otto committed
1118
.bs-example-modal .modal-dialog {
Mark Otto's avatar
Mark Otto committed
1119
1120
  left: auto;
  margin-right: auto;
XhmikosR's avatar
XhmikosR committed
1121
  margin-left: auto;
Mark Otto's avatar
Mark Otto committed
1122
1123
}

1124
// Example dropdowns
1125
1126
1127
.bs-example > .dropdown > .dropdown-toggle {
  float: left;
}
Mark Otto's avatar
Mark Otto committed
1128
.bs-example > .dropdown > .dropdown-menu {
Mark Otto's avatar
Mark Otto committed
1129
1130
  position: static;
  display: block;
1131
  margin-bottom: .25rem;
1132
  clear: left;
Mark Otto's avatar
Mark Otto committed
1133
}
Mark Otto's avatar
Mark Otto committed
1134

1135
// Example tabbable tabs
Mark Otto's avatar
Mark Otto committed
1136
.bs-example-tabs .nav-tabs {
1137
  margin-bottom: 1rem;
1138
1139
}

1140
// Tooltips
1141
.bs-example-tooltips {
1142
1143
  text-align: center;
}
1144
.bs-example-tooltips > .btn {
1145
1146
  margin-top: .25rem;
  margin-bottom: .25rem;
1147
}
1148

1149
// Popovers
Mark Otto's avatar
Mark Otto committed
1150
.bs-example-popover {
1151
  padding-bottom: 1.5rem;
1152
1153
  background-color: #f9f9f9;
}
Mark Otto's avatar
Mark Otto committed
1154
.bs-example-popover .popover {
1155
1156
1157
1158
  position: relative;
  display: block;
  float: left;
  width: 260px;
1159
  margin: 1.25rem;
1160
1161
}

Mark Otto's avatar
Mark Otto committed
1162
1163
1164
1165
1166
1167
1168
1169
// Tooltips
.bs-example-tooltip .tooltip {
  position: relative;
  display: inline-block;
  margin: 10px 20px;
  opacity: 1;
}

1170
// Scrollspy demo on fixed height div
Mark Otto's avatar
Mark Otto committed
1171
1172
1173
.scrollspy-example {
  position: relative;
  height: 200px;
1174
  margin-top: .5rem;
Mark Otto's avatar
Mark Otto committed
1175
1176
1177
1178
  overflow: auto;
}


1179
1180
1181
//
// Code snippets
//
Mark Otto's avatar
Mark Otto committed
1182
1183

.highlight {
Mark Otto's avatar
Mark Otto committed
1184
1185
1186
  padding: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
Mark Otto's avatar
Mark Otto committed
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
  background-color: #f7f7f9;
}
.highlight pre {
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
  background-color: transparent;
  border: 0;
}
.highlight pre code {
  font-size: inherit;
Mark Otto's avatar
Mark Otto committed
1198
  color: $gray-dark; // Effectively the base text color
Mark Otto's avatar
Mark Otto committed
1199
1200
1201
}


1202
1203
1204
//
// Responsive tests
//
Mark Otto's avatar
Mark Otto committed
1205

1206
// Responsive (scrollable) doc tables
1207
.table-responsive .highlight pre {
1208
1209
1210
  white-space: normal;
}

1211
// Utility classes table
Mark Otto's avatar
Mark Otto committed
1212
.bs-table th small,
Mark Otto's avatar
Mark Otto committed
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
.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;
}

1233
// Responsive tests
Mark Otto's avatar
Mark Otto committed
1234
.responsive-utilities-test {
1235
  margin-top: .25rem;
Mark Otto's avatar
Mark Otto committed
1236
}
1237
.responsive-utilities-test .col-xs-6 {
1238
  margin-bottom: .5rem;
Mark Otto's avatar
Mark Otto committed
1239
1240
}
.responsive-utilities-test span {
1241
  display: block;
1242
1243
  padding: 1rem .5rem;
  font-size: 1rem;
1244
1245
1246
  font-weight: bold;
  line-height: 1.1;
  text-align: center;
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
  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
1273
1274
}

1275
1276
1277
//
// Brand guidelines
//
Mark Otto's avatar
Mark Otto committed
1278

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

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

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

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

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


1349
1350
1351
//
// ZeroClipboard styles
//
Mark Otto's avatar
Mark Otto committed
1352

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

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

1382

1383
1384
1385
//
// Miscellaneous
//
1386

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