Difference between revisions of "Common.css"
(Reverted dnd css) Tag: Blanking |
(Added info box style) |
||
Line 1: | Line 1: | ||
+ | .info-box { | ||
+ | background-color: #dcdee0; | ||
+ | padding: 2rem; | ||
+ | } | ||
+ | |||
+ | .info-box:before, .info-box:after { | ||
+ | content: ""; | ||
+ | display: block; | ||
+ | background-color: black; | ||
+ | height: 10px; } | ||
+ | .info-box:before { | ||
+ | clip-path: polygon(0px 10px, 100% 10px, calc(100% - 20px) 0px, calc(100% - 20px) 8px, 20px 8px, 20px 0px); | ||
+ | -webkit-clip-path: polygon(0px 10px, 100% 10px, calc(100% - 20px) 0px, calc(100% - 20px) 8px, 20px 8px, 20px 0px); } | ||
+ | .info-box:after { | ||
+ | clip-path: polygon(20px 10px, 20px 2px, calc(100% - 20px) 2px, calc(100% - 20px) 10px, 100% 0px, 0px 0px); | ||
+ | -webkit-clip-path: polygon(20px 10px, 20px 2px, calc(100% - 20px) 2px, calc(100% - 20px) 10px, 100% 0px, 0px 0px); } |
Revision as of 20:38, 4 September 2020
.info-box { background-color: #dcdee0; padding: 2rem; } .info-box:before, .info-box:after { content: ""; display: block; background-color: black; height: 10px; } .info-box:before { clip-path: polygon(0px 10px, 100% 10px, calc(100% - 20px) 0px, calc(100% - 20px) 8px, 20px 8px, 20px 0px); -webkit-clip-path: polygon(0px 10px, 100% 10px, calc(100% - 20px) 0px, calc(100% - 20px) 8px, 20px 8px, 20px 0px); } .info-box:after { clip-path: polygon(20px 10px, 20px 2px, calc(100% - 20px) 2px, calc(100% - 20px) 10px, 100% 0px, 0px 0px); -webkit-clip-path: polygon(20px 10px, 20px 2px, calc(100% - 20px) 2px, calc(100% - 20px) 10px, 100% 0px, 0px 0px); }