JSFiddle - React, Tailwind, and code Playground

by webviper

HTML

<div class="wrap">
    
        <div class="article">
             sfasfgasgaga   
        </div>
    <div class="line1">
        <div class="crop"></div>
    </div>
    <div class="line2">
        <div class="crop"></div>
    </div>
</div>

CSS

html {
    height: 100%;
}
body {
    position: relative;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    min-width: 1000px;
}
.wrap {
    width: 100%; 
    overflow: hidden;
    height: 100%;
    min-width: 1000px;
    margin: 0 auto;
    -moz-box-sizing: border-box;
	box-sizing: border-box;
}
.line1 {
    position: absolute;
    width: 100%; 
    height: 100%;
    top: 0;
    right: 50%;
    margin-right: -50%;
    min-width: 1000px;
    -moz-box-sizing: border-box;
	box-sizing: border-box;
}
.line2 {
    position: absolute;
    width: 100%; 
    height: 100%;
    top: 0;
    left: 50%;
    margin-left: -50%;
    min-width: 1000px;
    -moz-box-sizing: border-box;
	box-sizing: border-box;
}
.crop {
    position: relative;
    width: 100%; 
    height: 100%;    
}
.article {
    margin: 0 auto;
    width: 1000px;
    background: #FF0;
}
.line1 .crop {
    margin-right: 30px;
}
.line1 .crop:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 100%;
    top: 0;
    right: -30px;
    background: #F00;
}
.line2 .crop {
    margin-left: 30px;
}
.line2 .crop:before {
    content: '';
    position: absolute;
    width: 30px;
    height: 100%;
    top: 0;
    left: -30px;
    background: #F0F;
}