diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..b08b675 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +/dist/* -diff \ No newline at end of file diff --git a/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md similarity index 100% rename from CODE_OF_CONDUCT.md rename to .github/CODE_OF_CONDUCT.md diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md new file mode 100755 index 0000000..7f003bd --- /dev/null +++ b/.github/CONTRIBUTING.md @@ -0,0 +1 @@ +> 💡 TODO: Add contributing guide diff --git a/README.md b/README.md index 3ab413b..f0b6e38 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![Water.css](logo.svg)](https://watercss.netlify.com/) -*A just-add-css collection of styles to make simple websites just a little nicer* +_A just-add-css collection of styles to make simple websites just a little nicer_ [![On reddit](https://img.shields.io/badge/on-reddit-orange.svg)](https://www.reddit.com/r/webdev/comments/b9m6mv/watercss_a_collection_of_neat_styles_for_simple/) [![On product hunt](https://img.shields.io/badge/on-product%20hunt-red.svg)](https://www.producthunt.com/posts/water-css) @@ -10,12 +10,12 @@ ## Goals - - Responsive - - Good code quality - - Good browser support (works on my old kindle's browser :P) - - Small size (< 2kb) - - Beautiful - - No classes +- Responsive +- Good code quality +- Good browser support (works on my old kindle's browser :P) +- Small size (< 2kb) +- Beautiful +- No classes ## Why? @@ -31,15 +31,35 @@ You probably don't want to use it for a production app or something that has mor ## How? -Just stick this in your head: +Just stick this in your ``: -```html - -``` +### 🌙 Dark theme: -Well, there's a dark theme and a light theme. If you want the light theme, use `light.css` instead of `dark.css`. See [Theming](#theming) to make your own theme! +`` -No other classes or code is required to make Water.css work. If you want a specific version, you can replace `@latest` with `@version`. See [all the versions](https://github.com/kognise/water.css/releases). +### ☀ Light theme: + +`` + +
+ +### Other options: + +> ⚡ An interactive version selection will be available soon [here](https://watercss.netlify.com/#select-version) + +#### Enforce a theme and ignore `(prefers-color-scheme)` + +For the main versions, `dark` or `light` is only treated as a _default theme_: if a user has a system-wide preference for either dark or light mode on their device, `water.css` will respect this. If you want to avoid this behavior and enforce dark or light theme, append `.standalone` to the theme prefix, e.g. `dark.standalone.min.css`. + +#### Want to support Internet Explorer? + +Sure, just extend the theme prefix with `-legacy`, e.g. `dark-legacy.min.css`. +Be aware that these versions **do not support** [runtime theming](#theming) as they use hard coded values rather than variables. Additionally, if you use a legacy version that is not standalone, we recommend [you add the respective preload tags to improve load times](#). + +#### Unminified builds + +All versions are also available as unminified stylesheets, which can be handy during development. +Simply remove the `.min` from the file name. **Oh, you want a demo you say?** Cheeky fellah! [Well, here's your demo.](https://watercss.netlify.com/) @@ -51,7 +71,7 @@ Water.css becomes better for everyone when people like you help make it better! Have any questions or concerns? Did I forget an element or selector? Does something look ugly? Feel free to submit an issue or pull request. -If you decide to contribute, after downloading a copy of the repository make sure to run `yarn` to install dependencies useful for development. Then, you can just run the following to start a server of the demo with live reloading and automatic Sass compiling. +If you decide to contribute, after downloading a copy of the repository make sure to run `yarn` to install dependencies useful for development. Then, you can just run the following to start a server of the demo with live reloading on change. ``` $ yarn dev @@ -61,6 +81,8 @@ And make sure to run `yarn build` before pushing any changes! Thanks for taking ## Theming +> ⚠ The theming guide is out of date and will be updated shortly! In the mean time, check src/variables-\*.css to see your customization options. + Do you want to make your own theme different from the light or dark themes? Since Water.css is built with Sass this is super easy to do. There are two methods. Also, here's a list of variables to set: - `$background` @@ -73,6 +95,8 @@ Do you want to make your own theme different from the light or dark themes? Sinc - `$code` - `$button-hover` - `$animation-duration` +- `$scrollbar-thumb` +- `$scrollbar-thumb-hover` - `$form-placeholder` - `$form-text` diff --git a/dist/dark-legacy.css b/dist/dark-legacy.css new file mode 100755 index 0000000..dc441cb --- /dev/null +++ b/dist/dark-legacy.css @@ -0,0 +1,12 @@ + + +@import url('https://cdn.jsdelivr.net/gh/kognise/water.css@latest/dist/dark-legacy.standalone.min.css'); +@import url('https://cdn.jsdelivr.net/gh/kognise/water.css@latest/dist/light-legacy.standalone.min.css') (prefers-color-scheme: light); +/** + * Dark-themed version for legacy browsers: + * Loads the compiled, standalone version of the dark theme, + * but overrides it with the compiled, standalone version of the light theme + * if a system-wide theme preference is set on the user's device. + */ + +/*# sourceMappingURL=dark-legacy.css.map */ diff --git a/dist/dark-legacy.css.map b/dist/dark-legacy.css.map new file mode 100644 index 0000000..ad079d2 --- /dev/null +++ b/dist/dark-legacy.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["dark-legacy.css"],"names":[],"mappings":";;AAOA,uGAAuG;AACvG,sIAC6B;AAT7B;;;;;EAKE","file":"dark-legacy.css","sourcesContent":["/**\r\n * Dark-themed version for legacy browsers:\r\n * Loads the compiled, standalone version of the dark theme,\r\n * but overrides it with the compiled, standalone version of the light theme\r\n * if a system-wide theme preference is set on the user's device.\r\n */\r\n\r\n@import url('https://cdn.jsdelivr.net/gh/kognise/water.css@latest/dist/dark-legacy.standalone.min.css');\r\n@import url('https://cdn.jsdelivr.net/gh/kognise/water.css@latest/dist/light-legacy.standalone.min.css')\r\n(prefers-color-scheme: light);\r\n"]} \ No newline at end of file diff --git a/dist/dark-legacy.min.css b/dist/dark-legacy.min.css new file mode 100755 index 0000000..94da0ff --- /dev/null +++ b/dist/dark-legacy.min.css @@ -0,0 +1,2 @@ +@import url("https://cdn.jsdelivr.net/gh/kognise/water.css@latest/dist/dark-legacy.standalone.min.css");@import url("https://cdn.jsdelivr.net/gh/kognise/water.css@latest/dist/light-legacy.standalone.min.css") (prefers-color-scheme: light); +/*# sourceMappingURL=dark-legacy.min.css.map */ diff --git a/dist/dark-legacy.min.css.map b/dist/dark-legacy.min.css.map new file mode 100644 index 0000000..cd93b2d --- /dev/null +++ b/dist/dark-legacy.min.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["dark-legacy.css"],"names":[],"mappings":"AAOA,uGAAuG,CACvG,sIAHE","file":"dark-legacy.min.css","sourcesContent":["/**\r\n * Dark-themed version for legacy browsers:\r\n * Loads the compiled, standalone version of the dark theme,\r\n * but overrides it with the compiled, standalone version of the light theme\r\n * if a system-wide theme preference is set on the user's device.\r\n */\r\n\r\n@import url('https://cdn.jsdelivr.net/gh/kognise/water.css@latest/dist/dark-legacy.standalone.min.css');\r\n@import url('https://cdn.jsdelivr.net/gh/kognise/water.css@latest/dist/light-legacy.standalone.min.css')\r\n(prefers-color-scheme: light);\r\n"]} \ No newline at end of file diff --git a/dist/dark-legacy.standalone.css b/dist/dark-legacy.standalone.css new file mode 100755 index 0000000..43dc058 --- /dev/null +++ b/dist/dark-legacy.standalone.css @@ -0,0 +1,420 @@ +/** + * Standalone dark-themed version for legacy browsers. + * Includes dark variables and core, compiled at build time so the final output + * will only include regular CSS, no variables. + */ + +body { + font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; + line-height: 1.4; + + max-width: 800px; + margin: 20px auto; + padding: 0 10px; + + color: #dbdbdb; + background: #202b38; + + text-rendering: optimizeLegibility; +} + +button { + transition: background-color 0.1s linear, + border-color 0.1s linear, + color 0.1s linear, + box-shadow 0.1s linear, + transform 0.1s ease; +} + +input { + transition: background-color 0.1s linear, + border-color 0.1s linear, + color 0.1s linear, + box-shadow 0.1s linear, + transform 0.1s ease; +} + +textarea { + transition: background-color 0.1s linear, + border-color 0.1s linear, + color 0.1s linear, + box-shadow 0.1s linear, + transform 0.1s ease; +} + +h1 { + font-size: 2.2em; + margin-top: 0; +} + +h1, +h2, +h3, +h4, +h5, +h6 { + margin-bottom: 12px; +} + +h1 { + color: #ffffff; +} + +h2 { + color: #ffffff; +} + +h3 { + color: #ffffff; +} + +h4 { + color: #ffffff; +} + +h5 { + color: #ffffff; +} + +h6 { + color: #ffffff; +} + +strong { + color: #ffffff; +} + +h1, +h2, +h3, +h4, +h5, +h6, +b, +strong, +th { + font-weight: 600; +} + +q:before { + content: none; +} + +q:after { + content: none; +} + +blockquote{ + border-left: 4px solid #0096bfab; + margin: 1.5em 0em; + padding: 0.5em 1em; + font-style: italic; +} + +q{ + border-left: 4px solid #0096bfab; + margin: 1.5em 0em; + padding: 0.5em 1em; + font-style: italic; +} + +blockquote > footer { + margin-top: 10px; + font-style: normal; +} + +blockquote cite { + font-style: normal; +} + +address { + font-style: normal; +} + +a[href^='mailto']::before { + content: '📧 '; +} + +a[href^='tel']::before { + content: '📞 '; +} + +a[href^='sms']::before { + content: '💬 '; +} + +mark { + background-color: #efdb43; + border-radius: 2px; + padding: 0px 2px 0px 2px; + color: #000000; +} + +button, +input[type='submit'], +input[type='button'], +input[type='checkbox'] { + cursor: pointer; +} + +input:not([type='checkbox']):not([type='radio']), +select { + display: block; +} + +input { + color: #ffffff; + background-color: #161f27; + + font-family: inherit; + font-size: inherit; + + margin-right: 6px; + margin-bottom: 6px; + padding: 10px; + + border: none; + border-radius: 6px; + outline: none; +} + +select { + color: #ffffff; + background-color: #161f27; + + font-family: inherit; + font-size: inherit; + + margin-right: 6px; + margin-bottom: 6px; + padding: 10px; + + border: none; + border-radius: 6px; + outline: none; +} + +button { + color: #ffffff; + background-color: #161f27; + + font-family: inherit; + font-size: inherit; + + margin-right: 6px; + margin-bottom: 6px; + padding: 10px; + + border: none; + border-radius: 6px; + outline: none; +} + +textarea { + color: #ffffff; + background-color: #161f27; + + font-family: inherit; + font-size: inherit; + + margin-right: 6px; + margin-bottom: 6px; + padding: 10px; + + border: none; + border-radius: 6px; + outline: none; +} + +input:not([type='checkbox']):not([type='radio']), +select, +button, +textarea { + -webkit-appearance: none; +} + +textarea { + margin-right: 0; + width: 100%; + box-sizing: border-box; + resize: vertical; +} + +button, +input[type='submit'], +input[type='button'] { + padding-right: 30px; + padding-left: 30px; +} + +button:hover { + background: #324759; +} + +input[type='submit']:hover { + background: #324759; +} + +input[type='button']:hover { + background: #324759; +} + +input:focus { + box-shadow: 0 0 0 2px #0096bfab; +} + +select:focus { + box-shadow: 0 0 0 2px #0096bfab; +} + +button:focus { + box-shadow: 0 0 0 2px #0096bfab; +} + +textarea:focus { + box-shadow: 0 0 0 2px #0096bfab; +} + +input[type='checkbox']:active, +input[type='radio']:active, +input[type='submit']:active, +input[type='button']:active, +button:active { + transform: translateY(2px); +} + +input:disabled, +select:disabled, +button:disabled, +textarea:disabled { + cursor: not-allowed; + opacity: 0.5; +} + +::-webkit-input-placeholder { + color: #a9a9a9; +} + +:-ms-input-placeholder { + color: #a9a9a9; +} + +::-ms-input-placeholder { + color: #a9a9a9; +} + +::placeholder { + color: #a9a9a9; +} + +a { + text-decoration: none; + color: #41adff; +} + +a:hover { + text-decoration: underline; +} + +code { + background: #161f27; + color: #ffbe85; + padding: 2.5px 5px; + border-radius: 6px; + font-size: 1em; +} + +samp { + background: #161f27; + color: #ffbe85; + padding: 2.5px 5px; + border-radius: 6px; + font-size: 1em; +} + +time { + background: #161f27; + color: #ffbe85; + padding: 2.5px 5px; + border-radius: 6px; + font-size: 1em; +} + +pre > code { + padding: 10px; + display: block; + overflow-x: auto; +} + +var { + color: #d941e2; + font-style: normal; + font-family: monospace; +} + +kbd { + background: #161f27; + border: 1px solid #dbdbdb; + border-radius: 2px; + color: #dbdbdb; + padding: 2px 4px 2px 4px; +} + +img { + max-width: 100%; + height: auto; +} + +hr { + border: none; + border-top: 1px solid #dbdbdb; +} + +table { + border-collapse: collapse; + margin-bottom: 10px; + width: 100%; +} + +td, +th { + padding: 6px; + text-align: left; +} + +th { + border-bottom: 1px solid #dbdbdb; +} + +tbody tr:nth-child(even) { + background-color: #1a242f; +} + +::-webkit-scrollbar { + height: 10px; + width: 10px; +} + +::-webkit-scrollbar-track { + background: #161f27; + border-radius: 6px; +} + +::-webkit-scrollbar-thumb { + background: #324759; + border-radius: 6px; +} + +::-webkit-scrollbar-thumb:hover { + background: rgb(65, 92, 115); +} + +::-moz-selection { + background-color: #161f27; +} + +::selection { + background-color: #161f27; +} + +/*# sourceMappingURL=dark-legacy.standalone.css.map */ diff --git a/dist/dark-legacy.standalone.css.map b/dist/dark-legacy.standalone.css.map new file mode 100644 index 0000000..263963c --- /dev/null +++ b/dist/dark-legacy.standalone.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["dark-legacy.standalone.css","../parts/_base.css","../parts/_typography.css","../parts/_forms.css","../parts/_links.css","../parts/_code.css","../parts/_misc.css"],"names":[],"mappings":"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","file":"dark-legacy.standalone.css","sourcesContent":["/**\r\n * Standalone dark-themed version for legacy browsers.\r\n * Includes dark variables and core, compiled at build time so the final output\r\n * will only include regular CSS, no variables.\r\n */\r\n\r\n@import '../variables-dark.css';\r\n@import '../parts/_core.css';\r\n","body {\r\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\r\n line-height: 1.4;\r\n\r\n max-width: 800px;\r\n margin: 20px auto;\r\n padding: 0 10px;\r\n\r\n color: var(--text-main);\r\n background: var(--background-body);\r\n\r\n text-rendering: optimizeLegibility;\r\n}\r\n\r\nbutton, input, textarea {\r\n transition: background-color var(--animation-duration) linear,\r\n border-color var(--animation-duration) linear,\r\n color var(--animation-duration) linear,\r\n box-shadow var(--animation-duration) linear,\r\n transform var(--animation-duration) ease;\r\n}\r\n","h1 {\r\n font-size: 2.2em;\r\n margin-top: 0;\r\n}\r\n\r\nh1,\r\nh2,\r\nh3,\r\nh4,\r\nh5,\r\nh6 {\r\n margin-bottom: 12px;\r\n}\r\n\r\nh1,\r\nh2,\r\nh3,\r\nh4,\r\nh5,\r\nh6,\r\nstrong {\r\n color: var(--text-bright);\r\n}\r\n\r\nh1,\r\nh2,\r\nh3,\r\nh4,\r\nh5,\r\nh6,\r\nb,\r\nstrong,\r\nth {\r\n font-weight: 600;\r\n}\r\n\r\nq:before {\r\n content: none;\r\n}\r\n\r\nq:after {\r\n content: none;\r\n}\r\n\r\nblockquote , q{\r\n border-left: 4px solid var(--focus);\r\n margin: 1.5em 0em;\r\n padding: 0.5em 1em;\r\n font-style: italic;\r\n}\r\n\r\nblockquote > footer {\r\n margin-top: 10px;\r\n font-style: normal;\r\n}\r\n\r\nblockquote cite {\r\n font-style: normal;\r\n}\r\n\r\naddress {\r\n font-style: normal;\r\n}\r\n\r\na[href^='mailto']::before {\r\n content: '📧 ';\r\n}\r\n\r\na[href^='tel']::before {\r\n content: '📞 ';\r\n}\r\n\r\na[href^='sms']::before {\r\n content: '💬 ';\r\n}\r\n\r\nmark {\r\n background-color: var(--highlight);\r\n border-radius: 2px;\r\n padding: 0px 2px 0px 2px;\r\n color: #000000;\r\n}","button,\r\ninput[type='submit'],\r\ninput[type='button'],\r\ninput[type='checkbox'] {\r\n cursor: pointer;\r\n}\r\n\r\ninput:not([type='checkbox']):not([type='radio']),\r\nselect {\r\n display: block;\r\n}\r\n\r\ninput,\r\nselect,\r\nbutton,\r\ntextarea {\r\n color: var(--form-text);\r\n background-color: var(--background);\r\n\r\n font-family: inherit;\r\n font-size: inherit;\r\n\r\n margin-right: 6px;\r\n margin-bottom: 6px;\r\n padding: 10px;\r\n\r\n border: none;\r\n border-radius: 6px;\r\n outline: none;\r\n}\r\n\r\ninput:not([type='checkbox']):not([type='radio']),\r\nselect,\r\nbutton,\r\ntextarea {\r\n -webkit-appearance: none;\r\n}\r\n\r\ntextarea {\r\n margin-right: 0;\r\n width: 100%;\r\n box-sizing: border-box;\r\n resize: vertical;\r\n}\r\n\r\nbutton,\r\ninput[type='submit'],\r\ninput[type='button'] {\r\n padding-right: 30px;\r\n padding-left: 30px;\r\n}\r\n\r\nbutton:hover,\r\ninput[type='submit']:hover,\r\ninput[type='button']:hover {\r\n background: var(--button-hover);\r\n}\r\n\r\ninput:focus,\r\nselect:focus,\r\nbutton:focus,\r\ntextarea:focus {\r\n box-shadow: 0 0 0 2px var(--focus);\r\n}\r\n\r\ninput[type='checkbox']:active,\r\ninput[type='radio']:active,\r\ninput[type='submit']:active,\r\ninput[type='button']:active,\r\nbutton:active {\r\n transform: translateY(2px);\r\n}\r\n\r\ninput:disabled,\r\nselect:disabled,\r\nbutton:disabled,\r\ntextarea:disabled {\r\n cursor: not-allowed;\r\n opacity: 0.5;\r\n}\r\n\r\n::placeholder {\r\n color: var(--form-placeholder);\r\n}\r\n","a {\r\n text-decoration: none;\r\n color: var(--links);\r\n}\r\n\r\na:hover {\r\n text-decoration: underline;\r\n}","code, samp, time {\r\n background: var(--background);\r\n color: var(--code);\r\n padding: 2.5px 5px;\r\n border-radius: 6px;\r\n font-size: 1em;\r\n}\r\n\r\npre > code {\r\n padding: 10px;\r\n display: block;\r\n overflow-x: auto;\r\n}\r\n\r\nvar {\r\n color: var(--variable);\r\n font-style: normal;\r\n font-family: monospace;\r\n}\r\n\r\nkbd {\r\n background: var(--background);\r\n border: 1px solid var(--border);\r\n border-radius: 2px;\r\n color: var(--text-main);\r\n padding: 2px 4px 2px 4px;\r\n}","img {\r\n max-width: 100%;\r\n height: auto;\r\n}\r\n\r\nhr {\r\n border: none;\r\n border-top: 1px solid var(--border);\r\n}\r\n\r\ntable {\r\n border-collapse: collapse;\r\n margin-bottom: 10px;\r\n width: 100%;\r\n}\r\n\r\ntd,\r\nth {\r\n padding: 6px;\r\n text-align: left;\r\n}\r\n\r\nth {\r\n border-bottom: 1px solid var(--border);\r\n}\r\n\r\ntbody tr:nth-child(even) {\r\n background-color: var(--background-alt);\r\n}\r\n\r\n::-webkit-scrollbar {\r\n height: 10px;\r\n width: 10px;\r\n}\r\n\r\n::-webkit-scrollbar-track {\r\n background: var(--background);\r\n border-radius: 6px;\r\n}\r\n\r\n::-webkit-scrollbar-thumb {\r\n background: var(--scrollbar-thumb);\r\n border-radius: 6px;\r\n}\r\n\r\n::-webkit-scrollbar-thumb:hover {\r\n background: var(--scrollbar-thumb-hover);\r\n}\r\n\r\n::selection {\r\n background-color: var(--selection);\r\n}\r\n"]} \ No newline at end of file diff --git a/dist/dark-legacy.standalone.min.css b/dist/dark-legacy.standalone.min.css new file mode 100755 index 0000000..671b808 --- /dev/null +++ b/dist/dark-legacy.standalone.min.css @@ -0,0 +1,2 @@ +body{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;line-height:1.4;max-width:800px;margin:20px auto;padding:0 10px;color:#dbdbdb;background:#202b38;text-rendering:optimizeLegibility}button,input,textarea{transition:background-color .1s linear,border-color .1s linear,color .1s linear,box-shadow .1s linear,transform .1s ease}h1{font-size:2.2em;margin-top:0}h1,h2,h3,h4,h5,h6{margin-bottom:12px}h1,h2,h3,h4,h5,h6,strong{color:#fff}b,h1,h2,h3,h4,h5,h6,strong,th{font-weight:600}q:after,q:before{content:none}blockquote,q{border-left:4px solid rgba(0,150,191,.67);margin:1.5em 0;padding:.5em 1em;font-style:italic}blockquote>footer{margin-top:10px;font-style:normal}address,blockquote cite{font-style:normal}a[href^=mailto]:before{content:"📧 "}a[href^=tel]:before{content:"📞 "}a[href^=sms]:before{content:"💬 "}mark{background-color:#efdb43;border-radius:2px;padding:0 2px;color:#000}button,input[type=button],input[type=checkbox],input[type=submit]{cursor:pointer}input:not([type=checkbox]):not([type=radio]),select{display:block}button,input,select,textarea{color:#fff;background-color:#161f27;font-family:inherit;font-size:inherit;margin-right:6px;margin-bottom:6px;padding:10px;border:none;border-radius:6px;outline:none}button,input:not([type=checkbox]):not([type=radio]),select,textarea{-webkit-appearance:none}textarea{margin-right:0;width:100%;box-sizing:border-box;resize:vertical}button,input[type=button],input[type=submit]{padding-right:30px;padding-left:30px}button:hover,input[type=button]:hover,input[type=submit]:hover{background:#324759}button:focus,input:focus,select:focus,textarea:focus{box-shadow:0 0 0 2px rgba(0,150,191,.67)}button:active,input[type=button]:active,input[type=checkbox]:active,input[type=radio]:active,input[type=submit]:active{transform:translateY(2px)}button:disabled,input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;opacity:.5}::-webkit-input-placeholder{color:#a9a9a9}:-ms-input-placeholder{color:#a9a9a9}::-ms-input-placeholder{color:#a9a9a9}::placeholder{color:#a9a9a9}a{text-decoration:none;color:#41adff}a:hover{text-decoration:underline}code,samp,time{background:#161f27;color:#ffbe85;padding:2.5px 5px;border-radius:6px;font-size:1em}pre>code{padding:10px;display:block;overflow-x:auto}var{color:#d941e2;font-style:normal;font-family:monospace}kbd{background:#161f27;border:1px solid #dbdbdb;border-radius:2px;color:#dbdbdb;padding:2px 4px}img{max-width:100%;height:auto}hr{border:none;border-top:1px solid #dbdbdb}table{border-collapse:collapse;margin-bottom:10px;width:100%}td,th{padding:6px;text-align:left}th{border-bottom:1px solid #dbdbdb}tbody tr:nth-child(2n){background-color:#1a242f}::-webkit-scrollbar{height:10px;width:10px}::-webkit-scrollbar-track{background:#161f27;border-radius:6px}::-webkit-scrollbar-thumb{background:#324759;border-radius:6px}::-webkit-scrollbar-thumb:hover{background:#415c73}::-moz-selection{background-color:#161f27}::selection{background-color:#161f27} +/*# sourceMappingURL=dark-legacy.standalone.min.css.map */ diff --git a/dist/dark-legacy.standalone.min.css.map b/dist/dark-legacy.standalone.min.css.map new file mode 100644 index 0000000..1583a38 --- /dev/null +++ b/dist/dark-legacy.standalone.min.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["../parts/_base.css","../parts/_typography.css","../parts/_forms.css","../parts/_links.css","../parts/_code.css","../parts/_misc.css"],"names":[],"mappings":"AAAA,KACE,6IAAyK,CACzK,eAAgB,CAEhB,eAAgB,CAChB,gBAAiB,CACjB,cAAe,CAEf,aAAuB,CACvB,kBAAkC,CAElC,iCACF,CAEA,sBACE,wHAKF,CCpBA,GACE,eAAgB,CAChB,YACF,CAEA,kBAME,kBACF,CAEA,yBAOE,UACF,CAEA,8BASE,eACF,CAMA,iBACG,YACH,CAEA,aACE,yCAAmC,CACnC,cAAiB,CACjB,gBAAkB,CAClB,iBACF,CAEA,kBACE,eAAgB,CAChB,iBACF,CAMA,wBACE,iBACF,CAEA,uBACE,aACF,CAEA,oBACE,aACF,CAEA,oBACE,aACF,CAEA,KACE,wBAAkC,CAClC,iBAAkB,CAClB,aAAwB,CACxB,UACF,CCjFA,kEAIE,cACF,CAEA,oDAEE,aACF,CAEA,6BAIE,UAAuB,CACvB,wBAAmC,CAEnC,mBAAoB,CACpB,iBAAkB,CAElB,gBAAiB,CACjB,iBAAkB,CAClB,YAAa,CAEb,WAAY,CACZ,iBAAkB,CAClB,YACF,CAEA,oEAIE,uBACF,CAEA,SACE,cAAe,CACf,UAAW,CACX,qBAAsB,CACtB,eACF,CAEA,6CAGE,kBAAmB,CACnB,iBACF,CAEA,+DAGE,kBACF,CAEA,qDAIE,wCACF,CAEA,uHAKE,yBACF,CAEA,iEAIE,kBAAmB,CACnB,UACF,CAEA,4BACE,aACF,CAFA,uBACE,aACF,CAFA,wBACE,aACF,CAFA,cACE,aACF,CCnFA,EACE,oBAAqB,CACrB,aACF,CAEA,QACE,yBACF,CCPA,eACE,kBAA8B,CAC9B,aAAkB,CAClB,iBAAkB,CAClB,iBAAkB,CAClB,aACF,CAEA,SACE,YAAa,CACb,aAAc,CACd,eACF,CAEA,IACE,aAAsB,CACtB,iBAAkB,CAClB,qBACF,CAEA,IACE,kBAA6B,CAC7B,wBAA+B,CAC/B,iBAAkB,CAClB,aAAuB,CACvB,eACF,CC1BA,IACE,cAAe,CACf,WACF,CAEA,GAEE,WAAmC,CAAnC,4BACF,CAEA,MACE,wBAAyB,CACzB,kBAAmB,CACnB,UACF,CAEA,MAEE,WAAY,CACZ,eACF,CAEA,GACE,+BACF,CAEA,uBACE,wBACF,CAEA,oBACE,WAAY,CACZ,UACF,CAEA,0BACE,kBAA6B,CAC7B,iBACF,CAEA,0BACE,kBAAkC,CAClC,iBACF,CAEA,gCACE,kBACF,CAEA,iBACE,wBACF,CAFA,YACE,wBACF","file":"dark-legacy.standalone.min.css","sourcesContent":["body {\r\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\r\n line-height: 1.4;\r\n\r\n max-width: 800px;\r\n margin: 20px auto;\r\n padding: 0 10px;\r\n\r\n color: var(--text-main);\r\n background: var(--background-body);\r\n\r\n text-rendering: optimizeLegibility;\r\n}\r\n\r\nbutton, input, textarea {\r\n transition: background-color var(--animation-duration) linear,\r\n border-color var(--animation-duration) linear,\r\n color var(--animation-duration) linear,\r\n box-shadow var(--animation-duration) linear,\r\n transform var(--animation-duration) ease;\r\n}\r\n","h1 {\r\n font-size: 2.2em;\r\n margin-top: 0;\r\n}\r\n\r\nh1,\r\nh2,\r\nh3,\r\nh4,\r\nh5,\r\nh6 {\r\n margin-bottom: 12px;\r\n}\r\n\r\nh1,\r\nh2,\r\nh3,\r\nh4,\r\nh5,\r\nh6,\r\nstrong {\r\n color: var(--text-bright);\r\n}\r\n\r\nh1,\r\nh2,\r\nh3,\r\nh4,\r\nh5,\r\nh6,\r\nb,\r\nstrong,\r\nth {\r\n font-weight: 600;\r\n}\r\n\r\nq:before {\r\n content: none;\r\n}\r\n\r\nq:after {\r\n content: none;\r\n}\r\n\r\nblockquote , q{\r\n border-left: 4px solid var(--focus);\r\n margin: 1.5em 0em;\r\n padding: 0.5em 1em;\r\n font-style: italic;\r\n}\r\n\r\nblockquote > footer {\r\n margin-top: 10px;\r\n font-style: normal;\r\n}\r\n\r\nblockquote cite {\r\n font-style: normal;\r\n}\r\n\r\naddress {\r\n font-style: normal;\r\n}\r\n\r\na[href^='mailto']::before {\r\n content: '📧 ';\r\n}\r\n\r\na[href^='tel']::before {\r\n content: '📞 ';\r\n}\r\n\r\na[href^='sms']::before {\r\n content: '💬 ';\r\n}\r\n\r\nmark {\r\n background-color: var(--highlight);\r\n border-radius: 2px;\r\n padding: 0px 2px 0px 2px;\r\n color: #000000;\r\n}","button,\r\ninput[type='submit'],\r\ninput[type='button'],\r\ninput[type='checkbox'] {\r\n cursor: pointer;\r\n}\r\n\r\ninput:not([type='checkbox']):not([type='radio']),\r\nselect {\r\n display: block;\r\n}\r\n\r\ninput,\r\nselect,\r\nbutton,\r\ntextarea {\r\n color: var(--form-text);\r\n background-color: var(--background);\r\n\r\n font-family: inherit;\r\n font-size: inherit;\r\n\r\n margin-right: 6px;\r\n margin-bottom: 6px;\r\n padding: 10px;\r\n\r\n border: none;\r\n border-radius: 6px;\r\n outline: none;\r\n}\r\n\r\ninput:not([type='checkbox']):not([type='radio']),\r\nselect,\r\nbutton,\r\ntextarea {\r\n -webkit-appearance: none;\r\n}\r\n\r\ntextarea {\r\n margin-right: 0;\r\n width: 100%;\r\n box-sizing: border-box;\r\n resize: vertical;\r\n}\r\n\r\nbutton,\r\ninput[type='submit'],\r\ninput[type='button'] {\r\n padding-right: 30px;\r\n padding-left: 30px;\r\n}\r\n\r\nbutton:hover,\r\ninput[type='submit']:hover,\r\ninput[type='button']:hover {\r\n background: var(--button-hover);\r\n}\r\n\r\ninput:focus,\r\nselect:focus,\r\nbutton:focus,\r\ntextarea:focus {\r\n box-shadow: 0 0 0 2px var(--focus);\r\n}\r\n\r\ninput[type='checkbox']:active,\r\ninput[type='radio']:active,\r\ninput[type='submit']:active,\r\ninput[type='button']:active,\r\nbutton:active {\r\n transform: translateY(2px);\r\n}\r\n\r\ninput:disabled,\r\nselect:disabled,\r\nbutton:disabled,\r\ntextarea:disabled {\r\n cursor: not-allowed;\r\n opacity: 0.5;\r\n}\r\n\r\n::placeholder {\r\n color: var(--form-placeholder);\r\n}\r\n","a {\r\n text-decoration: none;\r\n color: var(--links);\r\n}\r\n\r\na:hover {\r\n text-decoration: underline;\r\n}","code, samp, time {\r\n background: var(--background);\r\n color: var(--code);\r\n padding: 2.5px 5px;\r\n border-radius: 6px;\r\n font-size: 1em;\r\n}\r\n\r\npre > code {\r\n padding: 10px;\r\n display: block;\r\n overflow-x: auto;\r\n}\r\n\r\nvar {\r\n color: var(--variable);\r\n font-style: normal;\r\n font-family: monospace;\r\n}\r\n\r\nkbd {\r\n background: var(--background);\r\n border: 1px solid var(--border);\r\n border-radius: 2px;\r\n color: var(--text-main);\r\n padding: 2px 4px 2px 4px;\r\n}","img {\r\n max-width: 100%;\r\n height: auto;\r\n}\r\n\r\nhr {\r\n border: none;\r\n border-top: 1px solid var(--border);\r\n}\r\n\r\ntable {\r\n border-collapse: collapse;\r\n margin-bottom: 10px;\r\n width: 100%;\r\n}\r\n\r\ntd,\r\nth {\r\n padding: 6px;\r\n text-align: left;\r\n}\r\n\r\nth {\r\n border-bottom: 1px solid var(--border);\r\n}\r\n\r\ntbody tr:nth-child(even) {\r\n background-color: var(--background-alt);\r\n}\r\n\r\n::-webkit-scrollbar {\r\n height: 10px;\r\n width: 10px;\r\n}\r\n\r\n::-webkit-scrollbar-track {\r\n background: var(--background);\r\n border-radius: 6px;\r\n}\r\n\r\n::-webkit-scrollbar-thumb {\r\n background: var(--scrollbar-thumb);\r\n border-radius: 6px;\r\n}\r\n\r\n::-webkit-scrollbar-thumb:hover {\r\n background: var(--scrollbar-thumb-hover);\r\n}\r\n\r\n::selection {\r\n background-color: var(--selection);\r\n}\r\n"]} \ No newline at end of file diff --git a/dist/dark.css b/dist/dark.css index 1033649..10f9dfd 100644 --- a/dist/dark.css +++ b/dist/dark.css @@ -1,2 +1,364 @@ -@charset "UTF-8";body{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;line-height:1.4;max-width:800px;margin:20px auto;padding:0 10px;color:#dbdbdb;background:#202b38;text-rendering:optimizeLegibility}button,input,textarea{transition:background-color .1s linear,border-color .1s linear,color .1s linear,box-shadow .1s linear,transform .1s ease}h1{font-size:2.2em;margin-top:0}h1,h2,h3,h4,h5,h6{margin-bottom:12px}h1,h2,h3,h4,h5,h6,strong{color:#fff}b,h1,h2,h3,h4,h5,h6,strong,th{font-weight:600}blockquote{border-left:4px solid rgba(0,150,191,.67);margin:1.5em 0;padding:.5em 1em;font-style:italic}blockquote>footer{margin-top:10px;font-style:normal}address,blockquote cite{font-style:normal}a[href^=mailto]:before{content:"📧 "}a[href^=tel]:before{content:"📞 "}a[href^=sms]:before{content:"💬 "}button,input[type=button],input[type=checkbox],input[type=radio],input[type=submit]{cursor:pointer}input:not([type=checkbox]):not([type=radio]),select{display:block}button,input,select,textarea{color:#fff;background-color:#161f27;font-family:inherit;font-size:inherit;margin-right:6px;margin-bottom:6px;padding:10px;border:none;border-radius:6px;outline:none;-webkit-appearance:none}textarea{margin-right:0;width:100%;box-sizing:border-box;resize:vertical}button,input[type=button],input[type=submit]{padding-right:30px;padding-left:30px}button:hover,input[type=button]:hover,input[type=submit]:hover{background:#324759}button:focus,input:focus,select:focus,textarea:focus{box-shadow:0 0 0 2px rgba(0,150,191,.67)}input[type=checkbox],input[type=radio]{width:14px;height:14px;display:inline-block;vertical-align:middle;margin:0 2px 0 0}input[type=radio]{border-radius:50%}input[type=checkbox]:checked,input[type=radio]:checked{background:#324759}input[type=checkbox]:checked:before,input[type=radio]:checked:before{content:"•";display:block;transform:translateY(-50%) translateY(-.3px) translateX(-2.7px)}input[type=checkbox]:checked:before{content:"✔";transform:translateY(-50%) translateY(.5px) translateX(-6px)}button:active,input[type=button]:active,input[type=checkbox]:active,input[type=radio]:active,input[type=submit]:active{transform:translateY(2px)}button:disabled,input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;opacity:.5}::-webkit-input-placeholder{color:#a9a9a9}:-ms-input-placeholder{color:#a9a9a9}::-ms-input-placeholder{color:#a9a9a9}::placeholder{color:#a9a9a9}a{text-decoration:none;color:#41adff}a:hover{text-decoration:underline}code,kbd{background:#161f27;color:#ffbe85;padding:5px;border-radius:6px}pre>code{padding:10px;display:block;overflow-x:auto}img{max-width:100%}hr{border:none;border-top:1px solid #dbdbdb}table{border-collapse:collapse;margin-bottom:10px;width:100%}td,th{padding:6px;text-align:left}th{border-bottom:1px solid #dbdbdb}tbody tr:nth-child(2n){background-color:#161f27}::-webkit-scrollbar{height:10px;width:10px}::-webkit-scrollbar-track{background:#161f27;border-radius:6px}::-webkit-scrollbar-thumb{background:#324759;border-radius:6px}::-webkit-scrollbar-thumb:hover{background:#415c73} +/** + * Dark-themed version: + * uses dark theme by default but switches to light theme + * if a system-wide theme preference is set on the user's device. + * + * Variables will remain uncompiled so the theme can update dynamically + * at runtime in the browser. + */ + +:root { + --background-body: #202b38; + --background: #161f27; + --background-alt: #1a242f; + + --selection: #161f27; + + --text-main: #dbdbdb; + --text-bright: #ffffff; + + --links: #41adff; + --focus: #0096bfab; + --border: #dbdbdb; + --code: #ffbe85; + + --animation-duration: 0.1s; + --button-hover: #324759; + + --scrollbar-thumb: var(--button-hover); + --scrollbar-thumb-hover: rgb(65, 92, 115); + + --form-placeholder: #a9a9a9; + --form-text: #ffffff; + + --variable: #d941e2; + --highlight: #efdb43; +} + +@media (prefers-color-scheme: light) { +:root { + --background-body: #ffffff; + --background: #efefef; + --background-alt: #f7f7f7; + + --selection: #9e9e9e; + + --text-main: #363636; + --text-bright: #000000; + + --links: #0076d1; + --focus: #0096bfab; + --border: #dbdbdb; + --code: #000000; + + --animation-duration: 0.1s; + --button-hover: #dddddd; + + --scrollbar-thumb: rgb(44, 63, 79); + --scrollbar-thumb-hover: rgb(32, 45, 56); + + --form-placeholder: #949494; + --form-text: #000000; + + --variable: #39a33c; + --highlight: #ffff00; +} +} + +body { + font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; + line-height: 1.4; + + max-width: 800px; + margin: 20px auto; + padding: 0 10px; + + color: var(--text-main); + background: var(--background-body); + + text-rendering: optimizeLegibility; +} + +button, input, textarea { + transition: background-color var(--animation-duration) linear, + border-color var(--animation-duration) linear, + color var(--animation-duration) linear, + box-shadow var(--animation-duration) linear, + transform var(--animation-duration) ease; +} + +h1 { + font-size: 2.2em; + margin-top: 0; +} + +h1, +h2, +h3, +h4, +h5, +h6 { + margin-bottom: 12px; +} + +h1, +h2, +h3, +h4, +h5, +h6, +strong { + color: var(--text-bright); +} + +h1, +h2, +h3, +h4, +h5, +h6, +b, +strong, +th { + font-weight: 600; +} + +q:before { + content: none; +} + +q:after { + content: none; +} + +blockquote , q{ + border-left: 4px solid var(--focus); + margin: 1.5em 0em; + padding: 0.5em 1em; + font-style: italic; +} + +blockquote > footer { + margin-top: 10px; + font-style: normal; +} + +blockquote cite { + font-style: normal; +} + +address { + font-style: normal; +} + +a[href^='mailto']::before { + content: '📧 '; +} + +a[href^='tel']::before { + content: '📞 '; +} + +a[href^='sms']::before { + content: '💬 '; +} + +mark { + background-color: var(--highlight); + border-radius: 2px; + padding: 0px 2px 0px 2px; + color: #000000; +} + +button, +input[type='submit'], +input[type='button'], +input[type='checkbox'] { + cursor: pointer; +} + +input:not([type='checkbox']):not([type='radio']), +select { + display: block; +} + +input, +select, +button, +textarea { + color: var(--form-text); + background-color: var(--background); + + font-family: inherit; + font-size: inherit; + + margin-right: 6px; + margin-bottom: 6px; + padding: 10px; + + border: none; + border-radius: 6px; + outline: none; +} + +input:not([type='checkbox']):not([type='radio']), +select, +button, +textarea { + -webkit-appearance: none; +} + +textarea { + margin-right: 0; + width: 100%; + box-sizing: border-box; + resize: vertical; +} + +button, +input[type='submit'], +input[type='button'] { + padding-right: 30px; + padding-left: 30px; +} + +button:hover, +input[type='submit']:hover, +input[type='button']:hover { + background: var(--button-hover); +} + +input:focus, +select:focus, +button:focus, +textarea:focus { + box-shadow: 0 0 0 2px var(--focus); +} + +input[type='checkbox']:active, +input[type='radio']:active, +input[type='submit']:active, +input[type='button']:active, +button:active { + transform: translateY(2px); +} + +input:disabled, +select:disabled, +button:disabled, +textarea:disabled { + cursor: not-allowed; + opacity: 0.5; +} + +::-webkit-input-placeholder { + color: var(--form-placeholder); +} + +:-ms-input-placeholder { + color: var(--form-placeholder); +} + +::-ms-input-placeholder { + color: var(--form-placeholder); +} + +::placeholder { + color: var(--form-placeholder); +} + +a { + text-decoration: none; + color: var(--links); +} + +a:hover { + text-decoration: underline; +} + +code, samp, time { + background: var(--background); + color: var(--code); + padding: 2.5px 5px; + border-radius: 6px; + font-size: 1em; +} + +pre > code { + padding: 10px; + display: block; + overflow-x: auto; +} + +var { + color: var(--variable); + font-style: normal; + font-family: monospace; +} + +kbd { + background: var(--background); + border: 1px solid var(--border); + border-radius: 2px; + color: var(--text-main); + padding: 2px 4px 2px 4px; +} + +img { + max-width: 100%; + height: auto; +} + +hr { + border: none; + border-top: 1px solid var(--border); +} + +table { + border-collapse: collapse; + margin-bottom: 10px; + width: 100%; +} + +td, +th { + padding: 6px; + text-align: left; +} + +th { + border-bottom: 1px solid var(--border); +} + +tbody tr:nth-child(even) { + background-color: var(--background-alt); +} + +::-webkit-scrollbar { + height: 10px; + width: 10px; +} + +::-webkit-scrollbar-track { + background: var(--background); + border-radius: 6px; +} + +::-webkit-scrollbar-thumb { + background: var(--scrollbar-thumb); + border-radius: 6px; +} + +::-webkit-scrollbar-thumb:hover { + background: var(--scrollbar-thumb-hover); +} + +::-moz-selection { + background-color: var(--selection); +} + +::selection { + background-color: var(--selection); +} + /*# sourceMappingURL=dark.css.map */ diff --git a/dist/dark.css.map b/dist/dark.css.map index f113cb7..d732014 100644 --- a/dist/dark.css.map +++ b/dist/dark.css.map @@ -1 +1 @@ -{"version":3,"sources":["parts/_typography.scss","parts/_base.scss","dark.scss","parts/_forms.scss","parts/_links.scss","parts/_code.scss","parts/_misc.scss"],"names":[],"mappings":"AAwDA,gBACiB,CCzDjB,KACE,6IAAyK,CACzK,eAAgB,CAEhB,eAAgB,CAChB,gBAAiB,CACjB,cAAe,CAEf,aCLiB,CDMjB,kBCTkB,CDWlB,iCAAkC,CAGpC,sBACE,wHAI8C,CDnBhD,GACE,eAAgB,CAChB,YAAa,CAGf,kBAME,kBAAmB,CAGrB,yBAOE,UEjBmB,CFoBrB,8BASE,eAAgB,CAGlB,WACE,yCE9Be,CF+Bf,cAAiB,CACjB,gBAAkB,CAClB,iBAAkB,CAGpB,kBACE,eAAgB,CAChB,iBAAkB,CAOpB,wBACE,iBAAkB,CAGpB,uBACE,aAAe,CAGjB,oBACE,aAAe,CAGjB,oBACE,aAAe,CGjEjB,oFAKE,cAAe,CAGjB,oDAEE,aAAc,CAGhB,6BACE,UDIiB,CCHjB,wBDdsB,CCgBtB,mBAAoB,CACpB,iBAAkB,CAElB,gBAAiB,CACjB,iBAAkB,CAClB,YAAa,CAEb,WAAY,CACZ,iBAAkB,CAClB,YAAa,CAEb,uBAAwB,CAG1B,SACE,cAAe,CACf,UAAW,CACX,qBAAsB,CACtB,eAAgB,CAGlB,6CACE,kBAAmB,CACnB,iBAAkB,CAGpB,+DAGE,kBDnCoB,CCsCtB,qDAIE,wCD9Ce,CCiDjB,uCAEE,UAAW,CACX,WAAY,CACZ,oBAAqB,CACrB,qBAAsB,CAEtB,gBAAiB,CAGnB,kBACE,iBAAkB,CAGpB,uDAEE,kBD7DoB,CC2DtB,qEAKI,WAAS,CACT,aAAc,CACd,+DAAiE,CAIrE,oCACE,WAAS,CACT,4DAA8D,CAGhE,uHAKE,yBAA0B,CAG5B,iEAIE,kBAAmB,CACnB,UAAW,CAGb,4BACE,aDtFwB,CCqF1B,uBACE,aDtFwB,CCqF1B,wBACE,aDtFwB,CCqF1B,cACE,aDtFwB,CEjB1B,EACE,oBAAqB,CACrB,aFIa,CEDf,QACE,yBAA0B,CCN5B,SACE,kBHAsB,CGCtB,aHOY,CGNZ,WAAY,CACZ,iBAAkB,CAGpB,SACE,YAAa,CACb,aAAc,CACd,eAAgB,CCVlB,IACE,cAAe,CAGjB,GAEE,WJEc,CIFd,4BJEc,CIChB,MACE,wBAAyB,CACzB,kBAAmB,CACnB,UAAW,CAGb,MACE,WAAY,CACZ,eAAgB,CAGlB,GACE,+BJbc,CIgBhB,uBACE,wBJxBsB,CI2BxB,oBACE,WAAY,CACZ,UAAW,CAGb,0BACE,kBJjCsB,CIkCtB,iBAAkB,CAGpB,0BACE,kBJ5BoB,CI6BpB,iBAAkB,CAGpB,gCACE,kBJ7BgD","file":"dark.css","sourcesContent":["h1 {\n font-size: 2.2em;\n margin-top: 0;\n}\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n margin-bottom: 12px;\n}\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nstrong {\n color: $text-bright;\n}\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nb,\nstrong,\nth {\n font-weight: 600;\n}\n\nblockquote {\n border-left: 4px solid $focus;\n margin: 1.5em 0em;\n padding: 0.5em 1em;\n font-style: italic;\n}\n\nblockquote > footer {\n margin-top: 10px;\n font-style: normal;\n}\n\nblockquote cite {\n font-style: normal;\n}\n\naddress {\n font-style: normal;\n}\n\na[href^='mailto']::before {\n content: '📧 ';\n}\n\na[href^='tel']::before {\n content: '📞 ';\n}\n\na[href^='sms']::before {\n content: '💬 ';\n}","body {\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\n line-height: 1.4;\n\n max-width: 800px;\n margin: 20px auto;\n padding: 0 10px;\n\n color: $text-main;\n background: $background;\n\n text-rendering: optimizeLegibility;\n}\n\nbutton, input, textarea {\n transition: background-color $animation-duration linear,\n border-color $animation-duration linear,\n color $animation-duration linear,\n box-shadow $animation-duration linear,\n transform $animation-duration ease;\n}\n","$background: #202b38 !default;\n$background-alt: #161f27 !default;\n\n$text-main: #dbdbdb !default;\n$text-bright: #ffffff !default;\n\n$links: #41adff !default;\n$focus: #0096bfab !default;\n$border: #dbdbdb !default;\n$code: #ffbe85 !default;\n\n$button-hover: #324759 !default;\n$animation-duration: 0.1s !default;\n\n$scrollbar-thumb: $button-hover;\n$scrollbar-thumb-hover: lighten($button-hover, 8%);\n\n$form-placeholder: #a9a9a9 !default;\n$form-text: #ffffff !default;\n\n@import 'parts/core';","button,\ninput[type='submit'],\ninput[type='button'],\ninput[type='checkbox'],\ninput[type='radio'] {\n cursor: pointer;\n}\n\ninput:not([type='checkbox']):not([type='radio']),\nselect {\n display: block;\n}\n\ninput, select, button, textarea {\n color: $form-text;\n background-color: $background-alt;\n\n font-family: inherit;\n font-size: inherit;\n\n margin-right: 6px;\n margin-bottom: 6px;\n padding: 10px;\n\n border: none;\n border-radius: 6px;\n outline: none;\n\n -webkit-appearance: none;\n}\n\ntextarea {\n margin-right: 0;\n width: 100%;\n box-sizing: border-box;\n resize: vertical;\n}\n\nbutton, input[type='submit'], input[type='button'] {\n padding-right: 30px;\n padding-left: 30px;\n}\n\nbutton:hover,\ninput[type='submit']:hover,\ninput[type='button']:hover {\n background: $button-hover;\n}\n\ninput:focus,\nselect:focus,\nbutton:focus,\ntextarea:focus {\n box-shadow: 0 0 0 2px $focus;\n}\n\ninput[type='checkbox'],\ninput[type='radio'] {\n width: 14px;\n height: 14px;\n display: inline-block;\n vertical-align: middle;\n margin: 0;\n margin-right: 2px;\n}\n\ninput[type='radio'] {\n border-radius: 50%;\n}\n\ninput[type='checkbox']:checked,\ninput[type='radio']:checked {\n background: $button-hover;\n\n &::before {\n content: '•';\n display: block;\n transform: translateY(-50%) translateY(-0.3px) translateX(-2.7px);\n }\n}\n\ninput[type='checkbox']:checked::before {\n content: '✔';\n transform: translateY(-50%) translateY(0.5px) translateX(-6px);\n}\n\ninput[type='checkbox']:active,\ninput[type='radio']:active,\ninput[type='submit']:active,\ninput[type='button']:active,\nbutton:active {\n transform: translateY(2px);\n}\n\ninput:disabled,\nselect:disabled,\nbutton:disabled,\ntextarea:disabled {\n cursor: not-allowed;\n opacity: .5;\n}\n\n::placeholder {\n color: $form-placeholder;\n}","a {\n text-decoration: none;\n color: $links;\n}\n\na:hover {\n text-decoration: underline;\n}","code, kbd {\n background: $background-alt;\n color: $code;\n padding: 5px;\n border-radius: 6px;\n}\n\npre > code {\n padding: 10px;\n display: block;\n overflow-x: auto;\n}","img {\n max-width: 100%;\n}\n\nhr {\n border: none;\n border-top: 1px solid $border;\n}\n\ntable {\n border-collapse: collapse;\n margin-bottom: 10px;\n width: 100%;\n}\n\ntd, th {\n padding: 6px;\n text-align: left;\n}\n\nth {\n border-bottom: 1px solid $border;\n}\n\ntbody tr:nth-child(even) {\n background-color: $background-alt;\n}\n\n::-webkit-scrollbar {\n height: 10px;\n width: 10px;\n}\n\n::-webkit-scrollbar-track {\n background: $background-alt;\n border-radius: 6px;\n}\n\n::-webkit-scrollbar-thumb {\n background: $scrollbar-thumb;\n border-radius: 6px;\n}\n\n::-webkit-scrollbar-thumb:hover {\n background: $scrollbar-thumb-hover;\n}"]} \ No newline at end of file +{"version":3,"sources":["dark.css","../variables-dark.css","../variables-light.css","../parts/_base.css","../parts/_typography.css","../parts/_forms.css","../parts/_links.css","../parts/_code.css","../parts/_misc.css"],"names":[],"mappings":"AAAA;;;;;;;EAOE;;ACPF;EACE,0BAA0B;EAC1B,qBAAqB;EACrB,yBAAyB;;EAEzB,oBAAoB;;EAEpB,oBAAoB;EACpB,sBAAsB;;EAEtB,gBAAgB;EAChB,kBAAkB;EAClB,iBAAiB;EACjB,eAAe;;EAEf,0BAA0B;EAC1B,uBAAuB;;EAEvB,sCAAsC;EACtC,yCAAyE;;EAEzE,2BAA2B;EAC3B,oBAAoB;;EAEpB,mBAAmB;EACnB,oBAAoB;AACtB;;AC1BA;AAAA;EACE,0BAA0B;EAC1B,qBAAqB;EACrB,yBAAyB;;EAEzB,oBAAoB;;EAEpB,oBAAoB;EACpB,sBAAsB;;EAEtB,gBAAgB;EAChB,kBAAkB;EAClB,iBAAiB;EACjB,eAAe;;EAEf,0BAA0B;EAC1B,uBAAuB;;EAEvB,kCAAgE;EAChE,wCAAuE;;EAEvE,2BAA2B;EAC3B,oBAAoB;;EAEpB,mBAAmB;EACnB,oBAAoB;AACtB;AFuCA;;AGjEA;EACE,yKAAyK;EACzK,gBAAgB;;EAEhB,gBAAgB;EAChB,iBAAiB;EACjB,eAAe;;EAEf,uBAAuB;EACvB,kCAAkC;;EAElC,kCAAkC;AACpC;;AAEA;EACE;;;;sDAIoD;AACtD;;ACpBA;EACE,gBAAgB;EAChB,aAAa;AACf;;AAEA;;;;;;EAME,mBAAmB;AACrB;;AAEA;;;;;;;EAOE,yBAAyB;AAC3B;;AAEA;;;;;;;;;EASE,gBAAgB;AAClB;;AAEA;GACG,aAAa;AAChB;;AAEA;GACG,aAAa;AAChB;;AAEA;EACE,mCAAmC;EACnC,iBAAiB;EACjB,kBAAkB;EAClB,kBAAkB;AACpB;;AAEA;EACE,gBAAgB;EAChB,kBAAkB;AACpB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,kCAAkC;EAClC,kBAAkB;EAClB,wBAAwB;EACxB,cAAc;AAChB;;ACjFA;;;;EAIE,eAAe;AACjB;;AAEA;;EAEE,cAAc;AAChB;;AAEA;;;;EAIE,uBAAuB;EACvB,mCAAmC;;EAEnC,oBAAoB;EACpB,kBAAkB;;EAElB,iBAAiB;EACjB,kBAAkB;EAClB,aAAa;;EAEb,YAAY;EACZ,kBAAkB;EAClB,aAAa;AACf;;AAEA;;;;EAIE,wBAAwB;AAC1B;;AAEA;EACE,eAAe;EACf,WAAW;EACX,sBAAsB;EACtB,gBAAgB;AAClB;;AAEA;;;EAGE,mBAAmB;EACnB,kBAAkB;AACpB;;AAEA;;;EAGE,+BAA+B;AACjC;;AAEA;;;;EAIE,kCAAkC;AACpC;;AAEA;;;;;EAKE,0BAA0B;AAC5B;;AAEA;;;;EAIE,mBAAmB;EACnB,YAAY;AACd;;AAEA;EACE,8BAA8B;AAChC;;AAFA;EACE,8BAA8B;AAChC;;AAFA;EACE,8BAA8B;AAChC;;AAFA;EACE,8BAA8B;AAChC;;ACnFA;EACE,qBAAqB;EACrB,mBAAmB;AACrB;;AAEA;EACE,0BAA0B;AAC5B;;ACPA;EACE,8BAA8B;EAC9B,kBAAkB;EAClB,kBAAkB;EAClB,kBAAkB;EAClB,cAAc;AAChB;;AAEA;EACE,aAAa;EACb,cAAc;EACd,gBAAgB;AAClB;;AAEA;EACE,sBAAsB;EACtB,kBAAkB;EAClB,sBAAsB;AACxB;;AAEA;EACE,6BAA6B;EAC7B,+BAA+B;EAC/B,kBAAkB;EAClB,uBAAuB;EACvB,wBAAwB;AAC1B;;AC1BA;EACE,eAAe;EACf,YAAY;AACd;;AAEA;EACE,YAAY;EACZ,mCAAmC;AACrC;;AAEA;EACE,yBAAyB;EACzB,mBAAmB;EACnB,WAAW;AACb;;AAEA;;EAEE,YAAY;EACZ,gBAAgB;AAClB;;AAEA;EACE,sCAAsC;AACxC;;AAEA;EACE,uCAAuC;AACzC;;AAEA;EACE,YAAY;EACZ,WAAW;AACb;;AAEA;EACE,6BAA6B;EAC7B,kBAAkB;AACpB;;AAEA;EACE,kCAAkC;EAClC,kBAAkB;AACpB;;AAEA;EACE,wCAAwC;AAC1C;;AAEA;EACE,kCAAkC;AACpC;;AAFA;EACE,kCAAkC;AACpC","file":"dark.css","sourcesContent":["/**\r\n * Dark-themed version:\r\n * uses dark theme by default but switches to light theme\r\n * if a system-wide theme preference is set on the user's device.\r\n *\r\n * Variables will remain uncompiled so the theme can update dynamically\r\n * at runtime in the browser.\r\n */\r\n\r\n@import '../variables-dark.css';\r\n@import '../variables-light.css' (prefers-color-scheme: light);\r\n\r\n@import '../parts/_core.css';\r\n",":root {\r\n --background-body: #202b38;\r\n --background: #161f27;\r\n --background-alt: #1a242f;\r\n\r\n --selection: #161f27;\r\n\r\n --text-main: #dbdbdb;\r\n --text-bright: #ffffff;\r\n\r\n --links: #41adff;\r\n --focus: #0096bfab;\r\n --border: #dbdbdb;\r\n --code: #ffbe85;\r\n\r\n --animation-duration: 0.1s;\r\n --button-hover: #324759;\r\n\r\n --scrollbar-thumb: var(--button-hover);\r\n --scrollbar-thumb-hover: color-mod(var(--scrollbar-thumb) lightness(+8%));\r\n\r\n --form-placeholder: #a9a9a9;\r\n --form-text: #ffffff;\r\n\r\n --variable: #d941e2;\r\n --highlight: #efdb43;\r\n}\r\n",":root {\r\n --background-body: #ffffff;\r\n --background: #efefef;\r\n --background-alt: #f7f7f7;\r\n\r\n --selection: #9e9e9e;\r\n\r\n --text-main: #363636;\r\n --text-bright: #000000;\r\n\r\n --links: #0076d1;\r\n --focus: #0096bfab;\r\n --border: #dbdbdb;\r\n --code: #000000;\r\n\r\n --animation-duration: 0.1s;\r\n --button-hover: #dddddd;\r\n\r\n --scrollbar-thumb: color-mod(var(--button-hover) lightness(-3%));\r\n --scrollbar-thumb-hover: color-mod(var(--button-hover) lightness(-10%));\r\n\r\n --form-placeholder: #949494;\r\n --form-text: #000000;\r\n\r\n --variable: #39a33c;\r\n --highlight: #ffff00;\r\n}\r\n","body {\r\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\r\n line-height: 1.4;\r\n\r\n max-width: 800px;\r\n margin: 20px auto;\r\n padding: 0 10px;\r\n\r\n color: var(--text-main);\r\n background: var(--background-body);\r\n\r\n text-rendering: optimizeLegibility;\r\n}\r\n\r\nbutton, input, textarea {\r\n transition: background-color var(--animation-duration) linear,\r\n border-color var(--animation-duration) linear,\r\n color var(--animation-duration) linear,\r\n box-shadow var(--animation-duration) linear,\r\n transform var(--animation-duration) ease;\r\n}\r\n","h1 {\r\n font-size: 2.2em;\r\n margin-top: 0;\r\n}\r\n\r\nh1,\r\nh2,\r\nh3,\r\nh4,\r\nh5,\r\nh6 {\r\n margin-bottom: 12px;\r\n}\r\n\r\nh1,\r\nh2,\r\nh3,\r\nh4,\r\nh5,\r\nh6,\r\nstrong {\r\n color: var(--text-bright);\r\n}\r\n\r\nh1,\r\nh2,\r\nh3,\r\nh4,\r\nh5,\r\nh6,\r\nb,\r\nstrong,\r\nth {\r\n font-weight: 600;\r\n}\r\n\r\nq:before {\r\n content: none;\r\n}\r\n\r\nq:after {\r\n content: none;\r\n}\r\n\r\nblockquote , q{\r\n border-left: 4px solid var(--focus);\r\n margin: 1.5em 0em;\r\n padding: 0.5em 1em;\r\n font-style: italic;\r\n}\r\n\r\nblockquote > footer {\r\n margin-top: 10px;\r\n font-style: normal;\r\n}\r\n\r\nblockquote cite {\r\n font-style: normal;\r\n}\r\n\r\naddress {\r\n font-style: normal;\r\n}\r\n\r\na[href^='mailto']::before {\r\n content: '📧 ';\r\n}\r\n\r\na[href^='tel']::before {\r\n content: '📞 ';\r\n}\r\n\r\na[href^='sms']::before {\r\n content: '💬 ';\r\n}\r\n\r\nmark {\r\n background-color: var(--highlight);\r\n border-radius: 2px;\r\n padding: 0px 2px 0px 2px;\r\n color: #000000;\r\n}","button,\r\ninput[type='submit'],\r\ninput[type='button'],\r\ninput[type='checkbox'] {\r\n cursor: pointer;\r\n}\r\n\r\ninput:not([type='checkbox']):not([type='radio']),\r\nselect {\r\n display: block;\r\n}\r\n\r\ninput,\r\nselect,\r\nbutton,\r\ntextarea {\r\n color: var(--form-text);\r\n background-color: var(--background);\r\n\r\n font-family: inherit;\r\n font-size: inherit;\r\n\r\n margin-right: 6px;\r\n margin-bottom: 6px;\r\n padding: 10px;\r\n\r\n border: none;\r\n border-radius: 6px;\r\n outline: none;\r\n}\r\n\r\ninput:not([type='checkbox']):not([type='radio']),\r\nselect,\r\nbutton,\r\ntextarea {\r\n -webkit-appearance: none;\r\n}\r\n\r\ntextarea {\r\n margin-right: 0;\r\n width: 100%;\r\n box-sizing: border-box;\r\n resize: vertical;\r\n}\r\n\r\nbutton,\r\ninput[type='submit'],\r\ninput[type='button'] {\r\n padding-right: 30px;\r\n padding-left: 30px;\r\n}\r\n\r\nbutton:hover,\r\ninput[type='submit']:hover,\r\ninput[type='button']:hover {\r\n background: var(--button-hover);\r\n}\r\n\r\ninput:focus,\r\nselect:focus,\r\nbutton:focus,\r\ntextarea:focus {\r\n box-shadow: 0 0 0 2px var(--focus);\r\n}\r\n\r\ninput[type='checkbox']:active,\r\ninput[type='radio']:active,\r\ninput[type='submit']:active,\r\ninput[type='button']:active,\r\nbutton:active {\r\n transform: translateY(2px);\r\n}\r\n\r\ninput:disabled,\r\nselect:disabled,\r\nbutton:disabled,\r\ntextarea:disabled {\r\n cursor: not-allowed;\r\n opacity: 0.5;\r\n}\r\n\r\n::placeholder {\r\n color: var(--form-placeholder);\r\n}\r\n","a {\r\n text-decoration: none;\r\n color: var(--links);\r\n}\r\n\r\na:hover {\r\n text-decoration: underline;\r\n}","code, samp, time {\r\n background: var(--background);\r\n color: var(--code);\r\n padding: 2.5px 5px;\r\n border-radius: 6px;\r\n font-size: 1em;\r\n}\r\n\r\npre > code {\r\n padding: 10px;\r\n display: block;\r\n overflow-x: auto;\r\n}\r\n\r\nvar {\r\n color: var(--variable);\r\n font-style: normal;\r\n font-family: monospace;\r\n}\r\n\r\nkbd {\r\n background: var(--background);\r\n border: 1px solid var(--border);\r\n border-radius: 2px;\r\n color: var(--text-main);\r\n padding: 2px 4px 2px 4px;\r\n}","img {\r\n max-width: 100%;\r\n height: auto;\r\n}\r\n\r\nhr {\r\n border: none;\r\n border-top: 1px solid var(--border);\r\n}\r\n\r\ntable {\r\n border-collapse: collapse;\r\n margin-bottom: 10px;\r\n width: 100%;\r\n}\r\n\r\ntd,\r\nth {\r\n padding: 6px;\r\n text-align: left;\r\n}\r\n\r\nth {\r\n border-bottom: 1px solid var(--border);\r\n}\r\n\r\ntbody tr:nth-child(even) {\r\n background-color: var(--background-alt);\r\n}\r\n\r\n::-webkit-scrollbar {\r\n height: 10px;\r\n width: 10px;\r\n}\r\n\r\n::-webkit-scrollbar-track {\r\n background: var(--background);\r\n border-radius: 6px;\r\n}\r\n\r\n::-webkit-scrollbar-thumb {\r\n background: var(--scrollbar-thumb);\r\n border-radius: 6px;\r\n}\r\n\r\n::-webkit-scrollbar-thumb:hover {\r\n background: var(--scrollbar-thumb-hover);\r\n}\r\n\r\n::selection {\r\n background-color: var(--selection);\r\n}\r\n"]} \ No newline at end of file diff --git a/dist/dark.min.css b/dist/dark.min.css new file mode 100644 index 0000000..83d512e --- /dev/null +++ b/dist/dark.min.css @@ -0,0 +1,2 @@ +:root{--background-body:#202b38;--background:#161f27;--background-alt:#1a242f;--selection:#161f27;--text-main:#dbdbdb;--text-bright:#fff;--links:#41adff;--focus:rgba(0,150,191,0.67);--border:#dbdbdb;--code:#ffbe85;--animation-duration:0.1s;--button-hover:#324759;--scrollbar-thumb:var(--button-hover);--scrollbar-thumb-hover:#415c73;--form-placeholder:#a9a9a9;--form-text:#fff;--variable:#d941e2;--highlight:#efdb43}@media (prefers-color-scheme:light){:root{--background-body:#fff;--background:#efefef;--background-alt:#f7f7f7;--selection:#9e9e9e;--text-main:#363636;--text-bright:#000;--links:#0076d1;--focus:rgba(0,150,191,0.67);--border:#dbdbdb;--code:#000;--animation-duration:0.1s;--button-hover:#ddd;--scrollbar-thumb:#2c3f4f;--scrollbar-thumb-hover:#202d38;--form-placeholder:#949494;--form-text:#000;--variable:#39a33c;--highlight:#ff0}}body{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;line-height:1.4;max-width:800px;margin:20px auto;padding:0 10px;color:var(--text-main);background:var(--background-body);text-rendering:optimizeLegibility}button,input,textarea{transition:background-color var(--animation-duration) linear,border-color var(--animation-duration) linear,color var(--animation-duration) linear,box-shadow var(--animation-duration) linear,transform var(--animation-duration) ease}h1{font-size:2.2em;margin-top:0}h1,h2,h3,h4,h5,h6{margin-bottom:12px}h1,h2,h3,h4,h5,h6,strong{color:var(--text-bright)}b,h1,h2,h3,h4,h5,h6,strong,th{font-weight:600}q:after,q:before{content:none}blockquote,q{border-left:4px solid var(--focus);margin:1.5em 0;padding:.5em 1em;font-style:italic}blockquote>footer{margin-top:10px;font-style:normal}address,blockquote cite{font-style:normal}a[href^=mailto]:before{content:"📧 "}a[href^=tel]:before{content:"📞 "}a[href^=sms]:before{content:"💬 "}mark{background-color:var(--highlight);border-radius:2px;padding:0 2px;color:#000}button,input[type=button],input[type=checkbox],input[type=submit]{cursor:pointer}input:not([type=checkbox]):not([type=radio]),select{display:block}button,input,select,textarea{color:var(--form-text);background-color:var(--background);font-family:inherit;font-size:inherit;margin-right:6px;margin-bottom:6px;padding:10px;border:none;border-radius:6px;outline:none}button,input:not([type=checkbox]):not([type=radio]),select,textarea{-webkit-appearance:none}textarea{margin-right:0;width:100%;box-sizing:border-box;resize:vertical}button,input[type=button],input[type=submit]{padding-right:30px;padding-left:30px}button:hover,input[type=button]:hover,input[type=submit]:hover{background:var(--button-hover)}button:focus,input:focus,select:focus,textarea:focus{box-shadow:0 0 0 2px var(--focus)}button:active,input[type=button]:active,input[type=checkbox]:active,input[type=radio]:active,input[type=submit]:active{transform:translateY(2px)}button:disabled,input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;opacity:.5}::-webkit-input-placeholder{color:var(--form-placeholder)}:-ms-input-placeholder{color:var(--form-placeholder)}::-ms-input-placeholder{color:var(--form-placeholder)}::placeholder{color:var(--form-placeholder)}a{text-decoration:none;color:var(--links)}a:hover{text-decoration:underline}code,samp,time{background:var(--background);color:var(--code);padding:2.5px 5px;border-radius:6px;font-size:1em}pre>code{padding:10px;display:block;overflow-x:auto}var{color:var(--variable);font-style:normal;font-family:monospace}kbd{background:var(--background);border:1px solid var(--border);border-radius:2px;color:var(--text-main);padding:2px 4px}img{max-width:100%;height:auto}hr{border:none;border-top:1px solid var(--border)}table{border-collapse:collapse;margin-bottom:10px;width:100%}td,th{padding:6px;text-align:left}th{border-bottom:1px solid var(--border)}tbody tr:nth-child(2n){background-color:var(--background-alt)}::-webkit-scrollbar{height:10px;width:10px}::-webkit-scrollbar-track{background:var(--background);border-radius:6px}::-webkit-scrollbar-thumb{background:var(--scrollbar-thumb);border-radius:6px}::-webkit-scrollbar-thumb:hover{background:var(--scrollbar-thumb-hover)}::-moz-selection{background-color:var(--selection)}::selection{background-color:var(--selection)} +/*# sourceMappingURL=dark.min.css.map */ diff --git a/dist/dark.min.css.map b/dist/dark.min.css.map new file mode 100644 index 0000000..2d7845a --- /dev/null +++ b/dist/dark.min.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["../variables-dark.css","../variables-light.css","dark.css","../parts/_base.css","../parts/_typography.css","../parts/_forms.css","../parts/_links.css","../parts/_code.css","../parts/_misc.css"],"names":[],"mappings":"AAAA,MACE,yBAA0B,CAC1B,oBAAqB,CACrB,wBAAyB,CAEzB,mBAAoB,CAEpB,mBAAoB,CACpB,kBAAsB,CAEtB,eAAgB,CAChB,4BAAkB,CAClB,gBAAiB,CACjB,cAAe,CAEf,yBAA0B,CAC1B,sBAAuB,CAEvB,qCAAsC,CACtC,+BAAyE,CAEzE,0BAA2B,CAC3B,gBAAoB,CAEpB,kBAAmB,CACnB,mBACF,CC1BA,oCAAA,MACE,sBAA0B,CAC1B,oBAAqB,CACrB,wBAAyB,CAEzB,mBAAoB,CAEpB,mBAAoB,CACpB,kBAAsB,CAEtB,eAAgB,CAChB,4BAAkB,CAClB,gBAAiB,CACjB,WAAe,CAEf,yBAA0B,CAC1B,mBAAuB,CAEvB,yBAAgE,CAChE,+BAAuE,CAEvE,0BAA2B,CAC3B,gBAAoB,CAEpB,kBAAmB,CACnB,gBACF,CCuCA,CCjEA,KACE,6IAAyK,CACzK,eAAgB,CAEhB,eAAgB,CAChB,gBAAiB,CACjB,cAAe,CAEf,sBAAuB,CACvB,iCAAkC,CAElC,iCACF,CAEA,sBACE,sOAKF,CCpBA,GACE,eAAgB,CAChB,YACF,CAEA,kBAME,kBACF,CAEA,yBAOE,wBACF,CAEA,8BASE,eACF,CAMA,iBACG,YACH,CAEA,aACE,kCAAmC,CACnC,cAAiB,CACjB,gBAAkB,CAClB,iBACF,CAEA,kBACE,eAAgB,CAChB,iBACF,CAMA,wBACE,iBACF,CAEA,uBACE,aACF,CAEA,oBACE,aACF,CAEA,oBACE,aACF,CAEA,KACE,iCAAkC,CAClC,iBAAkB,CAClB,aAAwB,CACxB,UACF,CCjFA,kEAIE,cACF,CAEA,oDAEE,aACF,CAEA,6BAIE,sBAAuB,CACvB,kCAAmC,CAEnC,mBAAoB,CACpB,iBAAkB,CAElB,gBAAiB,CACjB,iBAAkB,CAClB,YAAa,CAEb,WAAY,CACZ,iBAAkB,CAClB,YACF,CAEA,oEAIE,uBACF,CAEA,SACE,cAAe,CACf,UAAW,CACX,qBAAsB,CACtB,eACF,CAEA,6CAGE,kBAAmB,CACnB,iBACF,CAEA,+DAGE,8BACF,CAEA,qDAIE,iCACF,CAEA,uHAKE,yBACF,CAEA,iEAIE,kBAAmB,CACnB,UACF,CAEA,4BACE,6BACF,CAFA,uBACE,6BACF,CAFA,wBACE,6BACF,CAFA,cACE,6BACF,CCnFA,EACE,oBAAqB,CACrB,kBACF,CAEA,QACE,yBACF,CCPA,eACE,4BAA8B,CAC9B,iBAAkB,CAClB,iBAAkB,CAClB,iBAAkB,CAClB,aACF,CAEA,SACE,YAAa,CACb,aAAc,CACd,eACF,CAEA,IACE,qBAAsB,CACtB,iBAAkB,CAClB,qBACF,CAEA,IACE,4BAA6B,CAC7B,8BAA+B,CAC/B,iBAAkB,CAClB,sBAAuB,CACvB,eACF,CC1BA,IACE,cAAe,CACf,WACF,CAEA,GACE,WAAY,CACZ,kCACF,CAEA,MACE,wBAAyB,CACzB,kBAAmB,CACnB,UACF,CAEA,MAEE,WAAY,CACZ,eACF,CAEA,GACE,qCACF,CAEA,uBACE,sCACF,CAEA,oBACE,WAAY,CACZ,UACF,CAEA,0BACE,4BAA6B,CAC7B,iBACF,CAEA,0BACE,iCAAkC,CAClC,iBACF,CAEA,gCACE,uCACF,CAEA,iBACE,iCACF,CAFA,YACE,iCACF","file":"dark.min.css","sourcesContent":[":root {\r\n --background-body: #202b38;\r\n --background: #161f27;\r\n --background-alt: #1a242f;\r\n\r\n --selection: #161f27;\r\n\r\n --text-main: #dbdbdb;\r\n --text-bright: #ffffff;\r\n\r\n --links: #41adff;\r\n --focus: #0096bfab;\r\n --border: #dbdbdb;\r\n --code: #ffbe85;\r\n\r\n --animation-duration: 0.1s;\r\n --button-hover: #324759;\r\n\r\n --scrollbar-thumb: var(--button-hover);\r\n --scrollbar-thumb-hover: color-mod(var(--scrollbar-thumb) lightness(+8%));\r\n\r\n --form-placeholder: #a9a9a9;\r\n --form-text: #ffffff;\r\n\r\n --variable: #d941e2;\r\n --highlight: #efdb43;\r\n}\r\n",":root {\r\n --background-body: #ffffff;\r\n --background: #efefef;\r\n --background-alt: #f7f7f7;\r\n\r\n --selection: #9e9e9e;\r\n\r\n --text-main: #363636;\r\n --text-bright: #000000;\r\n\r\n --links: #0076d1;\r\n --focus: #0096bfab;\r\n --border: #dbdbdb;\r\n --code: #000000;\r\n\r\n --animation-duration: 0.1s;\r\n --button-hover: #dddddd;\r\n\r\n --scrollbar-thumb: color-mod(var(--button-hover) lightness(-3%));\r\n --scrollbar-thumb-hover: color-mod(var(--button-hover) lightness(-10%));\r\n\r\n --form-placeholder: #949494;\r\n --form-text: #000000;\r\n\r\n --variable: #39a33c;\r\n --highlight: #ffff00;\r\n}\r\n","/**\r\n * Dark-themed version:\r\n * uses dark theme by default but switches to light theme\r\n * if a system-wide theme preference is set on the user's device.\r\n *\r\n * Variables will remain uncompiled so the theme can update dynamically\r\n * at runtime in the browser.\r\n */\r\n\r\n@import '../variables-dark.css';\r\n@import '../variables-light.css' (prefers-color-scheme: light);\r\n\r\n@import '../parts/_core.css';\r\n","body {\r\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\r\n line-height: 1.4;\r\n\r\n max-width: 800px;\r\n margin: 20px auto;\r\n padding: 0 10px;\r\n\r\n color: var(--text-main);\r\n background: var(--background-body);\r\n\r\n text-rendering: optimizeLegibility;\r\n}\r\n\r\nbutton, input, textarea {\r\n transition: background-color var(--animation-duration) linear,\r\n border-color var(--animation-duration) linear,\r\n color var(--animation-duration) linear,\r\n box-shadow var(--animation-duration) linear,\r\n transform var(--animation-duration) ease;\r\n}\r\n","h1 {\r\n font-size: 2.2em;\r\n margin-top: 0;\r\n}\r\n\r\nh1,\r\nh2,\r\nh3,\r\nh4,\r\nh5,\r\nh6 {\r\n margin-bottom: 12px;\r\n}\r\n\r\nh1,\r\nh2,\r\nh3,\r\nh4,\r\nh5,\r\nh6,\r\nstrong {\r\n color: var(--text-bright);\r\n}\r\n\r\nh1,\r\nh2,\r\nh3,\r\nh4,\r\nh5,\r\nh6,\r\nb,\r\nstrong,\r\nth {\r\n font-weight: 600;\r\n}\r\n\r\nq:before {\r\n content: none;\r\n}\r\n\r\nq:after {\r\n content: none;\r\n}\r\n\r\nblockquote , q{\r\n border-left: 4px solid var(--focus);\r\n margin: 1.5em 0em;\r\n padding: 0.5em 1em;\r\n font-style: italic;\r\n}\r\n\r\nblockquote > footer {\r\n margin-top: 10px;\r\n font-style: normal;\r\n}\r\n\r\nblockquote cite {\r\n font-style: normal;\r\n}\r\n\r\naddress {\r\n font-style: normal;\r\n}\r\n\r\na[href^='mailto']::before {\r\n content: '📧 ';\r\n}\r\n\r\na[href^='tel']::before {\r\n content: '📞 ';\r\n}\r\n\r\na[href^='sms']::before {\r\n content: '💬 ';\r\n}\r\n\r\nmark {\r\n background-color: var(--highlight);\r\n border-radius: 2px;\r\n padding: 0px 2px 0px 2px;\r\n color: #000000;\r\n}","button,\r\ninput[type='submit'],\r\ninput[type='button'],\r\ninput[type='checkbox'] {\r\n cursor: pointer;\r\n}\r\n\r\ninput:not([type='checkbox']):not([type='radio']),\r\nselect {\r\n display: block;\r\n}\r\n\r\ninput,\r\nselect,\r\nbutton,\r\ntextarea {\r\n color: var(--form-text);\r\n background-color: var(--background);\r\n\r\n font-family: inherit;\r\n font-size: inherit;\r\n\r\n margin-right: 6px;\r\n margin-bottom: 6px;\r\n padding: 10px;\r\n\r\n border: none;\r\n border-radius: 6px;\r\n outline: none;\r\n}\r\n\r\ninput:not([type='checkbox']):not([type='radio']),\r\nselect,\r\nbutton,\r\ntextarea {\r\n -webkit-appearance: none;\r\n}\r\n\r\ntextarea {\r\n margin-right: 0;\r\n width: 100%;\r\n box-sizing: border-box;\r\n resize: vertical;\r\n}\r\n\r\nbutton,\r\ninput[type='submit'],\r\ninput[type='button'] {\r\n padding-right: 30px;\r\n padding-left: 30px;\r\n}\r\n\r\nbutton:hover,\r\ninput[type='submit']:hover,\r\ninput[type='button']:hover {\r\n background: var(--button-hover);\r\n}\r\n\r\ninput:focus,\r\nselect:focus,\r\nbutton:focus,\r\ntextarea:focus {\r\n box-shadow: 0 0 0 2px var(--focus);\r\n}\r\n\r\ninput[type='checkbox']:active,\r\ninput[type='radio']:active,\r\ninput[type='submit']:active,\r\ninput[type='button']:active,\r\nbutton:active {\r\n transform: translateY(2px);\r\n}\r\n\r\ninput:disabled,\r\nselect:disabled,\r\nbutton:disabled,\r\ntextarea:disabled {\r\n cursor: not-allowed;\r\n opacity: 0.5;\r\n}\r\n\r\n::placeholder {\r\n color: var(--form-placeholder);\r\n}\r\n","a {\r\n text-decoration: none;\r\n color: var(--links);\r\n}\r\n\r\na:hover {\r\n text-decoration: underline;\r\n}","code, samp, time {\r\n background: var(--background);\r\n color: var(--code);\r\n padding: 2.5px 5px;\r\n border-radius: 6px;\r\n font-size: 1em;\r\n}\r\n\r\npre > code {\r\n padding: 10px;\r\n display: block;\r\n overflow-x: auto;\r\n}\r\n\r\nvar {\r\n color: var(--variable);\r\n font-style: normal;\r\n font-family: monospace;\r\n}\r\n\r\nkbd {\r\n background: var(--background);\r\n border: 1px solid var(--border);\r\n border-radius: 2px;\r\n color: var(--text-main);\r\n padding: 2px 4px 2px 4px;\r\n}","img {\r\n max-width: 100%;\r\n height: auto;\r\n}\r\n\r\nhr {\r\n border: none;\r\n border-top: 1px solid var(--border);\r\n}\r\n\r\ntable {\r\n border-collapse: collapse;\r\n margin-bottom: 10px;\r\n width: 100%;\r\n}\r\n\r\ntd,\r\nth {\r\n padding: 6px;\r\n text-align: left;\r\n}\r\n\r\nth {\r\n border-bottom: 1px solid var(--border);\r\n}\r\n\r\ntbody tr:nth-child(even) {\r\n background-color: var(--background-alt);\r\n}\r\n\r\n::-webkit-scrollbar {\r\n height: 10px;\r\n width: 10px;\r\n}\r\n\r\n::-webkit-scrollbar-track {\r\n background: var(--background);\r\n border-radius: 6px;\r\n}\r\n\r\n::-webkit-scrollbar-thumb {\r\n background: var(--scrollbar-thumb);\r\n border-radius: 6px;\r\n}\r\n\r\n::-webkit-scrollbar-thumb:hover {\r\n background: var(--scrollbar-thumb-hover);\r\n}\r\n\r\n::selection {\r\n background-color: var(--selection);\r\n}\r\n"]} \ No newline at end of file diff --git a/dist/dark.standalone.css b/dist/dark.standalone.css new file mode 100755 index 0000000..6081fa6 --- /dev/null +++ b/dist/dark.standalone.css @@ -0,0 +1,331 @@ +/** + * Standalone dark-themed version. + * Includes dark variables and core, left as CSS variables + * so the theming can be adjusted at runtime. + */ + +:root { + --background-body: #202b38; + --background: #161f27; + --background-alt: #1a242f; + + --selection: #161f27; + + --text-main: #dbdbdb; + --text-bright: #ffffff; + + --links: #41adff; + --focus: #0096bfab; + --border: #dbdbdb; + --code: #ffbe85; + + --animation-duration: 0.1s; + --button-hover: #324759; + + --scrollbar-thumb: var(--button-hover); + --scrollbar-thumb-hover: rgb(65, 92, 115); + + --form-placeholder: #a9a9a9; + --form-text: #ffffff; + + --variable: #d941e2; + --highlight: #efdb43; +} + +body { + font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; + line-height: 1.4; + + max-width: 800px; + margin: 20px auto; + padding: 0 10px; + + color: var(--text-main); + background: var(--background-body); + + text-rendering: optimizeLegibility; +} + +button, input, textarea { + transition: background-color var(--animation-duration) linear, + border-color var(--animation-duration) linear, + color var(--animation-duration) linear, + box-shadow var(--animation-duration) linear, + transform var(--animation-duration) ease; +} + +h1 { + font-size: 2.2em; + margin-top: 0; +} + +h1, +h2, +h3, +h4, +h5, +h6 { + margin-bottom: 12px; +} + +h1, +h2, +h3, +h4, +h5, +h6, +strong { + color: var(--text-bright); +} + +h1, +h2, +h3, +h4, +h5, +h6, +b, +strong, +th { + font-weight: 600; +} + +q:before { + content: none; +} + +q:after { + content: none; +} + +blockquote , q{ + border-left: 4px solid var(--focus); + margin: 1.5em 0em; + padding: 0.5em 1em; + font-style: italic; +} + +blockquote > footer { + margin-top: 10px; + font-style: normal; +} + +blockquote cite { + font-style: normal; +} + +address { + font-style: normal; +} + +a[href^='mailto']::before { + content: '📧 '; +} + +a[href^='tel']::before { + content: '📞 '; +} + +a[href^='sms']::before { + content: '💬 '; +} + +mark { + background-color: var(--highlight); + border-radius: 2px; + padding: 0px 2px 0px 2px; + color: #000000; +} + +button, +input[type='submit'], +input[type='button'], +input[type='checkbox'] { + cursor: pointer; +} + +input:not([type='checkbox']):not([type='radio']), +select { + display: block; +} + +input, +select, +button, +textarea { + color: var(--form-text); + background-color: var(--background); + + font-family: inherit; + font-size: inherit; + + margin-right: 6px; + margin-bottom: 6px; + padding: 10px; + + border: none; + border-radius: 6px; + outline: none; +} + +input:not([type='checkbox']):not([type='radio']), +select, +button, +textarea { + -webkit-appearance: none; +} + +textarea { + margin-right: 0; + width: 100%; + box-sizing: border-box; + resize: vertical; +} + +button, +input[type='submit'], +input[type='button'] { + padding-right: 30px; + padding-left: 30px; +} + +button:hover, +input[type='submit']:hover, +input[type='button']:hover { + background: var(--button-hover); +} + +input:focus, +select:focus, +button:focus, +textarea:focus { + box-shadow: 0 0 0 2px var(--focus); +} + +input[type='checkbox']:active, +input[type='radio']:active, +input[type='submit']:active, +input[type='button']:active, +button:active { + transform: translateY(2px); +} + +input:disabled, +select:disabled, +button:disabled, +textarea:disabled { + cursor: not-allowed; + opacity: 0.5; +} + +::-webkit-input-placeholder { + color: var(--form-placeholder); +} + +:-ms-input-placeholder { + color: var(--form-placeholder); +} + +::-ms-input-placeholder { + color: var(--form-placeholder); +} + +::placeholder { + color: var(--form-placeholder); +} + +a { + text-decoration: none; + color: var(--links); +} + +a:hover { + text-decoration: underline; +} + +code, samp, time { + background: var(--background); + color: var(--code); + padding: 2.5px 5px; + border-radius: 6px; + font-size: 1em; +} + +pre > code { + padding: 10px; + display: block; + overflow-x: auto; +} + +var { + color: var(--variable); + font-style: normal; + font-family: monospace; +} + +kbd { + background: var(--background); + border: 1px solid var(--border); + border-radius: 2px; + color: var(--text-main); + padding: 2px 4px 2px 4px; +} + +img { + max-width: 100%; + height: auto; +} + +hr { + border: none; + border-top: 1px solid var(--border); +} + +table { + border-collapse: collapse; + margin-bottom: 10px; + width: 100%; +} + +td, +th { + padding: 6px; + text-align: left; +} + +th { + border-bottom: 1px solid var(--border); +} + +tbody tr:nth-child(even) { + background-color: var(--background-alt); +} + +::-webkit-scrollbar { + height: 10px; + width: 10px; +} + +::-webkit-scrollbar-track { + background: var(--background); + border-radius: 6px; +} + +::-webkit-scrollbar-thumb { + background: var(--scrollbar-thumb); + border-radius: 6px; +} + +::-webkit-scrollbar-thumb:hover { + background: var(--scrollbar-thumb-hover); +} + +::-moz-selection { + background-color: var(--selection); +} + +::selection { + background-color: var(--selection); +} + +/*# sourceMappingURL=dark.standalone.css.map */ diff --git a/dist/dark.standalone.css.map b/dist/dark.standalone.css.map new file mode 100644 index 0000000..b26a3af --- /dev/null +++ b/dist/dark.standalone.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["dark.standalone.css","../variables-dark.css","../parts/_base.css","../parts/_typography.css","../parts/_forms.css","../parts/_links.css","../parts/_code.css","../parts/_misc.css"],"names":[],"mappings":"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","file":"dark.standalone.css","sourcesContent":["/**\r\n * Standalone dark-themed version.\r\n * Includes dark variables and core, left as CSS variables\r\n * so the theming can be adjusted at runtime.\r\n */\r\n\r\n@import '../variables-dark.css';\r\n@import '../parts/_core.css';\r\n",":root {\r\n --background-body: #202b38;\r\n --background: #161f27;\r\n --background-alt: #1a242f;\r\n\r\n --selection: #161f27;\r\n\r\n --text-main: #dbdbdb;\r\n --text-bright: #ffffff;\r\n\r\n --links: #41adff;\r\n --focus: #0096bfab;\r\n --border: #dbdbdb;\r\n --code: #ffbe85;\r\n\r\n --animation-duration: 0.1s;\r\n --button-hover: #324759;\r\n\r\n --scrollbar-thumb: var(--button-hover);\r\n --scrollbar-thumb-hover: color-mod(var(--scrollbar-thumb) lightness(+8%));\r\n\r\n --form-placeholder: #a9a9a9;\r\n --form-text: #ffffff;\r\n\r\n --variable: #d941e2;\r\n --highlight: #efdb43;\r\n}\r\n","body {\r\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\r\n line-height: 1.4;\r\n\r\n max-width: 800px;\r\n margin: 20px auto;\r\n padding: 0 10px;\r\n\r\n color: var(--text-main);\r\n background: var(--background-body);\r\n\r\n text-rendering: optimizeLegibility;\r\n}\r\n\r\nbutton, input, textarea {\r\n transition: background-color var(--animation-duration) linear,\r\n border-color var(--animation-duration) linear,\r\n color var(--animation-duration) linear,\r\n box-shadow var(--animation-duration) linear,\r\n transform var(--animation-duration) ease;\r\n}\r\n","h1 {\r\n font-size: 2.2em;\r\n margin-top: 0;\r\n}\r\n\r\nh1,\r\nh2,\r\nh3,\r\nh4,\r\nh5,\r\nh6 {\r\n margin-bottom: 12px;\r\n}\r\n\r\nh1,\r\nh2,\r\nh3,\r\nh4,\r\nh5,\r\nh6,\r\nstrong {\r\n color: var(--text-bright);\r\n}\r\n\r\nh1,\r\nh2,\r\nh3,\r\nh4,\r\nh5,\r\nh6,\r\nb,\r\nstrong,\r\nth {\r\n font-weight: 600;\r\n}\r\n\r\nq:before {\r\n content: none;\r\n}\r\n\r\nq:after {\r\n content: none;\r\n}\r\n\r\nblockquote , q{\r\n border-left: 4px solid var(--focus);\r\n margin: 1.5em 0em;\r\n padding: 0.5em 1em;\r\n font-style: italic;\r\n}\r\n\r\nblockquote > footer {\r\n margin-top: 10px;\r\n font-style: normal;\r\n}\r\n\r\nblockquote cite {\r\n font-style: normal;\r\n}\r\n\r\naddress {\r\n font-style: normal;\r\n}\r\n\r\na[href^='mailto']::before {\r\n content: '📧 ';\r\n}\r\n\r\na[href^='tel']::before {\r\n content: '📞 ';\r\n}\r\n\r\na[href^='sms']::before {\r\n content: '💬 ';\r\n}\r\n\r\nmark {\r\n background-color: var(--highlight);\r\n border-radius: 2px;\r\n padding: 0px 2px 0px 2px;\r\n color: #000000;\r\n}","button,\r\ninput[type='submit'],\r\ninput[type='button'],\r\ninput[type='checkbox'] {\r\n cursor: pointer;\r\n}\r\n\r\ninput:not([type='checkbox']):not([type='radio']),\r\nselect {\r\n display: block;\r\n}\r\n\r\ninput,\r\nselect,\r\nbutton,\r\ntextarea {\r\n color: var(--form-text);\r\n background-color: var(--background);\r\n\r\n font-family: inherit;\r\n font-size: inherit;\r\n\r\n margin-right: 6px;\r\n margin-bottom: 6px;\r\n padding: 10px;\r\n\r\n border: none;\r\n border-radius: 6px;\r\n outline: none;\r\n}\r\n\r\ninput:not([type='checkbox']):not([type='radio']),\r\nselect,\r\nbutton,\r\ntextarea {\r\n -webkit-appearance: none;\r\n}\r\n\r\ntextarea {\r\n margin-right: 0;\r\n width: 100%;\r\n box-sizing: border-box;\r\n resize: vertical;\r\n}\r\n\r\nbutton,\r\ninput[type='submit'],\r\ninput[type='button'] {\r\n padding-right: 30px;\r\n padding-left: 30px;\r\n}\r\n\r\nbutton:hover,\r\ninput[type='submit']:hover,\r\ninput[type='button']:hover {\r\n background: var(--button-hover);\r\n}\r\n\r\ninput:focus,\r\nselect:focus,\r\nbutton:focus,\r\ntextarea:focus {\r\n box-shadow: 0 0 0 2px var(--focus);\r\n}\r\n\r\ninput[type='checkbox']:active,\r\ninput[type='radio']:active,\r\ninput[type='submit']:active,\r\ninput[type='button']:active,\r\nbutton:active {\r\n transform: translateY(2px);\r\n}\r\n\r\ninput:disabled,\r\nselect:disabled,\r\nbutton:disabled,\r\ntextarea:disabled {\r\n cursor: not-allowed;\r\n opacity: 0.5;\r\n}\r\n\r\n::placeholder {\r\n color: var(--form-placeholder);\r\n}\r\n","a {\r\n text-decoration: none;\r\n color: var(--links);\r\n}\r\n\r\na:hover {\r\n text-decoration: underline;\r\n}","code, samp, time {\r\n background: var(--background);\r\n color: var(--code);\r\n padding: 2.5px 5px;\r\n border-radius: 6px;\r\n font-size: 1em;\r\n}\r\n\r\npre > code {\r\n padding: 10px;\r\n display: block;\r\n overflow-x: auto;\r\n}\r\n\r\nvar {\r\n color: var(--variable);\r\n font-style: normal;\r\n font-family: monospace;\r\n}\r\n\r\nkbd {\r\n background: var(--background);\r\n border: 1px solid var(--border);\r\n border-radius: 2px;\r\n color: var(--text-main);\r\n padding: 2px 4px 2px 4px;\r\n}","img {\r\n max-width: 100%;\r\n height: auto;\r\n}\r\n\r\nhr {\r\n border: none;\r\n border-top: 1px solid var(--border);\r\n}\r\n\r\ntable {\r\n border-collapse: collapse;\r\n margin-bottom: 10px;\r\n width: 100%;\r\n}\r\n\r\ntd,\r\nth {\r\n padding: 6px;\r\n text-align: left;\r\n}\r\n\r\nth {\r\n border-bottom: 1px solid var(--border);\r\n}\r\n\r\ntbody tr:nth-child(even) {\r\n background-color: var(--background-alt);\r\n}\r\n\r\n::-webkit-scrollbar {\r\n height: 10px;\r\n width: 10px;\r\n}\r\n\r\n::-webkit-scrollbar-track {\r\n background: var(--background);\r\n border-radius: 6px;\r\n}\r\n\r\n::-webkit-scrollbar-thumb {\r\n background: var(--scrollbar-thumb);\r\n border-radius: 6px;\r\n}\r\n\r\n::-webkit-scrollbar-thumb:hover {\r\n background: var(--scrollbar-thumb-hover);\r\n}\r\n\r\n::selection {\r\n background-color: var(--selection);\r\n}\r\n"]} \ No newline at end of file diff --git a/dist/dark.standalone.min.css b/dist/dark.standalone.min.css new file mode 100755 index 0000000..deea9d7 --- /dev/null +++ b/dist/dark.standalone.min.css @@ -0,0 +1,2 @@ +:root{--background-body:#202b38;--background:#161f27;--background-alt:#1a242f;--selection:#161f27;--text-main:#dbdbdb;--text-bright:#fff;--links:#41adff;--focus:rgba(0,150,191,0.67);--border:#dbdbdb;--code:#ffbe85;--animation-duration:0.1s;--button-hover:#324759;--scrollbar-thumb:var(--button-hover);--scrollbar-thumb-hover:#415c73;--form-placeholder:#a9a9a9;--form-text:#fff;--variable:#d941e2;--highlight:#efdb43}body{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;line-height:1.4;max-width:800px;margin:20px auto;padding:0 10px;color:var(--text-main);background:var(--background-body);text-rendering:optimizeLegibility}button,input,textarea{transition:background-color var(--animation-duration) linear,border-color var(--animation-duration) linear,color var(--animation-duration) linear,box-shadow var(--animation-duration) linear,transform var(--animation-duration) ease}h1{font-size:2.2em;margin-top:0}h1,h2,h3,h4,h5,h6{margin-bottom:12px}h1,h2,h3,h4,h5,h6,strong{color:var(--text-bright)}b,h1,h2,h3,h4,h5,h6,strong,th{font-weight:600}q:after,q:before{content:none}blockquote,q{border-left:4px solid var(--focus);margin:1.5em 0;padding:.5em 1em;font-style:italic}blockquote>footer{margin-top:10px;font-style:normal}address,blockquote cite{font-style:normal}a[href^=mailto]:before{content:"📧 "}a[href^=tel]:before{content:"📞 "}a[href^=sms]:before{content:"💬 "}mark{background-color:var(--highlight);border-radius:2px;padding:0 2px;color:#000}button,input[type=button],input[type=checkbox],input[type=submit]{cursor:pointer}input:not([type=checkbox]):not([type=radio]),select{display:block}button,input,select,textarea{color:var(--form-text);background-color:var(--background);font-family:inherit;font-size:inherit;margin-right:6px;margin-bottom:6px;padding:10px;border:none;border-radius:6px;outline:none}button,input:not([type=checkbox]):not([type=radio]),select,textarea{-webkit-appearance:none}textarea{margin-right:0;width:100%;box-sizing:border-box;resize:vertical}button,input[type=button],input[type=submit]{padding-right:30px;padding-left:30px}button:hover,input[type=button]:hover,input[type=submit]:hover{background:var(--button-hover)}button:focus,input:focus,select:focus,textarea:focus{box-shadow:0 0 0 2px var(--focus)}button:active,input[type=button]:active,input[type=checkbox]:active,input[type=radio]:active,input[type=submit]:active{transform:translateY(2px)}button:disabled,input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;opacity:.5}::-webkit-input-placeholder{color:var(--form-placeholder)}:-ms-input-placeholder{color:var(--form-placeholder)}::-ms-input-placeholder{color:var(--form-placeholder)}::placeholder{color:var(--form-placeholder)}a{text-decoration:none;color:var(--links)}a:hover{text-decoration:underline}code,samp,time{background:var(--background);color:var(--code);padding:2.5px 5px;border-radius:6px;font-size:1em}pre>code{padding:10px;display:block;overflow-x:auto}var{color:var(--variable);font-style:normal;font-family:monospace}kbd{background:var(--background);border:1px solid var(--border);border-radius:2px;color:var(--text-main);padding:2px 4px}img{max-width:100%;height:auto}hr{border:none;border-top:1px solid var(--border)}table{border-collapse:collapse;margin-bottom:10px;width:100%}td,th{padding:6px;text-align:left}th{border-bottom:1px solid var(--border)}tbody tr:nth-child(2n){background-color:var(--background-alt)}::-webkit-scrollbar{height:10px;width:10px}::-webkit-scrollbar-track{background:var(--background);border-radius:6px}::-webkit-scrollbar-thumb{background:var(--scrollbar-thumb);border-radius:6px}::-webkit-scrollbar-thumb:hover{background:var(--scrollbar-thumb-hover)}::-moz-selection{background-color:var(--selection)}::selection{background-color:var(--selection)} +/*# sourceMappingURL=dark.standalone.min.css.map */ diff --git a/dist/dark.standalone.min.css.map b/dist/dark.standalone.min.css.map new file mode 100644 index 0000000..631f0c1 --- /dev/null +++ b/dist/dark.standalone.min.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["../variables-dark.css","../parts/_base.css","../parts/_typography.css","../parts/_forms.css","../parts/_links.css","../parts/_code.css","../parts/_misc.css"],"names":[],"mappings":"AAAA,MACE,yBAA0B,CAC1B,oBAAqB,CACrB,wBAAyB,CAEzB,mBAAoB,CAEpB,mBAAoB,CACpB,kBAAsB,CAEtB,eAAgB,CAChB,4BAAkB,CAClB,gBAAiB,CACjB,cAAe,CAEf,yBAA0B,CAC1B,sBAAuB,CAEvB,qCAAsC,CACtC,+BAAyE,CAEzE,0BAA2B,CAC3B,gBAAoB,CAEpB,kBAAmB,CACnB,mBACF,CC1BA,KACE,6IAAyK,CACzK,eAAgB,CAEhB,eAAgB,CAChB,gBAAiB,CACjB,cAAe,CAEf,sBAAuB,CACvB,iCAAkC,CAElC,iCACF,CAEA,sBACE,sOAKF,CCpBA,GACE,eAAgB,CAChB,YACF,CAEA,kBAME,kBACF,CAEA,yBAOE,wBACF,CAEA,8BASE,eACF,CAMA,iBACG,YACH,CAEA,aACE,kCAAmC,CACnC,cAAiB,CACjB,gBAAkB,CAClB,iBACF,CAEA,kBACE,eAAgB,CAChB,iBACF,CAMA,wBACE,iBACF,CAEA,uBACE,aACF,CAEA,oBACE,aACF,CAEA,oBACE,aACF,CAEA,KACE,iCAAkC,CAClC,iBAAkB,CAClB,aAAwB,CACxB,UACF,CCjFA,kEAIE,cACF,CAEA,oDAEE,aACF,CAEA,6BAIE,sBAAuB,CACvB,kCAAmC,CAEnC,mBAAoB,CACpB,iBAAkB,CAElB,gBAAiB,CACjB,iBAAkB,CAClB,YAAa,CAEb,WAAY,CACZ,iBAAkB,CAClB,YACF,CAEA,oEAIE,uBACF,CAEA,SACE,cAAe,CACf,UAAW,CACX,qBAAsB,CACtB,eACF,CAEA,6CAGE,kBAAmB,CACnB,iBACF,CAEA,+DAGE,8BACF,CAEA,qDAIE,iCACF,CAEA,uHAKE,yBACF,CAEA,iEAIE,kBAAmB,CACnB,UACF,CAEA,4BACE,6BACF,CAFA,uBACE,6BACF,CAFA,wBACE,6BACF,CAFA,cACE,6BACF,CCnFA,EACE,oBAAqB,CACrB,kBACF,CAEA,QACE,yBACF,CCPA,eACE,4BAA8B,CAC9B,iBAAkB,CAClB,iBAAkB,CAClB,iBAAkB,CAClB,aACF,CAEA,SACE,YAAa,CACb,aAAc,CACd,eACF,CAEA,IACE,qBAAsB,CACtB,iBAAkB,CAClB,qBACF,CAEA,IACE,4BAA6B,CAC7B,8BAA+B,CAC/B,iBAAkB,CAClB,sBAAuB,CACvB,eACF,CC1BA,IACE,cAAe,CACf,WACF,CAEA,GACE,WAAY,CACZ,kCACF,CAEA,MACE,wBAAyB,CACzB,kBAAmB,CACnB,UACF,CAEA,MAEE,WAAY,CACZ,eACF,CAEA,GACE,qCACF,CAEA,uBACE,sCACF,CAEA,oBACE,WAAY,CACZ,UACF,CAEA,0BACE,4BAA6B,CAC7B,iBACF,CAEA,0BACE,iCAAkC,CAClC,iBACF,CAEA,gCACE,uCACF,CAEA,iBACE,iCACF,CAFA,YACE,iCACF","file":"dark.standalone.min.css","sourcesContent":[":root {\r\n --background-body: #202b38;\r\n --background: #161f27;\r\n --background-alt: #1a242f;\r\n\r\n --selection: #161f27;\r\n\r\n --text-main: #dbdbdb;\r\n --text-bright: #ffffff;\r\n\r\n --links: #41adff;\r\n --focus: #0096bfab;\r\n --border: #dbdbdb;\r\n --code: #ffbe85;\r\n\r\n --animation-duration: 0.1s;\r\n --button-hover: #324759;\r\n\r\n --scrollbar-thumb: var(--button-hover);\r\n --scrollbar-thumb-hover: color-mod(var(--scrollbar-thumb) lightness(+8%));\r\n\r\n --form-placeholder: #a9a9a9;\r\n --form-text: #ffffff;\r\n\r\n --variable: #d941e2;\r\n --highlight: #efdb43;\r\n}\r\n","body {\r\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\r\n line-height: 1.4;\r\n\r\n max-width: 800px;\r\n margin: 20px auto;\r\n padding: 0 10px;\r\n\r\n color: var(--text-main);\r\n background: var(--background-body);\r\n\r\n text-rendering: optimizeLegibility;\r\n}\r\n\r\nbutton, input, textarea {\r\n transition: background-color var(--animation-duration) linear,\r\n border-color var(--animation-duration) linear,\r\n color var(--animation-duration) linear,\r\n box-shadow var(--animation-duration) linear,\r\n transform var(--animation-duration) ease;\r\n}\r\n","h1 {\r\n font-size: 2.2em;\r\n margin-top: 0;\r\n}\r\n\r\nh1,\r\nh2,\r\nh3,\r\nh4,\r\nh5,\r\nh6 {\r\n margin-bottom: 12px;\r\n}\r\n\r\nh1,\r\nh2,\r\nh3,\r\nh4,\r\nh5,\r\nh6,\r\nstrong {\r\n color: var(--text-bright);\r\n}\r\n\r\nh1,\r\nh2,\r\nh3,\r\nh4,\r\nh5,\r\nh6,\r\nb,\r\nstrong,\r\nth {\r\n font-weight: 600;\r\n}\r\n\r\nq:before {\r\n content: none;\r\n}\r\n\r\nq:after {\r\n content: none;\r\n}\r\n\r\nblockquote , q{\r\n border-left: 4px solid var(--focus);\r\n margin: 1.5em 0em;\r\n padding: 0.5em 1em;\r\n font-style: italic;\r\n}\r\n\r\nblockquote > footer {\r\n margin-top: 10px;\r\n font-style: normal;\r\n}\r\n\r\nblockquote cite {\r\n font-style: normal;\r\n}\r\n\r\naddress {\r\n font-style: normal;\r\n}\r\n\r\na[href^='mailto']::before {\r\n content: '📧 ';\r\n}\r\n\r\na[href^='tel']::before {\r\n content: '📞 ';\r\n}\r\n\r\na[href^='sms']::before {\r\n content: '💬 ';\r\n}\r\n\r\nmark {\r\n background-color: var(--highlight);\r\n border-radius: 2px;\r\n padding: 0px 2px 0px 2px;\r\n color: #000000;\r\n}","button,\r\ninput[type='submit'],\r\ninput[type='button'],\r\ninput[type='checkbox'] {\r\n cursor: pointer;\r\n}\r\n\r\ninput:not([type='checkbox']):not([type='radio']),\r\nselect {\r\n display: block;\r\n}\r\n\r\ninput,\r\nselect,\r\nbutton,\r\ntextarea {\r\n color: var(--form-text);\r\n background-color: var(--background);\r\n\r\n font-family: inherit;\r\n font-size: inherit;\r\n\r\n margin-right: 6px;\r\n margin-bottom: 6px;\r\n padding: 10px;\r\n\r\n border: none;\r\n border-radius: 6px;\r\n outline: none;\r\n}\r\n\r\ninput:not([type='checkbox']):not([type='radio']),\r\nselect,\r\nbutton,\r\ntextarea {\r\n -webkit-appearance: none;\r\n}\r\n\r\ntextarea {\r\n margin-right: 0;\r\n width: 100%;\r\n box-sizing: border-box;\r\n resize: vertical;\r\n}\r\n\r\nbutton,\r\ninput[type='submit'],\r\ninput[type='button'] {\r\n padding-right: 30px;\r\n padding-left: 30px;\r\n}\r\n\r\nbutton:hover,\r\ninput[type='submit']:hover,\r\ninput[type='button']:hover {\r\n background: var(--button-hover);\r\n}\r\n\r\ninput:focus,\r\nselect:focus,\r\nbutton:focus,\r\ntextarea:focus {\r\n box-shadow: 0 0 0 2px var(--focus);\r\n}\r\n\r\ninput[type='checkbox']:active,\r\ninput[type='radio']:active,\r\ninput[type='submit']:active,\r\ninput[type='button']:active,\r\nbutton:active {\r\n transform: translateY(2px);\r\n}\r\n\r\ninput:disabled,\r\nselect:disabled,\r\nbutton:disabled,\r\ntextarea:disabled {\r\n cursor: not-allowed;\r\n opacity: 0.5;\r\n}\r\n\r\n::placeholder {\r\n color: var(--form-placeholder);\r\n}\r\n","a {\r\n text-decoration: none;\r\n color: var(--links);\r\n}\r\n\r\na:hover {\r\n text-decoration: underline;\r\n}","code, samp, time {\r\n background: var(--background);\r\n color: var(--code);\r\n padding: 2.5px 5px;\r\n border-radius: 6px;\r\n font-size: 1em;\r\n}\r\n\r\npre > code {\r\n padding: 10px;\r\n display: block;\r\n overflow-x: auto;\r\n}\r\n\r\nvar {\r\n color: var(--variable);\r\n font-style: normal;\r\n font-family: monospace;\r\n}\r\n\r\nkbd {\r\n background: var(--background);\r\n border: 1px solid var(--border);\r\n border-radius: 2px;\r\n color: var(--text-main);\r\n padding: 2px 4px 2px 4px;\r\n}","img {\r\n max-width: 100%;\r\n height: auto;\r\n}\r\n\r\nhr {\r\n border: none;\r\n border-top: 1px solid var(--border);\r\n}\r\n\r\ntable {\r\n border-collapse: collapse;\r\n margin-bottom: 10px;\r\n width: 100%;\r\n}\r\n\r\ntd,\r\nth {\r\n padding: 6px;\r\n text-align: left;\r\n}\r\n\r\nth {\r\n border-bottom: 1px solid var(--border);\r\n}\r\n\r\ntbody tr:nth-child(even) {\r\n background-color: var(--background-alt);\r\n}\r\n\r\n::-webkit-scrollbar {\r\n height: 10px;\r\n width: 10px;\r\n}\r\n\r\n::-webkit-scrollbar-track {\r\n background: var(--background);\r\n border-radius: 6px;\r\n}\r\n\r\n::-webkit-scrollbar-thumb {\r\n background: var(--scrollbar-thumb);\r\n border-radius: 6px;\r\n}\r\n\r\n::-webkit-scrollbar-thumb:hover {\r\n background: var(--scrollbar-thumb-hover);\r\n}\r\n\r\n::selection {\r\n background-color: var(--selection);\r\n}\r\n"]} \ No newline at end of file diff --git a/dist/light-legacy.css b/dist/light-legacy.css new file mode 100755 index 0000000..5024db4 --- /dev/null +++ b/dist/light-legacy.css @@ -0,0 +1,12 @@ + + +@import url('https://cdn.jsdelivr.net/gh/kognise/water.css@latest/dist/light-legacy.standalone.min.css'); +@import url('https://cdn.jsdelivr.net/gh/kognise/water.css@latest/dist/dark-legacy.standalone.min.css') (prefers-color-scheme: dark); +/** + * Light-themed version for legacy browsers: + * Loads the compiled, standalone version of the light theme at runtime, + * but overrides it with the compiled, standalone version of the dark theme + * if a system-wide theme preference is set on the user's device. + */ + +/*# sourceMappingURL=light-legacy.css.map */ diff --git a/dist/light-legacy.css.map b/dist/light-legacy.css.map new file mode 100644 index 0000000..b74a704 --- /dev/null +++ b/dist/light-legacy.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["light-legacy.css"],"names":[],"mappings":";;AAOA,wGAAwG;AACxG,oIAC4B;AAT5B;;;;;EAKE","file":"light-legacy.css","sourcesContent":["/**\r\n * Light-themed version for legacy browsers:\r\n * Loads the compiled, standalone version of the light theme at runtime,\r\n * but overrides it with the compiled, standalone version of the dark theme\r\n * if a system-wide theme preference is set on the user's device.\r\n */\r\n\r\n@import url('https://cdn.jsdelivr.net/gh/kognise/water.css@latest/dist/light-legacy.standalone.min.css');\r\n@import url('https://cdn.jsdelivr.net/gh/kognise/water.css@latest/dist/dark-legacy.standalone.min.css')\r\n(prefers-color-scheme: dark);\r\n"]} \ No newline at end of file diff --git a/dist/light-legacy.min.css b/dist/light-legacy.min.css new file mode 100755 index 0000000..a29606f --- /dev/null +++ b/dist/light-legacy.min.css @@ -0,0 +1,2 @@ +@import url("https://cdn.jsdelivr.net/gh/kognise/water.css@latest/dist/light-legacy.standalone.min.css");@import url("https://cdn.jsdelivr.net/gh/kognise/water.css@latest/dist/dark-legacy.standalone.min.css") (prefers-color-scheme: dark); +/*# sourceMappingURL=light-legacy.min.css.map */ diff --git a/dist/light-legacy.min.css.map b/dist/light-legacy.min.css.map new file mode 100644 index 0000000..e1d123b --- /dev/null +++ b/dist/light-legacy.min.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["light-legacy.css"],"names":[],"mappings":"AAOA,wGAAwG,CACxG,oIAHE","file":"light-legacy.min.css","sourcesContent":["/**\r\n * Light-themed version for legacy browsers:\r\n * Loads the compiled, standalone version of the light theme at runtime,\r\n * but overrides it with the compiled, standalone version of the dark theme\r\n * if a system-wide theme preference is set on the user's device.\r\n */\r\n\r\n@import url('https://cdn.jsdelivr.net/gh/kognise/water.css@latest/dist/light-legacy.standalone.min.css');\r\n@import url('https://cdn.jsdelivr.net/gh/kognise/water.css@latest/dist/dark-legacy.standalone.min.css')\r\n(prefers-color-scheme: dark);\r\n"]} \ No newline at end of file diff --git a/dist/light-legacy.standalone.css b/dist/light-legacy.standalone.css new file mode 100755 index 0000000..54c7dbf --- /dev/null +++ b/dist/light-legacy.standalone.css @@ -0,0 +1,420 @@ +/** + * Standalone light-themed version for legacy browsers. + * Includes light variables and core, compiled at build time so the final output + * will only include regular CSS, no variables. + */ + +body { + font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; + line-height: 1.4; + + max-width: 800px; + margin: 20px auto; + padding: 0 10px; + + color: #363636; + background: #ffffff; + + text-rendering: optimizeLegibility; +} + +button { + transition: background-color 0.1s linear, + border-color 0.1s linear, + color 0.1s linear, + box-shadow 0.1s linear, + transform 0.1s ease; +} + +input { + transition: background-color 0.1s linear, + border-color 0.1s linear, + color 0.1s linear, + box-shadow 0.1s linear, + transform 0.1s ease; +} + +textarea { + transition: background-color 0.1s linear, + border-color 0.1s linear, + color 0.1s linear, + box-shadow 0.1s linear, + transform 0.1s ease; +} + +h1 { + font-size: 2.2em; + margin-top: 0; +} + +h1, +h2, +h3, +h4, +h5, +h6 { + margin-bottom: 12px; +} + +h1 { + color: #000000; +} + +h2 { + color: #000000; +} + +h3 { + color: #000000; +} + +h4 { + color: #000000; +} + +h5 { + color: #000000; +} + +h6 { + color: #000000; +} + +strong { + color: #000000; +} + +h1, +h2, +h3, +h4, +h5, +h6, +b, +strong, +th { + font-weight: 600; +} + +q:before { + content: none; +} + +q:after { + content: none; +} + +blockquote{ + border-left: 4px solid #0096bfab; + margin: 1.5em 0em; + padding: 0.5em 1em; + font-style: italic; +} + +q{ + border-left: 4px solid #0096bfab; + margin: 1.5em 0em; + padding: 0.5em 1em; + font-style: italic; +} + +blockquote > footer { + margin-top: 10px; + font-style: normal; +} + +blockquote cite { + font-style: normal; +} + +address { + font-style: normal; +} + +a[href^='mailto']::before { + content: '📧 '; +} + +a[href^='tel']::before { + content: '📞 '; +} + +a[href^='sms']::before { + content: '💬 '; +} + +mark { + background-color: #ffff00; + border-radius: 2px; + padding: 0px 2px 0px 2px; + color: #000000; +} + +button, +input[type='submit'], +input[type='button'], +input[type='checkbox'] { + cursor: pointer; +} + +input:not([type='checkbox']):not([type='radio']), +select { + display: block; +} + +input { + color: #000000; + background-color: #efefef; + + font-family: inherit; + font-size: inherit; + + margin-right: 6px; + margin-bottom: 6px; + padding: 10px; + + border: none; + border-radius: 6px; + outline: none; +} + +select { + color: #000000; + background-color: #efefef; + + font-family: inherit; + font-size: inherit; + + margin-right: 6px; + margin-bottom: 6px; + padding: 10px; + + border: none; + border-radius: 6px; + outline: none; +} + +button { + color: #000000; + background-color: #efefef; + + font-family: inherit; + font-size: inherit; + + margin-right: 6px; + margin-bottom: 6px; + padding: 10px; + + border: none; + border-radius: 6px; + outline: none; +} + +textarea { + color: #000000; + background-color: #efefef; + + font-family: inherit; + font-size: inherit; + + margin-right: 6px; + margin-bottom: 6px; + padding: 10px; + + border: none; + border-radius: 6px; + outline: none; +} + +input:not([type='checkbox']):not([type='radio']), +select, +button, +textarea { + -webkit-appearance: none; +} + +textarea { + margin-right: 0; + width: 100%; + box-sizing: border-box; + resize: vertical; +} + +button, +input[type='submit'], +input[type='button'] { + padding-right: 30px; + padding-left: 30px; +} + +button:hover { + background: #dddddd; +} + +input[type='submit']:hover { + background: #dddddd; +} + +input[type='button']:hover { + background: #dddddd; +} + +input:focus { + box-shadow: 0 0 0 2px #0096bfab; +} + +select:focus { + box-shadow: 0 0 0 2px #0096bfab; +} + +button:focus { + box-shadow: 0 0 0 2px #0096bfab; +} + +textarea:focus { + box-shadow: 0 0 0 2px #0096bfab; +} + +input[type='checkbox']:active, +input[type='radio']:active, +input[type='submit']:active, +input[type='button']:active, +button:active { + transform: translateY(2px); +} + +input:disabled, +select:disabled, +button:disabled, +textarea:disabled { + cursor: not-allowed; + opacity: 0.5; +} + +::-webkit-input-placeholder { + color: #949494; +} + +:-ms-input-placeholder { + color: #949494; +} + +::-ms-input-placeholder { + color: #949494; +} + +::placeholder { + color: #949494; +} + +a { + text-decoration: none; + color: #0076d1; +} + +a:hover { + text-decoration: underline; +} + +code { + background: #efefef; + color: #000000; + padding: 2.5px 5px; + border-radius: 6px; + font-size: 1em; +} + +samp { + background: #efefef; + color: #000000; + padding: 2.5px 5px; + border-radius: 6px; + font-size: 1em; +} + +time { + background: #efefef; + color: #000000; + padding: 2.5px 5px; + border-radius: 6px; + font-size: 1em; +} + +pre > code { + padding: 10px; + display: block; + overflow-x: auto; +} + +var { + color: #39a33c; + font-style: normal; + font-family: monospace; +} + +kbd { + background: #efefef; + border: 1px solid #dbdbdb; + border-radius: 2px; + color: #363636; + padding: 2px 4px 2px 4px; +} + +img { + max-width: 100%; + height: auto; +} + +hr { + border: none; + border-top: 1px solid #dbdbdb; +} + +table { + border-collapse: collapse; + margin-bottom: 10px; + width: 100%; +} + +td, +th { + padding: 6px; + text-align: left; +} + +th { + border-bottom: 1px solid #dbdbdb; +} + +tbody tr:nth-child(even) { + background-color: #f7f7f7; +} + +::-webkit-scrollbar { + height: 10px; + width: 10px; +} + +::-webkit-scrollbar-track { + background: #efefef; + border-radius: 6px; +} + +::-webkit-scrollbar-thumb { + background: rgb(213, 213, 213); + border-radius: 6px; +} + +::-webkit-scrollbar-thumb:hover { + background: rgb(196, 196, 196); +} + +::-moz-selection { + background-color: #9e9e9e; +} + +::selection { + background-color: #9e9e9e; +} + +/*# sourceMappingURL=light-legacy.standalone.css.map */ diff --git a/dist/light-legacy.standalone.css.map b/dist/light-legacy.standalone.css.map new file mode 100644 index 0000000..61aa5b9 --- /dev/null +++ b/dist/light-legacy.standalone.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["light-legacy.standalone.css","../parts/_base.css","../parts/_typography.css","../parts/_forms.css","../parts/_links.css","../parts/_code.css","../parts/_misc.css"],"names":[],"mappings":"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","file":"light-legacy.standalone.css","sourcesContent":["/**\r\n * Standalone light-themed version for legacy browsers.\r\n * Includes light variables and core, compiled at build time so the final output\r\n * will only include regular CSS, no variables.\r\n */\r\n\r\n@import '../variables-light.css';\r\n@import '../parts/_core.css';\r\n","body {\r\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\r\n line-height: 1.4;\r\n\r\n max-width: 800px;\r\n margin: 20px auto;\r\n padding: 0 10px;\r\n\r\n color: var(--text-main);\r\n background: var(--background-body);\r\n\r\n text-rendering: optimizeLegibility;\r\n}\r\n\r\nbutton, input, textarea {\r\n transition: background-color var(--animation-duration) linear,\r\n border-color var(--animation-duration) linear,\r\n color var(--animation-duration) linear,\r\n box-shadow var(--animation-duration) linear,\r\n transform var(--animation-duration) ease;\r\n}\r\n","h1 {\r\n font-size: 2.2em;\r\n margin-top: 0;\r\n}\r\n\r\nh1,\r\nh2,\r\nh3,\r\nh4,\r\nh5,\r\nh6 {\r\n margin-bottom: 12px;\r\n}\r\n\r\nh1,\r\nh2,\r\nh3,\r\nh4,\r\nh5,\r\nh6,\r\nstrong {\r\n color: var(--text-bright);\r\n}\r\n\r\nh1,\r\nh2,\r\nh3,\r\nh4,\r\nh5,\r\nh6,\r\nb,\r\nstrong,\r\nth {\r\n font-weight: 600;\r\n}\r\n\r\nq:before {\r\n content: none;\r\n}\r\n\r\nq:after {\r\n content: none;\r\n}\r\n\r\nblockquote , q{\r\n border-left: 4px solid var(--focus);\r\n margin: 1.5em 0em;\r\n padding: 0.5em 1em;\r\n font-style: italic;\r\n}\r\n\r\nblockquote > footer {\r\n margin-top: 10px;\r\n font-style: normal;\r\n}\r\n\r\nblockquote cite {\r\n font-style: normal;\r\n}\r\n\r\naddress {\r\n font-style: normal;\r\n}\r\n\r\na[href^='mailto']::before {\r\n content: '📧 ';\r\n}\r\n\r\na[href^='tel']::before {\r\n content: '📞 ';\r\n}\r\n\r\na[href^='sms']::before {\r\n content: '💬 ';\r\n}\r\n\r\nmark {\r\n background-color: var(--highlight);\r\n border-radius: 2px;\r\n padding: 0px 2px 0px 2px;\r\n color: #000000;\r\n}","button,\r\ninput[type='submit'],\r\ninput[type='button'],\r\ninput[type='checkbox'] {\r\n cursor: pointer;\r\n}\r\n\r\ninput:not([type='checkbox']):not([type='radio']),\r\nselect {\r\n display: block;\r\n}\r\n\r\ninput,\r\nselect,\r\nbutton,\r\ntextarea {\r\n color: var(--form-text);\r\n background-color: var(--background);\r\n\r\n font-family: inherit;\r\n font-size: inherit;\r\n\r\n margin-right: 6px;\r\n margin-bottom: 6px;\r\n padding: 10px;\r\n\r\n border: none;\r\n border-radius: 6px;\r\n outline: none;\r\n}\r\n\r\ninput:not([type='checkbox']):not([type='radio']),\r\nselect,\r\nbutton,\r\ntextarea {\r\n -webkit-appearance: none;\r\n}\r\n\r\ntextarea {\r\n margin-right: 0;\r\n width: 100%;\r\n box-sizing: border-box;\r\n resize: vertical;\r\n}\r\n\r\nbutton,\r\ninput[type='submit'],\r\ninput[type='button'] {\r\n padding-right: 30px;\r\n padding-left: 30px;\r\n}\r\n\r\nbutton:hover,\r\ninput[type='submit']:hover,\r\ninput[type='button']:hover {\r\n background: var(--button-hover);\r\n}\r\n\r\ninput:focus,\r\nselect:focus,\r\nbutton:focus,\r\ntextarea:focus {\r\n box-shadow: 0 0 0 2px var(--focus);\r\n}\r\n\r\ninput[type='checkbox']:active,\r\ninput[type='radio']:active,\r\ninput[type='submit']:active,\r\ninput[type='button']:active,\r\nbutton:active {\r\n transform: translateY(2px);\r\n}\r\n\r\ninput:disabled,\r\nselect:disabled,\r\nbutton:disabled,\r\ntextarea:disabled {\r\n cursor: not-allowed;\r\n opacity: 0.5;\r\n}\r\n\r\n::placeholder {\r\n color: var(--form-placeholder);\r\n}\r\n","a {\r\n text-decoration: none;\r\n color: var(--links);\r\n}\r\n\r\na:hover {\r\n text-decoration: underline;\r\n}","code, samp, time {\r\n background: var(--background);\r\n color: var(--code);\r\n padding: 2.5px 5px;\r\n border-radius: 6px;\r\n font-size: 1em;\r\n}\r\n\r\npre > code {\r\n padding: 10px;\r\n display: block;\r\n overflow-x: auto;\r\n}\r\n\r\nvar {\r\n color: var(--variable);\r\n font-style: normal;\r\n font-family: monospace;\r\n}\r\n\r\nkbd {\r\n background: var(--background);\r\n border: 1px solid var(--border);\r\n border-radius: 2px;\r\n color: var(--text-main);\r\n padding: 2px 4px 2px 4px;\r\n}","img {\r\n max-width: 100%;\r\n height: auto;\r\n}\r\n\r\nhr {\r\n border: none;\r\n border-top: 1px solid var(--border);\r\n}\r\n\r\ntable {\r\n border-collapse: collapse;\r\n margin-bottom: 10px;\r\n width: 100%;\r\n}\r\n\r\ntd,\r\nth {\r\n padding: 6px;\r\n text-align: left;\r\n}\r\n\r\nth {\r\n border-bottom: 1px solid var(--border);\r\n}\r\n\r\ntbody tr:nth-child(even) {\r\n background-color: var(--background-alt);\r\n}\r\n\r\n::-webkit-scrollbar {\r\n height: 10px;\r\n width: 10px;\r\n}\r\n\r\n::-webkit-scrollbar-track {\r\n background: var(--background);\r\n border-radius: 6px;\r\n}\r\n\r\n::-webkit-scrollbar-thumb {\r\n background: var(--scrollbar-thumb);\r\n border-radius: 6px;\r\n}\r\n\r\n::-webkit-scrollbar-thumb:hover {\r\n background: var(--scrollbar-thumb-hover);\r\n}\r\n\r\n::selection {\r\n background-color: var(--selection);\r\n}\r\n"]} \ No newline at end of file diff --git a/dist/light-legacy.standalone.min.css b/dist/light-legacy.standalone.min.css new file mode 100755 index 0000000..5d55091 --- /dev/null +++ b/dist/light-legacy.standalone.min.css @@ -0,0 +1,2 @@ +body{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;line-height:1.4;max-width:800px;margin:20px auto;padding:0 10px;color:#363636;background:#fff;text-rendering:optimizeLegibility}button,input,textarea{transition:background-color .1s linear,border-color .1s linear,color .1s linear,box-shadow .1s linear,transform .1s ease}h1{font-size:2.2em;margin-top:0}h1,h2,h3,h4,h5,h6{margin-bottom:12px}h1,h2,h3,h4,h5,h6,strong{color:#000}b,h1,h2,h3,h4,h5,h6,strong,th{font-weight:600}q:after,q:before{content:none}blockquote,q{border-left:4px solid rgba(0,150,191,.67);margin:1.5em 0;padding:.5em 1em;font-style:italic}blockquote>footer{margin-top:10px;font-style:normal}address,blockquote cite{font-style:normal}a[href^=mailto]:before{content:"📧 "}a[href^=tel]:before{content:"📞 "}a[href^=sms]:before{content:"💬 "}mark{background-color:#ff0;border-radius:2px;padding:0 2px;color:#000}button,input[type=button],input[type=checkbox],input[type=submit]{cursor:pointer}input:not([type=checkbox]):not([type=radio]),select{display:block}button,input,select,textarea{color:#000;background-color:#efefef;font-family:inherit;font-size:inherit;margin-right:6px;margin-bottom:6px;padding:10px;border:none;border-radius:6px;outline:none}button,input:not([type=checkbox]):not([type=radio]),select,textarea{-webkit-appearance:none}textarea{margin-right:0;width:100%;box-sizing:border-box;resize:vertical}button,input[type=button],input[type=submit]{padding-right:30px;padding-left:30px}button:hover,input[type=button]:hover,input[type=submit]:hover{background:#ddd}button:focus,input:focus,select:focus,textarea:focus{box-shadow:0 0 0 2px rgba(0,150,191,.67)}button:active,input[type=button]:active,input[type=checkbox]:active,input[type=radio]:active,input[type=submit]:active{transform:translateY(2px)}button:disabled,input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;opacity:.5}::-webkit-input-placeholder{color:#949494}:-ms-input-placeholder{color:#949494}::-ms-input-placeholder{color:#949494}::placeholder{color:#949494}a{text-decoration:none;color:#0076d1}a:hover{text-decoration:underline}code,samp,time{background:#efefef;color:#000;padding:2.5px 5px;border-radius:6px;font-size:1em}pre>code{padding:10px;display:block;overflow-x:auto}var{color:#39a33c;font-style:normal;font-family:monospace}kbd{background:#efefef;border:1px solid #dbdbdb;border-radius:2px;color:#363636;padding:2px 4px}img{max-width:100%;height:auto}hr{border:none;border-top:1px solid #dbdbdb}table{border-collapse:collapse;margin-bottom:10px;width:100%}td,th{padding:6px;text-align:left}th{border-bottom:1px solid #dbdbdb}tbody tr:nth-child(2n){background-color:#f7f7f7}::-webkit-scrollbar{height:10px;width:10px}::-webkit-scrollbar-track{background:#efefef;border-radius:6px}::-webkit-scrollbar-thumb{background:#d5d5d5;border-radius:6px}::-webkit-scrollbar-thumb:hover{background:#c4c4c4}::-moz-selection{background-color:#9e9e9e}::selection{background-color:#9e9e9e} +/*# sourceMappingURL=light-legacy.standalone.min.css.map */ diff --git a/dist/light-legacy.standalone.min.css.map b/dist/light-legacy.standalone.min.css.map new file mode 100644 index 0000000..52207be --- /dev/null +++ b/dist/light-legacy.standalone.min.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["../parts/_base.css","../parts/_typography.css","../parts/_forms.css","../parts/_links.css","../parts/_code.css","../parts/_misc.css"],"names":[],"mappings":"AAAA,KACE,6IAAyK,CACzK,eAAgB,CAEhB,eAAgB,CAChB,gBAAiB,CACjB,cAAe,CAEf,aAAuB,CACvB,eAAkC,CAElC,iCACF,CAEA,sBACE,wHAKF,CCpBA,GACE,eAAgB,CAChB,YACF,CAEA,kBAME,kBACF,CAEA,yBAOE,UACF,CAEA,8BASE,eACF,CAMA,iBACG,YACH,CAEA,aACE,yCAAmC,CACnC,cAAiB,CACjB,gBAAkB,CAClB,iBACF,CAEA,kBACE,eAAgB,CAChB,iBACF,CAMA,wBACE,iBACF,CAEA,uBACE,aACF,CAEA,oBACE,aACF,CAEA,oBACE,aACF,CAEA,KACE,qBAAkC,CAClC,iBAAkB,CAClB,aAAwB,CACxB,UACF,CCjFA,kEAIE,cACF,CAEA,oDAEE,aACF,CAEA,6BAIE,UAAuB,CACvB,wBAAmC,CAEnC,mBAAoB,CACpB,iBAAkB,CAElB,gBAAiB,CACjB,iBAAkB,CAClB,YAAa,CAEb,WAAY,CACZ,iBAAkB,CAClB,YACF,CAEA,oEAIE,uBACF,CAEA,SACE,cAAe,CACf,UAAW,CACX,qBAAsB,CACtB,eACF,CAEA,6CAGE,kBAAmB,CACnB,iBACF,CAEA,+DAGE,eACF,CAEA,qDAIE,wCACF,CAEA,uHAKE,yBACF,CAEA,iEAIE,kBAAmB,CACnB,UACF,CAEA,4BACE,aACF,CAFA,uBACE,aACF,CAFA,wBACE,aACF,CAFA,cACE,aACF,CCnFA,EACE,oBAAqB,CACrB,aACF,CAEA,QACE,yBACF,CCPA,eACE,kBAA8B,CAC9B,UAAkB,CAClB,iBAAkB,CAClB,iBAAkB,CAClB,aACF,CAEA,SACE,YAAa,CACb,aAAc,CACd,eACF,CAEA,IACE,aAAsB,CACtB,iBAAkB,CAClB,qBACF,CAEA,IACE,kBAA6B,CAC7B,wBAA+B,CAC/B,iBAAkB,CAClB,aAAuB,CACvB,eACF,CC1BA,IACE,cAAe,CACf,WACF,CAEA,GAEE,WAAmC,CAAnC,4BACF,CAEA,MACE,wBAAyB,CACzB,kBAAmB,CACnB,UACF,CAEA,MAEE,WAAY,CACZ,eACF,CAEA,GACE,+BACF,CAEA,uBACE,wBACF,CAEA,oBACE,WAAY,CACZ,UACF,CAEA,0BACE,kBAA6B,CAC7B,iBACF,CAEA,0BACE,kBAAkC,CAClC,iBACF,CAEA,gCACE,kBACF,CAEA,iBACE,wBACF,CAFA,YACE,wBACF","file":"light-legacy.standalone.min.css","sourcesContent":["body {\r\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\r\n line-height: 1.4;\r\n\r\n max-width: 800px;\r\n margin: 20px auto;\r\n padding: 0 10px;\r\n\r\n color: var(--text-main);\r\n background: var(--background-body);\r\n\r\n text-rendering: optimizeLegibility;\r\n}\r\n\r\nbutton, input, textarea {\r\n transition: background-color var(--animation-duration) linear,\r\n border-color var(--animation-duration) linear,\r\n color var(--animation-duration) linear,\r\n box-shadow var(--animation-duration) linear,\r\n transform var(--animation-duration) ease;\r\n}\r\n","h1 {\r\n font-size: 2.2em;\r\n margin-top: 0;\r\n}\r\n\r\nh1,\r\nh2,\r\nh3,\r\nh4,\r\nh5,\r\nh6 {\r\n margin-bottom: 12px;\r\n}\r\n\r\nh1,\r\nh2,\r\nh3,\r\nh4,\r\nh5,\r\nh6,\r\nstrong {\r\n color: var(--text-bright);\r\n}\r\n\r\nh1,\r\nh2,\r\nh3,\r\nh4,\r\nh5,\r\nh6,\r\nb,\r\nstrong,\r\nth {\r\n font-weight: 600;\r\n}\r\n\r\nq:before {\r\n content: none;\r\n}\r\n\r\nq:after {\r\n content: none;\r\n}\r\n\r\nblockquote , q{\r\n border-left: 4px solid var(--focus);\r\n margin: 1.5em 0em;\r\n padding: 0.5em 1em;\r\n font-style: italic;\r\n}\r\n\r\nblockquote > footer {\r\n margin-top: 10px;\r\n font-style: normal;\r\n}\r\n\r\nblockquote cite {\r\n font-style: normal;\r\n}\r\n\r\naddress {\r\n font-style: normal;\r\n}\r\n\r\na[href^='mailto']::before {\r\n content: '📧 ';\r\n}\r\n\r\na[href^='tel']::before {\r\n content: '📞 ';\r\n}\r\n\r\na[href^='sms']::before {\r\n content: '💬 ';\r\n}\r\n\r\nmark {\r\n background-color: var(--highlight);\r\n border-radius: 2px;\r\n padding: 0px 2px 0px 2px;\r\n color: #000000;\r\n}","button,\r\ninput[type='submit'],\r\ninput[type='button'],\r\ninput[type='checkbox'] {\r\n cursor: pointer;\r\n}\r\n\r\ninput:not([type='checkbox']):not([type='radio']),\r\nselect {\r\n display: block;\r\n}\r\n\r\ninput,\r\nselect,\r\nbutton,\r\ntextarea {\r\n color: var(--form-text);\r\n background-color: var(--background);\r\n\r\n font-family: inherit;\r\n font-size: inherit;\r\n\r\n margin-right: 6px;\r\n margin-bottom: 6px;\r\n padding: 10px;\r\n\r\n border: none;\r\n border-radius: 6px;\r\n outline: none;\r\n}\r\n\r\ninput:not([type='checkbox']):not([type='radio']),\r\nselect,\r\nbutton,\r\ntextarea {\r\n -webkit-appearance: none;\r\n}\r\n\r\ntextarea {\r\n margin-right: 0;\r\n width: 100%;\r\n box-sizing: border-box;\r\n resize: vertical;\r\n}\r\n\r\nbutton,\r\ninput[type='submit'],\r\ninput[type='button'] {\r\n padding-right: 30px;\r\n padding-left: 30px;\r\n}\r\n\r\nbutton:hover,\r\ninput[type='submit']:hover,\r\ninput[type='button']:hover {\r\n background: var(--button-hover);\r\n}\r\n\r\ninput:focus,\r\nselect:focus,\r\nbutton:focus,\r\ntextarea:focus {\r\n box-shadow: 0 0 0 2px var(--focus);\r\n}\r\n\r\ninput[type='checkbox']:active,\r\ninput[type='radio']:active,\r\ninput[type='submit']:active,\r\ninput[type='button']:active,\r\nbutton:active {\r\n transform: translateY(2px);\r\n}\r\n\r\ninput:disabled,\r\nselect:disabled,\r\nbutton:disabled,\r\ntextarea:disabled {\r\n cursor: not-allowed;\r\n opacity: 0.5;\r\n}\r\n\r\n::placeholder {\r\n color: var(--form-placeholder);\r\n}\r\n","a {\r\n text-decoration: none;\r\n color: var(--links);\r\n}\r\n\r\na:hover {\r\n text-decoration: underline;\r\n}","code, samp, time {\r\n background: var(--background);\r\n color: var(--code);\r\n padding: 2.5px 5px;\r\n border-radius: 6px;\r\n font-size: 1em;\r\n}\r\n\r\npre > code {\r\n padding: 10px;\r\n display: block;\r\n overflow-x: auto;\r\n}\r\n\r\nvar {\r\n color: var(--variable);\r\n font-style: normal;\r\n font-family: monospace;\r\n}\r\n\r\nkbd {\r\n background: var(--background);\r\n border: 1px solid var(--border);\r\n border-radius: 2px;\r\n color: var(--text-main);\r\n padding: 2px 4px 2px 4px;\r\n}","img {\r\n max-width: 100%;\r\n height: auto;\r\n}\r\n\r\nhr {\r\n border: none;\r\n border-top: 1px solid var(--border);\r\n}\r\n\r\ntable {\r\n border-collapse: collapse;\r\n margin-bottom: 10px;\r\n width: 100%;\r\n}\r\n\r\ntd,\r\nth {\r\n padding: 6px;\r\n text-align: left;\r\n}\r\n\r\nth {\r\n border-bottom: 1px solid var(--border);\r\n}\r\n\r\ntbody tr:nth-child(even) {\r\n background-color: var(--background-alt);\r\n}\r\n\r\n::-webkit-scrollbar {\r\n height: 10px;\r\n width: 10px;\r\n}\r\n\r\n::-webkit-scrollbar-track {\r\n background: var(--background);\r\n border-radius: 6px;\r\n}\r\n\r\n::-webkit-scrollbar-thumb {\r\n background: var(--scrollbar-thumb);\r\n border-radius: 6px;\r\n}\r\n\r\n::-webkit-scrollbar-thumb:hover {\r\n background: var(--scrollbar-thumb-hover);\r\n}\r\n\r\n::selection {\r\n background-color: var(--selection);\r\n}\r\n"]} \ No newline at end of file diff --git a/dist/light.css b/dist/light.css index 4d9125c..c942e79 100644 --- a/dist/light.css +++ b/dist/light.css @@ -1,2 +1,363 @@ -@charset "UTF-8";body{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;line-height:1.4;max-width:800px;margin:20px auto;padding:0 10px;color:#363636;background:#fff;text-rendering:optimizeLegibility}button,input,textarea{transition:background-color .1s linear,border-color .1s linear,color .1s linear,box-shadow .1s linear,transform .1s ease}h1{font-size:2.2em;margin-top:0}h1,h2,h3,h4,h5,h6{margin-bottom:12px}h1,h2,h3,h4,h5,h6,strong{color:#000}b,h1,h2,h3,h4,h5,h6,strong,th{font-weight:600}blockquote{border-left:4px solid rgba(0,150,191,.67);margin:1.5em 0;padding:.5em 1em;font-style:italic}blockquote>footer{margin-top:10px;font-style:normal}address,blockquote cite{font-style:normal}a[href^=mailto]:before{content:"📧 "}a[href^=tel]:before{content:"📞 "}a[href^=sms]:before{content:"💬 "}button,input[type=button],input[type=checkbox],input[type=radio],input[type=submit]{cursor:pointer}input:not([type=checkbox]):not([type=radio]),select{display:block}button,input,select,textarea{color:#000;background-color:#efefef;font-family:inherit;font-size:inherit;margin-right:6px;margin-bottom:6px;padding:10px;border:none;border-radius:6px;outline:none;-webkit-appearance:none}textarea{margin-right:0;width:100%;box-sizing:border-box;resize:vertical}button,input[type=button],input[type=submit]{padding-right:30px;padding-left:30px}button:hover,input[type=button]:hover,input[type=submit]:hover{background:#ddd}button:focus,input:focus,select:focus,textarea:focus{box-shadow:0 0 0 2px rgba(0,150,191,.67)}input[type=checkbox],input[type=radio]{width:14px;height:14px;display:inline-block;vertical-align:middle;margin:0 2px 0 0}input[type=radio]{border-radius:50%}input[type=checkbox]:checked,input[type=radio]:checked{background:#ddd}input[type=checkbox]:checked:before,input[type=radio]:checked:before{content:"•";display:block;transform:translateY(-50%) translateY(-.3px) translateX(-2.7px)}input[type=checkbox]:checked:before{content:"✔";transform:translateY(-50%) translateY(.5px) translateX(-6px)}button:active,input[type=button]:active,input[type=checkbox]:active,input[type=radio]:active,input[type=submit]:active{transform:translateY(2px)}button:disabled,input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;opacity:.5}::-webkit-input-placeholder{color:#949494}:-ms-input-placeholder{color:#949494}::-ms-input-placeholder{color:#949494}::placeholder{color:#949494}a{text-decoration:none;color:#0076d1}a:hover{text-decoration:underline}code,kbd{background:#efefef;color:#000;padding:5px;border-radius:6px}pre>code{padding:10px;display:block;overflow-x:auto}img{max-width:100%}hr{border:none;border-top:1px solid #dbdbdb}table{border-collapse:collapse;margin-bottom:10px;width:100%}td,th{padding:6px;text-align:left}th{border-bottom:1px solid #dbdbdb}tbody tr:nth-child(2n){background-color:#efefef}::-webkit-scrollbar{height:10px;width:10px}::-webkit-scrollbar-track{background:#efefef;border-radius:6px}::-webkit-scrollbar-thumb{background:#d5d5d5;border-radius:6px}::-webkit-scrollbar-thumb:hover{background:#c4c4c4} +/** + * Light-themed version: + * uses light theme by default but switches to dark theme + * if a system-wide theme preference is set on the user's device. + * + * Variables will remain uncompiled so the theme can update dynamically + * at runtime in the browser. + */ + +:root { + --background-body: #ffffff; + --background: #efefef; + --background-alt: #f7f7f7; + + --selection: #9e9e9e; + + --text-main: #363636; + --text-bright: #000000; + + --links: #0076d1; + --focus: #0096bfab; + --border: #dbdbdb; + --code: #000000; + + --animation-duration: 0.1s; + --button-hover: #dddddd; + + --scrollbar-thumb: rgb(213, 213, 213); + --scrollbar-thumb-hover: rgb(196, 196, 196); + + --form-placeholder: #949494; + --form-text: #000000; + + --variable: #39a33c; + --highlight: #ffff00; +} + +@media (prefers-color-scheme: dark) { +:root { + --background-body: #202b38; + --background: #161f27; + --background-alt: #1a242f; + + --selection: #161f27; + + --text-main: #dbdbdb; + --text-bright: #ffffff; + + --links: #41adff; + --focus: #0096bfab; + --border: #dbdbdb; + --code: #ffbe85; + + --animation-duration: 0.1s; + --button-hover: #324759; + + --scrollbar-thumb: var(--button-hover); + --scrollbar-thumb-hover: rgb(20, 20, 20); + + --form-placeholder: #a9a9a9; + --form-text: #ffffff; + + --variable: #d941e2; + --highlight: #efdb43; +} +} + +body { + font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; + line-height: 1.4; + + max-width: 800px; + margin: 20px auto; + padding: 0 10px; + + color: var(--text-main); + background: var(--background-body); + + text-rendering: optimizeLegibility; +} + +button, input, textarea { + transition: background-color var(--animation-duration) linear, + border-color var(--animation-duration) linear, + color var(--animation-duration) linear, + box-shadow var(--animation-duration) linear, + transform var(--animation-duration) ease; +} + +h1 { + font-size: 2.2em; + margin-top: 0; +} + +h1, +h2, +h3, +h4, +h5, +h6 { + margin-bottom: 12px; +} + +h1, +h2, +h3, +h4, +h5, +h6, +strong { + color: var(--text-bright); +} + +h1, +h2, +h3, +h4, +h5, +h6, +b, +strong, +th { + font-weight: 600; +} + +q:before { + content: none; +} + +q:after { + content: none; +} + +blockquote , q{ + border-left: 4px solid var(--focus); + margin: 1.5em 0em; + padding: 0.5em 1em; + font-style: italic; +} + +blockquote > footer { + margin-top: 10px; + font-style: normal; +} + +blockquote cite { + font-style: normal; +} + +address { + font-style: normal; +} + +a[href^='mailto']::before { + content: '📧 '; +} + +a[href^='tel']::before { + content: '📞 '; +} + +a[href^='sms']::before { + content: '💬 '; +} + +mark { + background-color: var(--highlight); + border-radius: 2px; + padding: 0px 2px 0px 2px; + color: #000000; +} + +button, +input[type='submit'], +input[type='button'], +input[type='checkbox'] { + cursor: pointer; +} + +input:not([type='checkbox']):not([type='radio']), +select { + display: block; +} + +input, +select, +button, +textarea { + color: var(--form-text); + background-color: var(--background); + + font-family: inherit; + font-size: inherit; + + margin-right: 6px; + margin-bottom: 6px; + padding: 10px; + + border: none; + border-radius: 6px; + outline: none; +} + +input:not([type='checkbox']):not([type='radio']), +select, +button, +textarea { + -webkit-appearance: none; +} + +textarea { + margin-right: 0; + width: 100%; + box-sizing: border-box; + resize: vertical; +} + +button, +input[type='submit'], +input[type='button'] { + padding-right: 30px; + padding-left: 30px; +} + +button:hover, +input[type='submit']:hover, +input[type='button']:hover { + background: var(--button-hover); +} + +input:focus, +select:focus, +button:focus, +textarea:focus { + box-shadow: 0 0 0 2px var(--focus); +} + +input[type='checkbox']:active, +input[type='radio']:active, +input[type='submit']:active, +input[type='button']:active, +button:active { + transform: translateY(2px); +} + +input:disabled, +select:disabled, +button:disabled, +textarea:disabled { + cursor: not-allowed; + opacity: 0.5; +} + +::-webkit-input-placeholder { + color: var(--form-placeholder); +} + +:-ms-input-placeholder { + color: var(--form-placeholder); +} + +::-ms-input-placeholder { + color: var(--form-placeholder); +} + +::placeholder { + color: var(--form-placeholder); +} + +a { + text-decoration: none; + color: var(--links); +} + +a:hover { + text-decoration: underline; +} + +code, samp, time { + background: var(--background); + color: var(--code); + padding: 2.5px 5px; + border-radius: 6px; + font-size: 1em; +} + +pre > code { + padding: 10px; + display: block; + overflow-x: auto; +} + +var { + color: var(--variable); + font-style: normal; + font-family: monospace; +} + +kbd { + background: var(--background); + border: 1px solid var(--border); + border-radius: 2px; + color: var(--text-main); + padding: 2px 4px 2px 4px; +} + +img { + max-width: 100%; + height: auto; +} + +hr { + border: none; + border-top: 1px solid var(--border); +} + +table { + border-collapse: collapse; + margin-bottom: 10px; + width: 100%; +} + +td, +th { + padding: 6px; + text-align: left; +} + +th { + border-bottom: 1px solid var(--border); +} + +tbody tr:nth-child(even) { + background-color: var(--background-alt); +} + +::-webkit-scrollbar { + height: 10px; + width: 10px; +} + +::-webkit-scrollbar-track { + background: var(--background); + border-radius: 6px; +} + +::-webkit-scrollbar-thumb { + background: var(--scrollbar-thumb); + border-radius: 6px; +} + +::-webkit-scrollbar-thumb:hover { + background: var(--scrollbar-thumb-hover); +} + +::-moz-selection { + background-color: var(--selection); +} + +::selection { + background-color: var(--selection); +} /*# sourceMappingURL=light.css.map */ diff --git a/dist/light.css.map b/dist/light.css.map index 4917a2e..445e4bd 100644 --- a/dist/light.css.map +++ b/dist/light.css.map @@ -1 +1 @@ -{"version":3,"sources":["parts/_typography.scss","parts/_base.scss","light.scss","parts/_forms.scss","parts/_links.scss","parts/_code.scss","parts/_misc.scss"],"names":[],"mappings":"AAwDA,gBACiB,CCzDjB,KACE,6IAAyK,CACzK,eAAgB,CAEhB,eAAgB,CAChB,gBAAiB,CACjB,cAAe,CAEf,aCLiB,CDMjB,eCTkB,CDWlB,iCAAkC,CAGpC,sBACE,wHAI8C,CDnBhD,GACE,eAAgB,CAChB,YAAa,CAGf,kBAME,kBAAmB,CAGrB,yBAOE,UEjBmB,CFoBrB,8BASE,eAAgB,CAGlB,WACE,yCE9Be,CF+Bf,cAAiB,CACjB,gBAAkB,CAClB,iBAAkB,CAGpB,kBACE,eAAgB,CAChB,iBAAkB,CAOpB,wBACE,iBAAkB,CAGpB,uBACE,aAAe,CAGjB,oBACE,aAAe,CAGjB,oBACE,aAAe,CGjEjB,oFAKE,cAAe,CAGjB,oDAEE,aAAc,CAGhB,6BACE,UDIiB,CCHjB,wBDdsB,CCgBtB,mBAAoB,CACpB,iBAAkB,CAElB,gBAAiB,CACjB,iBAAkB,CAClB,YAAa,CAEb,WAAY,CACZ,iBAAkB,CAClB,YAAa,CAEb,uBAAwB,CAG1B,SACE,cAAe,CACf,UAAW,CACX,qBAAsB,CACtB,eAAgB,CAGlB,6CACE,kBAAmB,CACnB,iBAAkB,CAGpB,+DAGE,eDnCoB,CCsCtB,qDAIE,wCD9Ce,CCiDjB,uCAEE,UAAW,CACX,WAAY,CACZ,oBAAqB,CACrB,qBAAsB,CAEtB,gBAAiB,CAGnB,kBACE,iBAAkB,CAGpB,uDAEE,eD7DoB,CC2DtB,qEAKI,WAAS,CACT,aAAc,CACd,+DAAiE,CAIrE,oCACE,WAAS,CACT,4DAA8D,CAGhE,uHAKE,yBAA0B,CAG5B,iEAIE,kBAAmB,CACnB,UAAW,CAGb,4BACE,aDtFwB,CCqF1B,uBACE,aDtFwB,CCqF1B,wBACE,aDtFwB,CCqF1B,cACE,aDtFwB,CEjB1B,EACE,oBAAqB,CACrB,aFIa,CEDf,QACE,yBAA0B,CCN5B,SACE,kBHAsB,CGCtB,UHOY,CGNZ,WAAY,CACZ,iBAAkB,CAGpB,SACE,YAAa,CACb,aAAc,CACd,eAAgB,CCVlB,IACE,cAAe,CAGjB,GAEE,WJEc,CIFd,4BJEc,CIChB,MACE,wBAAyB,CACzB,kBAAmB,CACnB,UAAW,CAGb,MACE,WAAY,CACZ,eAAgB,CAGlB,GACE,+BJbc,CIgBhB,uBACE,wBJxBsB,CI2BxB,oBACE,WAAY,CACZ,UAAW,CAGb,0BACE,kBJjCsB,CIkCtB,iBAAkB,CAGpB,0BACE,kBJzByC,CI0BzC,iBAAkB,CAGpB,gCACE,kBJ7BgD","file":"light.css","sourcesContent":["h1 {\n font-size: 2.2em;\n margin-top: 0;\n}\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n margin-bottom: 12px;\n}\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nstrong {\n color: $text-bright;\n}\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nb,\nstrong,\nth {\n font-weight: 600;\n}\n\nblockquote {\n border-left: 4px solid $focus;\n margin: 1.5em 0em;\n padding: 0.5em 1em;\n font-style: italic;\n}\n\nblockquote > footer {\n margin-top: 10px;\n font-style: normal;\n}\n\nblockquote cite {\n font-style: normal;\n}\n\naddress {\n font-style: normal;\n}\n\na[href^='mailto']::before {\n content: '📧 ';\n}\n\na[href^='tel']::before {\n content: '📞 ';\n}\n\na[href^='sms']::before {\n content: '💬 ';\n}","body {\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\n line-height: 1.4;\n\n max-width: 800px;\n margin: 20px auto;\n padding: 0 10px;\n\n color: $text-main;\n background: $background;\n\n text-rendering: optimizeLegibility;\n}\n\nbutton, input, textarea {\n transition: background-color $animation-duration linear,\n border-color $animation-duration linear,\n color $animation-duration linear,\n box-shadow $animation-duration linear,\n transform $animation-duration ease;\n}\n","$background: #ffffff !default;\n$background-alt: #efefef !default;\n\n$text-main: #363636 !default;\n$text-bright: #000000 !default;\n\n$links: #0076d1 !default;\n$focus: #0096bfab !default;\n$border: #dbdbdb !default;\n$code: #000000 !default;\n\n$button-hover: #dddddd !default;\n$animation-duration: 0.1s !default;\n\n$scrollbar-thumb: darken($button-hover, 3%);\n$scrollbar-thumb-hover: darken($button-hover, 10%);\n\n$form-placeholder: #949494 !default;\n$form-text: #000000 !default;\n\n@import 'parts/core';","button,\ninput[type='submit'],\ninput[type='button'],\ninput[type='checkbox'],\ninput[type='radio'] {\n cursor: pointer;\n}\n\ninput:not([type='checkbox']):not([type='radio']),\nselect {\n display: block;\n}\n\ninput, select, button, textarea {\n color: $form-text;\n background-color: $background-alt;\n\n font-family: inherit;\n font-size: inherit;\n\n margin-right: 6px;\n margin-bottom: 6px;\n padding: 10px;\n\n border: none;\n border-radius: 6px;\n outline: none;\n\n -webkit-appearance: none;\n}\n\ntextarea {\n margin-right: 0;\n width: 100%;\n box-sizing: border-box;\n resize: vertical;\n}\n\nbutton, input[type='submit'], input[type='button'] {\n padding-right: 30px;\n padding-left: 30px;\n}\n\nbutton:hover,\ninput[type='submit']:hover,\ninput[type='button']:hover {\n background: $button-hover;\n}\n\ninput:focus,\nselect:focus,\nbutton:focus,\ntextarea:focus {\n box-shadow: 0 0 0 2px $focus;\n}\n\ninput[type='checkbox'],\ninput[type='radio'] {\n width: 14px;\n height: 14px;\n display: inline-block;\n vertical-align: middle;\n margin: 0;\n margin-right: 2px;\n}\n\ninput[type='radio'] {\n border-radius: 50%;\n}\n\ninput[type='checkbox']:checked,\ninput[type='radio']:checked {\n background: $button-hover;\n\n &::before {\n content: '•';\n display: block;\n transform: translateY(-50%) translateY(-0.3px) translateX(-2.7px);\n }\n}\n\ninput[type='checkbox']:checked::before {\n content: '✔';\n transform: translateY(-50%) translateY(0.5px) translateX(-6px);\n}\n\ninput[type='checkbox']:active,\ninput[type='radio']:active,\ninput[type='submit']:active,\ninput[type='button']:active,\nbutton:active {\n transform: translateY(2px);\n}\n\ninput:disabled,\nselect:disabled,\nbutton:disabled,\ntextarea:disabled {\n cursor: not-allowed;\n opacity: .5;\n}\n\n::placeholder {\n color: $form-placeholder;\n}","a {\n text-decoration: none;\n color: $links;\n}\n\na:hover {\n text-decoration: underline;\n}","code, kbd {\n background: $background-alt;\n color: $code;\n padding: 5px;\n border-radius: 6px;\n}\n\npre > code {\n padding: 10px;\n display: block;\n overflow-x: auto;\n}","img {\n max-width: 100%;\n}\n\nhr {\n border: none;\n border-top: 1px solid $border;\n}\n\ntable {\n border-collapse: collapse;\n margin-bottom: 10px;\n width: 100%;\n}\n\ntd, th {\n padding: 6px;\n text-align: left;\n}\n\nth {\n border-bottom: 1px solid $border;\n}\n\ntbody tr:nth-child(even) {\n background-color: $background-alt;\n}\n\n::-webkit-scrollbar {\n height: 10px;\n width: 10px;\n}\n\n::-webkit-scrollbar-track {\n background: $background-alt;\n border-radius: 6px;\n}\n\n::-webkit-scrollbar-thumb {\n background: $scrollbar-thumb;\n border-radius: 6px;\n}\n\n::-webkit-scrollbar-thumb:hover {\n background: $scrollbar-thumb-hover;\n}"]} \ No newline at end of file +{"version":3,"sources":["light.css","../variables-light.css","../variables-dark.css","../parts/_base.css","../parts/_typography.css","../parts/_forms.css","../parts/_links.css","../parts/_code.css","../parts/_misc.css"],"names":[],"mappings":"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","file":"light.css","sourcesContent":["/**\r\n * Light-themed version:\r\n * uses light theme by default but switches to dark theme\r\n * if a system-wide theme preference is set on the user's device.\r\n *\r\n * Variables will remain uncompiled so the theme can update dynamically\r\n * at runtime in the browser.\r\n */\r\n\r\n@import '../variables-light.css';\r\n@import '../variables-dark.css' (prefers-color-scheme: dark);\r\n\r\n\r\n@import '../parts/_core.css';",":root {\r\n --background-body: #ffffff;\r\n --background: #efefef;\r\n --background-alt: #f7f7f7;\r\n\r\n --selection: #9e9e9e;\r\n\r\n --text-main: #363636;\r\n --text-bright: #000000;\r\n\r\n --links: #0076d1;\r\n --focus: #0096bfab;\r\n --border: #dbdbdb;\r\n --code: #000000;\r\n\r\n --animation-duration: 0.1s;\r\n --button-hover: #dddddd;\r\n\r\n --scrollbar-thumb: color-mod(var(--button-hover) lightness(-3%));\r\n --scrollbar-thumb-hover: color-mod(var(--button-hover) lightness(-10%));\r\n\r\n --form-placeholder: #949494;\r\n --form-text: #000000;\r\n\r\n --variable: #39a33c;\r\n --highlight: #ffff00;\r\n}\r\n",":root {\r\n --background-body: #202b38;\r\n --background: #161f27;\r\n --background-alt: #1a242f;\r\n\r\n --selection: #161f27;\r\n\r\n --text-main: #dbdbdb;\r\n --text-bright: #ffffff;\r\n\r\n --links: #41adff;\r\n --focus: #0096bfab;\r\n --border: #dbdbdb;\r\n --code: #ffbe85;\r\n\r\n --animation-duration: 0.1s;\r\n --button-hover: #324759;\r\n\r\n --scrollbar-thumb: var(--button-hover);\r\n --scrollbar-thumb-hover: color-mod(var(--scrollbar-thumb) lightness(+8%));\r\n\r\n --form-placeholder: #a9a9a9;\r\n --form-text: #ffffff;\r\n\r\n --variable: #d941e2;\r\n --highlight: #efdb43;\r\n}\r\n","body {\r\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\r\n line-height: 1.4;\r\n\r\n max-width: 800px;\r\n margin: 20px auto;\r\n padding: 0 10px;\r\n\r\n color: var(--text-main);\r\n background: var(--background-body);\r\n\r\n text-rendering: optimizeLegibility;\r\n}\r\n\r\nbutton, input, textarea {\r\n transition: background-color var(--animation-duration) linear,\r\n border-color var(--animation-duration) linear,\r\n color var(--animation-duration) linear,\r\n box-shadow var(--animation-duration) linear,\r\n transform var(--animation-duration) ease;\r\n}\r\n","h1 {\r\n font-size: 2.2em;\r\n margin-top: 0;\r\n}\r\n\r\nh1,\r\nh2,\r\nh3,\r\nh4,\r\nh5,\r\nh6 {\r\n margin-bottom: 12px;\r\n}\r\n\r\nh1,\r\nh2,\r\nh3,\r\nh4,\r\nh5,\r\nh6,\r\nstrong {\r\n color: var(--text-bright);\r\n}\r\n\r\nh1,\r\nh2,\r\nh3,\r\nh4,\r\nh5,\r\nh6,\r\nb,\r\nstrong,\r\nth {\r\n font-weight: 600;\r\n}\r\n\r\nq:before {\r\n content: none;\r\n}\r\n\r\nq:after {\r\n content: none;\r\n}\r\n\r\nblockquote , q{\r\n border-left: 4px solid var(--focus);\r\n margin: 1.5em 0em;\r\n padding: 0.5em 1em;\r\n font-style: italic;\r\n}\r\n\r\nblockquote > footer {\r\n margin-top: 10px;\r\n font-style: normal;\r\n}\r\n\r\nblockquote cite {\r\n font-style: normal;\r\n}\r\n\r\naddress {\r\n font-style: normal;\r\n}\r\n\r\na[href^='mailto']::before {\r\n content: '📧 ';\r\n}\r\n\r\na[href^='tel']::before {\r\n content: '📞 ';\r\n}\r\n\r\na[href^='sms']::before {\r\n content: '💬 ';\r\n}\r\n\r\nmark {\r\n background-color: var(--highlight);\r\n border-radius: 2px;\r\n padding: 0px 2px 0px 2px;\r\n color: #000000;\r\n}","button,\r\ninput[type='submit'],\r\ninput[type='button'],\r\ninput[type='checkbox'] {\r\n cursor: pointer;\r\n}\r\n\r\ninput:not([type='checkbox']):not([type='radio']),\r\nselect {\r\n display: block;\r\n}\r\n\r\ninput,\r\nselect,\r\nbutton,\r\ntextarea {\r\n color: var(--form-text);\r\n background-color: var(--background);\r\n\r\n font-family: inherit;\r\n font-size: inherit;\r\n\r\n margin-right: 6px;\r\n margin-bottom: 6px;\r\n padding: 10px;\r\n\r\n border: none;\r\n border-radius: 6px;\r\n outline: none;\r\n}\r\n\r\ninput:not([type='checkbox']):not([type='radio']),\r\nselect,\r\nbutton,\r\ntextarea {\r\n -webkit-appearance: none;\r\n}\r\n\r\ntextarea {\r\n margin-right: 0;\r\n width: 100%;\r\n box-sizing: border-box;\r\n resize: vertical;\r\n}\r\n\r\nbutton,\r\ninput[type='submit'],\r\ninput[type='button'] {\r\n padding-right: 30px;\r\n padding-left: 30px;\r\n}\r\n\r\nbutton:hover,\r\ninput[type='submit']:hover,\r\ninput[type='button']:hover {\r\n background: var(--button-hover);\r\n}\r\n\r\ninput:focus,\r\nselect:focus,\r\nbutton:focus,\r\ntextarea:focus {\r\n box-shadow: 0 0 0 2px var(--focus);\r\n}\r\n\r\ninput[type='checkbox']:active,\r\ninput[type='radio']:active,\r\ninput[type='submit']:active,\r\ninput[type='button']:active,\r\nbutton:active {\r\n transform: translateY(2px);\r\n}\r\n\r\ninput:disabled,\r\nselect:disabled,\r\nbutton:disabled,\r\ntextarea:disabled {\r\n cursor: not-allowed;\r\n opacity: 0.5;\r\n}\r\n\r\n::placeholder {\r\n color: var(--form-placeholder);\r\n}\r\n","a {\r\n text-decoration: none;\r\n color: var(--links);\r\n}\r\n\r\na:hover {\r\n text-decoration: underline;\r\n}","code, samp, time {\r\n background: var(--background);\r\n color: var(--code);\r\n padding: 2.5px 5px;\r\n border-radius: 6px;\r\n font-size: 1em;\r\n}\r\n\r\npre > code {\r\n padding: 10px;\r\n display: block;\r\n overflow-x: auto;\r\n}\r\n\r\nvar {\r\n color: var(--variable);\r\n font-style: normal;\r\n font-family: monospace;\r\n}\r\n\r\nkbd {\r\n background: var(--background);\r\n border: 1px solid var(--border);\r\n border-radius: 2px;\r\n color: var(--text-main);\r\n padding: 2px 4px 2px 4px;\r\n}","img {\r\n max-width: 100%;\r\n height: auto;\r\n}\r\n\r\nhr {\r\n border: none;\r\n border-top: 1px solid var(--border);\r\n}\r\n\r\ntable {\r\n border-collapse: collapse;\r\n margin-bottom: 10px;\r\n width: 100%;\r\n}\r\n\r\ntd,\r\nth {\r\n padding: 6px;\r\n text-align: left;\r\n}\r\n\r\nth {\r\n border-bottom: 1px solid var(--border);\r\n}\r\n\r\ntbody tr:nth-child(even) {\r\n background-color: var(--background-alt);\r\n}\r\n\r\n::-webkit-scrollbar {\r\n height: 10px;\r\n width: 10px;\r\n}\r\n\r\n::-webkit-scrollbar-track {\r\n background: var(--background);\r\n border-radius: 6px;\r\n}\r\n\r\n::-webkit-scrollbar-thumb {\r\n background: var(--scrollbar-thumb);\r\n border-radius: 6px;\r\n}\r\n\r\n::-webkit-scrollbar-thumb:hover {\r\n background: var(--scrollbar-thumb-hover);\r\n}\r\n\r\n::selection {\r\n background-color: var(--selection);\r\n}\r\n"]} \ No newline at end of file diff --git a/dist/light.min.css b/dist/light.min.css new file mode 100644 index 0000000..0545b0b --- /dev/null +++ b/dist/light.min.css @@ -0,0 +1,2 @@ +:root{--background-body:#fff;--background:#efefef;--background-alt:#f7f7f7;--selection:#9e9e9e;--text-main:#363636;--text-bright:#000;--links:#0076d1;--focus:rgba(0,150,191,0.67);--border:#dbdbdb;--code:#000;--animation-duration:0.1s;--button-hover:#ddd;--scrollbar-thumb:#d5d5d5;--scrollbar-thumb-hover:#c4c4c4;--form-placeholder:#949494;--form-text:#000;--variable:#39a33c;--highlight:#ff0}@media (prefers-color-scheme:dark){:root{--background-body:#202b38;--background:#161f27;--background-alt:#1a242f;--selection:#161f27;--text-main:#dbdbdb;--text-bright:#fff;--links:#41adff;--focus:rgba(0,150,191,0.67);--border:#dbdbdb;--code:#ffbe85;--animation-duration:0.1s;--button-hover:#324759;--scrollbar-thumb:var(--button-hover);--scrollbar-thumb-hover:#141414;--form-placeholder:#a9a9a9;--form-text:#fff;--variable:#d941e2;--highlight:#efdb43}}body{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;line-height:1.4;max-width:800px;margin:20px auto;padding:0 10px;color:var(--text-main);background:var(--background-body);text-rendering:optimizeLegibility}button,input,textarea{transition:background-color var(--animation-duration) linear,border-color var(--animation-duration) linear,color var(--animation-duration) linear,box-shadow var(--animation-duration) linear,transform var(--animation-duration) ease}h1{font-size:2.2em;margin-top:0}h1,h2,h3,h4,h5,h6{margin-bottom:12px}h1,h2,h3,h4,h5,h6,strong{color:var(--text-bright)}b,h1,h2,h3,h4,h5,h6,strong,th{font-weight:600}q:after,q:before{content:none}blockquote,q{border-left:4px solid var(--focus);margin:1.5em 0;padding:.5em 1em;font-style:italic}blockquote>footer{margin-top:10px;font-style:normal}address,blockquote cite{font-style:normal}a[href^=mailto]:before{content:"📧 "}a[href^=tel]:before{content:"📞 "}a[href^=sms]:before{content:"💬 "}mark{background-color:var(--highlight);border-radius:2px;padding:0 2px;color:#000}button,input[type=button],input[type=checkbox],input[type=submit]{cursor:pointer}input:not([type=checkbox]):not([type=radio]),select{display:block}button,input,select,textarea{color:var(--form-text);background-color:var(--background);font-family:inherit;font-size:inherit;margin-right:6px;margin-bottom:6px;padding:10px;border:none;border-radius:6px;outline:none}button,input:not([type=checkbox]):not([type=radio]),select,textarea{-webkit-appearance:none}textarea{margin-right:0;width:100%;box-sizing:border-box;resize:vertical}button,input[type=button],input[type=submit]{padding-right:30px;padding-left:30px}button:hover,input[type=button]:hover,input[type=submit]:hover{background:var(--button-hover)}button:focus,input:focus,select:focus,textarea:focus{box-shadow:0 0 0 2px var(--focus)}button:active,input[type=button]:active,input[type=checkbox]:active,input[type=radio]:active,input[type=submit]:active{transform:translateY(2px)}button:disabled,input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;opacity:.5}::-webkit-input-placeholder{color:var(--form-placeholder)}:-ms-input-placeholder{color:var(--form-placeholder)}::-ms-input-placeholder{color:var(--form-placeholder)}::placeholder{color:var(--form-placeholder)}a{text-decoration:none;color:var(--links)}a:hover{text-decoration:underline}code,samp,time{background:var(--background);color:var(--code);padding:2.5px 5px;border-radius:6px;font-size:1em}pre>code{padding:10px;display:block;overflow-x:auto}var{color:var(--variable);font-style:normal;font-family:monospace}kbd{background:var(--background);border:1px solid var(--border);border-radius:2px;color:var(--text-main);padding:2px 4px}img{max-width:100%;height:auto}hr{border:none;border-top:1px solid var(--border)}table{border-collapse:collapse;margin-bottom:10px;width:100%}td,th{padding:6px;text-align:left}th{border-bottom:1px solid var(--border)}tbody tr:nth-child(2n){background-color:var(--background-alt)}::-webkit-scrollbar{height:10px;width:10px}::-webkit-scrollbar-track{background:var(--background);border-radius:6px}::-webkit-scrollbar-thumb{background:var(--scrollbar-thumb);border-radius:6px}::-webkit-scrollbar-thumb:hover{background:var(--scrollbar-thumb-hover)}::-moz-selection{background-color:var(--selection)}::selection{background-color:var(--selection)} +/*# sourceMappingURL=light.min.css.map */ diff --git a/dist/light.min.css.map b/dist/light.min.css.map new file mode 100644 index 0000000..461139b --- /dev/null +++ b/dist/light.min.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["../variables-light.css","../variables-dark.css","light.css","../parts/_base.css","../parts/_typography.css","../parts/_forms.css","../parts/_links.css","../parts/_code.css","../parts/_misc.css"],"names":[],"mappings":"AAAA,MACE,sBAA0B,CAC1B,oBAAqB,CACrB,wBAAyB,CAEzB,mBAAoB,CAEpB,mBAAoB,CACpB,kBAAsB,CAEtB,eAAgB,CAChB,4BAAkB,CAClB,gBAAiB,CACjB,WAAe,CAEf,yBAA0B,CAC1B,mBAAuB,CAEvB,yBAAgE,CAChE,+BAAuE,CAEvE,0BAA2B,CAC3B,gBAAoB,CAEpB,kBAAmB,CACnB,gBACF,CC1BA,mCAAA,MACE,yBAA0B,CAC1B,oBAAqB,CACrB,wBAAyB,CAEzB,mBAAoB,CAEpB,mBAAoB,CACpB,kBAAsB,CAEtB,eAAgB,CAChB,4BAAkB,CAClB,gBAAiB,CACjB,cAAe,CAEf,yBAA0B,CAC1B,sBAAuB,CAEvB,qCAAsC,CACtC,+BAAyE,CAEzE,0BAA2B,CAC3B,gBAAoB,CAEpB,kBAAmB,CACnB,mBACF,CCuCA,CCjEA,KACE,6IAAyK,CACzK,eAAgB,CAEhB,eAAgB,CAChB,gBAAiB,CACjB,cAAe,CAEf,sBAAuB,CACvB,iCAAkC,CAElC,iCACF,CAEA,sBACE,sOAKF,CCpBA,GACE,eAAgB,CAChB,YACF,CAEA,kBAME,kBACF,CAEA,yBAOE,wBACF,CAEA,8BASE,eACF,CAMA,iBACG,YACH,CAEA,aACE,kCAAmC,CACnC,cAAiB,CACjB,gBAAkB,CAClB,iBACF,CAEA,kBACE,eAAgB,CAChB,iBACF,CAMA,wBACE,iBACF,CAEA,uBACE,aACF,CAEA,oBACE,aACF,CAEA,oBACE,aACF,CAEA,KACE,iCAAkC,CAClC,iBAAkB,CAClB,aAAwB,CACxB,UACF,CCjFA,kEAIE,cACF,CAEA,oDAEE,aACF,CAEA,6BAIE,sBAAuB,CACvB,kCAAmC,CAEnC,mBAAoB,CACpB,iBAAkB,CAElB,gBAAiB,CACjB,iBAAkB,CAClB,YAAa,CAEb,WAAY,CACZ,iBAAkB,CAClB,YACF,CAEA,oEAIE,uBACF,CAEA,SACE,cAAe,CACf,UAAW,CACX,qBAAsB,CACtB,eACF,CAEA,6CAGE,kBAAmB,CACnB,iBACF,CAEA,+DAGE,8BACF,CAEA,qDAIE,iCACF,CAEA,uHAKE,yBACF,CAEA,iEAIE,kBAAmB,CACnB,UACF,CAEA,4BACE,6BACF,CAFA,uBACE,6BACF,CAFA,wBACE,6BACF,CAFA,cACE,6BACF,CCnFA,EACE,oBAAqB,CACrB,kBACF,CAEA,QACE,yBACF,CCPA,eACE,4BAA8B,CAC9B,iBAAkB,CAClB,iBAAkB,CAClB,iBAAkB,CAClB,aACF,CAEA,SACE,YAAa,CACb,aAAc,CACd,eACF,CAEA,IACE,qBAAsB,CACtB,iBAAkB,CAClB,qBACF,CAEA,IACE,4BAA6B,CAC7B,8BAA+B,CAC/B,iBAAkB,CAClB,sBAAuB,CACvB,eACF,CC1BA,IACE,cAAe,CACf,WACF,CAEA,GACE,WAAY,CACZ,kCACF,CAEA,MACE,wBAAyB,CACzB,kBAAmB,CACnB,UACF,CAEA,MAEE,WAAY,CACZ,eACF,CAEA,GACE,qCACF,CAEA,uBACE,sCACF,CAEA,oBACE,WAAY,CACZ,UACF,CAEA,0BACE,4BAA6B,CAC7B,iBACF,CAEA,0BACE,iCAAkC,CAClC,iBACF,CAEA,gCACE,uCACF,CAEA,iBACE,iCACF,CAFA,YACE,iCACF","file":"light.min.css","sourcesContent":[":root {\r\n --background-body: #ffffff;\r\n --background: #efefef;\r\n --background-alt: #f7f7f7;\r\n\r\n --selection: #9e9e9e;\r\n\r\n --text-main: #363636;\r\n --text-bright: #000000;\r\n\r\n --links: #0076d1;\r\n --focus: #0096bfab;\r\n --border: #dbdbdb;\r\n --code: #000000;\r\n\r\n --animation-duration: 0.1s;\r\n --button-hover: #dddddd;\r\n\r\n --scrollbar-thumb: color-mod(var(--button-hover) lightness(-3%));\r\n --scrollbar-thumb-hover: color-mod(var(--button-hover) lightness(-10%));\r\n\r\n --form-placeholder: #949494;\r\n --form-text: #000000;\r\n\r\n --variable: #39a33c;\r\n --highlight: #ffff00;\r\n}\r\n",":root {\r\n --background-body: #202b38;\r\n --background: #161f27;\r\n --background-alt: #1a242f;\r\n\r\n --selection: #161f27;\r\n\r\n --text-main: #dbdbdb;\r\n --text-bright: #ffffff;\r\n\r\n --links: #41adff;\r\n --focus: #0096bfab;\r\n --border: #dbdbdb;\r\n --code: #ffbe85;\r\n\r\n --animation-duration: 0.1s;\r\n --button-hover: #324759;\r\n\r\n --scrollbar-thumb: var(--button-hover);\r\n --scrollbar-thumb-hover: color-mod(var(--scrollbar-thumb) lightness(+8%));\r\n\r\n --form-placeholder: #a9a9a9;\r\n --form-text: #ffffff;\r\n\r\n --variable: #d941e2;\r\n --highlight: #efdb43;\r\n}\r\n","/**\r\n * Light-themed version:\r\n * uses light theme by default but switches to dark theme\r\n * if a system-wide theme preference is set on the user's device.\r\n *\r\n * Variables will remain uncompiled so the theme can update dynamically\r\n * at runtime in the browser.\r\n */\r\n\r\n@import '../variables-light.css';\r\n@import '../variables-dark.css' (prefers-color-scheme: dark);\r\n\r\n\r\n@import '../parts/_core.css';","body {\r\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\r\n line-height: 1.4;\r\n\r\n max-width: 800px;\r\n margin: 20px auto;\r\n padding: 0 10px;\r\n\r\n color: var(--text-main);\r\n background: var(--background-body);\r\n\r\n text-rendering: optimizeLegibility;\r\n}\r\n\r\nbutton, input, textarea {\r\n transition: background-color var(--animation-duration) linear,\r\n border-color var(--animation-duration) linear,\r\n color var(--animation-duration) linear,\r\n box-shadow var(--animation-duration) linear,\r\n transform var(--animation-duration) ease;\r\n}\r\n","h1 {\r\n font-size: 2.2em;\r\n margin-top: 0;\r\n}\r\n\r\nh1,\r\nh2,\r\nh3,\r\nh4,\r\nh5,\r\nh6 {\r\n margin-bottom: 12px;\r\n}\r\n\r\nh1,\r\nh2,\r\nh3,\r\nh4,\r\nh5,\r\nh6,\r\nstrong {\r\n color: var(--text-bright);\r\n}\r\n\r\nh1,\r\nh2,\r\nh3,\r\nh4,\r\nh5,\r\nh6,\r\nb,\r\nstrong,\r\nth {\r\n font-weight: 600;\r\n}\r\n\r\nq:before {\r\n content: none;\r\n}\r\n\r\nq:after {\r\n content: none;\r\n}\r\n\r\nblockquote , q{\r\n border-left: 4px solid var(--focus);\r\n margin: 1.5em 0em;\r\n padding: 0.5em 1em;\r\n font-style: italic;\r\n}\r\n\r\nblockquote > footer {\r\n margin-top: 10px;\r\n font-style: normal;\r\n}\r\n\r\nblockquote cite {\r\n font-style: normal;\r\n}\r\n\r\naddress {\r\n font-style: normal;\r\n}\r\n\r\na[href^='mailto']::before {\r\n content: '📧 ';\r\n}\r\n\r\na[href^='tel']::before {\r\n content: '📞 ';\r\n}\r\n\r\na[href^='sms']::before {\r\n content: '💬 ';\r\n}\r\n\r\nmark {\r\n background-color: var(--highlight);\r\n border-radius: 2px;\r\n padding: 0px 2px 0px 2px;\r\n color: #000000;\r\n}","button,\r\ninput[type='submit'],\r\ninput[type='button'],\r\ninput[type='checkbox'] {\r\n cursor: pointer;\r\n}\r\n\r\ninput:not([type='checkbox']):not([type='radio']),\r\nselect {\r\n display: block;\r\n}\r\n\r\ninput,\r\nselect,\r\nbutton,\r\ntextarea {\r\n color: var(--form-text);\r\n background-color: var(--background);\r\n\r\n font-family: inherit;\r\n font-size: inherit;\r\n\r\n margin-right: 6px;\r\n margin-bottom: 6px;\r\n padding: 10px;\r\n\r\n border: none;\r\n border-radius: 6px;\r\n outline: none;\r\n}\r\n\r\ninput:not([type='checkbox']):not([type='radio']),\r\nselect,\r\nbutton,\r\ntextarea {\r\n -webkit-appearance: none;\r\n}\r\n\r\ntextarea {\r\n margin-right: 0;\r\n width: 100%;\r\n box-sizing: border-box;\r\n resize: vertical;\r\n}\r\n\r\nbutton,\r\ninput[type='submit'],\r\ninput[type='button'] {\r\n padding-right: 30px;\r\n padding-left: 30px;\r\n}\r\n\r\nbutton:hover,\r\ninput[type='submit']:hover,\r\ninput[type='button']:hover {\r\n background: var(--button-hover);\r\n}\r\n\r\ninput:focus,\r\nselect:focus,\r\nbutton:focus,\r\ntextarea:focus {\r\n box-shadow: 0 0 0 2px var(--focus);\r\n}\r\n\r\ninput[type='checkbox']:active,\r\ninput[type='radio']:active,\r\ninput[type='submit']:active,\r\ninput[type='button']:active,\r\nbutton:active {\r\n transform: translateY(2px);\r\n}\r\n\r\ninput:disabled,\r\nselect:disabled,\r\nbutton:disabled,\r\ntextarea:disabled {\r\n cursor: not-allowed;\r\n opacity: 0.5;\r\n}\r\n\r\n::placeholder {\r\n color: var(--form-placeholder);\r\n}\r\n","a {\r\n text-decoration: none;\r\n color: var(--links);\r\n}\r\n\r\na:hover {\r\n text-decoration: underline;\r\n}","code, samp, time {\r\n background: var(--background);\r\n color: var(--code);\r\n padding: 2.5px 5px;\r\n border-radius: 6px;\r\n font-size: 1em;\r\n}\r\n\r\npre > code {\r\n padding: 10px;\r\n display: block;\r\n overflow-x: auto;\r\n}\r\n\r\nvar {\r\n color: var(--variable);\r\n font-style: normal;\r\n font-family: monospace;\r\n}\r\n\r\nkbd {\r\n background: var(--background);\r\n border: 1px solid var(--border);\r\n border-radius: 2px;\r\n color: var(--text-main);\r\n padding: 2px 4px 2px 4px;\r\n}","img {\r\n max-width: 100%;\r\n height: auto;\r\n}\r\n\r\nhr {\r\n border: none;\r\n border-top: 1px solid var(--border);\r\n}\r\n\r\ntable {\r\n border-collapse: collapse;\r\n margin-bottom: 10px;\r\n width: 100%;\r\n}\r\n\r\ntd,\r\nth {\r\n padding: 6px;\r\n text-align: left;\r\n}\r\n\r\nth {\r\n border-bottom: 1px solid var(--border);\r\n}\r\n\r\ntbody tr:nth-child(even) {\r\n background-color: var(--background-alt);\r\n}\r\n\r\n::-webkit-scrollbar {\r\n height: 10px;\r\n width: 10px;\r\n}\r\n\r\n::-webkit-scrollbar-track {\r\n background: var(--background);\r\n border-radius: 6px;\r\n}\r\n\r\n::-webkit-scrollbar-thumb {\r\n background: var(--scrollbar-thumb);\r\n border-radius: 6px;\r\n}\r\n\r\n::-webkit-scrollbar-thumb:hover {\r\n background: var(--scrollbar-thumb-hover);\r\n}\r\n\r\n::selection {\r\n background-color: var(--selection);\r\n}\r\n"]} \ No newline at end of file diff --git a/dist/light.standalone.css b/dist/light.standalone.css new file mode 100755 index 0000000..5f29aa4 --- /dev/null +++ b/dist/light.standalone.css @@ -0,0 +1,331 @@ +/** + * Standalone light-themed version. + * Includes light variables and core, left as CSS variables + * so the theming can be adjusted at runtime. + */ + +:root { + --background-body: #ffffff; + --background: #efefef; + --background-alt: #f7f7f7; + + --selection: #9e9e9e; + + --text-main: #363636; + --text-bright: #000000; + + --links: #0076d1; + --focus: #0096bfab; + --border: #dbdbdb; + --code: #000000; + + --animation-duration: 0.1s; + --button-hover: #dddddd; + + --scrollbar-thumb: rgb(213, 213, 213); + --scrollbar-thumb-hover: rgb(196, 196, 196); + + --form-placeholder: #949494; + --form-text: #000000; + + --variable: #39a33c; + --highlight: #ffff00; +} + +body { + font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; + line-height: 1.4; + + max-width: 800px; + margin: 20px auto; + padding: 0 10px; + + color: var(--text-main); + background: var(--background-body); + + text-rendering: optimizeLegibility; +} + +button, input, textarea { + transition: background-color var(--animation-duration) linear, + border-color var(--animation-duration) linear, + color var(--animation-duration) linear, + box-shadow var(--animation-duration) linear, + transform var(--animation-duration) ease; +} + +h1 { + font-size: 2.2em; + margin-top: 0; +} + +h1, +h2, +h3, +h4, +h5, +h6 { + margin-bottom: 12px; +} + +h1, +h2, +h3, +h4, +h5, +h6, +strong { + color: var(--text-bright); +} + +h1, +h2, +h3, +h4, +h5, +h6, +b, +strong, +th { + font-weight: 600; +} + +q:before { + content: none; +} + +q:after { + content: none; +} + +blockquote , q{ + border-left: 4px solid var(--focus); + margin: 1.5em 0em; + padding: 0.5em 1em; + font-style: italic; +} + +blockquote > footer { + margin-top: 10px; + font-style: normal; +} + +blockquote cite { + font-style: normal; +} + +address { + font-style: normal; +} + +a[href^='mailto']::before { + content: '📧 '; +} + +a[href^='tel']::before { + content: '📞 '; +} + +a[href^='sms']::before { + content: '💬 '; +} + +mark { + background-color: var(--highlight); + border-radius: 2px; + padding: 0px 2px 0px 2px; + color: #000000; +} + +button, +input[type='submit'], +input[type='button'], +input[type='checkbox'] { + cursor: pointer; +} + +input:not([type='checkbox']):not([type='radio']), +select { + display: block; +} + +input, +select, +button, +textarea { + color: var(--form-text); + background-color: var(--background); + + font-family: inherit; + font-size: inherit; + + margin-right: 6px; + margin-bottom: 6px; + padding: 10px; + + border: none; + border-radius: 6px; + outline: none; +} + +input:not([type='checkbox']):not([type='radio']), +select, +button, +textarea { + -webkit-appearance: none; +} + +textarea { + margin-right: 0; + width: 100%; + box-sizing: border-box; + resize: vertical; +} + +button, +input[type='submit'], +input[type='button'] { + padding-right: 30px; + padding-left: 30px; +} + +button:hover, +input[type='submit']:hover, +input[type='button']:hover { + background: var(--button-hover); +} + +input:focus, +select:focus, +button:focus, +textarea:focus { + box-shadow: 0 0 0 2px var(--focus); +} + +input[type='checkbox']:active, +input[type='radio']:active, +input[type='submit']:active, +input[type='button']:active, +button:active { + transform: translateY(2px); +} + +input:disabled, +select:disabled, +button:disabled, +textarea:disabled { + cursor: not-allowed; + opacity: 0.5; +} + +::-webkit-input-placeholder { + color: var(--form-placeholder); +} + +:-ms-input-placeholder { + color: var(--form-placeholder); +} + +::-ms-input-placeholder { + color: var(--form-placeholder); +} + +::placeholder { + color: var(--form-placeholder); +} + +a { + text-decoration: none; + color: var(--links); +} + +a:hover { + text-decoration: underline; +} + +code, samp, time { + background: var(--background); + color: var(--code); + padding: 2.5px 5px; + border-radius: 6px; + font-size: 1em; +} + +pre > code { + padding: 10px; + display: block; + overflow-x: auto; +} + +var { + color: var(--variable); + font-style: normal; + font-family: monospace; +} + +kbd { + background: var(--background); + border: 1px solid var(--border); + border-radius: 2px; + color: var(--text-main); + padding: 2px 4px 2px 4px; +} + +img { + max-width: 100%; + height: auto; +} + +hr { + border: none; + border-top: 1px solid var(--border); +} + +table { + border-collapse: collapse; + margin-bottom: 10px; + width: 100%; +} + +td, +th { + padding: 6px; + text-align: left; +} + +th { + border-bottom: 1px solid var(--border); +} + +tbody tr:nth-child(even) { + background-color: var(--background-alt); +} + +::-webkit-scrollbar { + height: 10px; + width: 10px; +} + +::-webkit-scrollbar-track { + background: var(--background); + border-radius: 6px; +} + +::-webkit-scrollbar-thumb { + background: var(--scrollbar-thumb); + border-radius: 6px; +} + +::-webkit-scrollbar-thumb:hover { + background: var(--scrollbar-thumb-hover); +} + +::-moz-selection { + background-color: var(--selection); +} + +::selection { + background-color: var(--selection); +} + +/*# sourceMappingURL=light.standalone.css.map */ diff --git a/dist/light.standalone.css.map b/dist/light.standalone.css.map new file mode 100644 index 0000000..8bbe9ff --- /dev/null +++ b/dist/light.standalone.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["light.standalone.css","../variables-light.css","../parts/_base.css","../parts/_typography.css","../parts/_forms.css","../parts/_links.css","../parts/_code.css","../parts/_misc.css"],"names":[],"mappings":"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","file":"light.standalone.css","sourcesContent":["/**\r\n * Standalone light-themed version.\r\n * Includes light variables and core, left as CSS variables\r\n * so the theming can be adjusted at runtime.\r\n */\r\n\r\n@import '../variables-light.css';\r\n@import '../parts/_core.css';\r\n",":root {\r\n --background-body: #ffffff;\r\n --background: #efefef;\r\n --background-alt: #f7f7f7;\r\n\r\n --selection: #9e9e9e;\r\n\r\n --text-main: #363636;\r\n --text-bright: #000000;\r\n\r\n --links: #0076d1;\r\n --focus: #0096bfab;\r\n --border: #dbdbdb;\r\n --code: #000000;\r\n\r\n --animation-duration: 0.1s;\r\n --button-hover: #dddddd;\r\n\r\n --scrollbar-thumb: color-mod(var(--button-hover) lightness(-3%));\r\n --scrollbar-thumb-hover: color-mod(var(--button-hover) lightness(-10%));\r\n\r\n --form-placeholder: #949494;\r\n --form-text: #000000;\r\n\r\n --variable: #39a33c;\r\n --highlight: #ffff00;\r\n}\r\n","body {\r\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\r\n line-height: 1.4;\r\n\r\n max-width: 800px;\r\n margin: 20px auto;\r\n padding: 0 10px;\r\n\r\n color: var(--text-main);\r\n background: var(--background-body);\r\n\r\n text-rendering: optimizeLegibility;\r\n}\r\n\r\nbutton, input, textarea {\r\n transition: background-color var(--animation-duration) linear,\r\n border-color var(--animation-duration) linear,\r\n color var(--animation-duration) linear,\r\n box-shadow var(--animation-duration) linear,\r\n transform var(--animation-duration) ease;\r\n}\r\n","h1 {\r\n font-size: 2.2em;\r\n margin-top: 0;\r\n}\r\n\r\nh1,\r\nh2,\r\nh3,\r\nh4,\r\nh5,\r\nh6 {\r\n margin-bottom: 12px;\r\n}\r\n\r\nh1,\r\nh2,\r\nh3,\r\nh4,\r\nh5,\r\nh6,\r\nstrong {\r\n color: var(--text-bright);\r\n}\r\n\r\nh1,\r\nh2,\r\nh3,\r\nh4,\r\nh5,\r\nh6,\r\nb,\r\nstrong,\r\nth {\r\n font-weight: 600;\r\n}\r\n\r\nq:before {\r\n content: none;\r\n}\r\n\r\nq:after {\r\n content: none;\r\n}\r\n\r\nblockquote , q{\r\n border-left: 4px solid var(--focus);\r\n margin: 1.5em 0em;\r\n padding: 0.5em 1em;\r\n font-style: italic;\r\n}\r\n\r\nblockquote > footer {\r\n margin-top: 10px;\r\n font-style: normal;\r\n}\r\n\r\nblockquote cite {\r\n font-style: normal;\r\n}\r\n\r\naddress {\r\n font-style: normal;\r\n}\r\n\r\na[href^='mailto']::before {\r\n content: '📧 ';\r\n}\r\n\r\na[href^='tel']::before {\r\n content: '📞 ';\r\n}\r\n\r\na[href^='sms']::before {\r\n content: '💬 ';\r\n}\r\n\r\nmark {\r\n background-color: var(--highlight);\r\n border-radius: 2px;\r\n padding: 0px 2px 0px 2px;\r\n color: #000000;\r\n}","button,\r\ninput[type='submit'],\r\ninput[type='button'],\r\ninput[type='checkbox'] {\r\n cursor: pointer;\r\n}\r\n\r\ninput:not([type='checkbox']):not([type='radio']),\r\nselect {\r\n display: block;\r\n}\r\n\r\ninput,\r\nselect,\r\nbutton,\r\ntextarea {\r\n color: var(--form-text);\r\n background-color: var(--background);\r\n\r\n font-family: inherit;\r\n font-size: inherit;\r\n\r\n margin-right: 6px;\r\n margin-bottom: 6px;\r\n padding: 10px;\r\n\r\n border: none;\r\n border-radius: 6px;\r\n outline: none;\r\n}\r\n\r\ninput:not([type='checkbox']):not([type='radio']),\r\nselect,\r\nbutton,\r\ntextarea {\r\n -webkit-appearance: none;\r\n}\r\n\r\ntextarea {\r\n margin-right: 0;\r\n width: 100%;\r\n box-sizing: border-box;\r\n resize: vertical;\r\n}\r\n\r\nbutton,\r\ninput[type='submit'],\r\ninput[type='button'] {\r\n padding-right: 30px;\r\n padding-left: 30px;\r\n}\r\n\r\nbutton:hover,\r\ninput[type='submit']:hover,\r\ninput[type='button']:hover {\r\n background: var(--button-hover);\r\n}\r\n\r\ninput:focus,\r\nselect:focus,\r\nbutton:focus,\r\ntextarea:focus {\r\n box-shadow: 0 0 0 2px var(--focus);\r\n}\r\n\r\ninput[type='checkbox']:active,\r\ninput[type='radio']:active,\r\ninput[type='submit']:active,\r\ninput[type='button']:active,\r\nbutton:active {\r\n transform: translateY(2px);\r\n}\r\n\r\ninput:disabled,\r\nselect:disabled,\r\nbutton:disabled,\r\ntextarea:disabled {\r\n cursor: not-allowed;\r\n opacity: 0.5;\r\n}\r\n\r\n::placeholder {\r\n color: var(--form-placeholder);\r\n}\r\n","a {\r\n text-decoration: none;\r\n color: var(--links);\r\n}\r\n\r\na:hover {\r\n text-decoration: underline;\r\n}","code, samp, time {\r\n background: var(--background);\r\n color: var(--code);\r\n padding: 2.5px 5px;\r\n border-radius: 6px;\r\n font-size: 1em;\r\n}\r\n\r\npre > code {\r\n padding: 10px;\r\n display: block;\r\n overflow-x: auto;\r\n}\r\n\r\nvar {\r\n color: var(--variable);\r\n font-style: normal;\r\n font-family: monospace;\r\n}\r\n\r\nkbd {\r\n background: var(--background);\r\n border: 1px solid var(--border);\r\n border-radius: 2px;\r\n color: var(--text-main);\r\n padding: 2px 4px 2px 4px;\r\n}","img {\r\n max-width: 100%;\r\n height: auto;\r\n}\r\n\r\nhr {\r\n border: none;\r\n border-top: 1px solid var(--border);\r\n}\r\n\r\ntable {\r\n border-collapse: collapse;\r\n margin-bottom: 10px;\r\n width: 100%;\r\n}\r\n\r\ntd,\r\nth {\r\n padding: 6px;\r\n text-align: left;\r\n}\r\n\r\nth {\r\n border-bottom: 1px solid var(--border);\r\n}\r\n\r\ntbody tr:nth-child(even) {\r\n background-color: var(--background-alt);\r\n}\r\n\r\n::-webkit-scrollbar {\r\n height: 10px;\r\n width: 10px;\r\n}\r\n\r\n::-webkit-scrollbar-track {\r\n background: var(--background);\r\n border-radius: 6px;\r\n}\r\n\r\n::-webkit-scrollbar-thumb {\r\n background: var(--scrollbar-thumb);\r\n border-radius: 6px;\r\n}\r\n\r\n::-webkit-scrollbar-thumb:hover {\r\n background: var(--scrollbar-thumb-hover);\r\n}\r\n\r\n::selection {\r\n background-color: var(--selection);\r\n}\r\n"]} \ No newline at end of file diff --git a/dist/light.standalone.min.css b/dist/light.standalone.min.css new file mode 100755 index 0000000..187b3a6 --- /dev/null +++ b/dist/light.standalone.min.css @@ -0,0 +1,2 @@ +:root{--background-body:#fff;--background:#efefef;--background-alt:#f7f7f7;--selection:#9e9e9e;--text-main:#363636;--text-bright:#000;--links:#0076d1;--focus:rgba(0,150,191,0.67);--border:#dbdbdb;--code:#000;--animation-duration:0.1s;--button-hover:#ddd;--scrollbar-thumb:#d5d5d5;--scrollbar-thumb-hover:#c4c4c4;--form-placeholder:#949494;--form-text:#000;--variable:#39a33c;--highlight:#ff0}body{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;line-height:1.4;max-width:800px;margin:20px auto;padding:0 10px;color:var(--text-main);background:var(--background-body);text-rendering:optimizeLegibility}button,input,textarea{transition:background-color var(--animation-duration) linear,border-color var(--animation-duration) linear,color var(--animation-duration) linear,box-shadow var(--animation-duration) linear,transform var(--animation-duration) ease}h1{font-size:2.2em;margin-top:0}h1,h2,h3,h4,h5,h6{margin-bottom:12px}h1,h2,h3,h4,h5,h6,strong{color:var(--text-bright)}b,h1,h2,h3,h4,h5,h6,strong,th{font-weight:600}q:after,q:before{content:none}blockquote,q{border-left:4px solid var(--focus);margin:1.5em 0;padding:.5em 1em;font-style:italic}blockquote>footer{margin-top:10px;font-style:normal}address,blockquote cite{font-style:normal}a[href^=mailto]:before{content:"📧 "}a[href^=tel]:before{content:"📞 "}a[href^=sms]:before{content:"💬 "}mark{background-color:var(--highlight);border-radius:2px;padding:0 2px;color:#000}button,input[type=button],input[type=checkbox],input[type=submit]{cursor:pointer}input:not([type=checkbox]):not([type=radio]),select{display:block}button,input,select,textarea{color:var(--form-text);background-color:var(--background);font-family:inherit;font-size:inherit;margin-right:6px;margin-bottom:6px;padding:10px;border:none;border-radius:6px;outline:none}button,input:not([type=checkbox]):not([type=radio]),select,textarea{-webkit-appearance:none}textarea{margin-right:0;width:100%;box-sizing:border-box;resize:vertical}button,input[type=button],input[type=submit]{padding-right:30px;padding-left:30px}button:hover,input[type=button]:hover,input[type=submit]:hover{background:var(--button-hover)}button:focus,input:focus,select:focus,textarea:focus{box-shadow:0 0 0 2px var(--focus)}button:active,input[type=button]:active,input[type=checkbox]:active,input[type=radio]:active,input[type=submit]:active{transform:translateY(2px)}button:disabled,input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;opacity:.5}::-webkit-input-placeholder{color:var(--form-placeholder)}:-ms-input-placeholder{color:var(--form-placeholder)}::-ms-input-placeholder{color:var(--form-placeholder)}::placeholder{color:var(--form-placeholder)}a{text-decoration:none;color:var(--links)}a:hover{text-decoration:underline}code,samp,time{background:var(--background);color:var(--code);padding:2.5px 5px;border-radius:6px;font-size:1em}pre>code{padding:10px;display:block;overflow-x:auto}var{color:var(--variable);font-style:normal;font-family:monospace}kbd{background:var(--background);border:1px solid var(--border);border-radius:2px;color:var(--text-main);padding:2px 4px}img{max-width:100%;height:auto}hr{border:none;border-top:1px solid var(--border)}table{border-collapse:collapse;margin-bottom:10px;width:100%}td,th{padding:6px;text-align:left}th{border-bottom:1px solid var(--border)}tbody tr:nth-child(2n){background-color:var(--background-alt)}::-webkit-scrollbar{height:10px;width:10px}::-webkit-scrollbar-track{background:var(--background);border-radius:6px}::-webkit-scrollbar-thumb{background:var(--scrollbar-thumb);border-radius:6px}::-webkit-scrollbar-thumb:hover{background:var(--scrollbar-thumb-hover)}::-moz-selection{background-color:var(--selection)}::selection{background-color:var(--selection)} +/*# sourceMappingURL=light.standalone.min.css.map */ diff --git a/dist/light.standalone.min.css.map b/dist/light.standalone.min.css.map new file mode 100644 index 0000000..ee6b4f8 --- /dev/null +++ b/dist/light.standalone.min.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["../variables-light.css","../parts/_base.css","../parts/_typography.css","../parts/_forms.css","../parts/_links.css","../parts/_code.css","../parts/_misc.css"],"names":[],"mappings":"AAAA,MACE,sBAA0B,CAC1B,oBAAqB,CACrB,wBAAyB,CAEzB,mBAAoB,CAEpB,mBAAoB,CACpB,kBAAsB,CAEtB,eAAgB,CAChB,4BAAkB,CAClB,gBAAiB,CACjB,WAAe,CAEf,yBAA0B,CAC1B,mBAAuB,CAEvB,yBAAgE,CAChE,+BAAuE,CAEvE,0BAA2B,CAC3B,gBAAoB,CAEpB,kBAAmB,CACnB,gBACF,CC1BA,KACE,6IAAyK,CACzK,eAAgB,CAEhB,eAAgB,CAChB,gBAAiB,CACjB,cAAe,CAEf,sBAAuB,CACvB,iCAAkC,CAElC,iCACF,CAEA,sBACE,sOAKF,CCpBA,GACE,eAAgB,CAChB,YACF,CAEA,kBAME,kBACF,CAEA,yBAOE,wBACF,CAEA,8BASE,eACF,CAMA,iBACG,YACH,CAEA,aACE,kCAAmC,CACnC,cAAiB,CACjB,gBAAkB,CAClB,iBACF,CAEA,kBACE,eAAgB,CAChB,iBACF,CAMA,wBACE,iBACF,CAEA,uBACE,aACF,CAEA,oBACE,aACF,CAEA,oBACE,aACF,CAEA,KACE,iCAAkC,CAClC,iBAAkB,CAClB,aAAwB,CACxB,UACF,CCjFA,kEAIE,cACF,CAEA,oDAEE,aACF,CAEA,6BAIE,sBAAuB,CACvB,kCAAmC,CAEnC,mBAAoB,CACpB,iBAAkB,CAElB,gBAAiB,CACjB,iBAAkB,CAClB,YAAa,CAEb,WAAY,CACZ,iBAAkB,CAClB,YACF,CAEA,oEAIE,uBACF,CAEA,SACE,cAAe,CACf,UAAW,CACX,qBAAsB,CACtB,eACF,CAEA,6CAGE,kBAAmB,CACnB,iBACF,CAEA,+DAGE,8BACF,CAEA,qDAIE,iCACF,CAEA,uHAKE,yBACF,CAEA,iEAIE,kBAAmB,CACnB,UACF,CAEA,4BACE,6BACF,CAFA,uBACE,6BACF,CAFA,wBACE,6BACF,CAFA,cACE,6BACF,CCnFA,EACE,oBAAqB,CACrB,kBACF,CAEA,QACE,yBACF,CCPA,eACE,4BAA8B,CAC9B,iBAAkB,CAClB,iBAAkB,CAClB,iBAAkB,CAClB,aACF,CAEA,SACE,YAAa,CACb,aAAc,CACd,eACF,CAEA,IACE,qBAAsB,CACtB,iBAAkB,CAClB,qBACF,CAEA,IACE,4BAA6B,CAC7B,8BAA+B,CAC/B,iBAAkB,CAClB,sBAAuB,CACvB,eACF,CC1BA,IACE,cAAe,CACf,WACF,CAEA,GACE,WAAY,CACZ,kCACF,CAEA,MACE,wBAAyB,CACzB,kBAAmB,CACnB,UACF,CAEA,MAEE,WAAY,CACZ,eACF,CAEA,GACE,qCACF,CAEA,uBACE,sCACF,CAEA,oBACE,WAAY,CACZ,UACF,CAEA,0BACE,4BAA6B,CAC7B,iBACF,CAEA,0BACE,iCAAkC,CAClC,iBACF,CAEA,gCACE,uCACF,CAEA,iBACE,iCACF,CAFA,YACE,iCACF","file":"light.standalone.min.css","sourcesContent":[":root {\r\n --background-body: #ffffff;\r\n --background: #efefef;\r\n --background-alt: #f7f7f7;\r\n\r\n --selection: #9e9e9e;\r\n\r\n --text-main: #363636;\r\n --text-bright: #000000;\r\n\r\n --links: #0076d1;\r\n --focus: #0096bfab;\r\n --border: #dbdbdb;\r\n --code: #000000;\r\n\r\n --animation-duration: 0.1s;\r\n --button-hover: #dddddd;\r\n\r\n --scrollbar-thumb: color-mod(var(--button-hover) lightness(-3%));\r\n --scrollbar-thumb-hover: color-mod(var(--button-hover) lightness(-10%));\r\n\r\n --form-placeholder: #949494;\r\n --form-text: #000000;\r\n\r\n --variable: #39a33c;\r\n --highlight: #ffff00;\r\n}\r\n","body {\r\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\r\n line-height: 1.4;\r\n\r\n max-width: 800px;\r\n margin: 20px auto;\r\n padding: 0 10px;\r\n\r\n color: var(--text-main);\r\n background: var(--background-body);\r\n\r\n text-rendering: optimizeLegibility;\r\n}\r\n\r\nbutton, input, textarea {\r\n transition: background-color var(--animation-duration) linear,\r\n border-color var(--animation-duration) linear,\r\n color var(--animation-duration) linear,\r\n box-shadow var(--animation-duration) linear,\r\n transform var(--animation-duration) ease;\r\n}\r\n","h1 {\r\n font-size: 2.2em;\r\n margin-top: 0;\r\n}\r\n\r\nh1,\r\nh2,\r\nh3,\r\nh4,\r\nh5,\r\nh6 {\r\n margin-bottom: 12px;\r\n}\r\n\r\nh1,\r\nh2,\r\nh3,\r\nh4,\r\nh5,\r\nh6,\r\nstrong {\r\n color: var(--text-bright);\r\n}\r\n\r\nh1,\r\nh2,\r\nh3,\r\nh4,\r\nh5,\r\nh6,\r\nb,\r\nstrong,\r\nth {\r\n font-weight: 600;\r\n}\r\n\r\nq:before {\r\n content: none;\r\n}\r\n\r\nq:after {\r\n content: none;\r\n}\r\n\r\nblockquote , q{\r\n border-left: 4px solid var(--focus);\r\n margin: 1.5em 0em;\r\n padding: 0.5em 1em;\r\n font-style: italic;\r\n}\r\n\r\nblockquote > footer {\r\n margin-top: 10px;\r\n font-style: normal;\r\n}\r\n\r\nblockquote cite {\r\n font-style: normal;\r\n}\r\n\r\naddress {\r\n font-style: normal;\r\n}\r\n\r\na[href^='mailto']::before {\r\n content: '📧 ';\r\n}\r\n\r\na[href^='tel']::before {\r\n content: '📞 ';\r\n}\r\n\r\na[href^='sms']::before {\r\n content: '💬 ';\r\n}\r\n\r\nmark {\r\n background-color: var(--highlight);\r\n border-radius: 2px;\r\n padding: 0px 2px 0px 2px;\r\n color: #000000;\r\n}","button,\r\ninput[type='submit'],\r\ninput[type='button'],\r\ninput[type='checkbox'] {\r\n cursor: pointer;\r\n}\r\n\r\ninput:not([type='checkbox']):not([type='radio']),\r\nselect {\r\n display: block;\r\n}\r\n\r\ninput,\r\nselect,\r\nbutton,\r\ntextarea {\r\n color: var(--form-text);\r\n background-color: var(--background);\r\n\r\n font-family: inherit;\r\n font-size: inherit;\r\n\r\n margin-right: 6px;\r\n margin-bottom: 6px;\r\n padding: 10px;\r\n\r\n border: none;\r\n border-radius: 6px;\r\n outline: none;\r\n}\r\n\r\ninput:not([type='checkbox']):not([type='radio']),\r\nselect,\r\nbutton,\r\ntextarea {\r\n -webkit-appearance: none;\r\n}\r\n\r\ntextarea {\r\n margin-right: 0;\r\n width: 100%;\r\n box-sizing: border-box;\r\n resize: vertical;\r\n}\r\n\r\nbutton,\r\ninput[type='submit'],\r\ninput[type='button'] {\r\n padding-right: 30px;\r\n padding-left: 30px;\r\n}\r\n\r\nbutton:hover,\r\ninput[type='submit']:hover,\r\ninput[type='button']:hover {\r\n background: var(--button-hover);\r\n}\r\n\r\ninput:focus,\r\nselect:focus,\r\nbutton:focus,\r\ntextarea:focus {\r\n box-shadow: 0 0 0 2px var(--focus);\r\n}\r\n\r\ninput[type='checkbox']:active,\r\ninput[type='radio']:active,\r\ninput[type='submit']:active,\r\ninput[type='button']:active,\r\nbutton:active {\r\n transform: translateY(2px);\r\n}\r\n\r\ninput:disabled,\r\nselect:disabled,\r\nbutton:disabled,\r\ntextarea:disabled {\r\n cursor: not-allowed;\r\n opacity: 0.5;\r\n}\r\n\r\n::placeholder {\r\n color: var(--form-placeholder);\r\n}\r\n","a {\r\n text-decoration: none;\r\n color: var(--links);\r\n}\r\n\r\na:hover {\r\n text-decoration: underline;\r\n}","code, samp, time {\r\n background: var(--background);\r\n color: var(--code);\r\n padding: 2.5px 5px;\r\n border-radius: 6px;\r\n font-size: 1em;\r\n}\r\n\r\npre > code {\r\n padding: 10px;\r\n display: block;\r\n overflow-x: auto;\r\n}\r\n\r\nvar {\r\n color: var(--variable);\r\n font-style: normal;\r\n font-family: monospace;\r\n}\r\n\r\nkbd {\r\n background: var(--background);\r\n border: 1px solid var(--border);\r\n border-radius: 2px;\r\n color: var(--text-main);\r\n padding: 2px 4px 2px 4px;\r\n}","img {\r\n max-width: 100%;\r\n height: auto;\r\n}\r\n\r\nhr {\r\n border: none;\r\n border-top: 1px solid var(--border);\r\n}\r\n\r\ntable {\r\n border-collapse: collapse;\r\n margin-bottom: 10px;\r\n width: 100%;\r\n}\r\n\r\ntd,\r\nth {\r\n padding: 6px;\r\n text-align: left;\r\n}\r\n\r\nth {\r\n border-bottom: 1px solid var(--border);\r\n}\r\n\r\ntbody tr:nth-child(even) {\r\n background-color: var(--background-alt);\r\n}\r\n\r\n::-webkit-scrollbar {\r\n height: 10px;\r\n width: 10px;\r\n}\r\n\r\n::-webkit-scrollbar-track {\r\n background: var(--background);\r\n border-radius: 6px;\r\n}\r\n\r\n::-webkit-scrollbar-thumb {\r\n background: var(--scrollbar-thumb);\r\n border-radius: 6px;\r\n}\r\n\r\n::-webkit-scrollbar-thumb:hover {\r\n background: var(--scrollbar-thumb-hover);\r\n}\r\n\r\n::selection {\r\n background-color: var(--selection);\r\n}\r\n"]} \ No newline at end of file diff --git a/gulpfile.js b/gulpfile.js index 0383dec..62fb394 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1,66 +1,113 @@ const gulp = require('gulp') -const sass = require('gulp-sass') const postcss = require('gulp-postcss') const autoprefixer = require('autoprefixer') const cssnano = require('cssnano') const sourcemaps = require('gulp-sourcemaps') const bytediff = require('gulp-bytediff') const browserSync = require('browser-sync').create() -const chalk = require('chalk'); +const chalk = require('chalk') +const rename = require('gulp-rename') +const filter = require('gulp-filter') +const flatten = require('gulp-flatten') +const sizereport = require('gulp-sizereport') +const postcssCssVariables = require('postcss-css-variables') +const postcssImport = require('postcss-import') +const postcssColorModFunction = require('postcss-color-mod-function').bind(null, { + /* Use `.toRGBLegacy()` as other methods can result in lots of decimals */ + stringifier: color => color.toRGBLegacy(), +}) const paths = { - styles: { - src: 'src/**/*.scss', - dest: 'dist' - }, - html: { - src: 'index.html' - } + srcDir: 'src/*', + docsDir: '*', + styles: { src: 'src/builds/*.css', dest: 'dist' }, } // https://stackoverflow.com/a/20732091 function humanFileSize(size) { - var i = Math.floor( Math.log(size) / Math.log(1024) ); - return ( size / Math.pow(1024, i) ).toFixed(2) * 1 + ' ' + ['B', 'kB', 'MB', 'GB', 'TB'][i]; -}; + var i = Math.floor(Math.log(size) / Math.log(1024)) + return (size / Math.pow(1024, i)).toFixed(2) * 1 + ' ' + ['B', 'kB', 'MB', 'GB', 'TB'][i] +} function formatByteMessage(source, data) { - const change = (data.savings > 0 ? 'saved' : 'gained') - const prettySavings = humanFileSize(Math.abs(data.savings)) const prettyStartSize = humanFileSize(data.startSize) - let prettyEndSize = humanFileSize(data.endSize) + let message = '' - if (data.endSize > data.startSize) { - prettyEndSize = chalk.yellow(prettyEndSize) - } + if (data.startSize !== data.endSize) { + const change = data.savings > 0 ? 'saved' : 'gained' + const prettySavings = humanFileSize(Math.abs(data.savings)) + let prettyEndSize = humanFileSize(data.endSize) - if (data.endSize < data.startSize) { - prettyEndSize = chalk.green(prettyEndSize) - } + if (data.endSize > data.startSize) prettyEndSize = chalk.yellow(prettyEndSize) + if (data.endSize < data.startSize) prettyEndSize = chalk.green(prettyEndSize) - return `${chalk.cyan(source.padStart(12, ' '))}: ${data.fileName} ${change} ${prettySavings} (${prettyStartSize} -> ${prettyEndSize})` + message = chalk`${change} ${prettySavings} (${prettyStartSize} -> {bold ${prettyEndSize}})` + } else message = chalk`kept original filesize. ({bold ${prettyStartSize}})` + + return chalk`{cyan ${source.padStart(12, ' ')}}: {bold ${data.fileName}} ${message}` } function style() { - return ( - gulp.src(paths.styles.src) - .pipe(sourcemaps.init()) - .pipe(sass()) - .on('error', sass.logError) - .pipe(bytediff.start()) - .pipe(postcss([ autoprefixer()])) - .pipe(bytediff.stop((data) => formatByteMessage('autoprefixer', data))) - .pipe(bytediff.start()) - .pipe(postcss([cssnano()])) - .pipe(bytediff.stop((data) => formatByteMessage('cssnano', data))) - .pipe(sourcemaps.write('.')) - .pipe(gulp.dest(paths.styles.dest)) - .pipe(browserSync.stream()) - ) -} + const isLegacy = path => /legacy/.test(path) -function reload() { - browserSync.reload() + const excludeModern = filter(file => isLegacy(file.path), { restore: true }) + const excludeLegacy = filter(file => !isLegacy(file.path), { restore: true }) + + return ( + gulp + .src(paths.styles.src) + // Add sourcemaps + .pipe(sourcemaps.init()) + // Resolve imports and calculated colors + .pipe(postcss([postcssImport(), postcssColorModFunction()])) + + // * Process legacy builds * + .pipe(excludeModern) + // Inline variable values so CSS works in legacy browsers + .pipe(postcss([postcssCssVariables()])) + // Calculate size before autoprefixing + .pipe(bytediff.start()) + // autoprefix + .pipe(postcss([autoprefixer()])) + // Write the amount gained by autoprefixing + .pipe(bytediff.stop(data => formatByteMessage('autoprefixer', data))) + .pipe(excludeModern.restore) + + // * Process modern builds * + .pipe(excludeLegacy) + // Calculate size before autoprefixing + .pipe(bytediff.start()) + // autoprefix modern builds + // TODO: Use separate browserslist to only apply prefixes needed in *modern* browsers + .pipe(postcss([autoprefixer()])) + // Write the amount gained by autoprefixing + .pipe(bytediff.stop(data => formatByteMessage('autoprefixer', data))) + .pipe(excludeLegacy.restore) + + // Write the sourcemaps after making pre-minified changes + .pipe(sourcemaps.write('.')) + // Flatten output so files end up in dist/*, not dist/builds/* + .pipe(flatten()) + // Write pre-minified styles + .pipe(gulp.dest(paths.styles.dest)) + // Remove sourcemaps from the pipeline, only keep css + .pipe(filter('**/*.css')) + // Calculate size before minifying + .pipe(bytediff.start()) + // Minify using cssnano + .pipe(postcss([cssnano()])) + // Write the amount saved by minifying + .pipe(bytediff.stop(data => formatByteMessage('cssnano', data))) + // Rename the files have the .min suffix + .pipe(rename({ suffix: '.min' })) + // Write the sourcemaps after making all changes + .pipe(sourcemaps.write('.')) + // Write the minified files + .pipe(gulp.dest(paths.styles.dest)) + .pipe(sizereport({ gzip: true, total: false, title: 'SIZE REPORT' })) + // Stream any changes to browserSync + .pipe(browserSync.stream()) + ) } function watch() { @@ -70,12 +117,12 @@ function watch() { server: { baseDir: './', }, - startPath: 'index.html' + startPath: 'index.html', }) - gulp.watch(paths.styles.src, style) - gulp.watch(paths.html.src, reload) + gulp.watch(paths.srcDir, style) + gulp.watch([paths.srcDir, paths.docsDir], browserSync.reload) } module.exports.style = style -module.exports.watch = watch \ No newline at end of file +module.exports.watch = watch diff --git a/icon-dark.svg b/icon-dark.svg new file mode 100755 index 0000000..087974e --- /dev/null +++ b/icon-dark.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icon-light.svg b/icon-light.svg new file mode 100755 index 0000000..08333fb --- /dev/null +++ b/icon-light.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/android-chrome-192x192.png b/icons/android-chrome-192x192.png new file mode 100755 index 0000000..5167499 Binary files /dev/null and b/icons/android-chrome-192x192.png differ diff --git a/icons/android-chrome-512x512.png b/icons/android-chrome-512x512.png new file mode 100755 index 0000000..d231e0b Binary files /dev/null and b/icons/android-chrome-512x512.png differ diff --git a/icons/apple-touch-icon.png b/icons/apple-touch-icon.png new file mode 100755 index 0000000..4aacc52 Binary files /dev/null and b/icons/apple-touch-icon.png differ diff --git a/icons/browserconfig.xml b/icons/browserconfig.xml new file mode 100755 index 0000000..3903cb6 --- /dev/null +++ b/icons/browserconfig.xml @@ -0,0 +1,12 @@ + + + + + + + + + #00aba9 + + + diff --git a/icons/favicon-16x16.png b/icons/favicon-16x16.png new file mode 100755 index 0000000..2ab553a Binary files /dev/null and b/icons/favicon-16x16.png differ diff --git a/icons/favicon-32x32.png b/icons/favicon-32x32.png new file mode 100755 index 0000000..547ba5a Binary files /dev/null and b/icons/favicon-32x32.png differ diff --git a/icons/favicon.ico b/icons/favicon.ico new file mode 100755 index 0000000..4810c23 Binary files /dev/null and b/icons/favicon.ico differ diff --git a/icons/light-favicon-16x16.png b/icons/light-favicon-16x16.png new file mode 100755 index 0000000..c77529f Binary files /dev/null and b/icons/light-favicon-16x16.png differ diff --git a/icons/light-favicon-32x32.png b/icons/light-favicon-32x32.png new file mode 100755 index 0000000..5d0fed3 Binary files /dev/null and b/icons/light-favicon-32x32.png differ diff --git a/icons/light-favicon.ico b/icons/light-favicon.ico new file mode 100755 index 0000000..3f6ca95 Binary files /dev/null and b/icons/light-favicon.ico differ diff --git a/icons/mstile-150x150.png b/icons/mstile-150x150.png new file mode 100755 index 0000000..b37065c Binary files /dev/null and b/icons/mstile-150x150.png differ diff --git a/icons/mstile-310x150.png b/icons/mstile-310x150.png new file mode 100755 index 0000000..379ebd7 Binary files /dev/null and b/icons/mstile-310x150.png differ diff --git a/icons/mstile-310x310.png b/icons/mstile-310x310.png new file mode 100755 index 0000000..e1230b3 Binary files /dev/null and b/icons/mstile-310x310.png differ diff --git a/icons/mstile-70x70.png b/icons/mstile-70x70.png new file mode 100755 index 0000000..6282b8b Binary files /dev/null and b/icons/mstile-70x70.png differ diff --git a/icons/safari-pinned-tab.svg b/icons/safari-pinned-tab.svg new file mode 100755 index 0000000..2f1cf28 --- /dev/null +++ b/icons/safari-pinned-tab.svg @@ -0,0 +1,22 @@ + + + + +Created by potrace 1.11, written by Peter Selinger 2001-2013 + + + + + diff --git a/icons/site.webmanifest b/icons/site.webmanifest new file mode 100755 index 0000000..a57bfca --- /dev/null +++ b/icons/site.webmanifest @@ -0,0 +1,19 @@ +{ + "name": "Water.css", + "short_name": "Water.css", + "icons": [ + { + "src": "/icons/android-chrome-192x192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "/icons/android-chrome-512x512.png", + "sizes": "512x512", + "type": "image/png" + } + ], + "theme_color": "#ffffff", + "background_color": "#ffffff", + "display": "standalone" +} diff --git a/index.html b/index.html index e4ecb84..2180aad 100644 --- a/index.html +++ b/index.html @@ -1,28 +1,48 @@ + Water.css - + + + + + + + + + + + + + +

Water.css

- Water.css is a just-add-css collection of styles to make simple websites like this just a little bit nicer. + Water.css is a just-add-css collection of styles to make simple websites like this just a + little bit nicer. Get it already!

- Now you can write your simple static site with nice semantic html, and Water.css will manage the styling for you. + Now you can write your simple static site with nice semantic html, and Water.css will manage + the styling for you.

- Water.css - Make your tiny website just a little nicer | Product Hunt Embed + Water.css - Make your tiny website just a little nicer | Product Hunt Embed

Goals