⚠️ Add flag design for content warning (#120)

* ⚠️ Add flag design for content warning

* Fix build error

* Lol fix build error

* Added terms
This commit is contained in:
Tatiana Mac 2020-05-09 19:31:20 -07:00 committed by tatianamac
parent e05ad44ae8
commit 878b474f32
36 changed files with 256 additions and 16 deletions

View File

@ -60,6 +60,13 @@ module.exports = function(config) {
class: 'tool', class: 'tool',
text: '' text: ''
} }
],
[
'warning',
{
class: 'warning',
text: 'Content warning'
}
] ]
]); ]);

View File

@ -5,6 +5,11 @@
definition.data.flag.text and definition.data.flag.text and
(definition.data.flag.level == 'avoid') -%} (definition.data.flag.level == 'avoid') -%}
<span class="flag__red">{{ definition.data.flag.text }}</span> <span class="flag__red">{{ definition.data.flag.text }}</span>
{%- elseif
definition.data.flag and
definition.data.flag.text and
(definition.data.flag.level == 'warning') -%}
<span class="flag__yellow">{{ definition.data.flag.text }}</span>
{% endif %} {% endif %}
{%- if definition.data.sub_terms -%} {%- if definition.data.sub_terms -%}
<ul class="sub-terms" role="list" aria-label="{{definition.data.title}}"> <ul class="sub-terms" role="list" aria-label="{{definition.data.title}}">

View File

@ -3,6 +3,14 @@ title: Ableism
slug: ableism slug: ableism
defined: true defined: true
speech: noun speech: noun
flag:
level: warning
text: content warning
reading:
- text: "Ableism 2020: An Updated Definition"
href: https://www.talilalewis.com/blog/ableism-2020-an-updated-definition
- text: "Longmore Lecture: Context, Clarity & Grounding"
href: https://www.talilalewis.com/blog/longmore-lecture-context-clarity-grounding
--- ---
a system that places value on peoples bodies and minds based on societally constructed ideas of normalcy, intelligence, excellence, and productivity. These constructed ideas are deeply rooted in anti-Blackness, eugenics, colonialism, and capitalism. a system that places value on peoples bodies and minds based on societally constructed ideas of normalcy, intelligence, excellence, and productivity. These constructed ideas are deeply rooted in anti-Blackness, eugenics, colonialism, and capitalism.
@ -11,9 +19,4 @@ a system that places value on peoples bodies and minds based on societally co
## Impact ## Impact
To paraphrase Lewis, ableism "leads to people and society determining who is valuable and worthy based on a persons appearance and/or their ability to [...] produce, excel, and 'behave.'" You do not have to be disabled to experience ableism, and Disabled people can also reinforce ableism internally (manifesting as harm to themselves) and externally (harm to other disabled people). To paraphrase Lewis, ableism "leads to people and society determining who is valuable and worthy based on a persons appearance and/or their ability to [...] produce, excel, and 'behave.'" You do not have to be disabled to experience ableism, and Disabled people can also reinforce ableism internally (manifesting as harm to themselves) and externally (harm to other disabled people).
## Further reading
- [Longmore Lecture: Context, Clarity & Grounding](https://www.talilalewis.com/blog/longmore-lecture-context-clarity-grounding)
- [Ableism 2020: An Updated Definition](https://www.talilalewis.com/blog/ableism-2020-an-updated-definition)

View File

@ -0,0 +1,8 @@
---
title: Ableist language
slug: ableist-language
defined: false
flag:
level: warning
text: content warning
---

View File

@ -0,0 +1,8 @@
---
title: Abuse
slug: abuse
defined: false
flag:
level: warning
text: content warning
---

View File

@ -0,0 +1,8 @@
---
title: alcoholism
slug: alcoholism
defined: false
flag:
level: warning
text: content warning
---

View File

@ -0,0 +1,8 @@
---
title: Bullying
slug: bullying
defined: false
flag:
level: warning
text: content warning
---

View File

@ -0,0 +1,8 @@
---
title: chilldhood trauma
slug: childhood-trauma
defined: false
flag:
level: warning
text: content warning
---

View File

@ -2,7 +2,7 @@
title: crazy title: crazy
slug: crazy slug: crazy
flag: flag:
text: 'Ableist Slur' text: 'Ableist language'
level: avoid level: avoid
defined: true defined: true
speech: noun speech: noun

View File

@ -0,0 +1,8 @@
---
title: Depression
slug: depression
defined: false
flag:
level: warning
text: content warning
---

View File

@ -4,6 +4,9 @@ slug: fatphobia
defined: true defined: true
speech: noun speech: noun
skip_in_table_of_content: true skip_in_table_of_content: true
flag:
level: warning
text: content warning
reading: reading:
- text: Sizeism and Fatphobia - text: Sizeism and Fatphobia
href: https://www.srhweek.ca/providers/people-and-communities/sizeism-and-fatphobia/ href: https://www.srhweek.ca/providers/people-and-communities/sizeism-and-fatphobia/

8
11ty/definitions/food.md Normal file
View File

@ -0,0 +1,8 @@
---
title: Food
slug: food
defined: false
flag:
level: warning
text: content warning
---

View File

@ -4,5 +4,5 @@ slug: maniac
defined: false defined: false
flag: flag:
level: avoid level: avoid
text: ableist slur text: ableist language
--- ---

View File

@ -0,0 +1,8 @@
---
title: Nudity
slug: nudity
defined: false
flag:
level: warning
text: content warning
---

View File

@ -0,0 +1,8 @@
---
title: pedophilia
slug: pedophilia
defined: false
flag:
level: warning
text: content warning
---

View File

@ -0,0 +1,8 @@
---
title: police brutality
slug: police-brutality
defined: false
flag:
level: warning
text: content warning
---

View File

@ -1,5 +1,8 @@
--- ---
title: Psych ableist slur title: Psych
slug: psych slug: psych
defined: false defined: false
flag:
level: avoid
text: ableist language
--- ---

View File

@ -2,4 +2,7 @@
title: Racism title: Racism
slug: racism slug: racism
defined: false defined: false
flag:
level: warning
text: content warning
--- ---

View File

@ -0,0 +1,8 @@
---
title: Racist language
slug: racist-language
defined: false
flag:
level: warning
text: content warning
---

8
11ty/definitions/rape.md Normal file
View File

@ -0,0 +1,8 @@
---
title: Rape
slug: rape
defined: false
flag:
level: warning
text: content warning
---

View File

@ -0,0 +1,8 @@
---
title: Self-harm
slug: self-harm
defined: false
flag:
level: warning
text: content warning
---

View File

@ -0,0 +1,8 @@
---
title: sexual assault
slug: sexual-assault
defined: false
flag:
level: warning
text: content warning
---

View File

@ -4,5 +4,5 @@ slug: stupid
defined: false defined: false
flag: flag:
level: avoid level: avoid
text: ableist slur text: ableist language
--- ---

View File

@ -0,0 +1,8 @@
---
title: Suicide
slug: suicide
defined: false
flag:
level: warning
text: content warning
---

View File

@ -0,0 +1,8 @@
---
title: transmisia
slug: transmisia
defined: false
flag:
level: warning
text: content warning
---

View File

@ -0,0 +1,8 @@
---
title: transphobia
slug: transphobia
defined: false
flag:
level: warning
text: content warning
---

View File

@ -0,0 +1,8 @@
---
title: trauma
slug: trauma
defined: false
flag:
level: warning
text: content warning
---

View File

@ -0,0 +1,8 @@
---
title: weight gain
slug: weight-gain
defined: false
flag:
level: warning
text: content warning
---

View File

@ -0,0 +1,8 @@
---
title: weight loss
slug: weight-loss
defined: false
flag:
level: warning
text: content warning
---

View File

@ -0,0 +1,8 @@
---
title: white feminism
slug: white-feminism
defined: false
flag:
level: warning
text: content warning
---

View File

@ -0,0 +1,8 @@
---
title: xenophobia
slug: xenophobia
defined: false
flag:
level: warning
text: content warning
---

View File

@ -2,6 +2,10 @@
content: '🚨'; content: '🚨';
} }
@mixin icon__warning() {
content: '⚠️';
}
@mixin icon__alt() { @mixin icon__alt() {
content: '👍'; content: '👍';
} }

