docs.scss 22.3 KB
Newer Older
1001

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

1044
// Pagination
1045
.bs-example .pagination {
1046
1047
  margin-top: .5rem;
  margin-bottom: .5rem;
1048
1049
}

1050
// Pager
Mark Otto's avatar
Mark Otto committed
1051
1052
1053
1054
.bs-example > .pager {
  margin-top: 0;
}

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

1074
// Example dropdowns
1075
1076
1077
.bs-example > .dropdown > .dropdown-toggle {
  float: left;
}
Mark Otto's avatar
Mark Otto committed
1078
.bs-example > .dropdown > .dropdown-menu {
Mark Otto's avatar
Mark Otto committed
1079
1080
  position: static;
  display: block;
1081
  margin-bottom: .25rem;
1082
  clear: left;
Mark Otto's avatar
Mark Otto committed
1083
}
Mark Otto's avatar
Mark Otto committed
1084

1085
// Example tabbable tabs
Mark Otto's avatar
Mark Otto committed
1086
.bs-example-tabs .nav-tabs {
1087
  margin-bottom: 1rem;
1088
1089
}

1090
// Tooltips
1091
.bs-example-tooltips {
1092
1093
  text-align: center;
}
1094
.bs-example-tooltips > .btn {
1095
1096
  margin-top: .25rem;
  margin-bottom: .25rem;
1097
}
1098

1099
// Popovers
Mark Otto's avatar
Mark Otto committed
1100
.bs-example-popover {
1101
  padding-bottom: 1.5rem;
1102
1103
  background-color: #f9f9f9;
}
Mark Otto's avatar
Mark Otto committed
1104
.bs-example-popover .popover {
1105
1106
1107
1108
  position: relative;
  display: block;
  float: left;
  width: 260px;
1109
  margin: 1.25rem;
1110
1111
}

Mark Otto's avatar
Mark Otto committed
1112
1113
1114
1115
1116
1117
1118
1119
// Tooltips
.bs-example-tooltip .tooltip {
  position: relative;
  display: inline-block;
  margin: 10px 20px;
  opacity: 1;
}

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


1129
1130
1131
//
// Code snippets
//
Mark Otto's avatar
Mark Otto committed
1132
1133

.highlight {
Mark Otto's avatar
Mark Otto committed
1134
1135
1136
  padding: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
Mark Otto's avatar
Mark Otto committed
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
  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
1148
  color: $gray-dark; // Effectively the base text color
Mark Otto's avatar
Mark Otto committed
1149
1150
1151
}


1152
1153
1154
//
// Responsive tests
//
Mark Otto's avatar
Mark Otto committed
1155

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

1161
// Utility classes table
Mark Otto's avatar
Mark Otto committed
1162
.bs-table th small,
Mark Otto's avatar
Mark Otto committed
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
.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;
}

1183
// Responsive tests
Mark Otto's avatar
Mark Otto committed
1184
.responsive-utilities-test {
1185
  margin-top: .25rem;
Mark Otto's avatar
Mark Otto committed
1186
}
1187
.responsive-utilities-test .col-xs-6 {
1188
  margin-bottom: .5rem;
Mark Otto's avatar
Mark Otto committed
1189
1190
}
.responsive-utilities-test span {
1191
  display: block;
1192
1193
  padding: 1rem .5rem;
  font-size: 1rem;
1194
1195
1196
  font-weight: bold;
  line-height: 1.1;
  text-align: center;
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
  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
1223
1224
}

1225
1226
1227
//
// Brand guidelines
//
Mark Otto's avatar
Mark Otto committed
1228

1229
// Logo series wrapper
Mark Otto's avatar
Mark Otto committed
1230
1231
1232
.bs-brand-logos {
  display: table;
  width: 100%;
Mark Otto's avatar
Mark Otto committed
1233
  margin-bottom: 1rem;
Mark Otto's avatar
Mark Otto committed
1234
1235
1236
  overflow: hidden;
  color: #563d7c;
  background-color: #f9f9f9;
Mark Otto's avatar
Mark Otto committed
1237
  border-radius: .25rem;
Mark Otto's avatar
Mark Otto committed
1238
}
Mark Otto's avatar
Mark Otto committed
1239

