@import '~antd/lib/style/themes/default.less'; .row { .item { width: 50%; max-width: 220px; } .item:first-child { width: ~'calc(50% - 8px)'; margin-right: 8px; } } @media screen and (max-width: @screen-sm) { .item:first-child { margin: 0; margin-bottom: 8px; } }