frontity / frontity.org

The Frontity project of the frontity.org site

Home Page:https://frontity.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Background clip-path

SantosGuillamot opened this issue · comments

Description

Some sections of the web, instead of having a rectangular background, they will use a parallelogram. We will configure one by default and if some sections need to customize it they'll take care of that themselves.
Screen Shot 2020-03-10 at 15 07 24

Logic

Our first approach would be to use a class named has-polygon-background in the <div> tags where we want to apply the clip-path. The default css style added should be something similar to:

clip-path: polygon(0 0, 100% 36px, 100% 100%, 0 calc(100% - 72px));

Where to check

  • Invision About Us -> Our mission.
  • /common-styles/ page -> Section with polygon background.