1240
// Individual items
Mark Otto's avatar
Mark Otto committed
1241
.bs-brand-item {
Mark Otto's avatar
Mark Otto committed
1242
  padding: 4rem 0;
Mark Otto's avatar
Mark Otto committed
1243
1244
  text-align: center;
}
Mark Otto's avatar
Mark Otto committed
1245
.bs-brand-item + .bs-brand-item {
Mark Otto's avatar
Mark Otto committed
1246
  border-top: 1px solid #fff;
Mark Otto's avatar
Mark Otto committed
1247
1248
1249
1250
1251
}
.bs-brand-logos .inverse {
  color: #fff;
  background-color: #563d7c;
}
Mark Otto's avatar
Mark Otto committed
1252
.bs-brand-item .svg {
Mark Otto's avatar
Mark Otto committed
1253
1254
  width: 9rem;
  height: 9rem;
Mark Otto's avatar
Mark Otto committed
1255
}
Mark Otto's avatar
Mark Otto committed
1256

1257
// Heading content within
Mark Otto's avatar
Mark Otto committed
1258
1259
1260
1261
1262
.bs-brand-item h1,
.bs-brand-item h3 {
  margin-top: 0;
  margin-bottom: 0;
}
1263
.bs-brand-item .bs-docs-booticon {
Mark Otto's avatar
Mark Otto committed
1264
  margin-right: auto;
XhmikosR's avatar
XhmikosR committed
1265
  margin-left: auto;
Mark Otto's avatar
Mark Otto committed
1266
1267
}

1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
// 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
1283

Mark Otto's avatar
Mark Otto committed
1284
@media (min-width: 768px) {
Mark Otto's avatar
Mark Otto committed
1285
1286
1287
1288
1289
1290
1291
  .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
1292
  }
Mark Otto's avatar
Mark Otto committed
1293
  .bs-brand-item h1 {
Mark Otto's avatar
Mark Otto committed
1294
    font-size: 4rem;
Mark Otto's avatar
Mark Otto committed
1295
1296
  }
}
Mark Otto's avatar
Mark Otto committed
1297
1298


1299
1300
1301
//
// ZeroClipboard styles
//
Mark Otto's avatar
Mark Otto committed
1302

1303
1304
.zero-clipboard {
  position: relative;
Mark Otto's avatar
Mark Otto committed
1305
  display: none;
Mark Otto's avatar
Mark Otto committed
1306
  float: right;
Mark Otto's avatar
Mark Otto committed
1307
}
1308
1309
.btn-clipboard {
  position: absolute;
Mark Otto's avatar
Mark Otto committed
1310
  top: 0;
1311
1312
  right: 0;
  z-index: 10;
Mark Otto's avatar
Mark Otto committed
1313
  display: block;
Mark Otto's avatar
Mark Otto committed
1314
1315
1316
  padding: .25rem .5rem;
  font-size: 75%;
  color: #818a91;
1317
  cursor: pointer;
Mark Otto's avatar
Mark Otto committed
1318
  background-color: #eceeef;
1319
  border-radius: 0 .2rem 0 .2rem;
Mark Otto's avatar
Mark Otto committed
1320
}
1321
.btn-clipboard-hover {
Mark Otto's avatar
Mark Otto committed
1322
  color: #fff;
Mark Otto's avatar
Mark Otto committed
1323
  background-color: #027de7;
1324
1325
}

Mark Otto's avatar
Mark Otto committed
1326
1327
1328
@media (min-width: 768px) {
  .zero-clipboard {
    display: block;
1329
  }
Mark Otto's avatar
Mark Otto committed
1330
}
Mark Otto's avatar
Mark Otto committed
1331

1332

1333
1334
1335
//
// Miscellaneous
//
1336

1337
// Pseudo :focus state for showing how it looks in the docs
1338
#focusedInput {
Mark Otto's avatar
Mark Otto committed
1339
  border-color: $input-border-focus;
Mark Otto's avatar
Mark Otto committed
1340
  outline: 0;
1341
  outline: thin dotted \9; // IE9
Mark Otto's avatar
Mark Otto committed
1342
  box-shadow: 0 0 .5rem $input-box-shadow-focus;
Mark Otto's avatar
Mark Otto committed
1343
}
For faster browsing, not all history is shown. View entire blame