mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-05 05:28:37 +08:00
202 lines
4.6 KiB
SCSS
202 lines
4.6 KiB
SCSS
/*!markdown
|
|
|
|
---
|
|
title: Grid Row Start / End
|
|
---
|
|
|
|
| Class | Properties |
|
|
| ----------- | ------------------------ |
|
|
| col-auto | grid-column: auto |
|
|
| col-span-1 | grid-column: span 1/span 1 |
|
|
| col-span-2 | grid-column: span 2/span 2 |
|
|
| col-span-3 | grid-column: span 3/span 3 |
|
|
| col-span-4 | grid-column: span 4/span 4 |
|
|
| col-span-5 | grid-column: span 5/span 5 |
|
|
| col-span-6 | grid-column: span 6/span 6 |
|
|
| col-span-7 | grid-column: span 7/span 7 |
|
|
| col-span-8 | grid-column: span 8/span 8 |
|
|
| col-span-9 | grid-column: span 9/span 9 |
|
|
| col-span-10 | grid-column: span 10/span 10 |
|
|
| col-span-11 | grid-column: span 11/span 1 |
|
|
| col-span-12 | grid-column: span 12/span 12 |
|
|
| col-span-full | grid-column: 1/-1 |
|
|
| col-start-1 | grid-column-start: 1 |
|
|
| col-start-2 | grid-column-start: 2 |
|
|
| col-start-3 | grid-column-start: 3 |
|
|
| col-start-4 | grid-column-start: 4 |
|
|
| col-start-5 | grid-column-start: 5 |
|
|
| col-start-6 | grid-column-start: 6 |
|
|
| col-start-7 | grid-column-start: 7 |
|
|
| col-start-8 | grid-column-start: 8 |
|
|
| col-start-9 | grid-column-start: 9 |
|
|
| col-start-10 | grid-column-start: 10 |
|
|
| col-start-11 | grid-column-start: 11 |
|
|
| col-start-12 | grid-column-start: 12 |
|
|
| col-start-13 | grid-column-start: 13 |
|
|
| col-start-auto | grid-column-start: auto |
|
|
| col-end-1 | grid-column-end: 1 |
|
|
| col-end-2 | grid-column-end: 2 |
|
|
| col-end-3 | grid-column-end: 3 |
|
|
| col-end-4 | grid-column-end: 4 |
|
|
| col-end-5 | grid-column-end: 5 |
|
|
| col-end-6 | grid-column-end: 6 |
|
|
| col-end-7 | grid-column-end: 7 |
|
|
| col-end-8 | grid-column-end: 8 |
|
|
| col-end-9 | grid-column-end: 9 |
|
|
| col-end-10 | grid-column-end: 10 |
|
|
| col-end-11 | grid-column-end: 11 |
|
|
| col-end-12 | grid-column-end: 12 |
|
|
| col-end-13 | grid-column-end: 13 |
|
|
| col-end-auto | grid-column-end: auto |
|
|
|
|
|
|
*/
|
|
@mixin make-grid-span($prefix: '.') {
|
|
#{$prefix}col-auto {
|
|
grid-column: auto;
|
|
}
|
|
|
|
#{$prefix}col-span-1 {
|
|
grid-column: span 1 / span 1;
|
|
}
|
|
|
|
#{$prefix}col-span-2 {
|
|
grid-column: span 2 / span 2;
|
|
}
|
|
#{$prefix}col-span-3 {
|
|
grid-column: span 3 / span 3;
|
|
}
|
|
#{$prefix}col-span-4 {
|
|
grid-column: span 4 / span 4;
|
|
}
|
|
#{$prefix}col-span-5 {
|
|
grid-column: span 5 / span 5;
|
|
}
|
|
#{$prefix}col-span-6 {
|
|
grid-column: span 6 / span 6;
|
|
}
|
|
#{$prefix}col-span-7 {
|
|
grid-column: span 7 / span 7;
|
|
}
|
|
#{$prefix}col-span-8 {
|
|
grid-column: span 8 / span 8;
|
|
}
|
|
#{$prefix}col-span-9 {
|
|
grid-column: span 9 / span 9;
|
|
}
|
|
#{$prefix}col-span-10 {
|
|
grid-column: span 10 / span 10;
|
|
}
|
|
#{$prefix}col-span-11 {
|
|
grid-column: span 11 / span 1;
|
|
}
|
|
#{$prefix}col-span-12 {
|
|
grid-column: span 12 / span 12;
|
|
}
|
|
|
|
#{$prefix}col-span-full {
|
|
grid-column: 1 / -1;
|
|
}
|
|
}
|
|
|
|
@mixin make-grid-start($prefix: '.') {
|
|
#{$prefix}col-start-1 {
|
|
grid-column-start: 1;
|
|
}
|
|
#{$prefix}col-start-2 {
|
|
grid-column-start: 2;
|
|
}
|
|
#{$prefix}col-start-3 {
|
|
grid-column-start: 3;
|
|
}
|
|
#{$prefix}col-start-4 {
|
|
grid-column-start: 4;
|
|
}
|
|
#{$prefix}col-start-5 {
|
|
grid-column-start: 5;
|
|
}
|
|
#{$prefix}col-start-6 {
|
|
grid-column-start: 6;
|
|
}
|
|
#{$prefix}col-start-7 {
|
|
grid-column-start: 7;
|
|
}
|
|
#{$prefix}col-start-8 {
|
|
grid-column-start: 8;
|
|
}
|
|
#{$prefix}col-start-9 {
|
|
grid-column-start: 9;
|
|
}
|
|
#{$prefix}col-start-10 {
|
|
grid-column-start: 10;
|
|
}
|
|
#{$prefix}col-start-11 {
|
|
grid-column-start: 11;
|
|
}
|
|
#{$prefix}col-start-12 {
|
|
grid-column-start: 12;
|
|
}
|
|
#{$prefix}col-start-13 {
|
|
grid-column-start: 13;
|
|
}
|
|
#{$prefix}col-start-auto {
|
|
grid-column-start: auto;
|
|
}
|
|
}
|
|
|
|
@mixin make-grid-end($prefix: '.') {
|
|
#{$prefix}col-end-1 {
|
|
grid-column-end: 1;
|
|
}
|
|
#{$prefix}col-end-2 {
|
|
grid-column-end: 2;
|
|
}
|
|
#{$prefix}col-end-3 {
|
|
grid-column-end: 3;
|
|
}
|
|
#{$prefix}col-end-4 {
|
|
grid-column-end: 4;
|
|
}
|
|
#{$prefix}col-end-5 {
|
|
grid-column-end: 5;
|
|
}
|
|
#{$prefix}col-end-6 {
|
|
grid-column-end: 6;
|
|
}
|
|
#{$prefix}col-end-7 {
|
|
grid-column-end: 7;
|
|
}
|
|
#{$prefix}col-end-8 {
|
|
grid-column-end: 8;
|
|
}
|
|
#{$prefix}col-end-9 {
|
|
grid-column-end: 9;
|
|
}
|
|
#{$prefix}col-end-10 {
|
|
grid-column-end: 10;
|
|
}
|
|
#{$prefix}col-end-11 {
|
|
grid-column-end: 11;
|
|
}
|
|
#{$prefix}col-end-12 {
|
|
grid-column-end: 12;
|
|
}
|
|
#{$prefix}col-end-13 {
|
|
grid-column-end: 13;
|
|
}
|
|
#{$prefix}col-end-auto {
|
|
grid-column-end: auto;
|
|
}
|
|
}
|
|
|
|
@include make-grid-span();
|
|
@include make-grid-start();
|
|
@include make-grid-end();
|
|
@each $deivce in map-keys($devices) {
|
|
@include media-device($deivce) {
|
|
@include make-grid-span('.' + selector-escape($deivce + ':'));
|
|
@include make-grid-start('.' + selector-escape($deivce + ':'));
|
|
@include make-grid-end('.' + selector-escape($deivce + ':'));
|
|
}
|
|
}
|