{"id":13700300,"url":"https://github.com/josephfusco/angled-edges","last_synced_at":"2025-05-16T01:07:30.177Z","repository":{"id":57177901,"uuid":"61045868","full_name":"josephfusco/angled-edges","owner":"josephfusco","description":":triangular_ruler: Quickly create angled section edges using only Sass","archived":false,"fork":false,"pushed_at":"2019-01-04T12:59:49.000Z","size":527,"stargazers_count":961,"open_issues_count":1,"forks_count":43,"subscribers_count":28,"default_branch":"master","last_synced_at":"2025-05-07T18:57:03.830Z","etag":null,"topics":["angled","css","edges","fluid-width","mixins","sass","svg"],"latest_commit_sha":null,"homepage":"https://angled-edges.josephfus.co","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/josephfusco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-13T15:05:45.000Z","updated_at":"2025-05-07T15:37:28.000Z","dependencies_parsed_at":"2022-08-30T16:10:52.793Z","dependency_job_id":null,"html_url":"https://github.com/josephfusco/angled-edges","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josephfusco%2Fangled-edges","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josephfusco%2Fangled-edges/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josephfusco%2Fangled-edges/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josephfusco%2Fangled-edges/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/josephfusco","download_url":"https://codeload.github.com/josephfusco/angled-edges/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254448579,"owners_count":22072764,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angled","css","edges","fluid-width","mixins","sass","svg"],"created_at":"2024-08-02T20:00:53.837Z","updated_at":"2025-05-16T01:07:25.166Z","avatar_url":"https://github.com/josephfusco.png","language":"CSS","funding_links":[],"categories":["CSS","📦 Legacy \u0026 Inactive Projects","Libraries and Mixins"],"sub_categories":["Miscellaneous"],"readme":"# Angled Edges :triangular_ruler: [![Build Status](https://travis-ci.org/josephfusco/angled-edges.svg?branch=master)](https://travis-ci.org/josephfusco/angled-edges) [![Bower version](https://badge.fury.io/bo/angled-edges.svg)](https://badge.fury.io/bo/angled-edges) [![npm version](https://badge.fury.io/js/angled-edges.svg)](https://badge.fury.io/js/angled-edges)\n\nA Sass mixin for creating angled edges on sections by dynamically encoding SVGs.\n\nNeed angled edges in regular CSS? Check out the [Angled Edges Generator](https://angled-edges-generator.josephfus.co).\n\n\u003cimg width=\"1262\" alt=\"angled edge\" src=\"https://cloud.githubusercontent.com/assets/6676674/16118929/33700404-33a7-11e6-8e94-a9ace624a41a.png\"\u003e\n\n## Usage\n\nImport partial:\n```scss\n@import \"angled-edges\";\n```\n\nThis mixin has 3 required parameters: **location**, **hypotenuse**, **fill**\n```scss\n@include angled-edge($location, $hypotenuse, $fill);\n```\n\nThe main mixin creates an svg right triangle that is encoded, set as a background image of a pseudo element, and absolutely positioned.\n\n### Examples\n\nhttps://codepen.io/fusco/pen/mzymKm\n\n## Options\n\n| Parameter | Description |\n| ----------| ----------- |\n| `$location` | Location of shape relative to parent element \u003cuL\u003e\u003cli\u003e\u003ccode\u003einside top\u003c/code\u003e\u003c/li\u003e\u003cli\u003e\u003ccode\u003eoutside top\u003c/code\u003e\u003c/li\u003e\u003cli\u003e\u003ccode\u003einside bottom\u003c/code\u003e\u003c/li\u003e\u003cli\u003e\u003ccode\u003eoutside bottom\u003c/code\u003e\u003c/li\u003e\u003c/ul\u003e |\n| `$hypotenuse` | Side of the right triangle that the hypotenuse is on \u003cuL\u003e\u003cli\u003e\u003ccode\u003eupper left\u003c/code\u003e\u003c/li\u003e\u003cli\u003e\u003ccode\u003eupper right\u003c/code\u003e\u003c/li\u003e\u003cli\u003e\u003ccode\u003elower left\u003c/code\u003e\u003c/li\u003e\u003cli\u003e\u003ccode\u003elower right\u003c/code\u003e\u003c/li\u003e\u003c/ul\u003e |\n| `$fill` | Fill color of triangle |\n| `$height` | Optional - Height of triangle - Accepts a unitless integer that is equivalent to height in `px` |\n| `$width` | Optional - Width of triangle - Accepts a unitless integer that is equivalent to width in `px` (If nothing is passed triangle will span to a 100% fluid width) |\n\n## Upgrading from 1.x\n\nVersion 2 now defaults with a fluid width of 100%. Since this is the preferred value, width and height parameters have switched order with height now being first. This allows for easier usage where\n```scss\n@include angled-edge('outside bottom', 'lower right', 150);\n```\nnow means a 150px tall with at a default of 100% width. If a fluid width is not needed, you can still pass in a unitless width like in 1.x. If you previously were using `background-size` to manipulate the shape, you will need to remove this property as the mixin also uses this to assist with making the shape full-width.\n\n## Demo\n\n[https://angled-edges.josephfus.co](http://angled-edges.josephfus.co)\n\n## Browser Support\n\nAnywhere SVG is supported.\n\n- [x] IE 9+\n- [x] Edge\n- [x] Firefox\n- [x] Chrome\n- [x] Safari\n- [x] Opera\n- [x] iOS Safari\n- [x] Opera Mini\n- [x] Android Browser\n- [x] Chrome for Android\n\n## Project Ports\n\n+ [Stylus Angled Edges](https://github.com/OlegWock/stylus-angled-edges)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosephfusco%2Fangled-edges","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjosephfusco%2Fangled-edges","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosephfusco%2Fangled-edges/lists"}