diff options
author | Leonardo Faria <leonardofaria@gmail.com> | 2020-04-25 20:32:39 +0300 |
---|---|---|
committer | Leonardo Faria <leonardofaria@gmail.com> | 2020-04-25 20:32:39 +0300 |
commit | 9718ac1fb077f84be31b664fb8579604e7208bc9 (patch) | |
tree | 5930937851b22e4a0eb698136a5682ba3096b839 /assets/css/site.css | |
parent | 5deea0e5be652c1d90b337389b4556fc37b1adcf (diff) |
Add triangle in header
Diffstat (limited to 'assets/css/site.css')
-rw-r--r-- | assets/css/site.css | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/assets/css/site.css b/assets/css/site.css index 1156de1..2ca599e 100644 --- a/assets/css/site.css +++ b/assets/css/site.css @@ -1,8 +1,33 @@ .header { + position: relative; min-height: 400px; height: 50vh; } +.header:before, .header:after { + box-sizing: border-box; + content: " "; + position: absolute; + top: 0; + display: block; + width: 50%; + height: 100%; + border: 20px solid transparent; + border-bottom-color: #f9fafb; +} + +.header:before { + left: 0; + border-right: 30px solid transparent; + border-left: 0; +} + +.header:after { + right: 0; + border-left: 30px solid transparent; + border-right: 0; +} + /* .article styles */ .article { @apply px-5; |