32 Commits

Author SHA1 Message Date
Kate Sowles
2a8f1014b8
Feature/rss feed (#192)
* installed @11ty/eleventy-plugin-rss package and added it to the config

* adding default rss template from the 11ty documentation

* using 'definedWords' as a collection, not 'posts'

* added a link to the feed in the html head, on the homepage so it's co-located with the other means of engagement, and in the feed itself (permalink is now part of metadata too)

* metadata.description is what we want to show as the feed subtitle, and made the author name safe as part of the metadata json; can't use the safe filter otherwise xml blows up

* removed redundant --- from right below the frontmatter, which md turns into a <hr>, which makes xml blow up

* made indentation consistent

* removing subscribe link from the CTA box, adding it to the footer next to Documentation link with bullet delimiter; updated site footer's ul style to show list items as display-block elements

* on definition pages, the footer is constrained to have the max width of the sidebar (160px). set grid-column: 1 / -1 to give it the full width to match the home/toc page

* created a new collection for sorting only defined words via their .date value (should be created date unless otherwise specified)

* RSS feed now shows posts in the order used by new definedWordsChronological collection

* reversed sort order as requested

* re-prettier-ifying eleventy.js

Co-authored-by: Oscar <ovlb@users.noreply.github.com>
2020-06-12 11:21:37 +02:00
tatianamac
11bbee568a 🐛 Fixes SCSS build errors 2020-05-28 21:18:01 -07:00
Matthew Shields
909c90f776
⚠️ Adds content warning guidelines (#156)
* Move speech definition into main template

* Remove speech definition from definition-content.njk

* add margin top helper

* add content flag components

* Add selection styling to .box class

* Change content warning flag styling

* Add additional content warning guidance and change styling

* Expand examples list

* reworded topic[s] after testing in screen reader

* Also adjust wording on avoid content guidelines block

* Output title into content warning example

* Update 11ty/_includes/components/content-warning.njk

Co-authored-by: Tatiana Mac <github@tatianamac.com>

* Update 11ty/_includes/components/content-warning-flag.njk

Co-authored-by: Tatiana Mac <github@tatianamac.com>

* Update 11ty/_includes/components/content-warning.njk

Co-authored-by: Tatiana Mac <github@tatianamac.com>

Co-authored-by: Tatiana Mac <github@tatianamac.com>
2020-05-28 16:08:35 -07:00
Bashu Naimi-Roy
941403694a
Style fixes (#144)
* change "title__thicc" classname to "title--thicc" to reflect BEM naming convention

* fix indentation in index.njk

* add vertical spacing between homepage sections

* convert ".help" class to ".box__list" class

CSS classes generally shouldn't be related to content

* remove duplicate code for .page

* change auto-grid class to "auto-fit", from "auto-fill"

This reduces unused negative space on screens between 800-1200px wide

* use proper BEM practice - block, then modifier class

* refactor .flag styles to be more BEM

* add BEM block-level class to h1

* refactor box__list to simply "list"

* It will be its own component rather than element of the "box" block

* Remove duplicate (older) thicc styles from _header.scss

* rename .title--thicc to .thicc-headline to be more consistent with other "headline" heading classes

* rename another .title--thicc -> .thicc-headline

* refactor CSS selector from adjacent to class

* refactor the whole header to separate grid layout and typography

* remove unneeded grid style

* it's not a grid item

* remove sub-headline typography from _header.scss and add it to _typography.scss

* remove horizontal margin from box below tablet size

* noticed that the .box class, which is already squished on 320px wide screens, is more squished because of its margins.

* allow headings to wrap if necessary

noticed that headings (e.g. "development and build") were blowing out the grid on small screens and causing horizontal scroll

* rename subtitle to "sub-headline"

* convert <section> to <header>

makes more semantic sense for a screen-reader, since this really is the header of the document.

* discard heading wrapper element in favour of having just the heading element

Co-authored-by: Oscar <ovlb@users.noreply.github.com>
2020-05-28 10:01:04 +02:00
Damien Cosset
7f68096ce0
🌐 Translations/fr fr (#81)
* added french translations ok-sign

* added gaslighting french translation

* translation gaslighting

* fix some typos

* added ableism traduction

* added ableism traduction

* fix some missing accents

* Improve CONTRIBUTING.md

* Add a Sass function to convert pixels to rems (resolve #67)

* Update CONTRIBUTING.md

Addressed comments

* Removed wrong link

* Update CONTRIBUTING.md

Add help info and fix style

* Update CONTRIBUTING.md

* Propose definition: biromantic

* Fix typo on the link text of Minoritized

*  Add funding

* Rename function, replace pixel usage with rem conversions

* added french translations ok-sign

* typo gaslighting

* added gaslighting french translation

* Move pxToRem to functions partial

* chore: set up ava

# Conflicts:
#	package-lock.json
#	package.json

* feat(filters): move permalink function into file, add test

# Conflicts:
#	.eleventy.js

* feat(eslint): install eslint && prettier config

* chore: move findExistingDefinition into own file

* feat(permalink): revert cherry-picked changes to structure

* chore: update package-lock with ava

* config(eslint): specify source type

* Issue #51: Updated definition of polyamory.

* translation gaslighting

* ✏️ Typo

* 🌈  Organise colors with vars only

* fix some typos

* added ableism traduction

* added ableism traduction

* ⚒️ Restructured Sass organisation (#83)

*  🌈  Organise colors with vars only

*   New file structure

* File restructuring

*  ⚒️ Fix build issue

* Rearranged files

*  Adding "hysterical" to the list (#90)

*  Add definition for hysteria

* ✏️ Crazy: A few alternatives: obnoxious, wild (#91)

* ⚙️ Add linting and CI infrastructure (#85)

* Add husky and lint-staged, run lint and test in precommit hook

* Add CI for test and lint

* Apply eslint fixes in precommit hook

* ⚙️ Add stylelint and base configuration (see #74) (#92)

* tooling: add stylelint and base configuration (see #74)

* Autofix with stylelint on commit

* 🚫  Ignore sass-cache

* 🐛 Fixed red flag splitting across two lines (#79)

* Fix red flag splitting across two lines

Added white-space: nowrap to .flag_red and added new properties to link within toc to compensate for nowrap.

* Reverting back to original state.

* Revisited line wrap issue.

Co-authored-by: Tatiana Mac <github@tatianamac.com>

* 📄 Add Detail Pages for Definitions (#75)

* fix: untrack definitions in dist

* feat(detail pages): update item link

* feat(detail pages): add layout

* feat(detail pages): render whole definition content

* feat(detail pages): remove definitons from homepage

* 🧹 def list component

* feat(layout): render site footer in all pages

* feat(detail pages): rename definition root class && move css into partials

* chore: abstract further css into own files

* feat(detail pages): update headling level of definition content

* feat(styles): set box sizing

* feat(styles): add margin bottom utility

* feat(styles): selection

* feat(components): sub page header own component

* feat(detail pages): add sections

* feat(style): mian headline

* feat(page layout): rename page content grid

* feat(page layout): add wide content class

* feat(detail pages): set document title

* feat(detail pages): set uniform document title for docs and definitions

* feat(page title): add comment

* feat(detail pages): add meta description

* feat(detail pages): wrap def header in article tag

* chore: set up ava

* feat(filters): move permalink function into file, add test

* chore: rename _temp to _util, remove creation script

* feat(detail pages): helper function to find additional definitions

* chore: move helpers to single directory

* feat(detail pages): create shortcode for further definition navigation

* feat(detail pages): fix find defs function

* feat(detail pages): shortcode for browse nav markup

* chore: fix collection mock data

* feat(detail pages): render browse nav

* feat(detail pages): style browse nav, style improvements

* feat(detail pages): test redirect

* feat(detail pages): client side redirect

* feat(homepage): set title

* 💅

* feat(detail pages): incorporate design changes

* feat(detail pages): hide browse headlines

* feat(detail pages): label lists

* feat(footer): add aria label

* feat(detail pages): redice heading level in md

* feat(detail pages): spacing in browse nav

* feat(detail pages): reduce line height

* feat(detail pages): set max width w/o breaking homepage

* feat(detail pages): replace in-definition definition links

* 🧹

* feat(detail pages): recover spacing utility

* 🧹

* chore(packages): update ava

* config: specify nvm version

* 💅

* 💅

* 🏡 eleventy@0.10.0 (#76)

* Add a Sass function to convert pixels to rems (resolve #67)

* chore(packages): eleventy@0.10.0

* Rename function, replace pixel usage with rem conversions

* typo gaslighting

* Move pxToRem to functions partial

* feat(eslint): install eslint && prettier config

* chore: move findExistingDefinition into own file

* chore: set up ava

# Conflicts:
#	package-lock.json
#	package.json

* feat(filters): move permalink function into file, add test

# Conflicts:
#	.eleventy.js

* feat(permalink): revert cherry-picked changes to structure

* chore: update package-lock with ava

* config(eslint): specify source type

* Issue #51: Updated definition of polyamory.

* ✏️ Typo

* 🌈  Organise colors with vars only

* ⚒️ Restructured Sass organisation (#83)

*  🌈  Organise colors with vars only

*   New file structure

* File restructuring

*  ⚒️ Fix build issue

* Rearranged files

*  Adding "hysterical" to the list (#90)

*  Add definition for hysteria

* ✏️ Crazy: A few alternatives: obnoxious, wild (#91)

* ⚙️ Add linting and CI infrastructure (#85)

* Add husky and lint-staged, run lint and test in precommit hook

* Add CI for test and lint

* Apply eslint fixes in precommit hook

* ⚙️ Add stylelint and base configuration (see #74) (#92)

* tooling: add stylelint and base configuration (see #74)

* Autofix with stylelint on commit

* 🚫  Ignore sass-cache

* 🐛 Fixed red flag splitting across two lines (#79)

* Fix red flag splitting across two lines

Added white-space: nowrap to .flag_red and added new properties to link within toc to compensate for nowrap.

* Reverting back to original state.

* Revisited line wrap issue.

Co-authored-by: Tatiana Mac <github@tatianamac.com>

* 📄 Add Detail Pages for Definitions (#75)

* fix: untrack definitions in dist

* feat(detail pages): update item link

* feat(detail pages): add layout

* feat(detail pages): render whole definition content

* feat(detail pages): remove definitons from homepage

* 🧹 def list component

* feat(layout): render site footer in all pages

* feat(detail pages): rename definition root class && move css into partials

* chore: abstract further css into own files

* feat(detail pages): update headling level of definition content

* feat(styles): set box sizing

* feat(styles): add margin bottom utility

* feat(styles): selection

* feat(components): sub page header own component

* feat(detail pages): add sections

* feat(style): mian headline

* feat(page layout): rename page content grid

* feat(page layout): add wide content class

* feat(detail pages): set document title

* feat(detail pages): set uniform document title for docs and definitions

* feat(page title): add comment

* feat(detail pages): add meta description

* feat(detail pages): wrap def header in article tag

* chore: set up ava

* feat(filters): move permalink function into file, add test

* chore: rename _temp to _util, remove creation script

* feat(detail pages): helper function to find additional definitions

* chore: move helpers to single directory

* feat(detail pages): create shortcode for further definition navigation

* feat(detail pages): fix find defs function

* feat(detail pages): shortcode for browse nav markup

* chore: fix collection mock data

* feat(detail pages): render browse nav

* feat(detail pages): style browse nav, style improvements

* feat(detail pages): test redirect

* feat(detail pages): client side redirect

* feat(homepage): set title

* 💅

* feat(detail pages): incorporate design changes

* feat(detail pages): hide browse headlines

* feat(detail pages): label lists

* feat(footer): add aria label

* feat(detail pages): redice heading level in md

* feat(detail pages): spacing in browse nav

* feat(detail pages): reduce line height

* feat(detail pages): set max width w/o breaking homepage

* feat(detail pages): replace in-definition definition links

* 🧹

* feat(detail pages): recover spacing utility

* 🧹

* chore(packages): update ava

* config: specify nvm version

* 💅

* 💅

* chore: update package-lock

* chore: specify engines

* chore: run lint and test before pushing

Co-authored-by: Ned Zimmerman <ned@bight.dev>
Co-authored-by: Damien Cosset <damcossetfreelance@gmail.com>
Co-authored-by: Tatiana Mac <github@tatianamac.com>
Co-authored-by: Alexis Watson <47117571+alexiswatson@users.noreply.github.com>
Co-authored-by: tatianamac <tatiana.t.mac@gmail.com>
Co-authored-by: Aaron Gustafson <aaron@easy-designs.net>
Co-authored-by: Michael Spellacy (Spell) <spell@spellacy.net>

* Updated "Ways to Help" section (#93)

* Updated Ways to Help section

* Update index.njk

* Update _grid.scss

* Update index.njk

Co-authored-by: Mekhnetsova, Ekaterina <ekaterina.mekhnetsova@intel.com>

* ⚒️ Add a `pageStyles` block to base template (#98)

* Import typekit fonts as link

* Declare pageStyles block in base template

* Uninstall prism-themes package

* 🖌️ fix order of rule set (#99)

Co-authored-by: Tatiana Mac <github@tatianamac.com>

*  Add dumb definition

*  Add dumb definition

*  Added Asian terms and subterms, Orientalism

*  Add definitions for Hispanic, Latino and Latinx (#89)

* Add definitions for Hispanic, Latino and Latinx

* Update hispanic, latino and latinx definitions to indicate their pan-ethnic connotations.

* 🎨 Enhance :focus style for a11y

* Adding link changes with text-decoration and background

* Update assets/css/base/_a.scss

Co-Authored-By: EJ Mason <eliasjmason@gmail.com>

* Add SCSS variable

Co-authored-by: Conlin Durbin <conlin@lessonly.com>
Co-authored-by: EJ Mason <eliasjmason@gmail.com>
Co-authored-by: Tatiana Mac <github@tatianamac.com>

* 🐛 Add headings, label lists, remove aria-labels for a11y (#109)

Co-authored-by: Tatiana Mac <github@tatianamac.com>

* 📎 Added financial contributors to the README (#107)

Co-authored-by: Tatiana Mac <github@tatianamac.com>

*  Add definition for tone-deaf (#112)

*  Added Asian terms and subterms, Orientalism

*  Add misia, update fatphobia

*  Add tone-deaf

* 🚩 Changed flag to medical appropriation

* 🐛 Fixed indentation issue, broke build

*  feat: add overrepresented majoirty (#115)

* ✏️ Add "shallow" as possible alternative for "dumb" (#113)

eg: This may sound shallow, but I'd really like my next job to have excellent food.

Co-authored-by: Tatiana Mac <github@tatianamac.com>

*  Add definition for overrepresented majority, underrepresented minority (#116)

*  Added Asian terms and subterms, Orientalism

* feat: add overrepresented majoirty

*   [DRAFT] Added overrepresented-majority

* Adding underrepresented minority

* 🐛 Fixes flag build issue

* Improve interlinking

* flag:

Co-authored-by: Tierney Cyren <hello@bnb.im>

* Fixes term link issue

* Flag update

* Fixes link issues

* Adds manual interlinking to minoritised

* fix some missing accents

* cisgenre + white fragility def

Co-authored-by: Ekaterina Mekhnetsova <outoftardis@users.noreply.github.com>
Co-authored-by: Ned Zimmerman <ned@bight.dev>
Co-authored-by: Dan <dan.abramov@gmail.com>
Co-authored-by: Nathanael CHERRIER <dev@nathanaelcherrier.com>
Co-authored-by: Tatiana Mac <github@tatianamac.com>
Co-authored-by: Oscar <o@ovl.design>
Co-authored-by: Alexis Watson <47117571+alexiswatson@users.noreply.github.com>
Co-authored-by: tatianamac <tatiana.t.mac@gmail.com>
Co-authored-by: Aaron Gustafson <aaron@easy-designs.net>
Co-authored-by: Michael Spellacy (Spell) <spell@spellacy.net>
Co-authored-by: Oscar <ovlb@users.noreply.github.com>
Co-authored-by: Mekhnetsova, Ekaterina <ekaterina.mekhnetsova@intel.com>
Co-authored-by: EJ Mason <eliasjmason@gmail.com>
Co-authored-by: Kevin Garcia <hello@kevingarcia.me>
Co-authored-by: Conlin Durbin <conlindurbin@protonmail.com>
Co-authored-by: Conlin Durbin <conlin@lessonly.com>
Co-authored-by: Sarah Higley <smhigley@users.noreply.github.com>
Co-authored-by: jess <jessachandler@gmail.com>
Co-authored-by: Tierney Cyren <accounts@bnb.im>
Co-authored-by: Sophie Alpert <git@sophiebits.com>
Co-authored-by: Tierney Cyren <hello@bnb.im>
2020-05-23 11:31:18 -07:00
Harsh Kapadia
daf0661b01
🐛 Fixed mobile view for home page (#124) (#127) 2020-05-11 15:30:32 -07:00
Tatiana Mac
878b474f32 ⚠️ Add flag design for content warning (#120)
* ⚠️ Add flag design for content warning

* Fix build error

* Lol fix build error

* Added terms
2020-05-09 20:13:45 -07:00
Sarah Higley
48ebe70b99
🐛 Add headings, label lists, remove aria-labels for a11y (#109)
Co-authored-by: Tatiana Mac <github@tatianamac.com>
2020-05-01 19:12:17 -07:00
Conlin Durbin
beb2f5db69
🎨 Enhance :focus style for a11y
* Adding link changes with text-decoration and background

* Update assets/css/base/_a.scss

Co-Authored-By: EJ Mason <eliasjmason@gmail.com>

* Add SCSS variable

Co-authored-by: Conlin Durbin <conlin@lessonly.com>
Co-authored-by: EJ Mason <eliasjmason@gmail.com>
Co-authored-by: Tatiana Mac <github@tatianamac.com>
2020-05-01 19:06:27 -07:00
EJ Mason
6fa24fa1dc
🖌️ fix order of rule set (#99)
Co-authored-by: Tatiana Mac <github@tatianamac.com>
2020-03-19 16:28:22 -07:00
EJ Mason
fa5ce187f0
⚒️ Add a pageStyles block to base template (#98)
* Import typekit fonts as link

* Declare pageStyles block in base template

* Uninstall prism-themes package
2020-03-19 16:20:47 -07:00
Ekaterina Mekhnetsova
c39fbd7af6
Updated "Ways to Help" section (#93)
* Updated Ways to Help section

* Update index.njk

* Update _grid.scss

* Update index.njk

Co-authored-by: Mekhnetsova, Ekaterina <ekaterina.mekhnetsova@intel.com>
2020-03-17 15:12:59 -07:00
Oscar
bd88c18fd0
📄 Add Detail Pages for Definitions (#75)
* fix: untrack definitions in dist

* feat(detail pages): update item link

* feat(detail pages): add layout

* feat(detail pages): render whole definition content

* feat(detail pages): remove definitons from homepage

* 🧹 def list component

* feat(layout): render site footer in all pages

* feat(detail pages): rename definition root class && move css into partials

* chore: abstract further css into own files

* feat(detail pages): update headling level of definition content

* feat(styles): set box sizing

* feat(styles): add margin bottom utility

* feat(styles): selection

* feat(components): sub page header own component

* feat(detail pages): add sections

* feat(style): mian headline

* feat(page layout): rename page content grid

* feat(page layout): add wide content class

* feat(detail pages): set document title

* feat(detail pages): set uniform document title for docs and definitions

* feat(page title): add comment

* feat(detail pages): add meta description

* feat(detail pages): wrap def header in article tag

* chore: set up ava

* feat(filters): move permalink function into file, add test

* chore: rename _temp to _util, remove creation script

* feat(detail pages): helper function to find additional definitions

* chore: move helpers to single directory

* feat(detail pages): create shortcode for further definition navigation

* feat(detail pages): fix find defs function

* feat(detail pages): shortcode for browse nav markup

* chore: fix collection mock data

* feat(detail pages): render browse nav

* feat(detail pages): style browse nav, style improvements

* feat(detail pages): test redirect

* feat(detail pages): client side redirect

* feat(homepage): set title

* 💅

* feat(detail pages): incorporate design changes

* feat(detail pages): hide browse headlines

* feat(detail pages): label lists

* feat(footer): add aria label

* feat(detail pages): redice heading level in md

* feat(detail pages): spacing in browse nav

* feat(detail pages): reduce line height

* feat(detail pages): set max width w/o breaking homepage

* feat(detail pages): replace in-definition definition links

* 🧹

* feat(detail pages): recover spacing utility

* 🧹

* chore(packages): update ava

* config: specify nvm version

* 💅

* 💅
2020-03-09 15:47:06 -07:00
Michael Spellacy (Spell)
6050307a78
🐛 Fixed red flag splitting across two lines (#79)
* Fix red flag splitting across two lines

Added white-space: nowrap to .flag_red and added new properties to link within toc to compensate for nowrap.

* Reverting back to original state.

* Revisited line wrap issue.

Co-authored-by: Tatiana Mac <github@tatianamac.com>
2020-03-08 12:50:47 -07:00
Ned Zimmerman
86713728a4
⚙️ Add stylelint and base configuration (see #74) (#92)
* tooling: add stylelint and base configuration (see #74)

* Autofix with stylelint on commit
2020-03-07 10:23:05 -08:00
tatianamac
eed2c96950 Merge conflict 2020-02-29 13:57:24 -08:00
Tatiana Mac
10843f2909
⚒️ Restructured Sass organisation (#83)
*  🌈  Organise colors with vars only

*   New file structure

* File restructuring

*  ⚒️ Fix build issue

* Rearranged files
2020-02-20 08:38:32 +11:00
tatianamac
228a119b30 🌈 Organise colors with vars only 2020-02-19 18:48:29 +11:00
Ned Zimmerman
7620d29d9d Move pxToRem to functions partial 2020-02-16 14:32:54 -07:00
Ned Zimmerman
1c1e82bdc6 Rename function, replace pixel usage with rem conversions 2020-02-16 12:14:24 -07:00
Ned Zimmerman
dd9d4a00e4 Add a Sass function to convert pixels to rems (resolve #67) 2020-02-12 05:51:52 -07:00
Tatiana Mac
b21367fb9b
Merge pull request #43 from ovlb/feature/fix-break-in-table-of-content
👩‍🎨 Avoid Breaks in Table of Content Items
2020-02-11 21:38:30 -08:00
Tatiana Mac
6384d2ad0b
Merge pull request #63 from AliLynne/master
🐛 Increase colour contrast of red
2020-02-11 21:30:39 -08:00
xavierbellhaddon
458bc4e5c1 Set color as focus indicator 2020-02-09 19:24:35 -08:00
AliLynne
98cf9873b9 increase contrast on avoid word-signal-color 2020-02-07 15:44:31 -08:00
Oscar
61508441c4 fix(table of content): use break-inside 2020-01-15 16:19:56 +01:00
Oscar
7a04c5fa6f chore: move mutli col into own file 2020-01-15 16:13:36 +01:00
Oscar
a0c65ee102 fix(table of content): avoid breaks inside of list items 2020-01-15 16:13:23 +01:00
Laura Kalbag
dc0d666eb6 Make thicc title heading scale according to viewport height.
But only once the browser is wide enough, and also cap the scaling height before the font gets too big!
2020-01-15 14:21:34 +00:00
Laura Kalbag
bb1469c2f3 Make title span two columns on viewports > 800px.
Also ensure following paragraph remains below title, as following the default grid behaviour, it would flow into adjacent column.
2020-01-15 12:57:40 +00:00
Oscar
5d26c51acf styles(table of content): use multi column layout 2019-11-29 17:45:38 +01:00
Oscar
ccdc3578be build: add assets folder 2019-11-22 12:30:55 +01:00