From d18d1face141aa049ff41978d740e07c0e3eb826 Mon Sep 17 00:00:00 2001 From: Adam Laki Date: Thu, 30 Dec 2021 19:26:43 +0100 Subject: [PATCH] Fix $foreground typo at btn-variant() mixin (_button.scss) --- CHANGELOG.md | 4 ++++ css/spruce.css | 8 ++++++-- css/spruce.min.css | 2 +- package.json | 2 +- scss/mixin/_button.scss | 8 ++++---- 5 files changed, 16 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 84670ed..3bb2bef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## v0.1.2 (2020-12-30) + +- Fix $foreground typo at btn-variant() mixin (_button.scss) + ## v0.1.1 (2020-12-30) - Add Autoprefixer to CSS compile diff --git a/css/spruce.css b/css/spruce.css index f088a69..7b2671c 100644 --- a/css/spruce.css +++ b/css/spruce.css @@ -654,7 +654,7 @@ html[dir=rtl] .form-control--invalid { .form-group--vertical-check { display: flex; flex-direction: column; - align-items: flex-start; + align-items: start; } .form-group--vertical-check > * { margin-bottom: 0; @@ -673,7 +673,7 @@ html[dir=rtl] .form-control--invalid { --col-width: 20ch; display: flex; flex-wrap: wrap; - gap: 1.5rem; + gap: 1rem; } .form-row--mixed > * { flex: 1 1 var(--col-width); @@ -918,6 +918,10 @@ ul li, ol li { list-style-position: outside; } +ul li::marker, +ol li::marker { + color: var(--spruce-base-color-primary, #8660cd); +} li > ul, li > ol { diff --git a/css/spruce.min.css b/css/spruce.min.css index cbd2471..dc96189 100644 --- a/css/spruce.min.css +++ b/css/spruce.min.css @@ -1 +1 @@ -/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}:root{--spruce-base-color-primary: #8660cd;--spruce-base-color-secondary: #ffc2cc;--spruce-base-color-background: white;--spruce-base-color-heading: #00060a;--spruce-base-color-text: #474d52;--spruce-base-color-link: #8660cd;--spruce-base-color-link-hover: #4b2b88;--spruce-base-color-border: #e6e6e6;--spruce-base-color-mark-background: #ffee99;--spruce-base-color-mark-color: #00060a;--spruce-base-color-code-background: #f0ecf9;--spruce-base-color-code-color: #00060a;--spruce-base-color-blockquote-border: #8660cd;--spruce-alert-color-danger: #dc3832;--spruce-alert-color-info: #0078bd;--spruce-alert-color-success: #14855f;--spruce-alert-color-warning: #a06c03;--spruce-btn-color-primary-background: #8660cd;--spruce-btn-color-primary-background-hover: #56319b;--spruce-btn-color-primary-foreground: white;--spruce-btn-color-secondary-background: #ffc2cc;--spruce-btn-color-secondary-background-hover: #ffd6dd;--spruce-btn-color-secondary-foreground: #660011;--spruce-form-color-background: white;--spruce-form-color-background-disabled: #f2f2f2;--spruce-form-color-border: #e6e6e6;--spruce-form-color-border-disabled: #e6e6e6;--spruce-form-color-border-focus: #8660cd;--spruce-form-color-check-foreground: white;--spruce-form-color-check-background: #8660cd;--spruce-form-color-label: #00060a;--spruce-form-color-legend: #00060a;--spruce-form-color-placeholder: #5f666d;--spruce-form-color-text: #474d52;--spruce-form-color-select-foreground: #8660cd;--spruce-table-color-border: #e6e6e6;--spruce-table-color-hover: rgba(0, 0, 0, 0.05);--spruce-table-color-stripe: rgba(0, 0, 0, 0.025);--spruce-transition-duration: 0.15s;--spruce-transition-timing-function: ease-in-out}@media(prefers-reduced-motion: reduce){:root{--spruce-transition-duration: 0}}.sr-only{border:0 !important;clip:rect(0, 0, 0, 0) !important;height:1px !important;margin:-1px !important;overflow:hidden !important;padding:0 !important;position:absolute !important;white-space:nowrap !important;width:1px !important}::-moz-selection{background-color:var(--spruce-base-color-primary, #8660cd);color:#fff;text-shadow:none}::selection{background-color:var(--spruce-base-color-primary, #8660cd);color:#fff;text-shadow:none}html{box-sizing:border-box}@media(prefers-reduced-motion: no-preference){html{scroll-behavior:smooth}}*,::before,::after{box-sizing:inherit}body{background:var(--spruce-base-color-background, white);color:var(--spruce-base-color-text, #474d52)}a{color:var(--spruce-base-color-link, #8660cd);text-decoration:underline;transition:color var(--spruce-transition-duration) var(--spruce-transition-timing-function)}a:hover{color:var(--spruce-base-color-link-hover, #4b2b88)}button{color:inherit}a,button{touch-action:manipulation}hr{border:0;border-top:1px solid var(--spruce-base-color-border, #e6e6e6)}.btn{align-items:center;border:0;border-radius:.25rem;cursor:pointer;display:inline-flex;font-size:1rem;font-weight:500;justify-content:center;line-height:1;padding:.75em 1em;text-align:start;text-decoration:none;transition:all var(--spruce-transition-duration) var(--spruce-transition-timing-function)}.btn:focus{outline-color:transparent;outline-style:solid}.btn:disabled,.btn--disabled{opacity:.5;pointer-events:none}.btn--sm{font-size:.8rem;padding:.5em}.btn--lg{font-size:1.15rem;padding:.9em 1.15em}.btn--block{width:100%}.btn__icon{flex-shrink:0;height:.85em;width:.85em}.btn__icon--start{-webkit-margin-end:.5rem;margin-inline-end:.5rem}.btn__icon--end{-webkit-margin-start:.5rem;margin-inline-start:.5rem}.btn--primary{background-color:var(--spruce-btn-color-primary-background, #8660cd);color:var(--spruce-btn-color-primary-foreground, white)}.btn--primary:hover{background-color:var(--spruce-btn-color-primary-background-hover, #56319b);color:var(--spruce-btn-color-primary-foreground, white)}.btn--primary:focus{box-shadow:0 0 0 .25rem rgba(134,96,205,.25);outline:2px solid transparent}.btn--secondary{background-color:var(--spruce-btn-color-secondary-background, #ffc2cc);color:var(--spruce-btn-color-secondary-foreground, #660011)}.btn--secondary:hover{background-color:var(--spruce-btn-color-secondary-background-hover, #ffd6dd);color:var(--spruce-btn-color-secondary-foreground, #660011)}.btn--secondary:focus{box-shadow:0 0 0 .25rem rgba(255,194,204,.25);outline:2px solid transparent}fieldset{border:0;margin:0;padding:0}fieldset>*{margin-bottom:0;margin-top:0;width:100%}fieldset>*+*{margin-top:1rem}fieldset+fieldset{margin-top:3rem}legend{color:var(--spruce-form-color-legend, #00060a);font-size:clamp(1rem, 5vw, 1.333rem);font-weight:700}.form-label{color:var(--spruce-form-color-label, #00060a)}.form-label--sm{font-size:.9rem}.form-label--lg{font-size:1.1rem}.form-control{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--spruce-form-color-background, white);border:1px solid var(--spruce-form-color-border, #e6e6e6);border-radius:.25rem;box-sizing:border-box;color:var(--spruce-form-color-text, #474d52);display:block;font-size:1rem;line-height:1.5;padding:.5em .75em;transition:all var(--spruce-transition-duration) var(--spruce-transition-timing-function);width:100%}.form-control::-moz-placeholder{color:var(--spruce-form-color-placeholder, #5f666d)}.form-control:-ms-input-placeholder{color:var(--spruce-form-color-placeholder, #5f666d)}.form-control::placeholder{color:var(--spruce-form-color-placeholder, #5f666d)}.form-control:focus{border-color:var(--spruce-form-color-border-focus, #8660cd);box-shadow:0 0 0 .25rem rgba(134,96,205,.25);outline:2px solid transparent}.form-control[disabled],.form-control[disabled=true]{background-color:var(--spruce-form-color-background-disabled, #f2f2f2);border-color:var(--spruce-form-color-border-disabled, #e6e6e6);cursor:not-allowed}.form-control--valid{background-image:url('data:image/svg+xml,%3csvg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"%3e%3cpath d="M12,2c5.519,0 10,4.481 10,10c0,5.519 -4.481,10 -10,10c-5.519,0 -10,-4.481 -10,-10c0,-5.519 4.481,-10 10,-10Zm0,1.667c4.599,-0 8.333,3.734 8.333,8.333c0,4.599 -3.734,8.333 -8.333,8.333c-4.599,0 -8.333,-3.734 -8.333,-8.333c-0,-4.599 3.734,-8.333 8.333,-8.333Zm-1.476,10.182l-2.984,-2.984c-0.065,-0.065 -0.17,-0.065 -0.235,0l-0.943,0.943c-0.065,0.065 -0.065,0.171 -0,0.236l4.043,4.042c0.033,0.033 0.076,0.05 0.119,0.049c0.044,0.001 0.087,-0.016 0.12,-0.049l6.994,-6.994c0.065,-0.065 0.065,-0.17 0,-0.235l-0.943,-0.943c-0.065,-0.065 -0.17,-0.065 -0.235,-0l-5.936,5.935Z" style="fill:%2314855f;"/%3e%3c/svg%3e');background-position:center right .5em;background-repeat:no-repeat;background-size:1.25em auto;border-color:var(--spruce-alert-color-success, #14855f);-webkit-padding-end:2em;padding-inline-end:2em}html[dir=rtl] .form-control--valid{background-position:center left .5em}.form-control--valid:focus{border-color:var(--spruce-alert-color-success, #14855f);box-shadow:0 0 0 .25rem rgba(20,133,95,.25);outline:2px solid transparent}.form-control--invalid{background-image:url('data:image/svg+xml,%3csvg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"%3e%3cpath d="M12,2c5.519,0 10,4.481 10,10c0,5.519 -4.481,10 -10,10c-5.519,0 -10,-4.481 -10,-10c0,-5.519 4.481,-10 10,-10Zm0,1.667c4.599,-0 8.333,3.734 8.333,8.333c0,4.599 -3.734,8.333 -8.333,8.333c-4.599,0 -8.333,-3.734 -8.333,-8.333c-0,-4.599 3.734,-8.333 8.333,-8.333Zm0.813,11.649c-0,-0.081 -0.065,-0.146 -0.146,-0.146l-1.334,0c-0.081,0 -0.146,0.065 -0.146,0.146l0,1.169c0,0.08 0.065,0.146 0.146,0.146l1.334,-0c0.081,-0 0.146,-0.066 0.146,-0.146l-0,-1.169Zm-0,-7.784c-0,-0.09 -0.073,-0.163 -0.163,-0.163l-1.3,0c-0.09,0 -0.163,0.073 -0.163,0.163l0,6.351c0,0.09 0.073,0.163 0.163,0.163l1.3,-0c0.09,-0 0.163,-0.073 0.163,-0.163l-0,-6.351Z" style="fill:%23dc3832;"/%3e%3c/svg%3e');background-position:center right .5em;background-repeat:no-repeat;background-size:1.25em auto;border-color:var(--spruce-alert-color-danger, #dc3832);-webkit-padding-end:2em;padding-inline-end:2em}html[dir=rtl] .form-control--invalid{background-position:center left .5em}.form-control--invalid:focus{border-color:var(--spruce-alert-color-danger, #dc3832);box-shadow:0 0 0 .25rem rgba(220,56,50,.25);outline:2px solid transparent}.form-control--sm{font-size:.9rem;padding:.25em .5em}.form-control--lg{font-size:1.1rem;padding:.75em 1em}.form-description{color:var(--spruce-form-color-text, #474d52);display:block;font-size:1rem}.form-group>*{margin-bottom:0;margin-top:0}.form-group>*+*{margin-top:.25rem}.form-group--vertical-check{display:flex;flex-direction:column;align-items:flex-start}.form-group--vertical-check>*{margin-bottom:0;margin-top:0}.form-group--vertical-check>*+*{margin-top:.5rem}.form-group--grid{display:flex;flex-wrap:wrap;gap:.5rem}.form-row--mixed{--col-width: 20ch;display:flex;flex-wrap:wrap;gap:1.5rem}.form-row--mixed>*{flex:1 1 var(--col-width)}.form-check{align-items:center;display:inline-flex}.form-check--lg .form-check__control{font-size:1.1rem}.form-check__control{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--spruce-form-color-background, white);background-position:center;background-repeat:no-repeat;background-size:contain;border:1px solid var(--spruce-form-color-border, #e6e6e6);flex-shrink:0;font-size:1rem;height:1em;line-height:1;margin-bottom:-0.1em;-webkit-margin-end:.5rem;margin-inline-end:.5rem;transition:all var(--spruce-transition-duration) var(--spruce-transition-timing-function);width:1em}.form-check__control[type=radio]{border-radius:50%}.form-check__control[type=checkbox]{border-radius:.25rem}.form-check__control:focus{border-color:var(--spruce-form-color-border-focus, #8660cd);box-shadow:0 0 0 .25rem rgba(134,96,205,.25);outline:2px solid transparent}.form-check__control:checked{background-color:var(--spruce-form-color-check-background, #8660cd);border-color:var(--spruce-form-color-check-background, #8660cd)}.form-check__control:checked[type=radio]{background-image:url('data:image/svg+xml,%3csvg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"%3e%3ccircle cx="12" cy="12" r="6" style="fill:white;"/%3e%3c/svg%3e')}.form-check__control:checked[type=checkbox]{background-image:url('data:image/svg+xml,%3csvg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"%3e%3cpath d="M9.525,13.777l-2.411,-2.412c-0.234,-0.233 -0.613,-0.233 -0.846,0l-1.27,1.27c-0.233,0.233 -0.233,0.612 0,0.846l4.104,4.103c0.116,0.117 0.269,0.175 0.422,0.175l0.003,0c0.152,0 0.305,-0.058 0.421,-0.175l9.054,-9.053c0.233,-0.234 0.233,-0.613 -0,-0.846l-1.27,-1.269c-0.233,-0.234 -0.612,-0.234 -0.846,-0l-7.361,7.361Z" style="fill:white;"/%3e%3c/svg%3e')}.form-check__control:indeterminate[type=checkbox]{background-color:var(--spruce-form-color-check-background, #8660cd);background-image:url('data:image/svg+xml,%3csvg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg"%3e%3cpath d="M19.5,11.1c-0,-0.331 -0.269,-0.6 -0.6,-0.6l-13.8,0c-0.331,0 -0.6,0.269 -0.6,0.6l0,1.8c0,0.331 0.269,0.6 0.6,0.6l13.8,0c0.331,0 0.6,-0.269 0.6,-0.6l-0,-1.8Z" style="fill:white;"/%3e%3c/svg%3e');border-color:var(--spruce-form-color-check-background, #8660cd)}.form-check__control:disabled{background-color:var(--spruce-form-color-background-disabled, #f2f2f2);border-color:var(--spruce-form-color-border-disabled, #e6e6e6);cursor:not-allowed}.form-check__control:disabled+.form-check__label{opacity:.5}.form-check__label{line-height:calc(2px + 2ex + 2px)}select:not([multiple]):not([size]){background-image:url('data:image/svg+xml,%3csvg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"%3e%3cpath d="M12,12.692l-5.203,-5.203c-0.234,-0.234 -0.614,-0.234 -0.849,0l-1.272,1.273c-0.235,0.234 -0.235,0.614 -0,0.849l6.9,6.9c0.234,0.234 0.614,0.234 0.848,-0l6.9,-6.9c0.235,-0.235 0.235,-0.615 0,-0.849l-1.272,-1.273c-0.235,-0.234 -0.615,-0.234 -0.849,0l-5.203,5.203Z" style="fill:%238660cd;"/%3e%3c/svg%3e');background-position:center right .5em;background-repeat:no-repeat;background-size:1.25em auto;-webkit-padding-end:2em;padding-inline-end:2em}html[dir=rtl] select:not([multiple]):not([size]){background-position:center left .5em}.field-feedback{display:block}.field-feedback--valid{color:var(--spruce-alert-color-success, #14855f)}.field-feedback--invalid{color:var(--spruce-alert-color-danger, #dc3832)}img{display:block;height:auto;max-width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.iframe-responsive{position:relative}.iframe-responsive::before{content:"";display:block;padding-top:56.25%;width:100%}.iframe-responsive>iframe{bottom:0;left:0;position:absolute;right:0;top:0}iframe{height:100%;width:100%}figure{margin-left:0;margin-right:0}figure figcaption{margin-top:.5rem;text-align:center}.table-responsive{-webkit-overflow-scrolling:touch;overflow-x:auto}.table-responsive table{min-width:40rem}.table{border-collapse:collapse;width:100%}.table--striped>tbody>tr:nth-child(even){background-color:var(--spruce-table-color-stripe, rgba(0, 0, 0, 0.025))}.table--hover>tbody>tr:hover{background:var(--spruce-table-color-hover, rgba(0, 0, 0, 0.05))}.table caption{margin-bottom:1rem}.table th,.table td{border-bottom:1px solid var(--spruce-table-color-border, #e6e6e6);color:var(--spruce-base-color-heading, #00060a);line-height:1.5;padding:1rem}.table th{text-align:inherit;text-align:-webkit-match-parent}body{font-family:system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, Liberation Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;font-size:1rem;line-height:1.8}p,li,h1,h2,h3,h4,h5,h6{-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;overflow-wrap:break-word}h1,h2,h3,h4,h5,h6{color:var(--spruce-base-color-heading, #00060a);font-family:system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, Liberation Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;font-weight:700;line-height:calc(2px + 2ex + 2px)}h1,.h1{font-size:clamp(2.6837343406rem, 5vw + 1rem, 3.1573345183rem)}h2,.h2{font-size:clamp(2.0133040815rem, 5vw + 1rem, 2.368593037rem)}h3,.h3{font-size:clamp(1.51035565rem, 5vw + 1rem, 1.776889rem)}h4,.h4{font-size:clamp(1.13305rem, 5vw + 1rem, 1.333rem)}h5,.h5{font-size:1rem}h6,.h6{font-size:1rem}ul,ol{list-style-position:inside}ul>*,ol>*{margin-bottom:0;margin-top:0}ul>*+*,ol>*+*{margin-top:.25rem}ul li,ol li{list-style-position:outside}li>ul,li>ol{margin-top:.25rem}dl dt{color:var(--spruce-base-color-heading, #00060a);font-weight:bold}dl dd{margin:0}dl dd+dt{margin-top:1rem}blockquote{border-left:.5rem solid var(--spruce-base-color-blockquote-border, #8660cd);margin-left:0;padding:0 0 0 1.5rem}blockquote>*{margin-bottom:0;margin-top:0;width:100%}blockquote>*+*{margin-top:.5rem}blockquote cite{display:block}abbr[title]{border-bottom:1px dotted;cursor:help;text-decoration:none}mark{background-color:var(--spruce-base-color-mark-background, #ffee99);border-radius:.25rem;color:var(--spruce-base-color-mark-color, #00060a);padding:.1em .3em}code,kbd,samp{background-color:var(--spruce-base-color-code-background, #f0ecf9);border-radius:.25rem;color:var(--spruce-base-color-code-color, #00060a);padding:.1em .3em}.lead{font-size:1.333rem} +/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}:root{--spruce-base-color-primary: #8660cd;--spruce-base-color-secondary: #ffc2cc;--spruce-base-color-background: white;--spruce-base-color-heading: #00060a;--spruce-base-color-text: #474d52;--spruce-base-color-link: #8660cd;--spruce-base-color-link-hover: #4b2b88;--spruce-base-color-border: #e6e6e6;--spruce-base-color-mark-background: #ffee99;--spruce-base-color-mark-color: #00060a;--spruce-base-color-code-background: #f0ecf9;--spruce-base-color-code-color: #00060a;--spruce-base-color-blockquote-border: #8660cd;--spruce-alert-color-danger: #dc3832;--spruce-alert-color-info: #0078bd;--spruce-alert-color-success: #14855f;--spruce-alert-color-warning: #a06c03;--spruce-btn-color-primary-background: #8660cd;--spruce-btn-color-primary-background-hover: #56319b;--spruce-btn-color-primary-foreground: white;--spruce-btn-color-secondary-background: #ffc2cc;--spruce-btn-color-secondary-background-hover: #ffd6dd;--spruce-btn-color-secondary-foreground: #660011;--spruce-form-color-background: white;--spruce-form-color-background-disabled: #f2f2f2;--spruce-form-color-border: #e6e6e6;--spruce-form-color-border-disabled: #e6e6e6;--spruce-form-color-border-focus: #8660cd;--spruce-form-color-check-foreground: white;--spruce-form-color-check-background: #8660cd;--spruce-form-color-label: #00060a;--spruce-form-color-legend: #00060a;--spruce-form-color-placeholder: #5f666d;--spruce-form-color-text: #474d52;--spruce-form-color-select-foreground: #8660cd;--spruce-table-color-border: #e6e6e6;--spruce-table-color-hover: rgba(0, 0, 0, 0.05);--spruce-table-color-stripe: rgba(0, 0, 0, 0.025);--spruce-transition-duration: 0.15s;--spruce-transition-timing-function: ease-in-out}@media(prefers-reduced-motion: reduce){:root{--spruce-transition-duration: 0}}.sr-only{border:0 !important;clip:rect(0, 0, 0, 0) !important;height:1px !important;margin:-1px !important;overflow:hidden !important;padding:0 !important;position:absolute !important;white-space:nowrap !important;width:1px !important}::-moz-selection{background-color:var(--spruce-base-color-primary, #8660cd);color:#fff;text-shadow:none}::selection{background-color:var(--spruce-base-color-primary, #8660cd);color:#fff;text-shadow:none}html{box-sizing:border-box}@media(prefers-reduced-motion: no-preference){html{scroll-behavior:smooth}}*,::before,::after{box-sizing:inherit}body{background:var(--spruce-base-color-background, white);color:var(--spruce-base-color-text, #474d52)}a{color:var(--spruce-base-color-link, #8660cd);text-decoration:underline;transition:color var(--spruce-transition-duration) var(--spruce-transition-timing-function)}a:hover{color:var(--spruce-base-color-link-hover, #4b2b88)}button{color:inherit}a,button{touch-action:manipulation}hr{border:0;border-top:1px solid var(--spruce-base-color-border, #e6e6e6)}.btn{align-items:center;border:0;border-radius:.25rem;cursor:pointer;display:inline-flex;font-size:1rem;font-weight:500;justify-content:center;line-height:1;padding:.75em 1em;text-align:start;text-decoration:none;transition:all var(--spruce-transition-duration) var(--spruce-transition-timing-function)}.btn:focus{outline-color:transparent;outline-style:solid}.btn:disabled,.btn--disabled{opacity:.5;pointer-events:none}.btn--sm{font-size:.8rem;padding:.5em}.btn--lg{font-size:1.15rem;padding:.9em 1.15em}.btn--block{width:100%}.btn__icon{flex-shrink:0;height:.85em;width:.85em}.btn__icon--start{-webkit-margin-end:.5rem;margin-inline-end:.5rem}.btn__icon--end{-webkit-margin-start:.5rem;margin-inline-start:.5rem}.btn--primary{background-color:var(--spruce-btn-color-primary-background, #8660cd);color:var(--spruce-btn-color-primary-foreground, white)}.btn--primary:hover{background-color:var(--spruce-btn-color-primary-background-hover, #56319b);color:var(--spruce-btn-color-primary-foreground, white)}.btn--primary:focus{box-shadow:0 0 0 .25rem rgba(134,96,205,.25);outline:2px solid transparent}.btn--secondary{background-color:var(--spruce-btn-color-secondary-background, #ffc2cc);color:var(--spruce-btn-color-secondary-foreground, #660011)}.btn--secondary:hover{background-color:var(--spruce-btn-color-secondary-background-hover, #ffd6dd);color:var(--spruce-btn-color-secondary-foreground, #660011)}.btn--secondary:focus{box-shadow:0 0 0 .25rem rgba(255,194,204,.25);outline:2px solid transparent}fieldset{border:0;margin:0;padding:0}fieldset>*{margin-bottom:0;margin-top:0;width:100%}fieldset>*+*{margin-top:1rem}fieldset+fieldset{margin-top:3rem}legend{color:var(--spruce-form-color-legend, #00060a);font-size:clamp(1rem, 5vw, 1.333rem);font-weight:700}.form-label{color:var(--spruce-form-color-label, #00060a)}.form-label--sm{font-size:.9rem}.form-label--lg{font-size:1.1rem}.form-control{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--spruce-form-color-background, white);border:1px solid var(--spruce-form-color-border, #e6e6e6);border-radius:.25rem;box-sizing:border-box;color:var(--spruce-form-color-text, #474d52);display:block;font-size:1rem;line-height:1.5;padding:.5em .75em;transition:all var(--spruce-transition-duration) var(--spruce-transition-timing-function);width:100%}.form-control::-moz-placeholder{color:var(--spruce-form-color-placeholder, #5f666d)}.form-control:-ms-input-placeholder{color:var(--spruce-form-color-placeholder, #5f666d)}.form-control::placeholder{color:var(--spruce-form-color-placeholder, #5f666d)}.form-control:focus{border-color:var(--spruce-form-color-border-focus, #8660cd);box-shadow:0 0 0 .25rem rgba(134,96,205,.25);outline:2px solid transparent}.form-control[disabled],.form-control[disabled=true]{background-color:var(--spruce-form-color-background-disabled, #f2f2f2);border-color:var(--spruce-form-color-border-disabled, #e6e6e6);cursor:not-allowed}.form-control--valid{background-image:url('data:image/svg+xml,%3csvg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"%3e%3cpath d="M12,2c5.519,0 10,4.481 10,10c0,5.519 -4.481,10 -10,10c-5.519,0 -10,-4.481 -10,-10c0,-5.519 4.481,-10 10,-10Zm0,1.667c4.599,-0 8.333,3.734 8.333,8.333c0,4.599 -3.734,8.333 -8.333,8.333c-4.599,0 -8.333,-3.734 -8.333,-8.333c-0,-4.599 3.734,-8.333 8.333,-8.333Zm-1.476,10.182l-2.984,-2.984c-0.065,-0.065 -0.17,-0.065 -0.235,0l-0.943,0.943c-0.065,0.065 -0.065,0.171 -0,0.236l4.043,4.042c0.033,0.033 0.076,0.05 0.119,0.049c0.044,0.001 0.087,-0.016 0.12,-0.049l6.994,-6.994c0.065,-0.065 0.065,-0.17 0,-0.235l-0.943,-0.943c-0.065,-0.065 -0.17,-0.065 -0.235,-0l-5.936,5.935Z" style="fill:%2314855f;"/%3e%3c/svg%3e');background-position:center right .5em;background-repeat:no-repeat;background-size:1.25em auto;border-color:var(--spruce-alert-color-success, #14855f);-webkit-padding-end:2em;padding-inline-end:2em}html[dir=rtl] .form-control--valid{background-position:center left .5em}.form-control--valid:focus{border-color:var(--spruce-alert-color-success, #14855f);box-shadow:0 0 0 .25rem rgba(20,133,95,.25);outline:2px solid transparent}.form-control--invalid{background-image:url('data:image/svg+xml,%3csvg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"%3e%3cpath d="M12,2c5.519,0 10,4.481 10,10c0,5.519 -4.481,10 -10,10c-5.519,0 -10,-4.481 -10,-10c0,-5.519 4.481,-10 10,-10Zm0,1.667c4.599,-0 8.333,3.734 8.333,8.333c0,4.599 -3.734,8.333 -8.333,8.333c-4.599,0 -8.333,-3.734 -8.333,-8.333c-0,-4.599 3.734,-8.333 8.333,-8.333Zm0.813,11.649c-0,-0.081 -0.065,-0.146 -0.146,-0.146l-1.334,0c-0.081,0 -0.146,0.065 -0.146,0.146l0,1.169c0,0.08 0.065,0.146 0.146,0.146l1.334,-0c0.081,-0 0.146,-0.066 0.146,-0.146l-0,-1.169Zm-0,-7.784c-0,-0.09 -0.073,-0.163 -0.163,-0.163l-1.3,0c-0.09,0 -0.163,0.073 -0.163,0.163l0,6.351c0,0.09 0.073,0.163 0.163,0.163l1.3,-0c0.09,-0 0.163,-0.073 0.163,-0.163l-0,-6.351Z" style="fill:%23dc3832;"/%3e%3c/svg%3e');background-position:center right .5em;background-repeat:no-repeat;background-size:1.25em auto;border-color:var(--spruce-alert-color-danger, #dc3832);-webkit-padding-end:2em;padding-inline-end:2em}html[dir=rtl] .form-control--invalid{background-position:center left .5em}.form-control--invalid:focus{border-color:var(--spruce-alert-color-danger, #dc3832);box-shadow:0 0 0 .25rem rgba(220,56,50,.25);outline:2px solid transparent}.form-control--sm{font-size:.9rem;padding:.25em .5em}.form-control--lg{font-size:1.1rem;padding:.75em 1em}.form-description{color:var(--spruce-form-color-text, #474d52);display:block;font-size:1rem}.form-group>*{margin-bottom:0;margin-top:0}.form-group>*+*{margin-top:.25rem}.form-group--vertical-check{display:flex;flex-direction:column;align-items:start}.form-group--vertical-check>*{margin-bottom:0;margin-top:0}.form-group--vertical-check>*+*{margin-top:.5rem}.form-group--grid{display:flex;flex-wrap:wrap;gap:.5rem}.form-row--mixed{--col-width: 20ch;display:flex;flex-wrap:wrap;gap:1rem}.form-row--mixed>*{flex:1 1 var(--col-width)}.form-check{align-items:center;display:inline-flex}.form-check--lg .form-check__control{font-size:1.1rem}.form-check__control{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--spruce-form-color-background, white);background-position:center;background-repeat:no-repeat;background-size:contain;border:1px solid var(--spruce-form-color-border, #e6e6e6);flex-shrink:0;font-size:1rem;height:1em;line-height:1;margin-bottom:-0.1em;-webkit-margin-end:.5rem;margin-inline-end:.5rem;transition:all var(--spruce-transition-duration) var(--spruce-transition-timing-function);width:1em}.form-check__control[type=radio]{border-radius:50%}.form-check__control[type=checkbox]{border-radius:.25rem}.form-check__control:focus{border-color:var(--spruce-form-color-border-focus, #8660cd);box-shadow:0 0 0 .25rem rgba(134,96,205,.25);outline:2px solid transparent}.form-check__control:checked{background-color:var(--spruce-form-color-check-background, #8660cd);border-color:var(--spruce-form-color-check-background, #8660cd)}.form-check__control:checked[type=radio]{background-image:url('data:image/svg+xml,%3csvg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"%3e%3ccircle cx="12" cy="12" r="6" style="fill:white;"/%3e%3c/svg%3e')}.form-check__control:checked[type=checkbox]{background-image:url('data:image/svg+xml,%3csvg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"%3e%3cpath d="M9.525,13.777l-2.411,-2.412c-0.234,-0.233 -0.613,-0.233 -0.846,0l-1.27,1.27c-0.233,0.233 -0.233,0.612 0,0.846l4.104,4.103c0.116,0.117 0.269,0.175 0.422,0.175l0.003,0c0.152,0 0.305,-0.058 0.421,-0.175l9.054,-9.053c0.233,-0.234 0.233,-0.613 -0,-0.846l-1.27,-1.269c-0.233,-0.234 -0.612,-0.234 -0.846,-0l-7.361,7.361Z" style="fill:white;"/%3e%3c/svg%3e')}.form-check__control:indeterminate[type=checkbox]{background-color:var(--spruce-form-color-check-background, #8660cd);background-image:url('data:image/svg+xml,%3csvg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg"%3e%3cpath d="M19.5,11.1c-0,-0.331 -0.269,-0.6 -0.6,-0.6l-13.8,0c-0.331,0 -0.6,0.269 -0.6,0.6l0,1.8c0,0.331 0.269,0.6 0.6,0.6l13.8,0c0.331,0 0.6,-0.269 0.6,-0.6l-0,-1.8Z" style="fill:white;"/%3e%3c/svg%3e');border-color:var(--spruce-form-color-check-background, #8660cd)}.form-check__control:disabled{background-color:var(--spruce-form-color-background-disabled, #f2f2f2);border-color:var(--spruce-form-color-border-disabled, #e6e6e6);cursor:not-allowed}.form-check__control:disabled+.form-check__label{opacity:.5}.form-check__label{line-height:calc(2px + 2ex + 2px)}select:not([multiple]):not([size]){background-image:url('data:image/svg+xml,%3csvg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"%3e%3cpath d="M12,12.692l-5.203,-5.203c-0.234,-0.234 -0.614,-0.234 -0.849,0l-1.272,1.273c-0.235,0.234 -0.235,0.614 -0,0.849l6.9,6.9c0.234,0.234 0.614,0.234 0.848,-0l6.9,-6.9c0.235,-0.235 0.235,-0.615 0,-0.849l-1.272,-1.273c-0.235,-0.234 -0.615,-0.234 -0.849,0l-5.203,5.203Z" style="fill:%238660cd;"/%3e%3c/svg%3e');background-position:center right .5em;background-repeat:no-repeat;background-size:1.25em auto;-webkit-padding-end:2em;padding-inline-end:2em}html[dir=rtl] select:not([multiple]):not([size]){background-position:center left .5em}.field-feedback{display:block}.field-feedback--valid{color:var(--spruce-alert-color-success, #14855f)}.field-feedback--invalid{color:var(--spruce-alert-color-danger, #dc3832)}img{display:block;height:auto;max-width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.iframe-responsive{position:relative}.iframe-responsive::before{content:"";display:block;padding-top:56.25%;width:100%}.iframe-responsive>iframe{bottom:0;left:0;position:absolute;right:0;top:0}iframe{height:100%;width:100%}figure{margin-left:0;margin-right:0}figure figcaption{margin-top:.5rem;text-align:center}.table-responsive{-webkit-overflow-scrolling:touch;overflow-x:auto}.table-responsive table{min-width:40rem}.table{border-collapse:collapse;width:100%}.table--striped>tbody>tr:nth-child(even){background-color:var(--spruce-table-color-stripe, rgba(0, 0, 0, 0.025))}.table--hover>tbody>tr:hover{background:var(--spruce-table-color-hover, rgba(0, 0, 0, 0.05))}.table caption{margin-bottom:1rem}.table th,.table td{border-bottom:1px solid var(--spruce-table-color-border, #e6e6e6);color:var(--spruce-base-color-heading, #00060a);line-height:1.5;padding:1rem}.table th{text-align:inherit;text-align:-webkit-match-parent}body{font-family:system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, Liberation Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;font-size:1rem;line-height:1.8}p,li,h1,h2,h3,h4,h5,h6{-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;overflow-wrap:break-word}h1,h2,h3,h4,h5,h6{color:var(--spruce-base-color-heading, #00060a);font-family:system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, Liberation Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;font-weight:700;line-height:calc(2px + 2ex + 2px)}h1,.h1{font-size:clamp(2.6837343406rem, 5vw + 1rem, 3.1573345183rem)}h2,.h2{font-size:clamp(2.0133040815rem, 5vw + 1rem, 2.368593037rem)}h3,.h3{font-size:clamp(1.51035565rem, 5vw + 1rem, 1.776889rem)}h4,.h4{font-size:clamp(1.13305rem, 5vw + 1rem, 1.333rem)}h5,.h5{font-size:1rem}h6,.h6{font-size:1rem}ul,ol{list-style-position:inside}ul>*,ol>*{margin-bottom:0;margin-top:0}ul>*+*,ol>*+*{margin-top:.25rem}ul li,ol li{list-style-position:outside}ul li::marker,ol li::marker{color:var(--spruce-base-color-primary, #8660cd)}li>ul,li>ol{margin-top:.25rem}dl dt{color:var(--spruce-base-color-heading, #00060a);font-weight:bold}dl dd{margin:0}dl dd+dt{margin-top:1rem}blockquote{border-left:.5rem solid var(--spruce-base-color-blockquote-border, #8660cd);margin-left:0;padding:0 0 0 1.5rem}blockquote>*{margin-bottom:0;margin-top:0;width:100%}blockquote>*+*{margin-top:.5rem}blockquote cite{display:block}abbr[title]{border-bottom:1px dotted;cursor:help;text-decoration:none}mark{background-color:var(--spruce-base-color-mark-background, #ffee99);border-radius:.25rem;color:var(--spruce-base-color-mark-color, #00060a);padding:.1em .3em}code,kbd,samp{background-color:var(--spruce-base-color-code-background, #f0ecf9);border-radius:.25rem;color:var(--spruce-base-color-code-color, #00060a);padding:.1em .3em}.lead{font-size:1.333rem} diff --git a/package.json b/package.json index 6e2233e..31b76e0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sprucecss", - "version": "0.1.1", + "version": "0.1.2", "description": "Spruce CSS - Another CSS Framework", "keywords": [ "css", diff --git a/scss/mixin/_button.scss b/scss/mixin/_button.scss index 5f3c674..98ffcd6 100644 --- a/scss/mixin/_button.scss +++ b/scss/mixin/_button.scss @@ -17,16 +17,16 @@ $foreground: primary-foreground, $background: primary-background ) { - @if not map.has-key(variable.$colors, btn, foreground) or not map.has-key(variable.$colors, btn, $background) { - @error 'The #{foreground} or #{$background} key name doesn\'t exist under btn at the $colors map.'; + @if not map.has-key(variable.$colors, btn, $foreground) or not map.has-key(variable.$colors, btn, $background) { + @error 'The #{$foreground} or #{$background} key name doesn\'t exist under btn at the $colors map.'; } background-color: function.color(#{$background}, btn); - color: function.color(#{foreground}, btn); + color: function.color(#{$foreground}, btn); &:hover { background-color: function.color(#{$background}-hover, btn); - color: function.color(#{foreground}, btn); + color: function.color(#{$foreground}, btn); } &:focus {