mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-28 00:54:30 +01:00
Merge branch 'v4-dev' into v4-grid-redux
This commit is contained in:
commit
cac92017d3
@ -25,6 +25,7 @@
|
|||||||
<ul class="nav bd-sidenav">
|
<ul class="nav bd-sidenav">
|
||||||
{% for doc in group.pages %}
|
{% for doc in group.pages %}
|
||||||
{% assign slug = doc.title | downcase | replace: ' ', '-' | replace:'-&-','-' %}
|
{% assign slug = doc.title | downcase | replace: ' ', '-' | replace:'-&-','-' %}
|
||||||
|
{% capture slug %}/{{ slug }}{% endcapture %}
|
||||||
{% assign active = nil %}
|
{% assign active = nil %}
|
||||||
|
|
||||||
{% if page.url contains slug %}
|
{% if page.url contains slug %}
|
||||||
|
@ -164,23 +164,40 @@ Mixins are used in conjunction with the grid variables to generate semantic CSS
|
|||||||
{% highlight scss %}
|
{% highlight scss %}
|
||||||
// Creates a wrapper for a series of columns
|
// Creates a wrapper for a series of columns
|
||||||
@mixin make-row($gutter: $grid-gutter-width) {
|
@mixin make-row($gutter: $grid-gutter-width) {
|
||||||
|
@if $enable-flex {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
} @else {
|
||||||
|
@include clearfix();
|
||||||
|
}
|
||||||
margin-left: ($gutter / -2);
|
margin-left: ($gutter / -2);
|
||||||
margin-right: ($gutter / -2);
|
margin-right: ($gutter / -2);
|
||||||
@include clearfix();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make the element grid-ready (applying everything but the width)
|
// Make the element grid-ready (applying everything but the width)
|
||||||
@mixin make-col($gutter: $grid-gutter-width) {
|
@mixin make-col($gutter: $grid-gutter-width) {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@if $enable-flex {
|
||||||
|
flex: 1;
|
||||||
|
} @else {
|
||||||
float: left;
|
float: left;
|
||||||
|
}
|
||||||
min-height: 1px;
|
min-height: 1px;
|
||||||
padding-left: ($gutter / 2);
|
padding-left: ($gutter / 2);
|
||||||
padding-right: ($gutter / 2);
|
padding-right: ($gutter / 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@mixin make-col-span($size, $columns: $grid-columns) {
|
||||||
// Set a width (to be used in or out of media queries)
|
// Set a width (to be used in or out of media queries)
|
||||||
@mixin make-col-span($columns) {
|
@if $enable-flex {
|
||||||
width: percentage(($columns / $grid-columns));
|
flex: 0 0 percentage($size / $columns);
|
||||||
|
// Add a `max-width` to ensure content within each column does not blow out
|
||||||
|
// the width of the column. Applies to IE10+ and Firefox. Chrome and Safari
|
||||||
|
// do not appear to require this.
|
||||||
|
max-width: percentage($size / $columns);
|
||||||
|
} @else {
|
||||||
|
width: percentage($size / $columns);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get fancy by offsetting, or changing the sort order
|
// Get fancy by offsetting, or changing the sort order
|
||||||
|
@ -106,6 +106,12 @@ linters:
|
|||||||
"-moz-box-sizing",
|
"-moz-box-sizing",
|
||||||
"box-sizing",
|
"box-sizing",
|
||||||
"display",
|
"display",
|
||||||
|
"flex",
|
||||||
|
"flex-direction",
|
||||||
|
"flex-flow",
|
||||||
|
"flex-order",
|
||||||
|
"flex-pack",
|
||||||
|
"flex-align",
|
||||||
"float",
|
"float",
|
||||||
"width",
|
"width",
|
||||||
"min-width",
|
"min-width",
|
||||||
@ -113,12 +119,6 @@ linters:
|
|||||||
"height",
|
"height",
|
||||||
"min-height",
|
"min-height",
|
||||||
"max-height",
|
"max-height",
|
||||||
"flex",
|
|
||||||
"flex-direction",
|
|
||||||
"flex-flow",
|
|
||||||
"flex-order",
|
|
||||||
"flex-pack",
|
|
||||||
"flex-align",
|
|
||||||
"padding",
|
"padding",
|
||||||
"padding-top",
|
"padding-top",
|
||||||
"padding-right",
|
"padding-right",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user