mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-11 22:53:42 +08:00
582df1199b
* refactor: migrate the grid from less to cssinjs * fix: remove the hashid in col component * refactor: split the useStyle of grid * chore: add deps-lint-skip-all * chore: add a fixme comment * chore: remove the preset grid sizes in grid
54 lines
1.4 KiB
Plaintext
54 lines
1.4 KiB
Plaintext
// @import '../../style/mixins/index';
|
|
|
|
// // mixins for grid system
|
|
// // ------------------------
|
|
|
|
// .loop-grid-columns(@index, @class) when (@index > 0) {
|
|
// .@{ant-prefix}-col@{class}-@{index} {
|
|
// display: block;
|
|
// flex: 0 0 percentage((@index / @grid-columns));
|
|
// max-width: percentage((@index / @grid-columns));
|
|
// }
|
|
// .@{ant-prefix}-col@{class}-push-@{index} {
|
|
// left: percentage((@index / @grid-columns));
|
|
// }
|
|
// .@{ant-prefix}-col@{class}-pull-@{index} {
|
|
// right: percentage((@index / @grid-columns));
|
|
// }
|
|
// .@{ant-prefix}-col@{class}-offset-@{index} {
|
|
// margin-left: percentage((@index / @grid-columns));
|
|
// }
|
|
// .@{ant-prefix}-col@{class}-order-@{index} {
|
|
// order: @index;
|
|
// }
|
|
// .loop-grid-columns((@index - 1), @class);
|
|
// }
|
|
|
|
// .loop-grid-columns(@index, @class) when (@index = 0) {
|
|
// .@{ant-prefix}-col@{class}-@{index} {
|
|
// display: none;
|
|
// }
|
|
// .@{ant-prefix}-col-push-@{index} {
|
|
// left: auto;
|
|
// }
|
|
// .@{ant-prefix}-col-pull-@{index} {
|
|
// right: auto;
|
|
// }
|
|
// .@{ant-prefix}-col@{class}-push-@{index} {
|
|
// left: auto;
|
|
// }
|
|
// .@{ant-prefix}-col@{class}-pull-@{index} {
|
|
// right: auto;
|
|
// }
|
|
// .@{ant-prefix}-col@{class}-offset-@{index} {
|
|
// margin-left: 0;
|
|
// }
|
|
// .@{ant-prefix}-col@{class}-order-@{index} {
|
|
// order: 0;
|
|
// }
|
|
// }
|
|
|
|
// .make-grid(@class: ~'') {
|
|
// .loop-grid-columns(@grid-columns, @class);
|
|
// }
|