All Projects → dvlden → sloped-edge

dvlden / sloped-edge

Licence: MIT license
Sass mixin that helps you build sloped section edges with a consistent angle.

Programming Languages

SCSS
7915 projects

Projects that are alternatives of or similar to sloped-edge

DesktopAssistant
A Virtual Desktop Assistant Written in Python
Stars: ✭ 579 (+581.18%)
Mutual labels:  hacktoberfest2021
Top-Ethical-Hacking-Resources
Stay up-to-date with the latest and greatest ethical hacking tools and resources.
Stars: ✭ 22 (-74.12%)
Mutual labels:  hacktoberfest2021
file manager
FileManager is a wonderful widget that allows you to manage files and folders, pick files and folders, and do a lot more. Designed to feel like part of the Flutter framework.
Stars: ✭ 38 (-55.29%)
Mutual labels:  hacktoberfest2021
tempat-kontributor
Merupakan tempat bagi kalian untuk berkontributor bersama kami
Stars: ✭ 33 (-61.18%)
Mutual labels:  hacktoberfest2021
WebBlocks
zero-to-mastery re-usable web component library.
Stars: ✭ 20 (-76.47%)
Mutual labels:  hacktoberfest2021
hacktoberfest2021
For Beginners, students and developers this is a great opportunity to learn and contribute to open source.
Stars: ✭ 79 (-7.06%)
Mutual labels:  hacktoberfest2021
MayMeow.Cryptography
🔐 Cryptography library for .NET
Stars: ✭ 12 (-85.88%)
Mutual labels:  hacktoberfest2021
Video-Chat
Video calling and chatting app (PWA) built using React.js, Web RTC and Socket.io
Stars: ✭ 305 (+258.82%)
Mutual labels:  hacktoberfest2021
stopwatch
Stop watch using javascript
Stars: ✭ 18 (-78.82%)
Mutual labels:  hacktoberfest2021
Awesome-Machine-Learning-Models
Contribute your amazing Machine Learning, Data Science, and Deep Learning repository
Stars: ✭ 16 (-81.18%)
Mutual labels:  hacktoberfest2021
hacktoberfest 2021
This is a repository for anyone wishing to contribute to HacktoberFest 2021
Stars: ✭ 51 (-40%)
Mutual labels:  hacktoberfest2021
react-carousel-minimal
React.js Responsive Minimal Carousel
Stars: ✭ 76 (-10.59%)
Mutual labels:  hacktoberfest2021
Wizard-Of-Docs
A open source project to bring all the data structures and algorithms docs under one repository.
Stars: ✭ 19 (-77.65%)
Mutual labels:  hacktoberfest2021
o-fish-realm
Realm application code and sample data for the Officer's Fishery Information Sharing Hub (O-FISH). The mobile app allows fisheries officers to document and share critical information gathered during a routine vessel inspection. The web app allows agencies to gain insights from the aggregated information.
Stars: ✭ 23 (-72.94%)
Mutual labels:  hacktoberfest2021
react-bootcamp-notes
Bu repo Kodluyoruz Earlybird Front-End Talent Bootcamp boyunca aldığım tüm notları saklar.
Stars: ✭ 60 (-29.41%)
Mutual labels:  hacktoberfest2021
DSA-Practice
Open to hacktoberfest 2021
Stars: ✭ 11 (-87.06%)
Mutual labels:  hacktoberfest2021
PracticeApp
A "must-have a look" project for newcomers in android.
Stars: ✭ 38 (-55.29%)
Mutual labels:  hacktoberfest2021
ru102js
Source code for the RU102JS Redis for JavaScript Developers Course
Stars: ✭ 21 (-75.29%)
Mutual labels:  hacktoberfest2021
JavaScript-A-Z-Notes
Trying to document all of my knowledge about Javascript for future reference. Get your JS fundas in lucid English right here!
Stars: ✭ 306 (+260%)
Mutual labels:  hacktoberfest2021
Certificate-Generator-UI
This is the UI for an awesome Certificate Generator and this is a part of Hacktoberfest 2021.
Stars: ✭ 18 (-78.82%)
Mutual labels:  hacktoberfest2021

Sloped Edge - Sass mixin

With this powerful Sass mixin (uses scss syntax), you'll be able to build sloped section edges with a consistent angle. It uses most basic css properties, mainly just a border... No transforms or clip-path properties, no svg images.

Installation (pick one)

  1. Download latest release
  2. git clone https://github.com/dvlden/sloped-edge.git
  3. yarn add sloped-edge
  4. npm i sloped-edge

Usage

// import mixin
@use './node_modules/sloped-edge/src/index' as sloped;

// set variable for a color
$dark-grey: #292929;

// give it a class with any name you prefer
.section {
  // apply some base styling to the section
  background-color: $dark-grey;
  min-height: 50vh;

  // let the mixin do the magic
  @include sloped.edge-root;
  @include sloped.edge($dark-grey, 'right');
}

HINT: For "real-world" use case and more advanced example, check "examples" live or locally.

Arguments

Argument Default Value Possible Value
$color - any color (e.g. #292929)
$position - in, out, right, left
$height 5rem any number with a unit that is supported within border-width property

HINT: For the $color you don't necesserily have to use HEX value.

Variables

Variable Default Value Possible Value
$height 5rem -
$layout 'y' x, y

Examples

You'll find two examples that include all possible variations. The only difference between these examples is a layout... You can download this whole project and open examples locally or you may check live examples (hosted on GitHub Pages):

Browser Support

Basically, just the support of Viewport units (vw | vh). Check the browser coverage on the link below...

Can I Use - Viewport units?

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].