diff --git a/CHANGELOG.md b/CHANGELOG.md index 332e3e2..c174c36 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## 0.1.0-beta.7 - 2019/10/9 + +- BREAKING: rename `[data-ccs="*-select"]` attributes + with nested form inputs to + `[data-ccs-field="*"]` and nested `[data-ccs-input="*"]` +- BREAKING: rename `[data-ccs="unset"]` to `[data-ccs-input="unset"]` +- BREAKING: rename `[data-ccs="invert"]` to `[data-ccs-input="mode"]` +- Use [Hipocratic License](https://firstdonoharm.dev/) +- Add root-level `_index.scss` for simpler Sass imports + ## 0.1.0-beta.6 - 2019/10/6 - More organized Sass files diff --git a/LICENSE b/LICENSE index d8f9339..7971634 100644 --- a/LICENSE +++ b/LICENSE @@ -1,21 +1,33 @@ -MIT License +Hippocratic License Copyright (c) 2019 Miriam Suzanne Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal +of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +* The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* The Software may not be used by individuals, corporations, governments, or + other groups for systems or activities that actively and knowingly endanger, + harm, or otherwise threaten the physical, mental, economic, or general + well-being of individuals or groups in violation of the United Nations + Universal Declaration of Human Rights + (https://www.un.org/en/universal-declaration-human-rights/). + + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +This license is derived from the MIT License, as amended to limit the impact +of the unethical use of open source software. + diff --git a/README.md b/README.md index 56ce660..612ded8 100644 --- a/README.md +++ b/README.md @@ -200,11 +200,6 @@ using the `[data-ccs-theme]` attribute: [data-ccs-theme='adjacent'] { /* adjacent logic */ } - -[data-ccs-theme='contrast'] { - --ccs-contrast: 200%; /* override all other contrast settings */ - --ccs-custom-contrast: none; /* hide [data-ccs="contrast-select"] */ -} ``` ### Sass Configuration @@ -273,18 +268,31 @@ We provide several hooks for the JS to use - `[data-ccs="menu"]`: if you hide the settings by default, we'll show them when the JS is available -- `[data-ccs="invert"]`: +- `[data-ccs-input="mode"]`: a button to toggle light/dark modes -- `[data-ccs="unset"]`: +- `[data-ccs-input="unset"]`: a button to unset all user preferences and clear related local storage -- `[data-ccs="theme-select"] select`: +- `[data-ccs-input="theme"]`: Allow users to select from available `theme` options -- `[data-ccs="hue-select"] input`: +- `[data-ccs-input="hue"]`: Allow users to change the primary hue -- `[data-ccs="saturation-select"] input`: +- `[data-ccs-input="saturation"]`: Allow users to adjust the baseline saturation -- `[data-ccs="lightness-select"] input`: +- `[data-ccs-input="lightness"]`: Allow users to adjust the baseline lightness -- `[data-ccs="contrast-select"] input`: +- `[data-ccs-input="contrast"]`: Allow users to adjust the contrast range + +Themes can also use the `[data-ccs-field]` on wrappers, +to show and hide inputs/labels directly in the CSS +based on a given theme. +For example, a high-contrast theme +might not accept `contrast` input: + +```scss +[data-ccs-theme='contrast'] { + --ccs-contrast: 200%; /* override all other contrast settings */ + --ccs-custom-contrast: none; /* hide [data-ccs-field="contrast"] */ +} +``` diff --git a/_index.scss b/_index.scss new file mode 100644 index 0000000..459235e --- /dev/null +++ b/_index.scss @@ -0,0 +1 @@ +@forward 'sass/ccs'; diff --git a/css/ccs.css b/css/ccs.css index 5abb726..2c7c946 100644 --- a/css/ccs.css +++ b/css/ccs.css @@ -150,19 +150,23 @@ --ccs-custom-contrast: none; } -[data-ccs=hue-select] { +[data-ccs-field=hue] { display: var(--ccs-custom-hue, block); } -[data-ccs=lightness-select] { +[data-ccs-field=hue] { + display: var(--ccs-custom-hue, block); +} + +[data-ccs-field=lightness] { display: var(--ccs-custom-lightness, block); } -[data-ccs=saturation-select] { +[data-ccs-field=saturation] { display: var(--ccs-custom-saturation, block); } -[data-ccs=contrast-select] { +[data-ccs-field=contrast] { display: var(--ccs-custom-contrast, block); } diff --git a/css/ccs.css.map b/css/ccs.css.map index 14e8543..9f33c51 100644 --- a/css/ccs.css.map +++ b/css/ccs.css.map @@ -1 +1 @@ -{"version":3,"sourceRoot":"","sources":["../sass/partials/_build.scss","../sass/partials/_palettes.scss","../sass/partials/_root.scss","../sass/config/_colors.scss","../sass/partials/_colors.scss","../sass/partials/_modes.scss","../sass/partials/_themes.scss","../sass/partials/_menu.scss"],"names":[],"mappings":"AAIE;EC+BA;EAqBE;EACA;EAGA;EACA;EAaE;EACA;EADA;EACA;EADA;EACA;EAnBF;EACA;EAGA;EACA;EAaE;EACA;EADA;EACA;EADA;EACA;EAnBF;EACA;EAGA;EACA;EAaE;EACA;EADA;EACA;EADA;EACA;EAnBF;EACA;EAGA;EACA;EAaE;EACA;EADA;EACA;EADA;EACA;;;AC3DN;EA2BE;EAGA,YCgFe;ED/Ef,OC8Dc;;AD5Dd;EAjCF;IAkCI;IACA,YC0DY;IDzDZ,OC0Ea;;;;AC9HjB;EAEE;EACA;EACA;EAGA;EACA;EAGA;EACA;EACA;EACA;EAGA;EACA;EACA;EACA;EAGA;EACA;EACA;EAGA;EACA;EAGE;AAAA;AAAA;AAAA;AAAA;EAKA;AAAA;AAAA;AAAA;AAAA;EAKA;AAAA;AAAA;AAAA;AAAA;EAVA;AAAA;AAAA;AAAA;AAAA;EAKA;AAAA;AAAA;AAAA;AAAA;EAKA;AAAA;AAAA;AAAA;AAAA;EAVA;AAAA;AAAA;AAAA;AAAA;EAKA;AAAA;AAAA;AAAA;AAAA;EAKA;AAAA;AAAA;AAAA;AAAA;;;AC1CJ;EACE;;;AAGF;EACE;;;AAGF;EACE;;;ACTF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;;;ACdF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE","file":"ccs.css"} \ No newline at end of file +{"version":3,"sourceRoot":"","sources":["../sass/partials/_build.scss","../sass/partials/_palettes.scss","../sass/partials/_root.scss","../sass/config/_colors.scss","../sass/partials/_colors.scss","../sass/partials/_modes.scss","../sass/partials/_themes.scss","../sass/partials/_menu.scss"],"names":[],"mappings":"AAIE;EC+BA;EAqBE;EACA;EAGA;EACA;EAaE;EACA;EADA;EACA;EADA;EACA;EAnBF;EACA;EAGA;EACA;EAaE;EACA;EADA;EACA;EADA;EACA;EAnBF;EACA;EAGA;EACA;EAaE;EACA;EADA;EACA;EADA;EACA;EAnBF;EACA;EAGA;EACA;EAaE;EACA;EADA;EACA;EADA;EACA;;;AC3DN;EA2BE;EAGA,YCgFe;ED/Ef,OC8Dc;;AD5Dd;EAjCF;IAkCI;IACA,YC0DY;IDzDZ,OC0Ea;;;;AC9HjB;EAEE;EACA;EACA;EAGA;EACA;EAGA;EACA;EACA;EACA;EAGA;EACA;EACA;EACA;EAGA;EACA;EACA;EAGA;EACA;EAGE;AAAA;AAAA;AAAA;AAAA;EAKA;AAAA;AAAA;AAAA;AAAA;EAKA;AAAA;AAAA;AAAA;AAAA;EAVA;AAAA;AAAA;AAAA;AAAA;EAKA;AAAA;AAAA;AAAA;AAAA;EAKA;AAAA;AAAA;AAAA;AAAA;EAVA;AAAA;AAAA;AAAA;AAAA;EAKA;AAAA;AAAA;AAAA;AAAA;EAKA;AAAA;AAAA;AAAA;AAAA;;;AC1CJ;EACE;;;AAGF;EACE;;;AAGF;EACE;;;ACTF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;;;ACdF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE","file":"ccs.css"} \ No newline at end of file diff --git a/dist.js b/dist.js index bdd83cd..767d5cb 100644 --- a/dist.js +++ b/dist.js @@ -22,15 +22,15 @@ // elements const root = document.querySelector('[data-ccs="root"]'); const themeMenu = document.querySelector('[data-ccs="menu"]'); - const modeToggle = document.querySelector('[data-ccs="invert"]'); - const unsetBtn = document.querySelector('[data-ccs="unset"]'); // elements + const modeToggle = document.querySelector('[data-ccs-input="mode"]'); + const unsetBtn = document.querySelector('[data-ccs-input="unset"]'); // elements const selectElements = { - theme: document.querySelector('[data-ccs="theme-select"] select'), - hue: document.querySelector('[data-ccs="hue-select"] input'), - sat: document.querySelector('[data-ccs="saturation-select"] input'), - light: document.querySelector('[data-ccs="lightness-select"] input'), - contrast: document.querySelector('[data-ccs="contrast-select"] input') + theme: document.querySelector('[data-ccs-input="theme"]'), + hue: document.querySelector('[data-ccs-input="hue"]'), + sat: document.querySelector('[data-ccs-input="saturation"]'), + light: document.querySelector('[data-ccs-input="lightness"]'), + contrast: document.querySelector('[data-ccs-input="contrast"]') }; // attributes const attrs = { diff --git a/index.html b/index.html index 5c0086b..8f4abe9 100644 --- a/index.html +++ b/index.html @@ -35,12 +35,12 @@

