input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
-webkit-appearance:none;
}
$baseFontSize: 16;
@function rem($pixels, $min: 12) {
@if (unitless($pixels)) {
$pixels: $pixels * 1px;
}
@if (unitless($min)) {
$min: $min * 1px;
}
$context: 16px;
@return #{"max("}#{$pixels / $context * 1rem}#{", "}#{$min}#{")"};
}
.b-form__title {
font-size: rem(29px);
}
<div class="header"></div>
<div class="content">
<div class="row">
<div class="col-left">
<div class="aside-left"></div>
</div>
<div class="col-main">
<div class="main">
<div class="filter">
<div class="row">
<div class="col-3">
<div class="input"></div>
</div>
<div class="col-3">
<div class="input"></div>
</div>
<div class="col-3">
<div class="input"></div>
</div>
<div class="col-3">
<div class="input"></div>
</div>
</div>
<div class="btn"></div>
</div>
<div class="news-line"></div>
<div class="news">
<div class="row">
<div class="col-4">
<div class="news-card"></div>
</div>
<div class="col-4">
<div class="news-card"></div>
</div>
<div class="col-4">
<div class="news-card"></div>
</div>
</div>
</div>
<div class="news-line"></div>
<div class="news">
<div class="row">
<div class="col-4">
<div class="news-card"></div>
</div>
<div class="col-4">
<div class="news-card"></div>
</div>
<div class="col-4">
<div class="news-card"></div>
</div>
</div>
</div>
</div>
</div>
<div class="col-right">
<div class="aside-right"></div>
</div>
</div>
</div>
/*Viewport Height Correction
https://github.com/Faisal-Manzer/postcss-viewport-height-correction
.foo {
height: 100vh;
height: calc(var(--vh, 1vh) * 100); //
}
*/
var customViewportCorrectionVariable = 'vh';
function setViewportProperty(doc) {
var prevClientHeight;
var customVar = '--' + ( customViewportCorrectionVariable || 'vh' );
function handleResize() {
var clientHeight = doc.clientHeight;
if (clientHeight === prevClientHeight) return;
requestAnimationFrame(function updateViewportHeight(){
doc.style.setProperty(customVar, (clientHeight * 0.01) + 'px');
prevClientHeight = clientHeight;
});
}
handleResize();
return handleResize;
}
window.addEventListener('resize', setViewportProperty(document.documentElement));
/*/Viewport Height Correction*/
<div class="row">
<div class="col"></div>
<div class="col"></div>
<div class="col"></div>
</div>
.row {
margin-right: -15px;
margin-left: -15px;
}
.row:before,
.row:after {
display: table;
content: " ";
}
.row:after {
clear: both;
}
.col {
float: left;
width: 33.33333333%;
position: relative;
min-height: 1px;
padding-right: 15px;
padding-left: 15px;
}