@guillaumemmm/marquedefabrique 2.0.3 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/kit.css +14 -0
- package/dist/css/variables.css +1 -1
- package/dist/js/kit.js +1 -1
- package/examples/index.html +14 -2
- package/examples/styles.css +1 -1
- package/package.json +1 -1
- package/src/kit.css +25 -6
- package/src/variables.css +4 -2
package/dist/css/kit.css
CHANGED
|
@@ -501,6 +501,20 @@ body {
|
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
503
|
|
|
504
|
+
/* LIST */
|
|
505
|
+
.mdf-list {
|
|
506
|
+
display: flex;
|
|
507
|
+
flex-direction: column;
|
|
508
|
+
gap: 5px;
|
|
509
|
+
list-style: inside;
|
|
510
|
+
|
|
511
|
+
.mdf-list-item {
|
|
512
|
+
&::marker {
|
|
513
|
+
color: var(--mdf-color-text-muted);
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
|
|
504
518
|
/* UTILITIES */
|
|
505
519
|
.visually-hidden {
|
|
506
520
|
position: absolute !important;
|
package/dist/css/variables.css
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
--mdf-color-grey-600: rgb(170, 170, 170);
|
|
10
10
|
--mdf-color-grey-700: rgb(201, 201, 201);
|
|
11
11
|
--mdf-color-grey-800: rgb(225, 225, 225);
|
|
12
|
-
--mdf-color-grey-900: rgb(
|
|
12
|
+
--mdf-color-grey-900: rgb(230, 230, 230);
|
|
13
13
|
--mdf-color-grey-1000: rgb(250, 250, 250);
|
|
14
14
|
|
|
15
15
|
--mdf-color-blue-0: hsl(from var(--mdf-color-blue-100) h s calc(l - 20));
|
package/dist/js/kit.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const r = `body{color:var(--mdf-color-text-default)}.mdf-title1,.mdf-title2,.mdf-title3,.mdf-title4{font-weight:700}.mdf-title1{font-size:3rem}.mdf-title2{font-size:2.4rem}.mdf-title3{font-size:1.7rem}.mdf-title4{font-size:1.2rem}.mdf-emphasis{font-weight:700}.mdf-italic{font-style:italic}.mdf-highlighted{font-weight:700;color:var(--mdf-color-text-brand-primary-default)}.mdf-highlighted.mdf-highlighted-secondary{color:var(--mdf-color-text-brand-secondary-default)}.mdf-muted{color:var(--mdf-color-text-muted)}.mdf-block{padding:1rem;background-color:var(--mdf-color-background-muted);border-radius:8px;border:1px solid var(--mdf-color-border-default);box-shadow:0 1px 1px var(--mdf-color-transparent-300)}.mdf-block.mdf-block-brand-primary{background-color:var(--mdf-color-background-brand-primary);border-color:var(--mdf-color-border-brand-primary)}.mdf-block.mdf-block-brand-secondary{background-color:var(--mdf-color-background-brand-secondary);border-color:var(--mdf-color-border-brand-secondary)}.mdf-block.mdf-block-error{background-color:var(--mdf-color-background-error);border-color:var(--mdf-color-border-error)}.mdf-block.mdf-block-success{background-color:var(--mdf-color-background-success);border-color:var(--mdf-color-border-success)}.mdf-block.mdf-block-warning{background-color:var(--mdf-color-background-warning);border-color:var(--mdf-color-border-warning)}.mdf-badge{display:inline-block;--background: var(--mdf-color-background-default);--background-dark: hsl(from var(--background) h s calc(l - 5) );background:var(--background);background:linear-gradient(var(--background),var(--background-dark));padding:5px 7px;border-radius:8px;white-space:nowrap;box-shadow:var(--mdf-color-transparent-100) -1px -2px .5px inset}.mdf-link{display:inline;line-height:1rem;padding:1px 3px;border-radius:5px;--color-visited: var(--mdf-color-brand-primary-muted);--hover-luminosity-reduction: 5;--text-luminosity-reduction: 85;color:var(--mdf-color-text-default);background-color:var(--mdf-color-background-muted);text-decoration:underline;text-underline-offset:1.5px;text-decoration-thickness:1.5px}.mdf-link:visited{background-color:var(--mdf-color-background-brand-secondary);color:var(--mdf-color-text-brand-secondary)}.mdf-link:hover{background-color:hsl(from var(--mdf-color-background-muted) h s calc(l - 5))}.mdf-link:hover:visited{background-color:hsl(from var(--mdf-color-background-brand-secondary) h s calc(l - 5))}.mdf-link:focus-visible{outline:2px solid var(--mdf-color-outline-default);outline-offset:1px}.mdf-button-container{border:3px solid transparent;border-radius:11px;background-clip:padding-box;position:relative;display:inline-block;--color: var(--mdf-color-background-muted);--color-dark: hsl(from var(--color) h s calc(l - 2) );--color-border-light: hsl(from var(--color) h s calc(l + 3) );--color-border-dark: hsl(from var(--color) h s calc(l - 5) );--color-border-light-2: hsl(from var(--color) h calc(s - 10) l);--color-border-dark-2: hsl(from var(--color) h s calc(l - 20) )}.mdf-button-container:hover:before{content:"";position:absolute;inset:0;z-index:-1;margin:-3px;border-radius:inherit;background:linear-gradient(var(--color-border-light-2),var(--color-border-dark-2))}.mdf-button-container .mdf-button{color:inherit;background:linear-gradient(var(--color-border-light) 10%,var(--color-border-dark) 50%);cursor:pointer;line-height:1.5rem;text-decoration:none;border-radius:8px;box-shadow:0 0 2px var(--mdf-color-transparent-300);font-size:1rem;padding:0;border:none;transition:box-shadow .2s}.mdf-button-container .mdf-button .mdf-button-content{display:flex;align-items:center;margin:5px;border-radius:5px;padding:5px 1rem;background-color:var(--color);transition:background-color .2s}.mdf-button-container .mdf-button:active{box-shadow:0 0 1px var(--mdf-color-transparent-200)}.mdf-button-container .mdf-button:active .mdf-button-content{background-color:var(--color-dark)}.mdf-button-container .mdf-button:focus-visible{outline:2px solid var(--mdf-color-outline-default);outline-offset:3px}.mdf-select-field{cursor:pointer;background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/></svg>");background-repeat:no-repeat;background-position:right .75rem center;background-size:16px 12px;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid var(--mdf-color-border-muted);border-radius:8px;font-size:inherit;padding:9px 12px;line-height:1.5rem;background-color:var(--mdf-color-background-muted);width:250px;box-shadow:0 1px 1px var(--mdf-color-transparent-300);font-family:inherit;color:inherit}.mdf-select-field:hover,.mdf-select-field:focus{background-color:var(--mdf-color-background-default)}.mdf-select-field:focus{outline:2px solid var(--mdf-color-outline-default);outline-offset:3px}.mdf-input-label,.mdf-select-label,.mdf-textarea-label{margin-bottom:2px}.mdf-input-field[type=text],.mdf-input-field[type=search],.mdf-input-field[type=password],.mdf-textarea-field{border:1px solid var(--mdf-color-border-muted);border-radius:8px;font-size:inherit;padding:9px 12px;line-height:1.5rem;background-color:var(--mdf-color-background-muted);width:250px;box-shadow:0 1px 1px var(--mdf-color-transparent-300);font-family:inherit}:is(.mdf-input-field[type=text],.mdf-input-field[type=search],.mdf-input-field[type=password],.mdf-textarea-field):hover,:is(.mdf-input-field[type=text],.mdf-input-field[type=search],.mdf-input-field[type=password],.mdf-textarea-field):focus{background-color:var(--mdf-color-background-default)}:is(.mdf-input-field[type=text],.mdf-input-field[type=search],.mdf-input-field[type=password],.mdf-textarea-field):focus{outline:2px solid var(--mdf-color-outline-default);outline-offset:3px}.mdf-textarea-field{width:320px;height:150px}.mdf-checkbox{font-size:1rem;display:flex;align-items:center;gap:.5em;cursor:pointer}.mdf-checkbox-field{-webkit-appearance:none;appearance:none;margin:0;width:1.4em;height:1.4em;border:.15em solid var(--mdf-color-border-brand-primary);background-color:var(--mdf-color-background-brand-primary);border-radius:.25rem;padding:0;cursor:pointer;display:grid;place-content:center}.mdf-checkbox-field:hover,.mdf-checkbox-field:focus{background-color:var(--mdf-color-background-default)}.mdf-checkbox-field:before{content:"";width:20px;height:20px;clip-path:path("M 6.9101 9.3579 C 6.4728 8.9207 5.7636 8.9207 5.3259 9.3579 S 4.8887 10.5044 5.3259 10.9421 L 7.4069 13.023 C 8.056 13.6722 9.108 13.6722 9.7571 13.023 L 10.1661 12.614 L 6.9101 9.3579 Z M 14.5261 6.6699 C 14.0888 6.2327 13.3796 6.2327 12.9419 6.6699 L 8.582 11.0299 L 10.1661 12.614 L 14.5261 8.2541 C 14.9633 7.8164 14.9633 7.1072 14.5261 6.6699 Z");transform:scale(0);transform-origin:bottom left;box-shadow:inset 1em 1em var(--mdf-color-text-brand-primary-default);background-color:CanvasText}.mdf-checkbox-field:checked:before{transform:scale(1)}.mdf-checkbox-field:focus-visible{outline:2px solid var(--mdf-color-outline-default);outline-offset:3px}.mdf-color{--border-radius: 8px;--background: var(--mdf-color-background-muted);--border: 1px solid var(--mdf-color-border-muted);display:flex;flex-direction:column;width:auto}.mdf-color .mdf-color-label{padding:.5rem;background-color:var(--background);border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);border:var(--border);box-shadow:0 1px 0 var(--mdf-color-transparent-300);border-top:none}.mdf-color .mdf-color-field{appearance:none;-moz-appearance:none;-webkit-appearance:none;background:none;border:0;cursor:pointer;padding:0;width:100%;height:4rem;position:relative;z-index:0;border-bottom-left-radius:0;border-bottom-right-radius:0}.mdf-color .mdf-color-field:focus{border-radius:var(--border-radius)}.mdf-color .mdf-color-field::-webkit-color-swatch{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0;border:var(--border)}.mdf-color .mdf-color-field::-webkit-color-swatch-wrapper{padding:0}.mdf-table{border-radius:8px;border-style:hidden;box-shadow:0 1px 2px var(--mdf-color-transparent-200)}.mdf-table .mdf-th:first-child{border-top-left-radius:8px}.mdf-table .mdf-th:last-child{border-top-right-radius:8px}.mdf-table tbody>tr:last-child>td:first-child{border-bottom-left-radius:8px}.mdf-table tbody>tr:last-child>td:last-child{border-bottom-right-radius:8px}.mdf-table .mdf-td,.mdf-table .mdf-th{padding:.5rem;border:1px solid var(--mdf-color-border-muted)}.mdf-table .mdf-th{font-weight:600}.mdf-table .mdf-th,.mdf-table :nth-child(2n)>.mdf-td{background-color:var(--mdf-color-background-muted);text-align:start}.mdf-code-inline{line-height:1rem;padding:1px 3px;border-radius:5px;background-color:var(--mdf-color-background-muted);font-weight:600;font-family:monospace}.mdf-code-block{line-height:1rem;padding:10px 1rem;border-radius:8px;background-color:var(--mdf-color-background-brand-primary);font-family:monospace;margin:0;box-shadow:0 1px 1px var(--mdf-color-transparent-300)}.mdf-quote{padding:1rem 2rem;border-top-right-radius:8px;border-bottom-right-radius:8px;background-color:var(--mdf-color-background-brand-secondary);box-shadow:0 1px 1px var(--mdf-color-transparent-300);border-left:5px solid var(--mdf-color-border-brand-secondary)}.mdf-quote .mdf-quote-source{margin-top:1rem;font-style:italic;color:var(--mdf-color-text-muted)}.mdf-menu{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.mdf-menu .mdf-menu-item{color:inherit;text-decoration:none;padding:8px 20px;border:none;text-align:center;display:flex;align-items:center;cursor:pointer;background:transparent;border-radius:12px;transition:border .2s,background .2s,box-shadow .2s}.mdf-menu .mdf-menu-item .mdf-menu-item-dot{width:0;height:0;display:block;background-color:var(--mdf-color-text-brand-primary-default);border-radius:2px;margin-right:0;transition:width .1s,margin-right .2s ease-out,background-color .5s}.mdf-menu .mdf-menu-item:hover,.mdf-menu .mdf-menu-item.mdf-menu-item-current{background:linear-gradient(var(--mdf-color-background-default),var(--mdf-color-background-muted));box-shadow:0 1px 2px var(--mdf-color-transparent-300)}:is(.mdf-menu .mdf-menu-item:hover,.mdf-menu .mdf-menu-item.mdf-menu-item-current) .mdf-menu-item-dot{margin-right:10px;width:8px;height:8px;background-color:var(--mdf-color-text-brand-primary-muted)}.mdf-menu .mdf-menu-item:hover .mdf-menu-item-dot{background-color:var(--mdf-color-text-brand-primary-default)}.mdf-menu .mdf-menu-item:active{box-shadow:0 0 1px var(--mdf-color-transparent-300)}.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}`, o = ":root{--mdf-color-grey-100: rgb(36, 36, 36);--mdf-color-grey-200: rgb(51, 51, 51);--mdf-color-grey-300: rgb(71, 71, 71);--mdf-color-grey-400: rgb(101, 101, 101);--mdf-color-grey-500: rgb(135, 135, 135);--mdf-color-grey-600: rgb(170, 170, 170);--mdf-color-grey-700: rgb(201, 201, 201);--mdf-color-grey-800: rgb(225, 225, 225);--mdf-color-grey-900: rgb(242, 242, 242);--mdf-color-grey-1000: rgb(250, 250, 250);--mdf-color-blue-0: hsl(from var(--mdf-color-blue-100) h s calc(l - 20) );--mdf-color-blue-100: rgb(0, 99, 192);--mdf-color-blue-500: hsl(from var(--mdf-color-blue-100) h s calc(l + 20) );--mdf-color-blue-900: hsl(from var(--mdf-color-blue-100) h s calc(l + 60) );--mdf-color-purple-100: rgb(70, 36, 112);--mdf-color-purple-500: hsl(from var(--mdf-color-purple-100) h s calc(l + 20) );--mdf-color-purple-900: hsl(from var(--mdf-color-purple-100) h s calc(l + 60) );--mdf-color-green-0: hsl(from var(--mdf-color-green-100) h s calc(l - 20) );--mdf-color-green-100: rgb(49, 148, 59);--mdf-color-green-500: hsl(from var(--mdf-color-green-100) h s calc(l + 20) );--mdf-color-green-900: hsl(from var(--mdf-color-green-100) h s calc(l + 55) );--mdf-color-red-100: rgb(175, 0, 35);--mdf-color-red-500: hsl(from var(--mdf-color-red-100) h s calc(l + 20) );--mdf-color-red-900: hsl(from var(--mdf-color-red-100) h s calc(l + 62) );--mdf-color-yellow-0: hsl(from var(--mdf-color-yellow-100) h s calc(l - 30) );--mdf-color-yellow-100: rgb(255, 207, 33);--mdf-color-yellow-500: hsl(from var(--mdf-color-yellow-100) h s calc(l + 16) );--mdf-color-yellow-900: hsl(from var(--mdf-color-yellow-100) h s calc(l + 38) );--mdf-color-transparent-100: rgba(0, 0, 0, .1);--mdf-color-transparent-200: rgba(0, 0, 0, .2);--mdf-color-transparent-300: rgba(0, 0, 0, .3);--mdf-color-transparent-500: rgba(0, 0, 0, .5);--mdf-color-text-default: var(--mdf-color-grey-100);--mdf-color-text-muted: var(--mdf-color-grey-200);--mdf-color-text-brand-primary-default: var(--mdf-color-blue-100);--mdf-color-text-brand-primary-muted: var(--mdf-color-blue-500);--mdf-color-text-brand-secondary-default: var(--mdf-color-purple-100);--mdf-color-text-brand-secondary-muted: var(--mdf-color-purple-500);--mdf-color-background-default: var(--mdf-color-grey-1000);--mdf-color-background-muted: var(--mdf-color-grey-900);--mdf-color-background-brand-primary: var(--mdf-color-blue-900);--mdf-color-background-brand-secondary: var(--mdf-color-purple-900);--mdf-color-background-error: var(--mdf-color-red-900);--mdf-color-background-warning: var(--mdf-color-yellow-900);--mdf-color-background-success: var(--mdf-color-green-900);--mdf-color-border-default: var(--mdf-color-grey-700);--mdf-color-border-muted: var(--mdf-color-grey-800);--mdf-color-border-brand-primary: var(--mdf-color-blue-500);--mdf-color-border-brand-secondary: var(--mdf-color-purple-500);--mdf-color-border-error: var(--mdf-color-red-500);--mdf-color-border-warning: var(--mdf-color-yellow-500);--mdf-color-border-success: var(--mdf-color-green-500);--mdf-color-outline-default: var(--mdf-color-grey-200)}:root[data-theme=dark]{--mdf-color-text-default: var(--mdf-color-grey-900);--mdf-color-text-muted: var(--mdf-color-grey-800);--mdf-color-text-brand-primary-default: var(--mdf-color-blue-900);--mdf-color-text-brand-primary-muted: var(--mdf-color-blue-500);--mdf-color-text-brand-secondary-default: var(--mdf-color-purple-900);--mdf-color-text-brand-secondary-muted: var(--mdf-color-purple-500);--mdf-color-background-default: var(--mdf-color-grey-100);--mdf-color-background-muted: var(--mdf-color-grey-200);--mdf-color-background-brand-primary: var(--mdf-color-blue-0);--mdf-color-background-brand-secondary: var(--mdf-color-purple-100);--mdf-color-background-error: var(--mdf-color-red-100);--mdf-color-background-warning: var(--mdf-color-yellow-0);--mdf-color-background-success: var(--mdf-color-green-0);--mdf-color-border-default: var(--mdf-color-grey-300);--mdf-color-border-muted: var(--mdf-color-grey-400);--mdf-color-border-brand-primary: var(--mdf-color-blue-500);--mdf-color-border-brand-secondary: var(--mdf-color-purple-500);--mdf-color-border-error: var(--mdf-color-red-500);--mdf-color-border-warning: var(--mdf-color-yellow-500);--mdf-color-border-success: var(--mdf-color-green-500);--mdf-color-outline-default: var(--mdf-color-grey-800);--mdf-color-transparent-100: rgba(0, 0, 0, .6);--mdf-color-transparent-200: rgba(0, 0, 0, .7);--mdf-color-transparent-300: rgba(0, 0, 0, .8);--mdf-color-transparent-500: rgba(0, 0, 0, .9)}", d = '@layer reset{*{box-sizing:border-box}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:"";content:none}table{border-collapse:collapse;border-spacing:0}}';
|
|
1
|
+
const r = `body{color:var(--mdf-color-text-default)}.mdf-title1,.mdf-title2,.mdf-title3,.mdf-title4{font-weight:700}.mdf-title1{font-size:3rem}.mdf-title2{font-size:2.4rem}.mdf-title3{font-size:1.7rem}.mdf-title4{font-size:1.2rem}.mdf-emphasis{font-weight:700}.mdf-italic{font-style:italic}.mdf-highlighted{font-weight:700;color:var(--mdf-color-text-brand-primary-default)}.mdf-highlighted.mdf-highlighted-secondary{color:var(--mdf-color-text-brand-secondary-default)}.mdf-muted{color:var(--mdf-color-text-muted)}.mdf-block{padding:1rem;background-color:var(--mdf-color-background-muted);border-radius:8px;border:1px solid var(--mdf-color-border-default);box-shadow:0 1px 1px var(--mdf-color-transparent-300)}.mdf-block.mdf-block-brand-primary{background-color:var(--mdf-color-background-brand-primary);border-color:var(--mdf-color-border-brand-primary)}.mdf-block.mdf-block-brand-secondary{background-color:var(--mdf-color-background-brand-secondary);border-color:var(--mdf-color-border-brand-secondary)}.mdf-block.mdf-block-error{background-color:var(--mdf-color-background-error);border-color:var(--mdf-color-border-error)}.mdf-block.mdf-block-success{background-color:var(--mdf-color-background-success);border-color:var(--mdf-color-border-success)}.mdf-block.mdf-block-warning{background-color:var(--mdf-color-background-warning);border-color:var(--mdf-color-border-warning)}.mdf-badge{display:inline-block;--background: var(--mdf-color-background-default);--background-dark: hsl(from var(--background) h s calc(l - 5) );background:var(--background);background:linear-gradient(var(--background),var(--background-dark));padding:5px 7px;border-radius:8px;white-space:nowrap;box-shadow:var(--mdf-color-transparent-100) -1px -2px .5px inset}.mdf-link{display:inline;line-height:1rem;padding:1px 3px;border-radius:5px;--color-visited: var(--mdf-color-brand-primary-muted);--hover-luminosity-reduction: 5;--text-luminosity-reduction: 85;color:var(--mdf-color-text-default);background-color:var(--mdf-color-background-muted);text-decoration:underline;text-underline-offset:1.5px;text-decoration-thickness:1.5px}.mdf-link:visited{background-color:var(--mdf-color-background-brand-secondary);color:var(--mdf-color-text-brand-secondary)}.mdf-link:hover{background-color:hsl(from var(--mdf-color-background-muted) h s calc(l - 5))}.mdf-link:hover:visited{background-color:hsl(from var(--mdf-color-background-brand-secondary) h s calc(l - 5))}.mdf-link:focus-visible{outline:2px solid var(--mdf-color-outline-default);outline-offset:1px}.mdf-button-container{border:3px solid transparent;border-radius:11px;background-clip:padding-box;position:relative;display:inline-block;--color: var(--mdf-color-background-muted);--color-dark: hsl(from var(--color) h s calc(l - 2) );--color-border-light: hsl(from var(--color) h s calc(l + 3) );--color-border-dark: hsl(from var(--color) h s calc(l - 5) );--color-border-light-2: hsl(from var(--color) h calc(s - 10) l);--color-border-dark-2: hsl(from var(--color) h s calc(l - 20) )}.mdf-button-container:hover:before{content:"";position:absolute;inset:0;z-index:-1;margin:-3px;border-radius:inherit;background:linear-gradient(var(--color-border-light-2),var(--color-border-dark-2))}.mdf-button-container .mdf-button{color:inherit;background:linear-gradient(var(--color-border-light) 10%,var(--color-border-dark) 50%);cursor:pointer;line-height:1.5rem;text-decoration:none;border-radius:8px;box-shadow:0 0 2px var(--mdf-color-transparent-300);font-size:1rem;padding:0;border:none;transition:box-shadow .2s}.mdf-button-container .mdf-button .mdf-button-content{display:flex;align-items:center;margin:5px;border-radius:5px;padding:5px 1rem;background-color:var(--color);transition:background-color .2s}.mdf-button-container .mdf-button:active{box-shadow:0 0 1px var(--mdf-color-transparent-200)}.mdf-button-container .mdf-button:active .mdf-button-content{background-color:var(--color-dark)}.mdf-button-container .mdf-button:focus-visible{outline:2px solid var(--mdf-color-outline-default);outline-offset:3px}.mdf-select-field{cursor:pointer;background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/></svg>");background-repeat:no-repeat;background-position:right .75rem center;background-size:16px 12px;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid var(--mdf-color-border-muted);border-radius:8px;font-size:inherit;padding:9px 12px;line-height:1.5rem;background-color:var(--mdf-color-background-muted);width:250px;box-shadow:0 1px 1px var(--mdf-color-transparent-300);font-family:inherit;color:inherit}.mdf-select-field:hover,.mdf-select-field:focus{background-color:var(--mdf-color-background-default)}.mdf-select-field:focus{outline:2px solid var(--mdf-color-outline-default);outline-offset:3px}.mdf-input-label,.mdf-select-label,.mdf-textarea-label{margin-bottom:2px}.mdf-input-field[type=text],.mdf-input-field[type=search],.mdf-input-field[type=password],.mdf-textarea-field{border:1px solid var(--mdf-color-border-muted);border-radius:8px;font-size:inherit;padding:9px 12px;line-height:1.5rem;background-color:var(--mdf-color-background-muted);width:250px;box-shadow:0 1px 1px var(--mdf-color-transparent-300);font-family:inherit}:is(.mdf-input-field[type=text],.mdf-input-field[type=search],.mdf-input-field[type=password],.mdf-textarea-field):hover,:is(.mdf-input-field[type=text],.mdf-input-field[type=search],.mdf-input-field[type=password],.mdf-textarea-field):focus{background-color:var(--mdf-color-background-default)}:is(.mdf-input-field[type=text],.mdf-input-field[type=search],.mdf-input-field[type=password],.mdf-textarea-field):focus{outline:2px solid var(--mdf-color-outline-default);outline-offset:3px}.mdf-textarea-field{width:320px;height:150px}.mdf-checkbox{font-size:1rem;display:flex;align-items:center;gap:.5em;cursor:pointer}.mdf-checkbox-field{-webkit-appearance:none;appearance:none;margin:0;width:1.4em;height:1.4em;border:.15em solid var(--mdf-color-border-brand-primary);background-color:var(--mdf-color-background-brand-primary);border-radius:.25rem;padding:0;cursor:pointer;display:grid;place-content:center}.mdf-checkbox-field:hover,.mdf-checkbox-field:focus{background-color:var(--mdf-color-background-default)}.mdf-checkbox-field:before{content:"";width:20px;height:20px;clip-path:path("M 6.9101 9.3579 C 6.4728 8.9207 5.7636 8.9207 5.3259 9.3579 S 4.8887 10.5044 5.3259 10.9421 L 7.4069 13.023 C 8.056 13.6722 9.108 13.6722 9.7571 13.023 L 10.1661 12.614 L 6.9101 9.3579 Z M 14.5261 6.6699 C 14.0888 6.2327 13.3796 6.2327 12.9419 6.6699 L 8.582 11.0299 L 10.1661 12.614 L 14.5261 8.2541 C 14.9633 7.8164 14.9633 7.1072 14.5261 6.6699 Z");transform:scale(0);transform-origin:bottom left;box-shadow:inset 1em 1em var(--mdf-color-text-brand-primary-default);background-color:CanvasText}.mdf-checkbox-field:checked:before{transform:scale(1)}.mdf-checkbox-field:focus-visible{outline:2px solid var(--mdf-color-outline-default);outline-offset:3px}.mdf-color{--border-radius: 8px;--background: var(--mdf-color-background-muted);--border: 1px solid var(--mdf-color-border-muted);display:flex;flex-direction:column;width:auto}.mdf-color .mdf-color-label{padding:.5rem;background-color:var(--background);border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);border:var(--border);box-shadow:0 1px 0 var(--mdf-color-transparent-300);border-top:none}.mdf-color .mdf-color-field{appearance:none;-moz-appearance:none;-webkit-appearance:none;background:none;border:0;cursor:pointer;padding:0;width:100%;height:4rem;position:relative;z-index:0;border-bottom-left-radius:0;border-bottom-right-radius:0}.mdf-color .mdf-color-field:focus{border-radius:var(--border-radius)}.mdf-color .mdf-color-field::-webkit-color-swatch{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0;border:var(--border)}.mdf-color .mdf-color-field::-webkit-color-swatch-wrapper{padding:0}.mdf-table{border-radius:8px;border-style:hidden;box-shadow:0 1px 2px var(--mdf-color-transparent-200)}.mdf-table .mdf-th:first-child{border-top-left-radius:8px}.mdf-table .mdf-th:last-child{border-top-right-radius:8px}.mdf-table tbody>tr:last-child>td:first-child{border-bottom-left-radius:8px}.mdf-table tbody>tr:last-child>td:last-child{border-bottom-right-radius:8px}.mdf-table .mdf-td,.mdf-table .mdf-th{padding:.5rem;border:1px solid var(--mdf-color-border-muted)}.mdf-table .mdf-th{font-weight:600}.mdf-table .mdf-th,.mdf-table :nth-child(2n)>.mdf-td{background-color:var(--mdf-color-background-muted);text-align:start}.mdf-code-inline{line-height:1rem;padding:1px 3px;border-radius:5px;background-color:var(--mdf-color-background-muted);font-weight:600;font-family:monospace}.mdf-code-block{line-height:1rem;padding:10px 1rem;border-radius:8px;background-color:var(--mdf-color-background-brand-primary);font-family:monospace;margin:0;box-shadow:0 1px 1px var(--mdf-color-transparent-300)}.mdf-quote{padding:1rem 2rem;border-top-right-radius:8px;border-bottom-right-radius:8px;background-color:var(--mdf-color-background-brand-secondary);box-shadow:0 1px 1px var(--mdf-color-transparent-300);border-left:5px solid var(--mdf-color-border-brand-secondary)}.mdf-quote .mdf-quote-source{margin-top:1rem;font-style:italic;color:var(--mdf-color-text-muted)}.mdf-menu{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.mdf-menu .mdf-menu-item{color:inherit;text-decoration:none;padding:8px 20px;border:none;text-align:center;display:flex;align-items:center;cursor:pointer;background:transparent;border-radius:12px;transition:border .2s,background .2s,box-shadow .2s}.mdf-menu .mdf-menu-item .mdf-menu-item-dot{width:0;height:0;display:block;background-color:var(--mdf-color-text-brand-primary-default);border-radius:2px;margin-right:0;transition:width .1s,margin-right .2s ease-out,background-color .5s}.mdf-menu .mdf-menu-item:hover,.mdf-menu .mdf-menu-item.mdf-menu-item-current{background:linear-gradient(var(--mdf-color-background-default),var(--mdf-color-background-muted));box-shadow:0 1px 2px var(--mdf-color-transparent-300)}:is(.mdf-menu .mdf-menu-item:hover,.mdf-menu .mdf-menu-item.mdf-menu-item-current) .mdf-menu-item-dot{margin-right:10px;width:8px;height:8px;background-color:var(--mdf-color-text-brand-primary-muted)}.mdf-menu .mdf-menu-item:hover .mdf-menu-item-dot{background-color:var(--mdf-color-text-brand-primary-default)}.mdf-menu .mdf-menu-item:active{box-shadow:0 0 1px var(--mdf-color-transparent-300)}.mdf-list{display:flex;flex-direction:column;gap:5px;list-style:inside}.mdf-list .mdf-list-item::marker{color:var(--mdf-color-text-muted)}.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}`, o = ":root{--mdf-color-grey-100: rgb(36, 36, 36);--mdf-color-grey-200: rgb(51, 51, 51);--mdf-color-grey-300: rgb(71, 71, 71);--mdf-color-grey-400: rgb(101, 101, 101);--mdf-color-grey-500: rgb(135, 135, 135);--mdf-color-grey-600: rgb(170, 170, 170);--mdf-color-grey-700: rgb(201, 201, 201);--mdf-color-grey-800: rgb(225, 225, 225);--mdf-color-grey-900: rgb(230, 230, 230);--mdf-color-grey-1000: rgb(250, 250, 250);--mdf-color-blue-0: hsl(from var(--mdf-color-blue-100) h s calc(l - 20) );--mdf-color-blue-100: rgb(0, 99, 192);--mdf-color-blue-500: hsl(from var(--mdf-color-blue-100) h s calc(l + 20) );--mdf-color-blue-900: hsl(from var(--mdf-color-blue-100) h s calc(l + 60) );--mdf-color-purple-100: rgb(70, 36, 112);--mdf-color-purple-500: hsl(from var(--mdf-color-purple-100) h s calc(l + 20) );--mdf-color-purple-900: hsl(from var(--mdf-color-purple-100) h s calc(l + 60) );--mdf-color-green-0: hsl(from var(--mdf-color-green-100) h s calc(l - 20) );--mdf-color-green-100: rgb(49, 148, 59);--mdf-color-green-500: hsl(from var(--mdf-color-green-100) h s calc(l + 20) );--mdf-color-green-900: hsl(from var(--mdf-color-green-100) h s calc(l + 55) );--mdf-color-red-100: rgb(175, 0, 35);--mdf-color-red-500: hsl(from var(--mdf-color-red-100) h s calc(l + 20) );--mdf-color-red-900: hsl(from var(--mdf-color-red-100) h s calc(l + 62) );--mdf-color-yellow-0: hsl(from var(--mdf-color-yellow-100) h s calc(l - 30) );--mdf-color-yellow-100: rgb(255, 207, 33);--mdf-color-yellow-500: hsl(from var(--mdf-color-yellow-100) h s calc(l + 16) );--mdf-color-yellow-900: hsl(from var(--mdf-color-yellow-100) h s calc(l + 38) );--mdf-color-transparent-100: rgba(0, 0, 0, .1);--mdf-color-transparent-200: rgba(0, 0, 0, .2);--mdf-color-transparent-300: rgba(0, 0, 0, .3);--mdf-color-transparent-500: rgba(0, 0, 0, .5);--mdf-color-text-default: var(--mdf-color-grey-100);--mdf-color-text-muted: var(--mdf-color-grey-200);--mdf-color-text-brand-primary-default: var(--mdf-color-blue-100);--mdf-color-text-brand-primary-muted: var(--mdf-color-blue-500);--mdf-color-text-brand-secondary-default: var(--mdf-color-purple-100);--mdf-color-text-brand-secondary-muted: var(--mdf-color-purple-500);--mdf-color-background-default: var(--mdf-color-grey-1000);--mdf-color-background-muted: var(--mdf-color-grey-900);--mdf-color-background-brand-primary: var(--mdf-color-blue-900);--mdf-color-background-brand-secondary: var(--mdf-color-purple-900);--mdf-color-background-error: var(--mdf-color-red-900);--mdf-color-background-warning: var(--mdf-color-yellow-900);--mdf-color-background-success: var(--mdf-color-green-900);--mdf-color-border-default: var(--mdf-color-grey-700);--mdf-color-border-muted: var(--mdf-color-grey-800);--mdf-color-border-brand-primary: var(--mdf-color-blue-500);--mdf-color-border-brand-secondary: var(--mdf-color-purple-500);--mdf-color-border-error: var(--mdf-color-red-500);--mdf-color-border-warning: var(--mdf-color-yellow-500);--mdf-color-border-success: var(--mdf-color-green-500);--mdf-color-outline-default: var(--mdf-color-grey-200)}:root[data-theme=dark]{--mdf-color-text-default: var(--mdf-color-grey-900);--mdf-color-text-muted: var(--mdf-color-grey-800);--mdf-color-text-brand-primary-default: var(--mdf-color-blue-900);--mdf-color-text-brand-primary-muted: var(--mdf-color-blue-500);--mdf-color-text-brand-secondary-default: var(--mdf-color-purple-900);--mdf-color-text-brand-secondary-muted: var(--mdf-color-purple-500);--mdf-color-background-default: var(--mdf-color-grey-100);--mdf-color-background-muted: var(--mdf-color-grey-200);--mdf-color-background-brand-primary: var(--mdf-color-blue-0);--mdf-color-background-brand-secondary: var(--mdf-color-purple-100);--mdf-color-background-error: var(--mdf-color-red-100);--mdf-color-background-warning: var(--mdf-color-yellow-0);--mdf-color-background-success: var(--mdf-color-green-0);--mdf-color-border-default: var(--mdf-color-grey-300);--mdf-color-border-muted: var(--mdf-color-grey-400);--mdf-color-border-brand-primary: var(--mdf-color-blue-500);--mdf-color-border-brand-secondary: var(--mdf-color-purple-500);--mdf-color-border-error: var(--mdf-color-red-500);--mdf-color-border-warning: var(--mdf-color-yellow-500);--mdf-color-border-success: var(--mdf-color-green-500);--mdf-color-outline-default: var(--mdf-color-grey-800);--mdf-color-transparent-100: rgba(0, 0, 0, .6);--mdf-color-transparent-200: rgba(0, 0, 0, .7);--mdf-color-transparent-300: rgba(0, 0, 0, .8);--mdf-color-transparent-500: rgba(0, 0, 0, .9)}", d = '@layer reset{*{box-sizing:border-box}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:"";content:none}table{border-collapse:collapse;border-spacing:0}}';
|
|
2
2
|
export {
|
|
3
3
|
r as kitCss,
|
|
4
4
|
d as resetCss,
|
package/examples/index.html
CHANGED
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
<div>
|
|
115
115
|
<a
|
|
116
116
|
class="mdf-link"
|
|
117
|
-
href="https://github.com/GuillaumeMMM/marquedefabrique"
|
|
117
|
+
href="https://github.com/GuillaumeMMM/marquedefabrique?"
|
|
118
118
|
>Marque de fabrique <span lang="en">on github</span>
|
|
119
119
|
<svg
|
|
120
120
|
width="1rem"
|
|
@@ -311,6 +311,18 @@
|
|
|
311
311
|
</nav>
|
|
312
312
|
</div>
|
|
313
313
|
|
|
314
|
+
<!-- LIST -->
|
|
315
|
+
<div class="block">
|
|
316
|
+
<h2 class="mdf-title2">List</h2>
|
|
317
|
+
<ul class="mdf-list">
|
|
318
|
+
<li class="mdf-list-item">Oranges</li>
|
|
319
|
+
<li class="mdf-list-item">Mango</li>
|
|
320
|
+
<li class="mdf-list-item">Watermelon</li>
|
|
321
|
+
<li class="mdf-list-item">Pear</li>
|
|
322
|
+
<li class="mdf-list-item">Banana</li>
|
|
323
|
+
</ul>
|
|
324
|
+
</div>
|
|
325
|
+
|
|
314
326
|
<!-- COLORS -->
|
|
315
327
|
<div class="block">
|
|
316
328
|
<h2 class="mdf-title2">Color</h2>
|
|
@@ -420,7 +432,7 @@
|
|
|
420
432
|
</div>
|
|
421
433
|
</main>
|
|
422
434
|
<footer class="footer">
|
|
423
|
-
<p>v2.0.
|
|
435
|
+
<p>v2.0.5</p>
|
|
424
436
|
</footer>
|
|
425
437
|
</body>
|
|
426
438
|
</html>
|
package/examples/styles.css
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@guillaumemmm/marquedefabrique",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"description": "Marque de Fabrique is a minimalistic UI kit. It includes a set of core styles and CSS variables centralizing design elements to maintain consistency across personal projects.",
|
|
5
5
|
"main": "index.css",
|
|
6
6
|
"type": "module",
|
package/src/kit.css
CHANGED
|
@@ -84,10 +84,8 @@ body {
|
|
|
84
84
|
/* BADGE */
|
|
85
85
|
.mdf-badge {
|
|
86
86
|
display: inline-block;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
background: var(--background);
|
|
90
|
-
background: linear-gradient(var(--background), var(--background-dark));
|
|
87
|
+
background: var(--mdf-color-background-muted);
|
|
88
|
+
background: linear-gradient(var(--mdf-color-background-muted), var(--mdf-color-background-subtle));
|
|
91
89
|
|
|
92
90
|
padding: 5px 7px;
|
|
93
91
|
border-radius: 8px;
|
|
@@ -426,6 +424,7 @@ body {
|
|
|
426
424
|
padding: 10px 1rem;
|
|
427
425
|
border-radius: 8px;
|
|
428
426
|
background-color: var(--mdf-color-background-brand-primary);
|
|
427
|
+
border: 1px solid var(--mdf-color-border-brand-primary);
|
|
429
428
|
font-family: monospace;
|
|
430
429
|
margin: 0;
|
|
431
430
|
box-shadow: 0px 1px 1px var(--mdf-color-transparent-300);
|
|
@@ -479,8 +478,9 @@ body {
|
|
|
479
478
|
}
|
|
480
479
|
|
|
481
480
|
&:hover,
|
|
482
|
-
&.mdf-menu-item-current
|
|
483
|
-
|
|
481
|
+
&.mdf-menu-item-current,
|
|
482
|
+
&:focus-visible {
|
|
483
|
+
background: linear-gradient(var(--mdf-color-background-muted), var(--mdf-color-background-subtle));
|
|
484
484
|
box-shadow: 0px 1px 2px var(--mdf-color-transparent-300);
|
|
485
485
|
|
|
486
486
|
.mdf-menu-item-dot {
|
|
@@ -498,6 +498,25 @@ body {
|
|
|
498
498
|
&:active {
|
|
499
499
|
box-shadow: 0px 0px 1px var(--mdf-color-transparent-300);
|
|
500
500
|
}
|
|
501
|
+
|
|
502
|
+
&:focus-visible {
|
|
503
|
+
outline: 2px solid var(--mdf-color-outline-default);
|
|
504
|
+
outline-offset: 3px;
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
/* LIST */
|
|
510
|
+
.mdf-list {
|
|
511
|
+
display: flex;
|
|
512
|
+
flex-direction: column;
|
|
513
|
+
gap: 5px;
|
|
514
|
+
list-style: inside;
|
|
515
|
+
|
|
516
|
+
.mdf-list-item {
|
|
517
|
+
&::marker {
|
|
518
|
+
color: var(--mdf-color-text-muted);
|
|
519
|
+
}
|
|
501
520
|
}
|
|
502
521
|
}
|
|
503
522
|
|
package/src/variables.css
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
--mdf-color-grey-600: rgb(170, 170, 170);
|
|
10
10
|
--mdf-color-grey-700: rgb(201, 201, 201);
|
|
11
11
|
--mdf-color-grey-800: rgb(225, 225, 225);
|
|
12
|
-
--mdf-color-grey-900: rgb(
|
|
12
|
+
--mdf-color-grey-900: rgb(245, 245, 245);
|
|
13
13
|
--mdf-color-grey-1000: rgb(250, 250, 250);
|
|
14
14
|
|
|
15
15
|
--mdf-color-blue-0: hsl(from var(--mdf-color-blue-100) h s calc(l - 20));
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
--mdf-color-purple-100: rgb(70, 36, 112);
|
|
21
21
|
--mdf-color-purple-500: hsl(from var(--mdf-color-purple-100) h s calc(l + 20));
|
|
22
|
-
--mdf-color-purple-900: hsl(from var(--mdf-color-purple-100) h s calc(l +
|
|
22
|
+
--mdf-color-purple-900: hsl(from var(--mdf-color-purple-100) h calc(s + 50) calc(l + 65));
|
|
23
23
|
|
|
24
24
|
--mdf-color-green-0: hsl(from var(--mdf-color-green-100) h s calc(l - 20));
|
|
25
25
|
--mdf-color-green-100: rgb(49, 148, 59);
|
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
|
|
52
52
|
--mdf-color-background-default: var(--mdf-color-grey-1000);
|
|
53
53
|
--mdf-color-background-muted: var(--mdf-color-grey-900);
|
|
54
|
+
--mdf-color-background-subtle: var(--mdf-color-grey-800);
|
|
54
55
|
--mdf-color-background-brand-primary: var(--mdf-color-blue-900);
|
|
55
56
|
--mdf-color-background-brand-secondary: var(--mdf-color-purple-900);
|
|
56
57
|
--mdf-color-background-error: var(--mdf-color-red-900);
|
|
@@ -77,6 +78,7 @@
|
|
|
77
78
|
|
|
78
79
|
--mdf-color-background-default: var(--mdf-color-grey-100);
|
|
79
80
|
--mdf-color-background-muted: var(--mdf-color-grey-200);
|
|
81
|
+
--mdf-color-background-subtle: var(--mdf-color-grey-300);
|
|
80
82
|
--mdf-color-background-brand-primary: var(--mdf-color-blue-0);
|
|
81
83
|
--mdf-color-background-brand-secondary: var(--mdf-color-purple-100);
|
|
82
84
|
--mdf-color-background-error: var(--mdf-color-red-100);
|