View File

@ -3,6 +3,10 @@ $secondary-color: hsl(120, 100%, 25%);
$dark-red: hsl(0, 100%, 32.2%); $dark-red: hsl(0, 100%, 32.2%);
$pink: hsl(349.5, 100%, 87.6%); $pink: hsl(349.5, 100%, 87.6%);
$dark-green: hsl(120, 100%, 15%);
$yellow: hsl(50, 100%, 50%);
$dark-yellow: hsl(50, 100%, 20%);
$pale-yellow: hsl(50, 100%, 86%);
$black: hsl(0, 0%, 13%); $black: hsl(0, 0%, 13%);
$white: hsl(0, 0%, 100%); $white: hsl(0, 0%, 100%);
@ -13,4 +17,4 @@ $light-grey: hsl(0, 0%, 93.3%); // for backgrounds only
$browser-context: 16; $browser-context: 16;
$lt-background-color: $pink; $lt-background-color: $pink;
$lt-background-color-warning: $pale-yellow;

View File

@ -1,5 +1,5 @@
.flag__red { .flag__red {
background-color: rgb(255, 192, 203); background-color:$lt-background-color;
border-radius: 1rem; border-radius: 1rem;
display: inline-block; display: inline-block;
font-size: 0.9rem; font-size: 0.9rem;
@ -13,3 +13,19 @@
@include icon__embed(); @include icon__embed();
} }
} }
.flag__yellow {
background-color: $lt-background-color-warning;
border-radius: 1rem;
display: inline-block;
font-size: 0.9rem;
font-weight: bold;
margin: 0.5rem 0.75rem 0.25rem 0;
padding: 0.45rem 0.65rem;
text-transform: lowercase;
&:before {
@include icon__warning();
@include icon__embed();
}
}

View File

@ -74,7 +74,7 @@
text-transform: uppercase; text-transform: uppercase;
&--avoid { &--avoid {
--word-signal-color: #a40000; --word-signal-color: $dark-red;
&:before { &:before {
@include icon__avoid(); @include icon__avoid();
@ -83,7 +83,7 @@
} }
&--better { &--better {
--word-signal-color: green; --word-signal-color: $dark-green;
&:before { &:before {
@include icon__alt(); @include icon__alt();
@ -97,5 +97,12 @@
@include icon__hanging(); @include icon__hanging();
} }
} }
&--warning {
--word-signal-color: $dark-yellow;
&:before {
@include icon__warning();
@include icon__hanging();
}
}
} }
} }

View File

@ -81,7 +81,7 @@
text-transform: uppercase; text-transform: uppercase;
&--avoid { &--avoid {
--word-signal-color: #a40000; --word-signal-color: $dark-red;
&:before { &:before {
@include icon__avoid(); @include icon__avoid();
@ -90,7 +90,7 @@
} }
&--better { &--better {
--word-signal-color: green; --word-signal-color: $dark-green;
&:before { &:before {
@include icon__alt(); @include icon__alt();
@ -104,6 +104,15 @@
@include icon__hanging(); @include icon__hanging();
} }
} }
&--warning {
--word-signal-color: $dark-yellow;
&:before {
@include icon__warning();
@include icon__hanging();
}
}
} }
} }