I would like to use calc () so that the height of the element depends on the size of the screen, but since I agree with the base grid, this height should always be a multiple of my specific $baseline.
$baseline
I see that the operator is modno longer widely supported ( Using a module in css calc function ).
mod
Is there another way to achieve fluid height for my element without setting multiple breakpoints in height?
bootstrap uses several breakpoints as it gives the least headache.
calc , , .
-, .
% , , max-height , .
%
max-height
. - , :
/** * ||||||||∞ layout-lg-direction * ||||||||||||||||||∞ layout-md-direction * |||||||||||||||||||||||||||||∞ layout-sm-direction * ||||||||||||||||||||||||||||||||||||||||∞ layout-xs-direction * ||||||||||||||||||||||||||||||||||||||||||||||||||∞ layout-direction * |---------|----------|----------|---------|-------- * 0px 480px 768px 940px 1200px ∞px * *///direction: row, column
, , , , , .
, @if $i % $breakpoint == 0 - , % , .
@if $i % $breakpoint == 0
Source: https://habr.com/ru/post/1651202/More articles:How to make the ball bounce vertically only and not horizontally with SKSpriteKit? - iosКак получить идентификатор firebase - javascriptOwl Carousel doesn't work with RTL direction - javascriptHow to set a transparent background for Vim with "true color" turned on? - vimIs there a standalone version of .net core tooling preview 2? - .netFirebaseRecyclerAdapter and multiply item types by android - androidUsing a module in css calc function - cssXcode Playground Timeline пуста - xcodeSLIM adds space at the beginning of a multi-line line - ruby-on-railsLaravel 5.2 Return View from Controller - laravel-5.2All Articles