Cascading Color S diff --git a/index.js b/index.js index a6df80c..87cbdf5 100644 --- a/index.js +++ b/index.js @@ -2,16 +2,16 @@ export default function () { // elements const root = document.querySelector('[data-ccs="root"]'); const themeMenu = document.querySelector('[data-ccs="menu"]'); - const modeToggle = document.querySelector('[data-ccs="invert"]'); - const unsetBtn = document.querySelector('[data-ccs="unset"]'); + const modeToggle = document.querySelector('[data-ccs-input="mode"]'); + const unsetBtn = document.querySelector('[data-ccs-input="unset"]'); // elements const selectElements = { - theme: document.querySelector('[data-ccs="theme-select"] select'), - hue: document.querySelector('[data-ccs="hue-select"] input'), - sat: document.querySelector('[data-ccs="saturation-select"] input'), - light: document.querySelector('[data-ccs="lightness-select"] input'), - contrast: document.querySelector('[data-ccs="contrast-select"] input'), + theme: document.querySelector('[data-ccs-input="theme"]'), + hue: document.querySelector('[data-ccs-input="hue"]'), + sat: document.querySelector('[data-ccs-input="saturation"]'), + light: document.querySelector('[data-ccs-input="lightness"]'), + contrast: document.querySelector('[data-ccs-input="contrast"]'), }; // attributes diff --git a/package.json b/package.json index d7af5f3..5412c15 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cascading-color-systems", - "version": "0.1.0-beta.6", + "version": "0.1.0-beta.7", "description": "generate dynamic color palettes with custom properties", "main": "dist.js", "module": "index.js", @@ -10,7 +10,7 @@ "contributors": [ "Jonny Gerig Meyer " ], - "license": "MIT", + "license": "MIT Hippocratic", "devDependencies": { "@babel/cli": "^7.6.2", "@babel/core": "^7.6.2", @@ -27,7 +27,7 @@ "build-site": "sass site/sass/styles.scss site/css/styles.css", "build": "yarn build-sass && yarn build-docs && yarn build-js && yarn build-site", "commit": "yarn build", - "watch": "sass --watch site/sass/* site/css/*" + "watch": "sass --watch site/sass/:site/css/" }, "files": [ "css/**/*.css", diff --git a/sass/partials/_menu.scss b/sass/partials/_menu.scss index 49bf8b3..8cdd646 100644 --- a/sass/partials/_menu.scss +++ b/sass/partials/_menu.scss @@ -1,15 +1,19 @@ -[data-ccs='hue-select'] { +[data-ccs-field='hue'] { display: var(--ccs-custom-hue, block); } -[data-ccs='lightness-select'] { +[data-ccs-field='hue'] { + display: var(--ccs-custom-hue, block); +} + +[data-ccs-field='lightness'] { display: var(--ccs-custom-lightness, block); } -[data-ccs='saturation-select'] { +[data-ccs-field='saturation'] { display: var(--ccs-custom-saturation, block); } -[data-ccs='contrast-select'] { +[data-ccs-field='contrast'] { display: var(--ccs-custom-contrast, block); } diff --git a/site/css/styles.css b/site/css/styles.css index 5d25a20..de2fbfd 100644 --- a/site/css/styles.css +++ b/site/css/styles.css @@ -444,19 +444,23 @@ category: legacy browsers --ccs-custom-contrast: none; } -[data-ccs=hue-select] { +[data-ccs-field=hue] { display: var(--ccs-custom-hue, block); } -[data-ccs=lightness-select] { +[data-ccs-field=hue] { + display: var(--ccs-custom-hue, block); +} + +[data-ccs-field=lightness] { display: var(--ccs-custom-lightness, block); } -[data-ccs=saturation-select] { +[data-ccs-field=saturation] { display: var(--ccs-custom-saturation, block); } -[data-ccs=contrast-select] { +[data-ccs-field=contrast] { display: var(--ccs-custom-contrast, block); } @@ -510,7 +514,7 @@ button:active { box-shadow: 2px 2px 0 var(--ccs-prime--bg4) inset; } -[data-field] { +[data-ccs-field] { display: block; } @@ -591,49 +595,49 @@ select { cursor: pointer; } -[id=ccs-hue-select]::-webkit-slider-runnable-track { +[id=hue]::-webkit-slider-runnable-track { background: linear-gradient(to right, #b83014, #b84b14, #b86614, #b88114, #b89c14, #b8b814, #9cb814, #81b814, #66b814, #4bb814, #30b814, #14b814, #14b830, #14b84b, #14b866, #14b881, #14b89c, #14b8b8, #149cb8, #1481b8, #1466b8, #144bb8, #1430b8, #1414b8, #3014b8, #4b14b8, #6614b8, #8114b8, #9c14b8, #b814b8, #b8149c, #b81481, #b81466, #b8144b, #b81430, #b81414); } -[id=ccs-hue-select]::-moz-range-track { +[id=hue]::-moz-range-track { background: linear-gradient(to right, #b83014, #b84b14, #b86614, #b88114, #b89c14, #b8b814, #9cb814, #81b814, #66b814, #4bb814, #30b814, #14b814, #14b830, #14b84b, #14b866, #14b881, #14b89c, #14b8b8, #149cb8, #1481b8, #1466b8, #144bb8, #1430b8, #1414b8, #3014b8, #4b14b8, #6614b8, #8114b8, #9c14b8, #b814b8, #b8149c, #b81481, #b81466, #b8144b, #b81430, #b81414); } -[id=ccs-hue-select]::-ms-track { +[id=hue]::-ms-track { background: linear-gradient(to right, #b83014, #b84b14, #b86614, #b88114, #b89c14, #b8b814, #9cb814, #81b814, #66b814, #4bb814, #30b814, #14b814, #14b830, #14b84b, #14b866, #14b881, #14b89c, #14b8b8, #149cb8, #1481b8, #1466b8, #144bb8, #1430b8, #1414b8, #3014b8, #4b14b8, #6614b8, #8114b8, #9c14b8, #b814b8, #b8149c, #b81481, #b81466, #b8144b, #b81430, #b81414); } -[id=ccs-lightness-select]::-webkit-slider-runnable-track { +[id=lightness]::-webkit-slider-runnable-track { background: linear-gradient(to right, #404040, silver); } -[id=ccs-lightness-select]::-moz-range-track { +[id=lightness]::-moz-range-track { background: linear-gradient(to right, #404040, silver); } -[id=ccs-lightness-select]::-ms-track { +[id=lightness]::-ms-track { background: linear-gradient(to right, #404040, silver); } -[id=ccs-saturation-select]::-webkit-slider-runnable-track { +[id=saturation]::-webkit-slider-runnable-track { background-image: linear-gradient(to right, hsl(var(--ccs-h--prime, 0), 0.1%, var(--ccs-l, 50%)), hsl(var(--ccs-h--prime, 0), 100%, var(--ccs-l, 50%))); } -[id=ccs-saturation-select]::-moz-range-track { +[id=saturation]::-moz-range-track { background-image: linear-gradient(to right, hsl(var(--ccs-h--prime, 0), 0.1%, var(--ccs-l, 50%)), hsl(var(--ccs-h--prime, 0), 100%, var(--ccs-l, 50%))); } -[id=ccs-saturation-select]::-ms-track { +[id=saturation]::-ms-track { background-image: linear-gradient(to right, hsl(var(--ccs-h--prime, 0), 0.1%, var(--ccs-l, 50%)), hsl(var(--ccs-h--prime, 0), 100%, var(--ccs-l, 50%))); } -[id=ccs-contrast-select]::-webkit-slider-runnable-track { +[id=contrast]::-webkit-slider-runnable-track { background: linear-gradient(to right, gray, white), linear-gradient(to right, gray, black); background-size: 100% 50%, 100% 100%; background-position: top left, bottom left; background-repeat: no-repeat; } -[id=ccs-contrast-select]::-moz-range-track { +[id=contrast]::-moz-range-track { background: linear-gradient(to right, gray, white), linear-gradient(to right, gray, black); background-size: 100% 50%, 100% 100%; background-position: top left, bottom left; background-repeat: no-repeat; } -[id=ccs-contrast-select]::-ms-track { +[id=contrast]::-ms-track { background: linear-gradient(to right, gray, white), linear-gradient(to right, gray, black); background-size: 100% 50%, 100% 100%; background-position: top left, bottom left; diff --git a/site/css/styles.css.map b/site/css/styles.css.map index 8298fa1..f225fbb 100644 --- a/site/css/styles.css.map +++ b/site/css/styles.css.map @@ -1 +1 @@ -{"version":3,"sourceRoot":"","sources":["../../node_modules/cssremedy/css/remedy.css","../../sass/partials/_build.scss","../../sass/partials/_palettes.scss","../../sass/partials/_root.scss","../../sass/config/_colors.scss","../../sass/partials/_colors.scss","../../sass/partials/_modes.scss","../../sass/partials/_themes.scss","../../sass/partials/_menu.scss","../sass/_theme.scss","../sass/_menu.scss","../sass/_palette.scss","../sass/styles.scss"],"names":[],"mappings":"AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;AAYA;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAQA;EAAuB;;;AAGvB;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAYA;EAAO;;;AAGP;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAQA;EAAO;;;AAGP;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAQA;EAAK;;;AACL;EAAK;;;AACL;EAAK;;;AACL;EAAK;;;AACL;EAAK;;;AACL;EAAK;;;AAGL;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAQA;EAAK;;;AAGL;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAQA;EAAM;;;AAGN;AAAA;;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAUA;EACE;EACA;EACA;EACA;EACA;;;AAIF;AAAA;;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAUA;EACE;EACA;EACA;;;AAIF;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAWA;EACE;;;AAIF;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;AASA;EAAQ;;;AAGR;AAAA;;AAAA;AAAA;;AAAA;AAAA;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;AAAA;AAAA;AAAA;AAAA;EAKA;AAAA;AAAA;AAAA;AAAA;;;AC1CJ;EACE;;;AAGF;EACE;;;AAGF;EACE;;;ACTF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;;;ACdF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;ACTF;EACE;EACA;EACA;EACA;;;AAMF;EACE;;AAEA;EAEE;EACA;EACA;EACA;;AAGF;EAGE;EACA;;;AC7BJ;EACE;EACA;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;;AAEA;EAEE;;AAGF;EACE;;;AAIJ;EACE;;;AAGF;EACE;EACA;EACA;;;AAGF;AAAA;EAEE;;;AAGF;EACE;EACA;EACA;;;AAqCF;EACE;EACA;EACA;EACA;EACA;;AAnCA;EAsCE;EACA;EACA;EACA;EACA;EACA;;AAxCF;EAmCE;EACA;EACA;EACA;EACA;EACA;;AArCF;EAgCE;EACA;EACA;EACA;EACA;EACA;;AA/BF;EACE;EAkCA;EACA;EACA;EACA;EACA;EACA;EACA;;AArCF;EA+BE;EACA;EACA;EACA;EACA;EACA;EACA;;AAlCF;EA4BE;EACA;EACA;EACA;EACA;EACA;EACA;;;AArDF;EA2DE;;AAxDF;EAwDE;;AArDF;EAqDE;;;AA3DF;EAiEE;;AA9DF;EA8DE;;AA3DF;EA2DE;;;AAjEF;EAwEE;;AArEF;EAqEE;;AAlEF;EAkEE;;;AAxEF;EAkFE;EAEA;EACA;EACA;;AAnFF;EA+EE;EAEA;EACA;EACA;;AAhFF;EA4EE;EAEA;EACA;EACA;;;AC7IJ;EACE;EAaA;EACA;EACA;EACA;;AAEA;EACE;EACA;;;AAQJ;EACE;EACA;EACA;EACA;;;AC3BF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA","file":"styles.css"} \ No newline at end of file +{"version":3,"sourceRoot":"","sources":["../../node_modules/cssremedy/css/remedy.css","../../sass/partials/_build.scss","../../sass/partials/_palettes.scss","../../sass/partials/_root.scss","../../sass/config/_colors.scss","../../sass/partials/_colors.scss","../../sass/partials/_modes.scss","../../sass/partials/_themes.scss","../../sass/partials/_menu.scss","../sass/_theme.scss","../sass/_menu.scss","../sass/_palette.scss","../sass/styles.scss"],"names":[],"mappings":"AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;AAYA;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAQA;EAAuB;;;AAGvB;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAYA;EAAO;;;AAGP;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAQA;EAAO;;;AAGP;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAQA;EAAK;;;AACL;EAAK;;;AACL;EAAK;;;AACL;EAAK;;;AACL;EAAK;;;AACL;EAAK;;;AAGL;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAQA;EAAK;;;AAGL;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAQA;EAAM;;;AAGN;AAAA;;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAUA;EACE;EACA;EACA;EACA;EACA;;;AAIF;AAAA;;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAUA;EACE;EACA;EACA;;;AAIF;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAWA;EACE;;;AAIF;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;AASA;EAAQ;;;AAGR;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAQA;EAAM;;;AAGN;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAQA;EAAM;;;AAGN;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAQA;EACE;;;AAIF;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;AASA;AAAA;EAEE;EACA;;;AClMA;EC+BA;EAKE;EACA;EAGE;EACA;EACA;EAFA;EACA;EACA;EA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ACA;;;AAMF;EACE;;AAEA;EAEE;EACA;EACA;EACA;;AAGF;EAGE;EACA;;;AC7BJ;EACE;EACA;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;;AAEA;EAEE;;AAGF;EACE;;;AAIJ;EACE;;;AAGF;EACE;EACA;EACA;;;AAGF;AAAA;EAEE;;;AAGF;EACE;EACA;EACA;;;AAqCF;EACE;EACA;EACA;EACA;EACA;;AAnCA;EAsCE;EACA;EACA;EACA;EACA;EACA;;AAxCF;EAmCE;EACA;EACA;EACA;EACA;EACA;;AArCF;EAgCE;EACA;EACA;EACA;EACA;EACA;;AA/BF;EACE;EAkCA;EACA;EACA;EACA;EACA;EACA;EACA;;AArCF;EA+BE;EACA;EACA;EACA;EACA;EACA;EACA;;AAlCF;EA4BE;EACA;EACA;EACA;EACA;EACA;EACA;;;AArDF;EA2DE;;AAxDF;EAwDE;;AArDF;EAqDE;;;AA3DF;EAiEE;;AA9DF;EA8DE;;AA3DF;EA2DE;;;AAjEF;EAwEE;;AArEF;EAqEE;;AAlEF;EAkEE;;;AAxEF;EAkFE;EAEA;EACA;EACA;;AAnFF;EA+EE;EAEA;EACA;EACA;;AAhFF;EA4EE;EAEA;EACA;EACA;;;AC7IJ;EACE;EAaA;EACA;EACA;EACA;;AAEA;EACE;EACA;;;AAQJ;EACE;EACA;EACA;EACA;;;AC3BF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA","file":"styles.css"} \ No newline at end of file diff --git a/site/sass/_ccs.scss b/site/sass/_ccs.scss index ed907fc..5b73f97 100644 --- a/site/sass/_ccs.scss +++ b/site/sass/_ccs.scss @@ -1,4 +1,4 @@ -@use '../../sass/ccs' with ( +@use '../../_index.scss' with ( $fade-background: 10%, $steps: 6, $fades: 0.9, diff --git a/site/sass/_menu.scss b/site/sass/_menu.scss index 8ba389b..b6c43a8 100644 --- a/site/sass/_menu.scss +++ b/site/sass/_menu.scss @@ -31,7 +31,7 @@ button { } } -[data-field] { +[data-ccs-field] { display: block; } @@ -113,19 +113,19 @@ $rainbow: (); } } -[id='ccs-hue-select'] { +[id='hue'] { @include range-track { background: linear-gradient(to right, $rainbow); } } -[id='ccs-lightness-select'] { +[id='lightness'] { @include range-track { background: linear-gradient(to right, hsl(0, 0%, 25%), silver); } } -[id='ccs-saturation-select'] { +[id='saturation'] { // 0.1% so that units aren't removed in minification @include range-track { background-image: linear-gradient( @@ -136,7 +136,7 @@ $rainbow: (); } } -[id='ccs-contrast-select'] { +[id='contrast'] { @include range-track { background: linear-gradient(to right, gray, white), linear-gradient(to right, gray, black);