3.4.1 • Published 3 years ago

@vkea/pridecss v3.4.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

PrideCSS, a BEM-compliant SCSS library for adding pride flags

contributions welcome Build Status Codacy Badge Known Vulnerabilities

PrideCSS is a SCSS library for adding pride flags to your HTML elements.

SCSS source can be found in the scssfolder, compiled CSS can be found inside thecss folder.

a screenshot of the different flags

Installation

npm

npm i @vkea/pridecss

yarn

yarn add @vkea/pridecss

jsdelivr - pride.css

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@vkea/pridecss@3.4.0/css/pride.css">

jsdelivr - pride-lite.css

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@vkea/pridecss@3.4.0/css/pride-lite.css">

unpkg - pride.css

<link rel="stylesheet" href="https://unpkg.com/@vkea/pridecss@3.4.0/css/pride.css">

unpkg - pride-lite.css

<link rel="stylesheet" href="https://unpkg.com/@vkea/pridecss@3.4.0/css/pride-lite.css">

Usage

PrideCSS comes in two flavours: a full version and a light version. If you don't need to use directional modifiers for your flags, it is recommended to use the light version pride-lite, which contains all different pride flags, but without directional modifiers.

PrideCSS class names start with the word pride, followed by Block Element Modifier (BEM) modifiers.

Example

<div class="pride--nb"></div>

You can use different modifiers like horizontal, radial or bottomleft to specify the direction of the pride gradient.

Examples

<div class="pride--radial--lesbian"></div>
<div class="pride--horizontal--gay"></div>
<div class="pride--topright--ace"></div>

Modifiers

Pride flags

FlagType
agenderstandard
agender2standard
androgynestandard
androgyne2standard
arostandard
aro2standard
aro3standard
aroacestandard
acestandard
ace2standard
bearstandard
bistandard
demiboystandard
demigenderstandard
demigirlstandard
demisexualcomplex
gaystandard
genderfluidstandard
genderqueerstandard
gilbertbakerstandard
intersexradial
intersex2standard
lesbianstandard
lesbian2standard
lesbian3standard
maveriquestandard
mlmstandard
mlm2standard
mlm3standard
neutroisstandard
nbstandard
nb2standard
nb3standard
omnisexualstandard
panstandard
philadelphiastandard
polygenderstandard
polysexualstandard
quasarcomplex
sapphicstandard
transstandard
twinkstandard

Gradient directions

DirectionCompatibility
{name}standard, radial, complex
horizontal--{name}standard
topleft--{name}standard
topright--{name}standard
bottomright--{name}standard
bottomleft--{name}standard
radial--{name}standard, radial
radial--top--{name}standard, radial
radial--bottom--{name}standard, radial
radial--left--{name}standard, radial
radial--right--{name}standard, radial
radial--topleft--{name}standard, radial
radial--topright--{name}standard, radial
radial--bottomright--{name}standard, radial
radial--bottomleft--{name}standard, radial
border--thin--{name}standard
border--thin--{name}standard
border--thick--{name}standard
border--dummythicc--{name}standard

Contributing

Flags and CSS generation are split. scss/flags is where the flags are defined, scss/logic is where the CSS generation logic is, pride.scss and pride-lite.scss are output files.

Run npm i to install Grunt, SCSS and Stylelint packages.

If you have the Grunt CLI, you can run grunt, which automatically compiles and lints your changes.

3.4.0

3 years ago

3.4.1

3 years ago

3.3.1

3 years ago

3.3.0

3 years ago

3.2.0

3 years ago