Bootstrap 3 extra large (xl) columns -
In the short build of bootstrap someone can tell me how to add the size of the fifth device, the extra large ( You can create another short file (for example For bootstrapxl.less), which contains the following code and compile that file: Note that instead of mixing Since BS 3.2.0 you should use autoprefixer to ensure that your new compiled version has similar browser support to the original compiled version, see also: autixer for your new code To change the Update Please notice that the above solution only occurs when you add column classes to a large grid that overlaps the default grid column or grid See to add. Col-xl - # )
@import "bootstrap.less"; // XLarge screen @ screen-xlg: 1600px; @Screen-XLG-Min: @Screen-XLG; @stream-xlg-hughdesktop: @ screen-xlg-min; // Therefore, the media queries do not overlap if necessary, provide the maximum @ screen-LG-Max: (@ screen-XLG-min-1); // == Container size // large screen / wide desktop @ container-x-large-desktop: ((1540 px + @ grid-drain-width)); @ Container-xlg: @ container-excel-desktop; // Set the width of the container width // // container, and override it for the defined navbar in the media queries. . Container {@ media (minimum-width: @ screen-XLG-min) {width: @ container-xlg; }} .make-grid-xlgcolumns () {// General style for all sizes of grid columns, width 1-12 .col (@ index) when (@ index = 1) {// initial @item: ~ ". col -xlg - @ {index} "; .col ((@ index + 1), @ etem); } .col (@ index, @list) when (@index = & lt; @ grid-columns) {// normal; "= & Lt;" There is a typo @item: ~ ".col-xlg - @ {index}"; .col ((@ index + 1), ~ "@ {list}, @ {item}"); } .col (@ index, @list) when (@index> @grid-column) {// terminal @ {list} {status: relative; // When the height of the free minute stop the columns from falling: 1px; // Padding padding - Inner gutter through the left: (@grid-gutter-width / 2); Padding-right: (@grid-gutter-width / 2); }} .col (1); // kickstart it}. Make-grid-xlg column (); .make grid (xlg); // Generate large columns Make-XLG-column (@columns; @gutter: @ grid-gutter-width) {status: relative; Minimum height: 1px; Padding-left: (@ gutter / 2); Padding-right: (@ gutter / 2); @ Media (minimum-width: @ screen-xlg-min) {float: left; Width: percent ((column @ @ grid-column)); }} .make-xgl-column-offset (@column) {@ media (minimum-width: @ screen-xlg-min) {margin-left: percentage ((column @ @ grid-column)); }} .Make-XLG-column-push (@column) {@ media (minimum-width: @ screen-xlg-min) {left: percentage ((column @ @ grid-column)); }}. Make-XLG-column-bridge (@column) {@ media (minimum-width: @ screen-xlg-min) {right: percentage ((column @ @ grid-column)); }}
.make-grid-xlgcolumns in the above code, you can modify
.make-grid-columns ( )
.col-xlg - mixin in the lower / minins / grid-framework.less file by adding the square prefix.
bootstrap.less file reference, reference your new bootstrapxl.less in Gruntfile.js and run the
hour-dist / / code after your changes.
Comments
Post a Comment