diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..dc25b26 Binary files /dev/null and b/.DS_Store differ diff --git a/Libraries/.DS_Store b/Libraries/.DS_Store new file mode 100755 index 0000000..9b376be Binary files /dev/null and b/Libraries/.DS_Store differ diff --git a/Libraries/Languages/itemrecord.php b/Libraries/Languages/itemrecord.php new file mode 100644 index 0000000..d6c681d --- /dev/null +++ b/Libraries/Languages/itemrecord.php @@ -0,0 +1,224 @@ +query("SELECT id, title, date(timestamp), author_sort, path, strftime('%Y',pubdate) AS pubyear, date(last_modified) FROM books WHERE id = '$ItemID'"); + +while ($row = $book->fetchArray()) { + $row_id = $row['id']; + $row_title = $row['title']; + $row_created = $row['date(timestamp)']; + $row_author_sort = $row['author_sort']; + $row_path = $row['path']; + $row_pubdate = $row['pubyear']; + $row_modified = $row['date(last_modified)']; +} + + +// ---------- Pull data from authors table ---------- +$author = $db->query("SELECT name FROM authors +INNER JOIN books_authors_link +ON books_authors_link.author = authors.id +WHERE books_authors_link.book = '$ItemID'"); + +while ($row = $author->fetchArray()) { + $row_creator = $row['name']; +} + +// ---------- Pull data from comments table ---------- +$summary = $db->query("SELECT text FROM comments WHERE book = '$ItemID'"); + +while ($row = $summary->fetchArray()) { + $row_summary = $row['text']; +} + +// ---------- Pull data from publishers table ---------- + +$publisher = $db->query("SELECT name from publishers +INNER JOIN books_publishers_link +ON books_publishers_link.publisher = publishers.id +WHERE books_publishers_link.book = '$ItemID'"); + +while ($row = $publisher->fetchArray()) { + $row_publisher = $row['name']; +} + +// ---------- Pull data from tags table ---------- + +$tags = $db->query("SELECT name FROM tags +INNER JOIN books_tags_link +ON books_tags_link.tag = tags.id +WHERE tags.name NOT LIKE 'infopump%' +AND books_tags_link.book = '$ItemID'"); + +// ---------- Pull data from tags table for Similar items ---------- + +// New similar tags query +$similartags = $db->query("SELECT name FROM tags +WHERE name IN (SELECT name FROM tags +INNER JOIN books_tags_link +ON books_tags_link.tag = tags.id +AND books_tags_link.book = '$ItemID' +ORDER BY RANDOM() LIMIT 2)"); + +$simtag = array(); + +while($row = $similartags->fetchArray()) { + $simtag[] = $row['name']; +} + +$getsimilar = $db->query("SELECT books.id, title, author_sort +FROM books +INNER JOIN books_tags_link +ON books_tags_link.book = books.id +INNER JOIN tags +ON tags.id = books_tags_link.tag +WHERE (tags.name LIKE '$simtag[0]' +OR tags.name LIKE '$simtag[1]') +AND books.id != '$ItemID' LIMIT 4"); + + +// ---------- Pull data from identifiers table ---------- + +$identifiers = $db->query("SELECT type, val FROM identifiers WHERE book = '$ItemID'"); + +// ---------- Pull data from languages table ---------- + +$languages = $db->query("SELECT languages.lang_code AS lang_code FROM languages +INNER JOIN books_languages_link +ON books_languages_link.lang_code = languages.id +WHERE book = '$ItemID' +ORDER BY books_languages_link.item_order"); + +// ---------- Pull series information ---------- + +$series = $db->query("SELECT series.name AS series, books.series_index AS seriesindex +FROM series +INNER JOIN books_series_link +ON books_series_link.series = series.id +INNER JOIN books +ON books.id = books_series_link.book +WHERE books_series_link.book = '$ItemID'"); + +while ($row = $series->fetchArray()) { + $row_series = $row['series']; + $row_seriesindex = $row['seriesindex']; +} +// -------------------- END DATABASE QUERIES -------------------- + +?> + + + + + + + + Item Record: '.$row_title.''; ?> + + + + + + + + + + + + +
+

+

+ +
+ + +
+
+
+
+

+
+ +

Author:

+

Publisher:

+

+
+
+
+ + + + \ No newline at end of file diff --git a/Libraries/Languages/metadata.db b/Libraries/Languages/metadata.db new file mode 100755 index 0000000..280eeea Binary files /dev/null and b/Libraries/Languages/metadata.db differ diff --git a/Libraries/Languages/metadata_db_prefs_backup.json b/Libraries/Languages/metadata_db_prefs_backup.json new file mode 100755 index 0000000..d429fcd --- /dev/null +++ b/Libraries/Languages/metadata_db_prefs_backup.json @@ -0,0 +1,608 @@ +{ + "bools_are_tristate": true, + "user_categories": {}, + "saved_searches": {}, + "grouped_search_terms": {}, + "tag_browser_hidden_categories": [], + "library_view books view state": { + "column_alignment": { + "pubdate": "center", + "size": "center", + "timestamp": "center" + }, + "column_positions": { + "authors": 2, + "languages": 11, + "last_modified": 10, + "ondevice": 0, + "pubdate": 9, + "publisher": 8, + "rating": 5, + "series": 7, + "size": 4, + "tags": 6, + "timestamp": 3, + "title": 1 + }, + "column_sizes": { + "authors": 91, + "languages": 0, + "last_modified": 0, + "pubdate": 92, + "publisher": 89, + "rating": 70, + "series": 68, + "size": 90, + "tags": 58, + "timestamp": 70, + "title": 298 + }, + "hidden_columns": [ + "last_modified", + "languages" + ], + "languages_injected": true, + "last_modified_injected": true, + "sort_history": [ + [ + "title", + true + ], + [ + "timestamp", + false + ], + [ + "authors", + true + ], + [ + "timestamp", + false + ] + ] + }, + "books view split pane state": { + "column_positions": { + "authors": 2, + "languages": 11, + "last_modified": 10, + "ondevice": 0, + "pubdate": 9, + "publisher": 8, + "rating": 5, + "series": 7, + "size": 4, + "tags": 6, + "timestamp": 3, + "title": 1 + }, + "column_sizes": { + "authors": 100, + "languages": 100, + "last_modified": 100, + "pubdate": 100, + "publisher": 100, + "rating": 100, + "series": 100, + "size": 100, + "tags": 100, + "timestamp": 100, + "title": 100 + }, + "hidden_columns": [] + }, + "field_metadata": { + "au_map": { + "column": null, + "datatype": "text", + "display": {}, + "is_category": false, + "is_csp": false, + "is_custom": false, + "is_editable": true, + "is_multiple": { + "cache_to_list": ",", + "list_to_ui": null, + "ui_to_list": null + }, + "kind": "field", + "label": "au_map", + "name": null, + "rec_index": 18, + "search_terms": [], + "table": null + }, + "author_sort": { + "column": null, + "datatype": "text", + "display": {}, + "is_category": false, + "is_csp": false, + "is_custom": false, + "is_editable": true, + "is_multiple": {}, + "kind": "field", + "label": "author_sort", + "name": "Author sort", + "rec_index": 12, + "search_terms": [ + "author_sort" + ], + "table": null + }, + "authors": { + "category_sort": "sort", + "column": "name", + "datatype": "text", + "display": {}, + "is_category": true, + "is_csp": false, + "is_custom": false, + "is_editable": true, + "is_multiple": { + "cache_to_list": ",", + "list_to_ui": " & ", + "ui_to_list": "&" + }, + "kind": "field", + "label": "authors", + "link_column": "author", + "name": "Authors", + "rec_index": 2, + "search_terms": [ + "authors", + "author" + ], + "table": "authors" + }, + "comments": { + "column": null, + "datatype": "text", + "display": {}, + "is_category": false, + "is_csp": false, + "is_custom": false, + "is_editable": true, + "is_multiple": {}, + "kind": "field", + "label": "comments", + "name": "Comments", + "rec_index": 7, + "search_terms": [ + "comments", + "comment" + ], + "table": null + }, + "cover": { + "column": null, + "datatype": "int", + "display": {}, + "is_category": false, + "is_csp": false, + "is_custom": false, + "is_editable": true, + "is_multiple": {}, + "kind": "field", + "label": "cover", + "name": "Cover", + "rec_index": 17, + "search_terms": [ + "cover" + ], + "table": null + }, + "formats": { + "column": null, + "datatype": "text", + "display": {}, + "is_category": true, + "is_csp": false, + "is_custom": false, + "is_editable": true, + "is_multiple": { + "cache_to_list": ",", + "list_to_ui": ", ", + "ui_to_list": "," + }, + "kind": "field", + "label": "formats", + "name": "Formats", + "rec_index": 13, + "search_terms": [ + "formats", + "format" + ], + "table": null + }, + "id": { + "column": null, + "datatype": "int", + "display": {}, + "is_category": false, + "is_csp": false, + "is_custom": false, + "is_editable": true, + "is_multiple": {}, + "kind": "field", + "label": "id", + "name": null, + "rec_index": 0, + "search_terms": [ + "id" + ], + "table": null + }, + "identifiers": { + "column": null, + "datatype": "text", + "display": {}, + "is_category": true, + "is_csp": true, + "is_custom": false, + "is_editable": true, + "is_multiple": { + "cache_to_list": ",", + "list_to_ui": ", ", + "ui_to_list": "," + }, + "kind": "field", + "label": "identifiers", + "name": "Identifiers", + "rec_index": 20, + "search_terms": [ + "identifiers", + "identifier", + "isbn" + ], + "table": null + }, + "languages": { + "category_sort": "lang_code", + "column": "lang_code", + "datatype": "text", + "display": {}, + "is_category": true, + "is_csp": false, + "is_custom": false, + "is_editable": true, + "is_multiple": { + "cache_to_list": ",", + "list_to_ui": ", ", + "ui_to_list": "," + }, + "kind": "field", + "label": "languages", + "link_column": "lang_code", + "name": "Languages", + "rec_index": 21, + "search_terms": [ + "languages", + "language" + ], + "table": "languages" + }, + "last_modified": { + "column": null, + "datatype": "datetime", + "display": { + "date_format": "dd MMM yyyy" + }, + "is_category": false, + "is_csp": false, + "is_custom": false, + "is_editable": true, + "is_multiple": {}, + "kind": "field", + "label": "last_modified", + "name": "Modified", + "rec_index": 19, + "search_terms": [ + "last_modified" + ], + "table": null + }, + "marked": { + "column": null, + "datatype": "text", + "display": {}, + "is_category": false, + "is_csp": false, + "is_custom": false, + "is_editable": true, + "is_multiple": {}, + "kind": "field", + "label": "marked", + "name": null, + "rec_index": 23, + "search_terms": [ + "marked" + ], + "table": null + }, + "news": { + "category_sort": "name", + "column": "name", + "datatype": null, + "display": {}, + "is_category": true, + "is_csp": false, + "is_custom": false, + "is_editable": true, + "is_multiple": {}, + "kind": "category", + "label": "news", + "name": "News", + "search_terms": [], + "table": "news" + }, + "ondevice": { + "column": null, + "datatype": "text", + "display": {}, + "is_category": false, + "is_csp": false, + "is_custom": false, + "is_editable": true, + "is_multiple": {}, + "kind": "field", + "label": "ondevice", + "name": "On device", + "rec_index": 22, + "search_terms": [ + "ondevice" + ], + "table": null + }, + "path": { + "column": null, + "datatype": "text", + "display": {}, + "is_category": false, + "is_csp": false, + "is_custom": false, + "is_editable": true, + "is_multiple": {}, + "kind": "field", + "label": "path", + "name": "Path", + "rec_index": 14, + "search_terms": [], + "table": null + }, + "pubdate": { + "column": null, + "datatype": "datetime", + "display": { + "date_format": "MMM yyyy" + }, + "is_category": false, + "is_csp": false, + "is_custom": false, + "is_editable": true, + "is_multiple": {}, + "kind": "field", + "label": "pubdate", + "name": "Published", + "rec_index": 15, + "search_terms": [ + "pubdate" + ], + "table": null + }, + "publisher": { + "category_sort": "name", + "column": "name", + "datatype": "text", + "display": {}, + "is_category": true, + "is_csp": false, + "is_custom": false, + "is_editable": true, + "is_multiple": {}, + "kind": "field", + "label": "publisher", + "link_column": "publisher", + "name": "Publisher", + "rec_index": 9, + "search_terms": [ + "publisher" + ], + "table": "publishers" + }, + "rating": { + "category_sort": "rating", + "column": "rating", + "datatype": "rating", + "display": {}, + "is_category": true, + "is_csp": false, + "is_custom": false, + "is_editable": true, + "is_multiple": {}, + "kind": "field", + "label": "rating", + "link_column": "rating", + "name": "Rating", + "rec_index": 5, + "search_terms": [ + "rating" + ], + "table": "ratings" + }, + "series": { + "category_sort": "(title_sort(name))", + "column": "name", + "datatype": "series", + "display": {}, + "is_category": true, + "is_csp": false, + "is_custom": false, + "is_editable": true, + "is_multiple": {}, + "kind": "field", + "label": "series", + "link_column": "series", + "name": "Series", + "rec_index": 8, + "search_terms": [ + "series" + ], + "table": "series" + }, + "series_index": { + "column": null, + "datatype": "float", + "display": {}, + "is_category": false, + "is_csp": false, + "is_custom": false, + "is_editable": true, + "is_multiple": {}, + "kind": "field", + "label": "series_index", + "name": null, + "rec_index": 10, + "search_terms": [ + "series_index" + ], + "table": null + }, + "series_sort": { + "column": null, + "datatype": "text", + "display": {}, + "is_category": false, + "is_csp": false, + "is_custom": false, + "is_editable": true, + "is_multiple": {}, + "kind": "field", + "label": "series_sort", + "name": "Series sort", + "rec_index": 24, + "search_terms": [ + "series_sort" + ], + "table": null + }, + "size": { + "column": null, + "datatype": "float", + "display": {}, + "is_category": false, + "is_csp": false, + "is_custom": false, + "is_editable": true, + "is_multiple": {}, + "kind": "field", + "label": "size", + "name": "Size", + "rec_index": 4, + "search_terms": [ + "size" + ], + "table": null + }, + "sort": { + "column": null, + "datatype": "text", + "display": {}, + "is_category": false, + "is_csp": false, + "is_custom": false, + "is_editable": true, + "is_multiple": {}, + "kind": "field", + "label": "sort", + "name": "Title sort", + "rec_index": 11, + "search_terms": [ + "title_sort" + ], + "table": null + }, + "tags": { + "category_sort": "name", + "column": "name", + "datatype": "text", + "display": {}, + "is_category": true, + "is_csp": false, + "is_custom": false, + "is_editable": true, + "is_multiple": { + "cache_to_list": ",", + "list_to_ui": ", ", + "ui_to_list": "," + }, + "kind": "field", + "label": "tags", + "link_column": "tag", + "name": "Tags", + "rec_index": 6, + "search_terms": [ + "tags", + "tag" + ], + "table": "tags" + }, + "timestamp": { + "column": null, + "datatype": "datetime", + "display": { + "date_format": "dd MMM yyyy" + }, + "is_category": false, + "is_csp": false, + "is_custom": false, + "is_editable": true, + "is_multiple": {}, + "kind": "field", + "label": "timestamp", + "name": "Date", + "rec_index": 3, + "search_terms": [ + "date" + ], + "table": null + }, + "title": { + "column": null, + "datatype": "text", + "display": {}, + "is_category": false, + "is_csp": false, + "is_custom": false, + "is_editable": true, + "is_multiple": {}, + "kind": "field", + "label": "title", + "name": "Title", + "rec_index": 1, + "search_terms": [ + "title" + ], + "table": null + }, + "uuid": { + "column": null, + "datatype": "text", + "display": {}, + "is_category": false, + "is_csp": false, + "is_custom": false, + "is_editable": true, + "is_multiple": {}, + "kind": "field", + "label": "uuid", + "name": null, + "rec_index": 16, + "search_terms": [ + "uuid" + ], + "table": null + } + } +} \ No newline at end of file diff --git a/Libraries/Travel/metadata.db b/Libraries/Travel/metadata.db new file mode 100755 index 0000000..14ea7c2 Binary files /dev/null and b/Libraries/Travel/metadata.db differ diff --git a/README.md b/README.md index 08431fe..838a952 100644 --- a/README.md +++ b/README.md @@ -1,93 +1,5 @@ -# BunnyWat +# BunnyW +A lightweight, eBook hosting system based upon Calibre, designed to be served through TOR. - -## Getting started - -To make it easy for you to get started with GitLab, here's a list of recommended next steps. - -Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)! - -## Add your files - -- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files -- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command: - -``` -cd existing_repo -git remote add origin https://cyberpunklibrarian.nohost.me/gitlab/code/bunnywat.git -git branch -M main -git push -uf origin main -``` - -## Integrate with your tools - -- [ ] [Set up project integrations](https://cyberpunklibrarian.nohost.me/gitlab/code/bunnywat/-/settings/integrations) - -## Collaborate with your team - -- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/) -- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html) -- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically) -- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/) -- [ ] [Set auto-merge](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html) - -## Test and Deploy - -Use the built-in continuous integration in GitLab. - -- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html) -- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing (SAST)](https://docs.gitlab.com/ee/user/application_security/sast/) -- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html) -- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/) -- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html) - -*** - -# Editing this README - -When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thanks to [makeareadme.com](https://www.makeareadme.com/) for this template. - -## Suggestions for a good README - -Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information. - -## Name -Choose a self-explaining name for your project. - -## Description -Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors. - -## Badges -On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge. - -## Visuals -Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method. - -## Installation -Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection. - -## Usage -Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README. - -## Support -Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc. - -## Roadmap -If you have ideas for releases in the future, it is a good idea to list them in the README. - -## Contributing -State if you are open to contributions and what your requirements are for accepting them. - -For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self. - -You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser. - -## Authors and acknowledgment -Show your appreciation to those who have contributed to the project. - -## License -For open source projects, say how it is licensed. - -## Project status -If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers. +More info later. diff --git a/Styles/simple-v1.css b/Styles/simple-v1.css new file mode 100644 index 0000000..b0f123e --- /dev/null +++ b/Styles/simple-v1.css @@ -0,0 +1,511 @@ +/* Set the global variables for everything. Change these to use your own fonts and colours. */ +:root { + /* Set sans-serif & mono fonts */ + --sans-font: -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir, + "Nimbus Sans L", Roboto, Noto, "Segoe UI", Arial, Helvetica, + "Helvetica Neue", sans-serif; + --mono-font: Consolas, Menlo, Monaco, "Andale Mono", "Ubuntu Mono", monospace; + + /* Body font size. By default, effectively 18.4px, based on 16px as 'root em' */ + --base-fontsize: 1.15rem; + + /* Major third scale progression - see https://type-scale.com/ */ + --header-scale: 1.25; + + /* Line height is set to the "Golden ratio" for optimal legibility */ + --line-height: 1.618; + + /* Default (light) theme */ + --bg: #fff; + --accent-bg: #f5f7ff; + --text: #212121; + --text-light: #585858; + --border: #d8dae1; + --accent: #0d47a1; + --accent-light: #90caf9; + --code: #d81b60; + --preformatted: #444; + --marked: #ffdd33; + --disabled: #efefef; +} + +/* Dark theme */ +@media (prefers-color-scheme: dark) { + :root { + --bg: #212121; + --accent-bg: #2b2b2b; + --text: #dcdcdc; + --text-light: #ababab; + --border: #666; + --accent: #ffb300; + --accent-light: #ffecb3; + --code: #f06292; + --preformatted: #ccc; + --disabled: #111; + } + + img, + video { + opacity: 0.6; + } +} + +html { + /* Set the font globally */ + font-family: var(--sans-font); +} + +/* Make the body a nice central block */ +body { + color: var(--text); + background: var(--bg); + font-size: var(--base-fontsize); + line-height: var(--line-height); + display: flex; + min-height: 100vh; + flex-direction: column; + flex: 1; + margin: 0 auto; + max-width: 45rem; + padding: 0 0.5rem; + overflow-x: hidden; + word-break: break-word; + overflow-wrap: break-word; +} + +/* Make the header bg full width, but the content inline with body */ +header { + background: var(--accent-bg); + border-bottom: 1px solid var(--border); + text-align: center; + padding: 2rem 0.5rem; + width: 100vw; + position: relative; + box-sizing: border-box; + left: 50%; + right: 50%; + margin-left: -50vw; + margin-right: -50vw; +} + +/* Remove margins for header text */ +header h1, +header p { + margin: 0; +} + +/* Add a little padding to ensure spacing is correct between content and nav */ +main { + padding-top: 1.5rem; +} + +/* Fix line height when title wraps */ +h1, +h2, +h3 { + line-height: 1.1; +} + +/* Format navigation */ +nav { + font-size: 1rem; + line-height: 2; + padding: 1rem 0; +} + +nav a { + margin: 1rem 1rem 0 0; + border: 1px solid var(--border); + border-radius: 5px; + color: var(--text) !important; + display: inline-block; + padding: 0.1rem 1rem; + text-decoration: none; + transition: 0.4s; +} + +nav a:hover { + color: var(--accent) !important; + border-color: var(--accent); +} + +nav a.current:hover { + text-decoration: none; +} + +footer { + margin-top: 4rem; + padding: 2rem 1rem 1.5rem 1rem; + color: var(--text-light); + font-size: 0.9rem; + text-align: center; + border-top: 1px solid var(--border); +} + +/* Format headers */ +h1 { + font-size: calc( + var(--base-fontsize) * var(--header-scale) * var(--header-scale) * + var(--header-scale) * var(--header-scale) + ); + margin-top: calc(var(--line-height) * 1.5rem); +} + +h2 { + font-size: calc( + var(--base-fontsize) * var(--header-scale) * var(--header-scale) * + var(--header-scale) + ); + margin-top: calc(var(--line-height) * 1.5rem); +} + +h3 { + font-size: calc( + var(--base-fontsize) * var(--header-scale) * var(--header-scale) + ); + margin-top: calc(var(--line-height) * 1.5rem); +} + +h4 { + font-size: calc(var(--base-fontsize) * var(--header-scale)); + margin-top: calc(var(--line-height) * 1.5rem); +} + +h5 { + font-size: var(--base-fontsize); + margin-top: calc(var(--line-height) * 1.5rem); +} + +h6 { + font-size: calc(var(--base-fontsize) / var(--header-scale)); + margin-top: calc(var(--line-height) * 1.5rem); +} + +/* Format links & buttons */ +a, +a:visited { + color: var(--accent); +} + +a:hover { + text-decoration: none; +} + +a button, +button, +[role="button"], +input[type="submit"], +input[type="reset"], +input[type="button"] { + border: none; + border-radius: 5px; + background: var(--accent); + font-size: 1rem; + color: var(--bg); + padding: 0.7rem 0.9rem; + margin: 0.5rem 0; + transition: 0.4s; +} + +a button[disabled], +button[disabled], +[role="button"][aria-disabled="true"], +input[type="submit"][disabled], +input[type="reset"][disabled], +input[type="button"][disabled], +input[type="checkbox"][disabled], +input[type="radio"][disabled], +select[disabled] { + cursor: default; + opacity: 0.5; + cursor: not-allowed; +} + +input:disabled, +textarea:disabled, +select:disabled { + cursor: not-allowed; + background-color: var(--disabled); +} + +input[type="range"] { + padding: 0; +} + +/* Set the cursor to '?' while hovering over an abbreviation */ +abbr { + cursor: help; +} + +button:focus, +button:enabled:hover, +[role="button"]:focus, +[role="button"]:not([aria-disabled="true"]):hover, +input[type="submit"]:focus, +input[type="submit"]:enabled:hover, +input[type="reset"]:focus, +input[type="reset"]:enabled:hover, +input[type="button"]:focus, +input[type="button"]:enabled:hover, +input[type="checkbox"]:focus, +input[type="checkbox"]:enabled:hover, +input[type="radio"]:focus, +input[type="radio"]:enabled:hover { + filter: brightness(1.4); + cursor: pointer; +} + +/* Format the expanding box */ +details { + background: var(--accent-bg); + border: 1px solid var(--border); + border-radius: 5px; + margin-bottom: 1rem; +} + +summary { + cursor: pointer; + font-weight: bold; + padding: 0.6rem 1rem; +} + +details[open] { + padding: 0.6rem 1rem 0.75rem 1rem; +} + +details[open] summary { + margin-bottom: 0.5rem; + padding: 0; +} + +details[open] > *:last-child { + margin-bottom: 0; +} + +/* Format tables */ +table { + border-collapse: collapse; + width: 100%; + margin: 1.5rem 0; +} + +td, +th { + border: 1px solid var(--border); + text-align: left; + padding: 0.5rem; +} + +th { + background: var(--accent-bg); + font-weight: bold; +} + +tr:nth-child(even) { + /* Set every other cell slightly darker. Improves readability. */ + background: var(--accent-bg); +} + +table caption { + font-weight: bold; + margin-bottom: 0.5rem; +} + +/* Lists */ +ol, +ul { + padding-left: 3rem; +} + +/* Format forms */ +textarea, +select, +input { + font-size: inherit; + font-family: inherit; + padding: 0.5rem; + margin-bottom: 0.5rem; + color: var(--text); + background: var(--bg); + border: 1px solid var(--border); + border-radius: 5px; + box-shadow: none; + box-sizing: border-box; + width: 60%; + -moz-appearance: none; + -webkit-appearance: none; + appearance: none; +} + +/* Add arrow to */ +select { + background-image: linear-gradient(45deg, transparent 49%, var(--text) 51%), + linear-gradient(135deg, var(--text) 51%, transparent 49%); + background-position: calc(100% - 20px), calc(100% - 15px); + background-size: 5px 5px, 5px 5px; + background-repeat: no-repeat; +} + +select[multiple] { + background-image: none !important; +} + +/* checkbox and radio button style */ +input[type="checkbox"], +input[type="radio"] { + vertical-align: bottom; + position: relative; +} + +input[type="radio"] { + border-radius: 100%; +} + +input[type="checkbox"]:checked, +input[type="radio"]:checked { + background: var(--accent); +} + +input[type="checkbox"]:checked::after { + /* Creates a rectangle with colored right and bottom borders which is rotated to look like a check mark */ + content: " "; + width: 0.1em; + height: 0.25em; + border-radius: 0; + position: absolute; + top: 0.05em; + left: 0.18em; + background: transparent; + border-right: solid var(--bg) 0.08em; + border-bottom: solid var(--bg) 0.08em; + font-size: 1.8em; + transform: rotate(45deg); +} +input[type="radio"]:checked::after { + /* creates a colored circle for the checked radio button */ + content: " "; + width: 0.25em; + height: 0.25em; + border-radius: 100%; + position: absolute; + top: 0.125em; + background: var(--bg); + left: 0.125em; + font-size: 32px; +} + +/* Make the textarea wider than other inputs */ +textarea { + width: 80%; +} + +/* Makes input fields wider on smaller screens */ +@media only screen and (max-width: 720px) { + textarea, + select, + input { + width: 100%; + } +} + +/* Ensures the checkbox and radio inputs do not have a set width like other input fields */ +input[type="checkbox"], +input[type="radio"] { + width: auto; +} + +/* do not show border around file selector button */ +input[type="file"] { + border: 0; +} + +/* Without this any HTML using
shows ugly borders and has additional padding/margin. (Issue #3) */ +fieldset { + border: 0; + padding: 0; + margin: 0; +} + +/* Misc body elements */ + +hr { + color: var(--border); + border-top: 1px; + margin: 1rem auto; +} + +mark { + padding: 2px 5px; + border-radius: 4px; + background: var(--marked); +} + +main img, +main video { + max-width: 100%; + height: auto; + border-radius: 5px; +} + +figure { + margin: 0; +} + +figcaption { + font-size: 0.9rem; + color: var(--text-light); + text-align: center; + margin-bottom: 1rem; +} + +blockquote { + margin: 2rem 0 2rem 2rem; + padding: 0.4rem 0.8rem; + border-left: 0.35rem solid var(--accent); + opacity: 0.8; + font-style: italic; +} + +cite { + font-size: 0.9rem; + color: var(--text-light); + font-style: normal; +} + +/* Use mono font for code like elements */ +code, +pre, +pre span, +kbd, +samp { + font-size: 1.075rem; + font-family: var(--mono-font); + color: var(--code); +} + +kbd { + color: var(--preformatted); + border: 1px solid var(--preformatted); + border-bottom: 3px solid var(--preformatted); + border-radius: 5px; + padding: 0.1rem; +} + +pre { + padding: 1rem 1.4rem; + max-width: 100%; + overflow: auto; + overflow-x: auto; + color: var(--preformatted); + background: var(--accent-bg); + border: 1px solid var(--border); + border-radius: 5px; +} + +/* Fix embedded code within pre */ +pre code { + color: var(--preformatted); + background: none; + margin: 0; + padding: 0; +} diff --git a/Styles/simple-v1.min.css b/Styles/simple-v1.min.css new file mode 100644 index 0000000..2668b58 --- /dev/null +++ b/Styles/simple-v1.min.css @@ -0,0 +1 @@ +:root{--sans-font:-apple-system,BlinkMacSystemFont,"Avenir Next",Avenir,"Nimbus Sans L",Roboto,Noto,"Segoe UI",Arial,Helvetica,"Helvetica Neue",sans-serif;--mono-font:Consolas,Menlo,Monaco,"Andale Mono","Ubuntu Mono",monospace;--base-fontsize:1.15rem;--header-scale:1.25;--line-height:1.618;--bg:#fff;--accent-bg:#f5f7ff;--text:#212121;--text-light:#585858;--border:#d8dae1;--accent:#0d47a1;--accent-light:#90caf9;--code:#d81b60;--preformatted:#444;--marked:#fd3;--disabled:#efefef}@media (prefers-color-scheme:dark){:root{--bg:#212121;--accent-bg:#2b2b2b;--text:#dcdcdc;--text-light:#ababab;--border:#666;--accent:#ffb300;--accent-light:#ffecb3;--code:#f06292;--preformatted:#ccc;--disabled:#111}img,video{opacity:.6}}html{font-family:var(--sans-font)}body{color:var(--text);background:var(--bg);font-size:var(--base-fontsize);line-height:var(--line-height);word-break:break-word;overflow-wrap:break-word;flex-direction:column;flex:1;max-width:45rem;min-height:100vh;margin:0 auto;padding:0 .5rem;display:flex;overflow-x:hidden}header{background:var(--accent-bg);border-bottom:1px solid var(--border);text-align:center;box-sizing:border-box;width:100vw;margin-left:-50vw;margin-right:-50vw;padding:2rem .5rem;position:relative;left:50%;right:50%}header h1,header p{margin:0}main{padding-top:1.5rem}h1,h2,h3{line-height:1.1}nav{padding:1rem 0;font-size:1rem;line-height:2}nav a{border:1px solid var(--border);border-radius:5px;margin:1rem 1rem 0 0;padding:.1rem 1rem;text-decoration:none;transition:all .4s;display:inline-block;color:var(--text)!important}nav a:hover{border-color:var(--accent);color:var(--accent)!important}nav a.current:hover{text-decoration:none}footer{color:var(--text-light);text-align:center;border-top:1px solid var(--border);margin-top:4rem;padding:2rem 1rem 1.5rem;font-size:.9rem}h1{font-size:calc(var(--base-fontsize)*var(--header-scale)*var(--header-scale)*var(--header-scale)*var(--header-scale));margin-top:calc(var(--line-height)*1.5rem)}h2{font-size:calc(var(--base-fontsize)*var(--header-scale)*var(--header-scale)*var(--header-scale));margin-top:calc(var(--line-height)*1.5rem)}h3{font-size:calc(var(--base-fontsize)*var(--header-scale)*var(--header-scale));margin-top:calc(var(--line-height)*1.5rem)}h4{font-size:calc(var(--base-fontsize)*var(--header-scale));margin-top:calc(var(--line-height)*1.5rem)}h5{font-size:var(--base-fontsize);margin-top:calc(var(--line-height)*1.5rem)}h6{font-size:calc(var(--base-fontsize)/var(--header-scale));margin-top:calc(var(--line-height)*1.5rem)}a,a:visited{color:var(--accent)}a:hover{text-decoration:none}a button,button,[role=button],input[type=submit],input[type=reset],input[type=button]{background:var(--accent);color:var(--bg);border:none;border-radius:5px;margin:.5rem 0;padding:.7rem .9rem;font-size:1rem;transition:all .4s}a button[disabled],button[disabled],[role=button][aria-disabled=true],input[type=submit][disabled],input[type=reset][disabled],input[type=button][disabled],input[type=checkbox][disabled],input[type=radio][disabled],select[disabled]{cursor:default;opacity:.5;cursor:not-allowed}input:disabled,textarea:disabled,select:disabled{cursor:not-allowed;background-color:var(--disabled)}input[type=range]{padding:0}abbr{cursor:help}button:focus,button:enabled:hover,[role=button]:focus,[role=button]:not([aria-disabled=true]):hover,input[type=submit]:focus,input[type=submit]:enabled:hover,input[type=reset]:focus,input[type=reset]:enabled:hover,input[type=button]:focus,input[type=button]:enabled:hover,input[type=checkbox]:focus,input[type=checkbox]:enabled:hover,input[type=radio]:focus,input[type=radio]:enabled:hover{filter:brightness(1.4);cursor:pointer}details{background:var(--accent-bg);border:1px solid var(--border);border-radius:5px;margin-bottom:1rem}summary{cursor:pointer;padding:.6rem 1rem;font-weight:700}details[open]{padding:.6rem 1rem .75rem}details[open] summary{margin-bottom:.5rem;padding:0}details[open]>:last-child{margin-bottom:0}table{border-collapse:collapse;width:100%;margin:1.5rem 0}td,th{border:1px solid var(--border);text-align:left;padding:.5rem}th{background:var(--accent-bg);font-weight:700}tr:nth-child(2n){background:var(--accent-bg)}table caption{margin-bottom:.5rem;font-weight:700}ol,ul{padding-left:3rem}textarea,select,input{font-size:inherit;color:var(--text);background:var(--bg);border:1px solid var(--border);box-shadow:none;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:5px;width:60%;margin-bottom:.5rem;padding:.5rem;font-family:inherit}select{background-image:linear-gradient(45deg,transparent 49%,var(--text)51%),linear-gradient(135deg,var(--text)51%,transparent 49%);background-position:calc(100% - 20px),calc(100% - 15px);background-repeat:no-repeat;background-size:5px 5px,5px 5px}select[multiple]{background-image:none!important}input[type=checkbox],input[type=radio]{vertical-align:bottom;position:relative}input[type=radio]{border-radius:100%}input[type=checkbox]:checked,input[type=radio]:checked{background:var(--accent)}input[type=checkbox]:checked:after{content:" ";border-right:solid var(--bg).08em;border-bottom:solid var(--bg).08em;background:0 0;border-radius:0;width:.1em;height:.25em;font-size:1.8em;position:absolute;top:.05em;left:.18em;transform:rotate(45deg)}input[type=radio]:checked:after{content:" ";background:var(--bg);border-radius:100%;width:.25em;height:.25em;font-size:32px;position:absolute;top:.125em;left:.125em}textarea{width:80%}@media only screen and (width<=720px){textarea,select,input{width:100%}}input[type=checkbox],input[type=radio]{width:auto}input[type=file]{border:0}fieldset{border:0;margin:0;padding:0}hr{color:var(--border);border-top:1px;margin:1rem auto}mark{background:var(--marked);border-radius:4px;padding:2px 5px}main img,main video{border-radius:5px;max-width:100%;height:auto}figure{margin:0}figcaption{color:var(--text-light);text-align:center;margin-bottom:1rem;font-size:.9rem}blockquote{border-left:.35rem solid var(--accent);opacity:.8;margin:2rem 0 2rem 2rem;padding:.4rem .8rem;font-style:italic}cite{color:var(--text-light);font-size:.9rem;font-style:normal}code,pre,pre span,kbd,samp{font-size:1.075rem;font-family:var(--mono-font);color:var(--code)}kbd{color:var(--preformatted);border:1px solid var(--preformatted);border-bottom:3px solid var(--preformatted);border-radius:5px;padding:.1rem}pre{color:var(--preformatted);background:var(--accent-bg);border:1px solid var(--border);border-radius:5px;max-width:100%;padding:1rem 1.4rem;overflow:auto}pre code{color:var(--preformatted);background:0 0;margin:0;padding:0} \ No newline at end of file diff --git a/Styles/simple.css b/Styles/simple.css new file mode 100644 index 0000000..4fadd2b --- /dev/null +++ b/Styles/simple.css @@ -0,0 +1,713 @@ +/* Global variables. */ +:root, +::backdrop { + /* Set sans-serif & mono fonts */ + --sans-font: -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir, + "Nimbus Sans L", Roboto, "Noto Sans", "Segoe UI", Arial, Helvetica, + "Helvetica Neue", sans-serif; + --mono-font: Consolas, Menlo, Monaco, "Andale Mono", "Ubuntu Mono", monospace; + --standard-border-radius: 5px; + + /* Default (light) theme */ + --bg: #fff; + --accent-bg: #f5f7ff; + --text: #212121; + --text-light: #585858; + --border: #898EA4; + --accent: #0d47a1; + --accent-hover: #1266e2; + --accent-text: var(--bg); + --code: #d81b60; + --preformatted: #444; + --marked: #ffdd33; + --disabled: #efefef; +} + +/* Dark theme */ +@media (prefers-color-scheme: dark) { + :root, + ::backdrop { + color-scheme: dark; + --bg: #212121; + --accent-bg: #2b2b2b; + --text: #dcdcdc; + --text-light: #ababab; + --accent: #ffb300; + --accent-hover: #ffe099; + --accent-text: var(--bg); + --code: #f06292; + --preformatted: #ccc; + --disabled: #111; + } + /* Add a bit of transparency so light media isn't so glaring in dark mode */ + img, + video { + opacity: 0.8; + } +} + +/* Reset box-sizing */ +*, *::before, *::after { + box-sizing: border-box; +} + +/* Reset default appearance */ +textarea, +select, +input, +progress { + appearance: none; + -webkit-appearance: none; + -moz-appearance: none; +} + +html { + /* Set the font globally */ + font-family: var(--sans-font); + scroll-behavior: smooth; +} + +/* Make the body a nice central block */ +body { + color: var(--text); + background-color: var(--bg); + font-size: 1.15rem; + line-height: 1.5; + display: grid; + grid-template-columns: 1fr min(45rem, 90%) 1fr; + margin: 0; +} +body > * { + grid-column: 2; +} + +/* Make the header bg full width, but the content inline with body */ +body > header { + background-color: var(--accent-bg); + border-bottom: 1px solid var(--border); + text-align: center; + padding: 0 0.5rem 2rem 0.5rem; + grid-column: 1 / -1; +} + +body > header > *:only-child { + margin-block-start: 2rem; +} + +body > header h1 { + max-width: 1200px; + margin: 1rem auto; +} + +body > header p { + max-width: 40rem; + margin: 1rem auto; +} + +/* Add a little padding to ensure spacing is correct between content and header > nav */ +main { + padding-top: 1.5rem; +} + +body > footer { + margin-top: 4rem; + padding: 2rem 1rem 1.5rem 1rem; + color: var(--text-light); + font-size: 0.9rem; + text-align: center; + border-top: 1px solid var(--border); +} + +/* Format headers */ +h1 { + font-size: 3rem; +} + +h2 { + font-size: 2.6rem; + margin-top: 3rem; +} + +h3 { + font-size: 2rem; + margin-top: 3rem; +} + +h4 { + font-size: 1.44rem; +} + +h5 { + font-size: 1.15rem; +} + +h6 { + font-size: 0.96rem; +} + +p { + margin: 1.5rem 0; +} + +/* Prevent long strings from overflowing container */ +p, h1, h2, h3, h4, h5, h6 { + overflow-wrap: break-word; +} + +/* Fix line height when title wraps */ +h1, +h2, +h3 { + line-height: 1.1; +} + +/* Reduce header size on mobile */ +@media only screen and (max-width: 720px) { + h1 { + font-size: 2.5rem; + } + + h2 { + font-size: 2.1rem; + } + + h3 { + font-size: 1.75rem; + } + + h4 { + font-size: 1.25rem; + } +} + +/* Format links & buttons */ +a, +a:visited { + color: var(--accent); +} + +a:hover { + text-decoration: none; +} + +button, +.button, +a.button, /* extra specificity to override a */ +input[type="submit"], +input[type="reset"], +input[type="button"], +label[type="button"] { + border: 1px solid var(--accent); + background-color: var(--accent); + color: var(--accent-text); + padding: 0.5rem 0.9rem; + text-decoration: none; + line-height: normal; +} + +.button[aria-disabled="true"], +input:disabled, +textarea:disabled, +select:disabled, +button[disabled] { + cursor: not-allowed; + background-color: var(--disabled); + border-color: var(--disabled); + color: var(--text-light); +} + +input[type="range"] { + padding: 0; +} + +/* Set the cursor to '?' on an abbreviation and style the abbreviation to show that there is more information underneath */ +abbr[title] { + cursor: help; + text-decoration-line: underline; + text-decoration-style: dotted; +} + +button:enabled:hover, +.button:not([aria-disabled="true"]):hover, +input[type="submit"]:enabled:hover, +input[type="reset"]:enabled:hover, +input[type="button"]:enabled:hover, +label[type="button"]:hover { + background-color: var(--accent-hover); + border-color: var(--accent-hover); + cursor: pointer; +} + +.button:focus-visible, +button:focus-visible:where(:enabled), +input:enabled:focus-visible:where( + [type="submit"], + [type="reset"], + [type="button"] +) { + outline: 2px solid var(--accent); + outline-offset: 1px; +} + +/* Format navigation */ +header > nav { + font-size: 1rem; + line-height: 2; + padding: 1rem 0 0 0; +} + +/* Use flexbox to allow items to wrap, as needed */ +header > nav ul, +header > nav ol { + align-content: space-around; + align-items: center; + display: flex; + flex-direction: row; + flex-wrap: wrap; + justify-content: center; + list-style-type: none; + margin: 0; + padding: 0; +} + +/* List items are inline elements, make them behave more like blocks */ +header > nav ul li, +header > nav ol li { + display: inline-block; +} + +header > nav a, +header > nav a:visited { + margin: 0 0.5rem 1rem 0.5rem; + border: 1px solid var(--border); + border-radius: var(--standard-border-radius); + color: var(--text); + display: inline-block; + padding: 0.1rem 1rem; + text-decoration: none; +} + +header > nav a:hover, +header > nav a.current, +header > nav a[aria-current="page"], +header > nav a[aria-current="true"] { + border-color: var(--accent); + color: var(--accent); + cursor: pointer; +} + +/* Reduce nav side on mobile */ +@media only screen and (max-width: 720px) { + header > nav a { + border: none; + padding: 0; + text-decoration: underline; + line-height: 1; + } +} + +/* Consolidate box styling */ +aside, details, pre, progress { + background-color: var(--accent-bg); + border: 1px solid var(--border); + border-radius: var(--standard-border-radius); + margin-bottom: 1rem; +} + +aside { + font-size: 1rem; + width: 30%; + padding: 0 15px; + margin-inline-start: 15px; + float: right; +} +*[dir="rtl"] aside { + float: left; +} + +/* Make aside full-width on mobile */ +@media only screen and (max-width: 720px) { + aside { + width: 100%; + float: none; + margin-inline-start: 0; + } +} + +article, fieldset, dialog { + /*border: 1px solid var(--border);*/ + border: none; + padding: 1rem; + border-radius: var(--standard-border-radius); + margin-bottom: 1rem; +} + +article h2:first-child, +section h2:first-child, +article h3:first-child, +section h3:first-child { + margin-top: 1rem; +} + +section { + border-top: 1px solid var(--border); + border-bottom: 1px solid var(--border); + padding: 2rem 1rem; + margin: 3rem 0; +} + +/* Don't double separators when chaining sections */ +section + section, +section:first-child { + border-top: 0; + padding-top: 0; +} + +section + section { + margin-top: 0; +} + +section:last-child { + border-bottom: 0; + padding-bottom: 0; +} + +details { + padding: 0.7rem 1rem; +} + +summary { + cursor: pointer; + font-weight: bold; + padding: 0.7rem 1rem; + margin: -0.7rem -1rem; + word-break: break-all; +} + +details[open] > summary + * { + margin-top: 0; +} + +details[open] > summary { + margin-bottom: 0.5rem; +} + +details[open] > :last-child { + margin-bottom: 0; +} + +/* Format tables */ +table { + border-collapse: collapse; + margin: 1.5rem 0; +} + +figure > table { + width: max-content; + margin: 0; +} + +td, +th { + border: 1px solid var(--border); + text-align: start; + padding: 0.5rem; +} + +th { + background-color: var(--accent-bg); + font-weight: bold; +} + +tr:nth-child(even) { + /* Set every other cell slightly darker. Improves readability. */ + background-color: var(--accent-bg); +} + +table caption { + font-weight: bold; + margin-bottom: 0.5rem; +} + +/* Format forms */ +textarea, +select, +input, +button, +.button { + font-size: inherit; + font-family: inherit; + padding: 0.5rem; + margin-bottom: 0.5rem; + border-radius: var(--standard-border-radius); + box-shadow: none; + max-width: 100%; + display: inline-block; +} +textarea, +select, +input { + color: var(--text); + background-color: var(--bg); + border: 1px solid var(--border); +} +label { + display: block; +} +textarea:not([cols]) { + width: 100%; +} + +/* Add arrow to drop-down */ +select:not([multiple]) { + background-image: linear-gradient(45deg, transparent 49%, var(--text) 51%), + linear-gradient(135deg, var(--text) 51%, transparent 49%); + background-position: calc(100% - 15px), calc(100% - 10px); + background-size: 5px 5px, 5px 5px; + background-repeat: no-repeat; + padding-inline-end: 25px; +} +*[dir="rtl"] select:not([multiple]) { + background-position: 10px, 15px; +} + +/* checkbox and radio button style */ +input[type="checkbox"], +input[type="radio"] { + vertical-align: middle; + position: relative; + width: min-content; +} + +input[type="checkbox"] + label, +input[type="radio"] + label { + display: inline-block; +} + +input[type="radio"] { + border-radius: 100%; +} + +input[type="checkbox"]:checked, +input[type="radio"]:checked { + background-color: var(--accent); +} + +input[type="checkbox"]:checked::after { + /* Creates a rectangle with colored right and bottom borders which is rotated to look like a check mark */ + content: " "; + width: 0.18em; + height: 0.32em; + border-radius: 0; + position: absolute; + top: 0.05em; + left: 0.17em; + background-color: transparent; + border-right: solid var(--bg) 0.08em; + border-bottom: solid var(--bg) 0.08em; + font-size: 1.8em; + transform: rotate(45deg); +} +input[type="radio"]:checked::after { + /* creates a colored circle for the checked radio button */ + content: " "; + width: 0.25em; + height: 0.25em; + border-radius: 100%; + position: absolute; + top: 0.125em; + background-color: var(--bg); + left: 0.125em; + font-size: 32px; +} + +/* Makes input fields wider on smaller screens */ +@media only screen and (max-width: 720px) { + textarea, + select, + input { + width: 100%; + } +} + +/* Set a height for color input */ +input[type="color"] { + height: 2.5rem; + padding: 0.2rem; +} + +/* do not show border around file selector button */ +input[type="file"] { + border: 0; +} + +/* Misc body elements */ +hr { + border: none; + height: 1px; + background: var(--border); + margin: 1rem auto; +} + +mark { + padding: 2px 5px; + border-radius: var(--standard-border-radius); + background-color: var(--marked); + color: black; +} + +mark a { + color: #0d47a1; +} + +img, +video { + max-width: 100%; + height: auto; + border-radius: var(--standard-border-radius); +} + +figure { + margin: 0; + display: block; + overflow-x: auto; +} + +figure > img, +figure > picture > img { + display: block; + margin-inline: auto; +} + +figcaption { + text-align: center; + font-size: 0.9rem; + color: var(--text-light); + margin-block: 1rem; +} + +blockquote { + margin-inline-start: 2rem; + margin-inline-end: 0; + margin-block: 2rem; + padding: 0.4rem 0.8rem; + border-inline-start: 0.35rem solid var(--accent); + color: var(--text-light); + font-style: italic; +} + +cite { + font-size: 0.9rem; + color: var(--text-light); + font-style: normal; +} + +dt { + color: var(--text-light); +} + +/* Use mono font for code elements */ +code, +pre, +pre span, +kbd, +samp { + font-family: var(--mono-font); + color: var(--code); +} + +kbd { + color: var(--preformatted); + border: 1px solid var(--preformatted); + border-bottom: 3px solid var(--preformatted); + border-radius: var(--standard-border-radius); + padding: 0.1rem 0.4rem; +} + +pre { + padding: 1rem 1.4rem; + max-width: 100%; + overflow: auto; + color: var(--preformatted); +} + +/* Fix embedded code within pre */ +pre code { + color: var(--preformatted); + background: none; + margin: 0; + padding: 0; +} + +/* Progress bars */ +/* Declarations are repeated because you */ +/* cannot combine vendor-specific selectors */ +progress { + width: 100%; +} + +progress:indeterminate { + background-color: var(--accent-bg); +} + +progress::-webkit-progress-bar { + border-radius: var(--standard-border-radius); + background-color: var(--accent-bg); +} + +progress::-webkit-progress-value { + border-radius: var(--standard-border-radius); + background-color: var(--accent); +} + +progress::-moz-progress-bar { + border-radius: var(--standard-border-radius); + background-color: var(--accent); + transition-property: width; + transition-duration: 0.3s; +} + +progress:indeterminate::-moz-progress-bar { + background-color: var(--accent-bg); +} + +dialog { + max-width: 40rem; + margin: auto; +} + +dialog::backdrop { + background-color: var(--bg); + opacity: 0.8; +} + +@media only screen and (max-width: 720px) { + dialog { + max-width: 100%; + margin: auto 1em; + } +} + +/* Superscript & Subscript */ +/* Prevent scripts from affecting line-height. */ +sup, sub { + vertical-align: baseline; + position: relative; +} + +sup { + top: -0.4em; +} + +sub { + top: 0.3em; +} + +/* Classes for notices */ +.notice { + background: var(--accent-bg); + border: 2px solid var(--border); + border-radius: var(--standard-border-radius); + padding: 1.5rem; + margin: 2rem 0; +} diff --git a/Styles/simple.min.css b/Styles/simple.min.css new file mode 100644 index 0000000..8c4e75c --- /dev/null +++ b/Styles/simple.min.css @@ -0,0 +1 @@ +:root,::backdrop{--sans-font:-apple-system,BlinkMacSystemFont,"Avenir Next",Avenir,"Nimbus Sans L",Roboto,"Noto Sans","Segoe UI",Arial,Helvetica,"Helvetica Neue",sans-serif;--mono-font:Consolas,Menlo,Monaco,"Andale Mono","Ubuntu Mono",monospace;--standard-border-radius:5px;--bg:#fff;--accent-bg:#f5f7ff;--text:#212121;--text-light:#585858;--border:#898ea4;--accent:#0d47a1;--accent-hover:#1266e2;--accent-text:var(--bg);--code:#d81b60;--preformatted:#444;--marked:#fd3;--disabled:#efefef}@media (prefers-color-scheme:dark){:root,::backdrop{color-scheme:dark;--bg:#212121;--accent-bg:#2b2b2b;--text:#dcdcdc;--text-light:#ababab;--accent:#ffb300;--accent-hover:#ffe099;--accent-text:var(--bg);--code:#f06292;--preformatted:#ccc;--disabled:#111}img,video{opacity:.8}}*,:before,:after{box-sizing:border-box}textarea,select,input,progress{-webkit-appearance:none;-moz-appearance:none;appearance:none}html{font-family:var(--sans-font);scroll-behavior:smooth}body{color:var(--text);background-color:var(--bg);grid-template-columns:1fr min(45rem,90%) 1fr;margin:0;font-size:1.15rem;line-height:1.5;display:grid}body>*{grid-column:2}body>header{background-color:var(--accent-bg);border-bottom:1px solid var(--border);text-align:center;grid-column:1/-1;padding:0 .5rem 2rem}body>header>:only-child{margin-block-start:2rem}body>header h1{max-width:1200px;margin:1rem auto}body>header p{max-width:40rem;margin:1rem auto}main{padding-top:1.5rem}body>footer{color:var(--text-light);text-align:center;border-top:1px solid var(--border);margin-top:4rem;padding:2rem 1rem 1.5rem;font-size:.9rem}h1{font-size:3rem}h2{margin-top:3rem;font-size:2.6rem}h3{margin-top:3rem;font-size:2rem}h4{font-size:1.44rem}h5{font-size:1.15rem}h6{font-size:.96rem}p{margin:1.5rem 0}p,h1,h2,h3,h4,h5,h6{overflow-wrap:break-word}h1,h2,h3{line-height:1.1}@media only screen and (width<=720px){h1{font-size:2.5rem}h2{font-size:2.1rem}h3{font-size:1.75rem}h4{font-size:1.25rem}}a,a:visited{color:var(--accent)}a:hover{text-decoration:none}button,.button,a.button,input[type=submit],input[type=reset],input[type=button],label[type=button]{border:1px solid var(--accent);background-color:var(--accent);color:var(--accent-text);padding:.5rem .9rem;line-height:normal;text-decoration:none}.button[aria-disabled=true],input:disabled,textarea:disabled,select:disabled,button[disabled]{cursor:not-allowed;background-color:var(--disabled);border-color:var(--disabled);color:var(--text-light)}input[type=range]{padding:0}abbr[title]{cursor:help;text-decoration-line:underline;text-decoration-style:dotted}button:enabled:hover,.button:not([aria-disabled=true]):hover,input[type=submit]:enabled:hover,input[type=reset]:enabled:hover,input[type=button]:enabled:hover,label[type=button]:hover{background-color:var(--accent-hover);border-color:var(--accent-hover);cursor:pointer}.button:focus-visible,button:focus-visible:where(:enabled),input:enabled:focus-visible:where([type=submit],[type=reset],[type=button]){outline:2px solid var(--accent);outline-offset:1px}header>nav{padding:1rem 0 0;font-size:1rem;line-height:2}header>nav ul,header>nav ol{flex-flow:wrap;place-content:space-around center;align-items:center;margin:0;padding:0;list-style-type:none;display:flex}header>nav ul li,header>nav ol li{display:inline-block}header>nav a,header>nav a:visited{border:1px solid var(--border);border-radius:var(--standard-border-radius);color:var(--text);margin:0 .5rem 1rem;padding:.1rem 1rem;text-decoration:none;display:inline-block}header>nav a:hover,header>nav a.current,header>nav a[aria-current=page],header>nav a[aria-current=true]{border-color:var(--accent);color:var(--accent);cursor:pointer}@media only screen and (width<=720px){header>nav a{border:none;padding:0;line-height:1;text-decoration:underline}}aside,details,pre,progress{background-color:var(--accent-bg);border:1px solid var(--border);border-radius:var(--standard-border-radius);margin-bottom:1rem}aside{float:right;width:30%;margin-inline-start:15px;padding:0 15px;font-size:1rem}[dir=rtl] aside{float:left}@media only screen and (width<=720px){aside{float:none;width:100%;margin-inline-start:0}}article,fieldset,dialog{border:1px solid var(--border);border-radius:var(--standard-border-radius);margin-bottom:1rem;padding:1rem}article h2:first-child,section h2:first-child,article h3:first-child,section h3:first-child{margin-top:1rem}section{border-top:1px solid var(--border);border-bottom:1px solid var(--border);margin:3rem 0;padding:2rem 1rem}section+section,section:first-child{border-top:0;padding-top:0}section+section{margin-top:0}section:last-child{border-bottom:0;padding-bottom:0}details{padding:.7rem 1rem}summary{cursor:pointer;word-break:break-all;margin:-.7rem -1rem;padding:.7rem 1rem;font-weight:700}details[open]>summary+*{margin-top:0}details[open]>summary{margin-bottom:.5rem}details[open]>:last-child{margin-bottom:0}table{border-collapse:collapse;margin:1.5rem 0}figure>table{width:max-content;margin:0}td,th{border:1px solid var(--border);text-align:start;padding:.5rem}th{background-color:var(--accent-bg);font-weight:700}tr:nth-child(2n){background-color:var(--accent-bg)}table caption{margin-bottom:.5rem;font-weight:700}textarea,select,input,button,.button{font-size:inherit;border-radius:var(--standard-border-radius);box-shadow:none;max-width:100%;margin-bottom:.5rem;padding:.5rem;font-family:inherit;display:inline-block}textarea,select,input{color:var(--text);background-color:var(--bg);border:1px solid var(--border)}label{display:block}textarea:not([cols]){width:100%}select:not([multiple]){background-image:linear-gradient(45deg,transparent 49%,var(--text)51%),linear-gradient(135deg,var(--text)51%,transparent 49%);background-position:calc(100% - 15px),calc(100% - 10px);background-repeat:no-repeat;background-size:5px 5px,5px 5px;padding-inline-end:25px}[dir=rtl] select:not([multiple]){background-position:10px,15px}input[type=checkbox],input[type=radio]{vertical-align:middle;width:min-content;position:relative}input[type=checkbox]+label,input[type=radio]+label{display:inline-block}input[type=radio]{border-radius:100%}input[type=checkbox]:checked,input[type=radio]:checked{background-color:var(--accent)}input[type=checkbox]:checked:after{content:" ";border-right:solid var(--bg).08em;border-bottom:solid var(--bg).08em;background-color:#0000;border-radius:0;width:.18em;height:.32em;font-size:1.8em;position:absolute;top:.05em;left:.17em;transform:rotate(45deg)}input[type=radio]:checked:after{content:" ";background-color:var(--bg);border-radius:100%;width:.25em;height:.25em;font-size:32px;position:absolute;top:.125em;left:.125em}@media only screen and (width<=720px){textarea,select,input{width:100%}}input[type=color]{height:2.5rem;padding:.2rem}input[type=file]{border:0}hr{background:var(--border);border:none;height:1px;margin:1rem auto}mark{border-radius:var(--standard-border-radius);background-color:var(--marked);color:#000;padding:2px 5px}mark a{color:#0d47a1}img,video{border-radius:var(--standard-border-radius);max-width:100%;height:auto}figure{margin:0;display:block;overflow-x:auto}figure>img,figure>picture>img{margin-inline:auto;display:block}figcaption{text-align:center;color:var(--text-light);margin-block:1rem;font-size:.9rem}blockquote{border-inline-start:.35rem solid var(--accent);color:var(--text-light);margin-block:2rem;margin-inline:2rem 0;padding:.4rem .8rem;font-style:italic}cite{color:var(--text-light);font-size:.9rem;font-style:normal}dt{color:var(--text-light)}code,pre,pre span,kbd,samp{font-family:var(--mono-font);color:var(--code)}kbd{color:var(--preformatted);border:1px solid var(--preformatted);border-bottom:3px solid var(--preformatted);border-radius:var(--standard-border-radius);padding:.1rem .4rem}pre{color:var(--preformatted);max-width:100%;padding:1rem 1.4rem;overflow:auto}pre code{color:var(--preformatted);background:0 0;margin:0;padding:0}progress{width:100%}progress:indeterminate{background-color:var(--accent-bg)}progress::-webkit-progress-bar{border-radius:var(--standard-border-radius);background-color:var(--accent-bg)}progress::-webkit-progress-value{border-radius:var(--standard-border-radius);background-color:var(--accent)}progress::-moz-progress-bar{border-radius:var(--standard-border-radius);background-color:var(--accent);transition-property:width;transition-duration:.3s}progress:indeterminate::-moz-progress-bar{background-color:var(--accent-bg)}dialog{max-width:40rem;margin:auto}dialog::backdrop{background-color:var(--bg);opacity:.8}@media only screen and (width<=720px){dialog{max-width:100%;margin:auto 1em}}sup,sub{vertical-align:baseline;position:relative}sup{top:-.4em}sub{top:.3em}.notice{background:var(--accent-bg);border:2px solid var(--border);border-radius:var(--standard-border-radius);margin:2rem 0;padding:1.5rem} \ No newline at end of file diff --git a/index-original.html b/index-original.html new file mode 100644 index 0000000..2a64fed --- /dev/null +++ b/index-original.html @@ -0,0 +1,1108 @@ + + + + + + + Simple.css Test Page + + + + + + + + + + + + +
+

Simple.css Test Page

+

This is a test page filled with common HTML elements.

+ +
+ +
+
+
+

Text

+
+
+
+

Headings

+
+ +

Heading 1

+

Heading 2

+

Heading 3

+

Heading 4

+
Heading 5
+
Heading 6
+ + +
+
+
+

Paragraphs

+
+ +

A paragraph (from the Greek paragraphos, “to write beside” or “written beside”) is a + self-contained unit of a discourse in writing dealing with a particular point or idea. A + paragraph consists of one or more sentences. Though not required by the syntax of any + language, paragraphs are usually an expected part of formal writing, used to organize longer + prose.

+ + +
+
+
+

Blockquotes

+
+ +
+

A block quotation (also known as a long quotation or extract) is a quotation in a written + document, that is set off from the main text as a paragraph, or block of text.

+

It is typically distinguished visually using indentation and a different typeface or + smaller size quotation. It may or may not include a citation, usually placed at the + bottom.

+ Said no one, ever. +
+ + +
+
+
+

Asides

+
+ +

Lorem ipsum dolor sit, amet consectetur adipisicing elit. Rerum eligendi optio ipsa nemo assumenda mollitia inventore neque dolores animi ratione libero qui dolorem, distinctio aut, quae, iste, cumque nihil enim!

+

Lorem, ipsum dolor sit amet consectetur adipisicing elit. Dolorum perspiciatis corrupti eaque tempore autem doloremque, placeat, in earum ab maxime commodi tenetur quos provident fugit assumenda, consequatur vero ipsum, et.

+

Lorem ipsum dolor sit amet consectetur adipisicing, elit. Molestias, facilis. Dolores rerum omnis, adipisci odit ipsa, autem animi molestiae fugit temporibus fuga dignissimos, commodi et, itaque quo voluptatem recusandae voluptatibus.

+ +
+
+
+

Lists

+
+ +

Description list

+
+
Description term
+
Description details.
+
Additional details.
+
Description term
+
This is a second term
+
This is a third term
+
Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptas, modi iure! Incidunt, dolorum sit? Dolorum cumque omnis accusantium doloremque nihil est perferendis voluptas delectus, quis aperiam blanditiis deleniti modi at. Lorem ipsum dolor sit amet consectetur adipisicing elit. Vel, perspiciatis, vero accusantium sed dicta exercitationem iure praesentium nobis esse ullam sunt cum blanditiis! Neque similique corporis animi voluptatibus et modi.
+
+

Ordered List

+
    +
  1. List Item 1
  2. +
  3. + List Item 2 +
      +
    1. List Item 1
    2. +
    3. + List Item 2 +
        +
      1. List Item 1
      2. +
      3. + List Item 2 +
          +
        1. List Item 1
        2. +
        3. + List Item 2 +
            +
          1. List Item 1
          2. +
          3. List Item 2
          4. +
          5. List Item 3
          6. +
          +
        4. +
        5. List Item 3
        6. +
        +
      4. +
      5. List Item 3
      6. +
      +
    4. +
    5. List Item 3
    6. +
    +
  4. +
  5. List Item 3
  6. +
+

Unordered List

+
    +
  • List Item 1
  • +
  • + List Item 2 +
      +
    • List Item 1
    • +
    • + List Item 2 +
        +
      • List Item 1
      • +
      • + List Item 2 +
          +
        • List Item 1
        • +
        • + List Item 2 +
            +
          • List Item 1
          • +
          • List Item 2
          • +
          • List Item 3
          • +
          +
        • +
        • List Item 3
        • +
        +
      • +
      • List Item 3
      • +
      +
    • +
    • List Item 3
    • +
    +
  • +
  • List Item 3
  • +
+ + +
+
+
+

Details / Summary

+
+
+ Expand for details +

Lorem ipsum dolor sit amet consectetur adipisicing elit. Cum, odio! Odio natus ullam ad + quaerat, eaque necessitatibus, aliquid distinctio similique voluptatibus dicta consequuntur + animi. Quaerat facilis quidem unde eos! Ipsa.

+
+ +
+
+
+

Address

+
+
+ Written by Jon Doe.
+ Visit us at:
+ Example.com
+ Box 564, Disneyland
+ USA +
+ +
+
+
+

Horizontal rules

+
+

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do + eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim + ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut + aliquip ex ea commodo consequat. Duis aute irure dolor in + reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla + pariatur. Excepteur sint occaecat cupidatat non proident, sunt in + culpa qui officia deserunt mollit anim id est laborum. +

+

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do + eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim + ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut + aliquip ex ea commodo consequat. Duis aute irure dolor in + reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla + pariatur. Excepteur sint occaecat cupidatat non proident, sunt in + culpa qui officia deserunt mollit anim id est laborum. +

+
+

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do + eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim + ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut + aliquip ex ea commodo consequat. Duis aute irure dolor in + reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla + pariatur. Excepteur sint occaecat cupidatat non proident, sunt in + culpa qui officia deserunt mollit anim id est laborum. +

+

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do + eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim + ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut + aliquip ex ea commodo consequat. Duis aute irure dolor in + reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla + pariatur. Excepteur sint occaecat cupidatat non proident, sunt in + culpa qui officia deserunt mollit anim id est laborum. +

+ +
+
+
+

Tabular data

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table Caption
Table Heading 1Table Heading 2Table Heading 3Table Heading 4Table Heading 5
Table Footer 1Table Footer 2Table Footer 3Table Footer 4Table Footer 5
Table Cell 1Table Cell 2Table Cell 3Table Cell 4Table Cell 5
Table Cell 1Table Cell 2Table Cell 3Table Cell 4Table Cell 5
Table Cell 1Table Cell 2Table Cell 3Table Cell 4Table Cell 5
Table Cell 1Table Cell 2Table Cell 3Table Cell 4Table Cell 5
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Overflowing table
Header_1Header_2Header_3Header_4Header_5Header_6Header_7Header_8Header_9Header_10
Row:1 Cell:1Row:1 Cell:2Row:1 Cell:3Row:1 Cell:4Row:1 Cell:5Row:1 Cell:6Row:1 Cell:7Row:1 Cell:8Row:1 Cell:9Row:1 Cell:10
Row:2 Cell:1Row:2 Cell:2Row:2 Cell:3Row:2 Cell:4Row:2 Cell:5Row:2 Cell:6Row:2 Cell:7Row:2 Cell:8Row:2 Cell:9Row:2 Cell:10
Row:3 Cell:1Row:3 Cell:2Row:3 Cell:3Row:3 Cell:4Row:3 Cell:5Row:3 Cell:6Row:3 Cell:7Row:3 Cell:8Row:3 Cell:9Row:3 Cell:10
Row:4 Cell:1Row:4 Cell:2Row:4 Cell:3Row:4 Cell:4Row:4 Cell:5Row:4 Cell:6Row:4 Cell:7Row:4 Cell:8Row:4 Cell:9Row:4 Cell:10
Row:5 Cell:1Row:5 Cell:2Row:5 Cell:3Row:5 Cell:4Row:5 Cell:5Row:5 Cell:6Row:5 Cell:7Row:5 Cell:8Row:5 Cell:9Row:5 Cell:10
Row:6 Cell:1Row:6 Cell:2Row:6 Cell:3Row:6 Cell:4Row:6 Cell:5Row:6 Cell:6Row:6 Cell:7Row:6 Cell:8Row:6 Cell:9Row:6 Cell:10
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Overflowing table in figure
Header_1Header_2Header_3Header_4Header_5Header_6Header_7Header_8Header_9Header_10
Row:1 Cell:1Row:1 Cell:2Row:1 Cell:3Row:1 Cell:4Row:1 Cell:5Row:1 Cell:6Row:1 Cell:7Row:1 Cell:8Row:1 Cell:9Row:1 Cell:10
Row:2 Cell:1Row:2 Cell:2Row:2 Cell:3Row:2 Cell:4Row:2 Cell:5Row:2 Cell:6Row:2 Cell:7Row:2 Cell:8Row:2 Cell:9Row:2 Cell:10
Row:3 Cell:1Row:3 Cell:2Row:3 Cell:3Row:3 Cell:4Row:3 Cell:5Row:3 Cell:6Row:3 Cell:7Row:3 Cell:8Row:3 Cell:9Row:3 Cell:10
Row:4 Cell:1Row:4 Cell:2Row:4 Cell:3Row:4 Cell:4Row:4 Cell:5Row:4 Cell:6Row:4 Cell:7Row:4 Cell:8Row:4 Cell:9Row:4 Cell:10
Row:5 Cell:1Row:5 Cell:2Row:5 Cell:3Row:5 Cell:4Row:5 Cell:5Row:5 Cell:6Row:5 Cell:7Row:5 Cell:8Row:5 Cell:9Row:5 Cell:10
Row:6 Cell:1Row:6 Cell:2Row:6 Cell:3Row:6 Cell:4Row:6 Cell:5Row:6 Cell:6Row:6 Cell:7Row:6 Cell:8Row:6 Cell:9Row:6 Cell:10
+
Table in figure
+
+
+ Overflowing table in details + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Overflowing table
Header_1Header_2Header_3Header_4Header_5Header_6Header_7Header_8Header_9Header_10
Row:1 Cell:1Row:1 Cell:2Row:1 Cell:3Row:1 Cell:4Row:1 Cell:5Row:1 Cell:6Row:1 Cell:7Row:1 Cell:8Row:1 Cell:9Row:1 Cell:10
Row:2 Cell:1Row:2 Cell:2Row:2 Cell:3Row:2 Cell:4Row:2 Cell:5Row:2 Cell:6Row:2 Cell:7Row:2 Cell:8Row:2 Cell:9Row:2 Cell:10
Row:3 Cell:1Row:3 Cell:2Row:3 Cell:3Row:3 Cell:4Row:3 Cell:5Row:3 Cell:6Row:3 Cell:7Row:3 Cell:8Row:3 Cell:9Row:3 Cell:10
Row:4 Cell:1Row:4 Cell:2Row:4 Cell:3Row:4 Cell:4Row:4 Cell:5Row:4 Cell:6Row:4 Cell:7Row:4 Cell:8Row:4 Cell:9Row:4 Cell:10
Row:5 Cell:1Row:5 Cell:2Row:5 Cell:3Row:5 Cell:4Row:5 Cell:5Row:5 Cell:6Row:5 Cell:7Row:5 Cell:8Row:5 Cell:9Row:5 Cell:10
Row:6 Cell:1Row:6 Cell:2Row:6 Cell:3Row:6 Cell:4Row:6 Cell:5Row:6 Cell:6Row:6 Cell:7Row:6 Cell:8Row:6 Cell:9Row:6 Cell:10
+
+ +
+
+
+

Code

+
+ +

Keyboard input: Cmd

+

Inline code: <div>code</div>

+

Sample output: This is sample output from a computer program. +

+

Pre-formatted text

+
P R E F O R M A T T E D T E X T
+	! " # $ % & ' ( ) * + , - . /
+	0 1 2 3 4 5 6 7 8 9 : ; < = > ?
+	@ A B C D E F G H I J K L M N O
+	P Q R S T U V W X Y Z [ \ ] ^ _
+	` a b c d e f g h i j k l m n o
+	p q r s t u v w x y z { | } ~ 
+ + +
+
+
+

Text Sections

+
+
+

Header 1

+

Test section 1

+
+
+

Header 2

+

Test section 2

+
+
+

Header 3

+

Test section 3

+
+
+
+
+

Inline elements

+
+ +

This is a text link.

+

Strong is used to indicate strong importance.

+

This text has added emphasis.

+

The b element is stylistically different text from normal text, without any special + importance.

+

The i element is text that is offset from the normal text.

+

The u element is text with an unarticulated, though explicitly rendered, non-textual + annotation.

+

This text is deleted and This text is inserted.

+

This text has a strikethrough.

+

Superscript®.

+

Subscript for things like H2O.

+

This small text is small for fine print, etc.

+

Abbreviation: HTML

+

This text is a short inline + quotation.

+

This is a citation.

+

The dfn element indicates a definition.

+

The mark element indicates a highlight.

+

The variable element, such as x = y.

+

The time element:

+ + +
+
+
+

HTML Comments

+
+ +

There is comment here: + +

+

There is a comment spanning multiple tags and lines below here.

+ + +             +
+
+
+
+

Embedded content

+
+
+
+

Images

+
+ +

Plain <img> element

+

Placeholder image

+

<figure> element with <img> element

+
Placeholder image
+

<figure> element with <img> and + <figcaption> elements +

+
+ Placeholder image +
Here is a caption for this image.
+
+

<figure> element with a <picture> element

+
+ + + Placeholder image + +
Here is a caption for this image.
+
+ + +
+
+
+

Background images

+
+
+
+ +
+
+
+

Audio

+
+ + +
+
+
+

Video

+
+ + +
+
+
+

Canvas

+
+ canvas + +
+
+
+

Meter

+
+ 2 out of 10 + +
+
+
+

Progress

+
+ + progress + + 30% + +
+
+
+

Inline SVG

+
+ + + + +
+
+
+

IFrame

+
+ + +
+
+
+

Embed

+
+ + +
+
+
+

Object

+
+ + +
+
+
+

Dialog

+
+ + +

Dialog

+

Dialogs are a new HTML5 element that can be used to create modal dialogs or pop-up windows.

+
+ +
+
+ +
+
+
+
+

Form elements

+
+
+
+ Input fields +

+ + +

+

+ + +

+

+ + +

+

+ + +

+

+ + +

+

+ + +

+

+ + +

+

+ + +

+
+

[Top]

+
+ Select menus +

+ + +

+

+ + +

+
+

[Top]

+
+ Checkboxes +

Nested label > input

+
    +
  • +
  • +
  • +
+

Sibling input + label

+
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
+
+

[Top]

+
+ Radio buttons +

Nested label > input

+
    +
  • +
  • +
  • +
+

Sibling input + label

+
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
+
+

[Top]

+
+ Textareas +

+ + +

+
+

[Top]

+
+ HTML5 inputs +

+ + +

+

+ + +

+

+ + +

+

+ + +

+

+ + +

+

+ + +

+

+ + +

+

+ + +

+

+ + + + +

+
+

[Top]

+
+ Action buttons +

+ + + + +

+

+ + + + +

+

+ <a class=button> + <a class=button aria-disabled=true> +

+
+

[Top]

+
+
+
+ + + + diff --git a/index.html b/index.html new file mode 100644 index 0000000..2a64fed --- /dev/null +++ b/index.html @@ -0,0 +1,1108 @@ + + + + + + + Simple.css Test Page + + + + + + + + + + + + +
+

Simple.css Test Page

+

This is a test page filled with common HTML elements.

+ +
+ +
+
+
+

Text

+
+
+
+

Headings

+
+ +

Heading 1

+

Heading 2

+

Heading 3

+

Heading 4

+
Heading 5
+
Heading 6
+ + +
+
+
+

Paragraphs

+
+ +

A paragraph (from the Greek paragraphos, “to write beside” or “written beside”) is a + self-contained unit of a discourse in writing dealing with a particular point or idea. A + paragraph consists of one or more sentences. Though not required by the syntax of any + language, paragraphs are usually an expected part of formal writing, used to organize longer + prose.

+ + +
+
+
+

Blockquotes

+
+ +
+

A block quotation (also known as a long quotation or extract) is a quotation in a written + document, that is set off from the main text as a paragraph, or block of text.

+

It is typically distinguished visually using indentation and a different typeface or + smaller size quotation. It may or may not include a citation, usually placed at the + bottom.

+ Said no one, ever. +
+ + +
+
+
+

Asides

+
+ +

Lorem ipsum dolor sit, amet consectetur adipisicing elit. Rerum eligendi optio ipsa nemo assumenda mollitia inventore neque dolores animi ratione libero qui dolorem, distinctio aut, quae, iste, cumque nihil enim!

+

Lorem, ipsum dolor sit amet consectetur adipisicing elit. Dolorum perspiciatis corrupti eaque tempore autem doloremque, placeat, in earum ab maxime commodi tenetur quos provident fugit assumenda, consequatur vero ipsum, et.

+

Lorem ipsum dolor sit amet consectetur adipisicing, elit. Molestias, facilis. Dolores rerum omnis, adipisci odit ipsa, autem animi molestiae fugit temporibus fuga dignissimos, commodi et, itaque quo voluptatem recusandae voluptatibus.

+ +
+
+
+

Lists

+
+ +

Description list

+
+
Description term
+
Description details.
+
Additional details.
+
Description term
+
This is a second term
+
This is a third term
+
Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptas, modi iure! Incidunt, dolorum sit? Dolorum cumque omnis accusantium doloremque nihil est perferendis voluptas delectus, quis aperiam blanditiis deleniti modi at. Lorem ipsum dolor sit amet consectetur adipisicing elit. Vel, perspiciatis, vero accusantium sed dicta exercitationem iure praesentium nobis esse ullam sunt cum blanditiis! Neque similique corporis animi voluptatibus et modi.
+
+

Ordered List

+
    +
  1. List Item 1
  2. +
  3. + List Item 2 +
      +
    1. List Item 1
    2. +
    3. + List Item 2 +
        +
      1. List Item 1
      2. +
      3. + List Item 2 +
          +
        1. List Item 1
        2. +
        3. + List Item 2 +
            +
          1. List Item 1
          2. +
          3. List Item 2
          4. +
          5. List Item 3
          6. +
          +
        4. +
        5. List Item 3
        6. +
        +
      4. +
      5. List Item 3
      6. +
      +
    4. +
    5. List Item 3
    6. +
    +
  4. +
  5. List Item 3
  6. +
+

Unordered List

+
    +
  • List Item 1
  • +
  • + List Item 2 +
      +
    • List Item 1
    • +
    • + List Item 2 +
        +
      • List Item 1
      • +
      • + List Item 2 +
          +
        • List Item 1
        • +
        • + List Item 2 +
            +
          • List Item 1
          • +
          • List Item 2
          • +
          • List Item 3
          • +
          +
        • +
        • List Item 3
        • +
        +
      • +
      • List Item 3
      • +
      +
    • +
    • List Item 3
    • +
    +
  • +
  • List Item 3
  • +
+ + +
+
+
+

Details / Summary

+
+
+ Expand for details +

Lorem ipsum dolor sit amet consectetur adipisicing elit. Cum, odio! Odio natus ullam ad + quaerat, eaque necessitatibus, aliquid distinctio similique voluptatibus dicta consequuntur + animi. Quaerat facilis quidem unde eos! Ipsa.

+
+ +
+
+
+

Address

+
+
+ Written by Jon Doe.
+ Visit us at:
+ Example.com
+ Box 564, Disneyland
+ USA +
+ +
+
+
+

Horizontal rules

+
+

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do + eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim + ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut + aliquip ex ea commodo consequat. Duis aute irure dolor in + reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla + pariatur. Excepteur sint occaecat cupidatat non proident, sunt in + culpa qui officia deserunt mollit anim id est laborum. +

+

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do + eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim + ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut + aliquip ex ea commodo consequat. Duis aute irure dolor in + reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla + pariatur. Excepteur sint occaecat cupidatat non proident, sunt in + culpa qui officia deserunt mollit anim id est laborum. +

+
+

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do + eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim + ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut + aliquip ex ea commodo consequat. Duis aute irure dolor in + reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla + pariatur. Excepteur sint occaecat cupidatat non proident, sunt in + culpa qui officia deserunt mollit anim id est laborum. +

+

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do + eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim + ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut + aliquip ex ea commodo consequat. Duis aute irure dolor in + reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla + pariatur. Excepteur sint occaecat cupidatat non proident, sunt in + culpa qui officia deserunt mollit anim id est laborum. +

+ +
+
+
+

Tabular data

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table Caption
Table Heading 1Table Heading 2Table Heading 3Table Heading 4Table Heading 5
Table Footer 1Table Footer 2Table Footer 3Table Footer 4Table Footer 5
Table Cell 1Table Cell 2Table Cell 3Table Cell 4Table Cell 5
Table Cell 1Table Cell 2Table Cell 3Table Cell 4Table Cell 5
Table Cell 1Table Cell 2Table Cell 3Table Cell 4Table Cell 5
Table Cell 1Table Cell 2Table Cell 3Table Cell 4Table Cell 5
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Overflowing table
Header_1Header_2Header_3Header_4Header_5Header_6Header_7Header_8Header_9Header_10
Row:1 Cell:1Row:1 Cell:2Row:1 Cell:3Row:1 Cell:4Row:1 Cell:5Row:1 Cell:6Row:1 Cell:7Row:1 Cell:8Row:1 Cell:9Row:1 Cell:10
Row:2 Cell:1Row:2 Cell:2Row:2 Cell:3Row:2 Cell:4Row:2 Cell:5Row:2 Cell:6Row:2 Cell:7Row:2 Cell:8Row:2 Cell:9Row:2 Cell:10
Row:3 Cell:1Row:3 Cell:2Row:3 Cell:3Row:3 Cell:4Row:3 Cell:5Row:3 Cell:6Row:3 Cell:7Row:3 Cell:8Row:3 Cell:9Row:3 Cell:10
Row:4 Cell:1Row:4 Cell:2Row:4 Cell:3Row:4 Cell:4Row:4 Cell:5Row:4 Cell:6Row:4 Cell:7Row:4 Cell:8Row:4 Cell:9Row:4 Cell:10
Row:5 Cell:1Row:5 Cell:2Row:5 Cell:3Row:5 Cell:4Row:5 Cell:5Row:5 Cell:6Row:5 Cell:7Row:5 Cell:8Row:5 Cell:9Row:5 Cell:10
Row:6 Cell:1Row:6 Cell:2Row:6 Cell:3Row:6 Cell:4Row:6 Cell:5Row:6 Cell:6Row:6 Cell:7Row:6 Cell:8Row:6 Cell:9Row:6 Cell:10
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Overflowing table in figure
Header_1Header_2Header_3Header_4Header_5Header_6Header_7Header_8Header_9Header_10
Row:1 Cell:1Row:1 Cell:2Row:1 Cell:3Row:1 Cell:4Row:1 Cell:5Row:1 Cell:6Row:1 Cell:7Row:1 Cell:8Row:1 Cell:9Row:1 Cell:10
Row:2 Cell:1Row:2 Cell:2Row:2 Cell:3Row:2 Cell:4Row:2 Cell:5Row:2 Cell:6Row:2 Cell:7Row:2 Cell:8Row:2 Cell:9Row:2 Cell:10
Row:3 Cell:1Row:3 Cell:2Row:3 Cell:3Row:3 Cell:4Row:3 Cell:5Row:3 Cell:6Row:3 Cell:7Row:3 Cell:8Row:3 Cell:9Row:3 Cell:10
Row:4 Cell:1Row:4 Cell:2Row:4 Cell:3Row:4 Cell:4Row:4 Cell:5Row:4 Cell:6Row:4 Cell:7Row:4 Cell:8Row:4 Cell:9Row:4 Cell:10
Row:5 Cell:1Row:5 Cell:2Row:5 Cell:3Row:5 Cell:4Row:5 Cell:5Row:5 Cell:6Row:5 Cell:7Row:5 Cell:8Row:5 Cell:9Row:5 Cell:10
Row:6 Cell:1Row:6 Cell:2Row:6 Cell:3Row:6 Cell:4Row:6 Cell:5Row:6 Cell:6Row:6 Cell:7Row:6 Cell:8Row:6 Cell:9Row:6 Cell:10
+
Table in figure
+
+
+ Overflowing table in details + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Overflowing table
Header_1Header_2Header_3Header_4Header_5Header_6Header_7Header_8Header_9Header_10
Row:1 Cell:1Row:1 Cell:2Row:1 Cell:3Row:1 Cell:4Row:1 Cell:5Row:1 Cell:6Row:1 Cell:7Row:1 Cell:8Row:1 Cell:9Row:1 Cell:10
Row:2 Cell:1Row:2 Cell:2Row:2 Cell:3Row:2 Cell:4Row:2 Cell:5Row:2 Cell:6Row:2 Cell:7Row:2 Cell:8Row:2 Cell:9Row:2 Cell:10
Row:3 Cell:1Row:3 Cell:2Row:3 Cell:3Row:3 Cell:4Row:3 Cell:5Row:3 Cell:6Row:3 Cell:7Row:3 Cell:8Row:3 Cell:9Row:3 Cell:10
Row:4 Cell:1Row:4 Cell:2Row:4 Cell:3Row:4 Cell:4Row:4 Cell:5Row:4 Cell:6Row:4 Cell:7Row:4 Cell:8Row:4 Cell:9Row:4 Cell:10
Row:5 Cell:1Row:5 Cell:2Row:5 Cell:3Row:5 Cell:4Row:5 Cell:5Row:5 Cell:6Row:5 Cell:7Row:5 Cell:8Row:5 Cell:9Row:5 Cell:10
Row:6 Cell:1Row:6 Cell:2Row:6 Cell:3Row:6 Cell:4Row:6 Cell:5Row:6 Cell:6Row:6 Cell:7Row:6 Cell:8Row:6 Cell:9Row:6 Cell:10
+
+ +
+
+
+

Code

+
+ +

Keyboard input: Cmd

+

Inline code: <div>code</div>

+

Sample output: This is sample output from a computer program. +

+

Pre-formatted text

+
P R E F O R M A T T E D T E X T
+	! " # $ % & ' ( ) * + , - . /
+	0 1 2 3 4 5 6 7 8 9 : ; < = > ?
+	@ A B C D E F G H I J K L M N O
+	P Q R S T U V W X Y Z [ \ ] ^ _
+	` a b c d e f g h i j k l m n o
+	p q r s t u v w x y z { | } ~ 
+ + +
+
+
+

Text Sections

+
+
+

Header 1

+

Test section 1

+
+
+

Header 2

+

Test section 2

+
+
+

Header 3

+

Test section 3

+
+
+
+
+

Inline elements

+
+ +

This is a text link.

+

Strong is used to indicate strong importance.

+

This text has added emphasis.

+

The b element is stylistically different text from normal text, without any special + importance.

+

The i element is text that is offset from the normal text.

+

The u element is text with an unarticulated, though explicitly rendered, non-textual + annotation.

+

This text is deleted and This text is inserted.

+

This text has a strikethrough.

+

Superscript®.

+

Subscript for things like H2O.

+

This small text is small for fine print, etc.

+

Abbreviation: HTML

+

This text is a short inline + quotation.

+

This is a citation.

+

The dfn element indicates a definition.

+

The mark element indicates a highlight.

+

The variable element, such as x = y.

+

The time element:

+ + +
+
+
+

HTML Comments

+
+ +

There is comment here: + +

+

There is a comment spanning multiple tags and lines below here.

+ + +             +
+
+
+
+

Embedded content

+
+
+
+

Images

+
+ +

Plain <img> element

+

Placeholder image

+

<figure> element with <img> element

+
Placeholder image
+

<figure> element with <img> and + <figcaption> elements +

+
+ Placeholder image +
Here is a caption for this image.
+
+

<figure> element with a <picture> element

+
+ + + Placeholder image + +
Here is a caption for this image.
+
+ + +
+
+
+

Background images

+
+
+
+ +
+
+
+

Audio

+
+ + +
+
+
+

Video

+
+ + +
+
+
+

Canvas

+
+ canvas + +
+
+
+

Meter

+
+ 2 out of 10 + +
+
+
+

Progress

+
+ + progress + + 30% + +
+
+
+

Inline SVG

+
+ + + + +
+
+
+

IFrame

+
+ + +
+
+
+

Embed

+
+ + +
+
+
+

Object

+
+ + +
+
+
+

Dialog

+
+ + +

Dialog

+

Dialogs are a new HTML5 element that can be used to create modal dialogs or pop-up windows.

+
+ +
+
+ +
+
+
+
+

Form elements

+
+
+
+ Input fields +

+ + +

+

+ + +

+

+ + +

+

+ + +

+

+ + +

+

+ + +

+

+ + +

+

+ + +

+
+

[Top]

+
+ Select menus +

+ + +

+

+ + +

+
+

[Top]

+
+ Checkboxes +

Nested label > input

+
    +
  • +
  • +
  • +
+

Sibling input + label

+
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
+
+

[Top]

+
+ Radio buttons +

Nested label > input

+
    +
  • +
  • +
  • +
+

Sibling input + label

+
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
+
+

[Top]

+
+ Textareas +

+ + +

+
+

[Top]

+
+ HTML5 inputs +

+ + +

+

+ + +

+

+ + +

+

+ + +

+

+ + +

+

+ + +

+

+ + +

+

+ + +

+

+ + + + +

+
+

[Top]

+
+ Action buttons +

+ + + + +

+

+ + + + +

+

+ <a class=button> + <a class=button aria-disabled=true> +

+
+

[Top]

+
+
+
+ + + + diff --git a/settings.php b/settings.php new file mode 100755 index 0000000..7ee12bc --- /dev/null +++ b/settings.php @@ -0,0 +1,27 @@ +query('SELECT description FROM site WHERE id = 1'); + +while ($row = $getName->fetchArray()) { + $SiteName = $row['description']; +} + +$getSubName = $sitesettings->query('SELECT description FROM site WHERE id = 2'); + +while ($row = $getSubName->fetchArray()) { + $SubName = $row['description']; +} + +$getURL = $sitesettings->query('SELECT description FROM site WHERE id = 3'); + +while ($row = $getURL->fetchArray()) { + $SiteURL = $row['description']; +} + + +?> \ No newline at end of file diff --git a/settings.sqlite b/settings.sqlite new file mode 100755 index 0000000..433ba4a Binary files /dev/null and b/settings.sqlite differ diff --git a/simple-v1.css b/simple-v1.css new file mode 100644 index 0000000..b0f123e --- /dev/null +++ b/simple-v1.css @@ -0,0 +1,511 @@ +/* Set the global variables for everything. Change these to use your own fonts and colours. */ +:root { + /* Set sans-serif & mono fonts */ + --sans-font: -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir, + "Nimbus Sans L", Roboto, Noto, "Segoe UI", Arial, Helvetica, + "Helvetica Neue", sans-serif; + --mono-font: Consolas, Menlo, Monaco, "Andale Mono", "Ubuntu Mono", monospace; + + /* Body font size. By default, effectively 18.4px, based on 16px as 'root em' */ + --base-fontsize: 1.15rem; + + /* Major third scale progression - see https://type-scale.com/ */ + --header-scale: 1.25; + + /* Line height is set to the "Golden ratio" for optimal legibility */ + --line-height: 1.618; + + /* Default (light) theme */ + --bg: #fff; + --accent-bg: #f5f7ff; + --text: #212121; + --text-light: #585858; + --border: #d8dae1; + --accent: #0d47a1; + --accent-light: #90caf9; + --code: #d81b60; + --preformatted: #444; + --marked: #ffdd33; + --disabled: #efefef; +} + +/* Dark theme */ +@media (prefers-color-scheme: dark) { + :root { + --bg: #212121; + --accent-bg: #2b2b2b; + --text: #dcdcdc; + --text-light: #ababab; + --border: #666; + --accent: #ffb300; + --accent-light: #ffecb3; + --code: #f06292; + --preformatted: #ccc; + --disabled: #111; + } + + img, + video { + opacity: 0.6; + } +} + +html { + /* Set the font globally */ + font-family: var(--sans-font); +} + +/* Make the body a nice central block */ +body { + color: var(--text); + background: var(--bg); + font-size: var(--base-fontsize); + line-height: var(--line-height); + display: flex; + min-height: 100vh; + flex-direction: column; + flex: 1; + margin: 0 auto; + max-width: 45rem; + padding: 0 0.5rem; + overflow-x: hidden; + word-break: break-word; + overflow-wrap: break-word; +} + +/* Make the header bg full width, but the content inline with body */ +header { + background: var(--accent-bg); + border-bottom: 1px solid var(--border); + text-align: center; + padding: 2rem 0.5rem; + width: 100vw; + position: relative; + box-sizing: border-box; + left: 50%; + right: 50%; + margin-left: -50vw; + margin-right: -50vw; +} + +/* Remove margins for header text */ +header h1, +header p { + margin: 0; +} + +/* Add a little padding to ensure spacing is correct between content and nav */ +main { + padding-top: 1.5rem; +} + +/* Fix line height when title wraps */ +h1, +h2, +h3 { + line-height: 1.1; +} + +/* Format navigation */ +nav { + font-size: 1rem; + line-height: 2; + padding: 1rem 0; +} + +nav a { + margin: 1rem 1rem 0 0; + border: 1px solid var(--border); + border-radius: 5px; + color: var(--text) !important; + display: inline-block; + padding: 0.1rem 1rem; + text-decoration: none; + transition: 0.4s; +} + +nav a:hover { + color: var(--accent) !important; + border-color: var(--accent); +} + +nav a.current:hover { + text-decoration: none; +} + +footer { + margin-top: 4rem; + padding: 2rem 1rem 1.5rem 1rem; + color: var(--text-light); + font-size: 0.9rem; + text-align: center; + border-top: 1px solid var(--border); +} + +/* Format headers */ +h1 { + font-size: calc( + var(--base-fontsize) * var(--header-scale) * var(--header-scale) * + var(--header-scale) * var(--header-scale) + ); + margin-top: calc(var(--line-height) * 1.5rem); +} + +h2 { + font-size: calc( + var(--base-fontsize) * var(--header-scale) * var(--header-scale) * + var(--header-scale) + ); + margin-top: calc(var(--line-height) * 1.5rem); +} + +h3 { + font-size: calc( + var(--base-fontsize) * var(--header-scale) * var(--header-scale) + ); + margin-top: calc(var(--line-height) * 1.5rem); +} + +h4 { + font-size: calc(var(--base-fontsize) * var(--header-scale)); + margin-top: calc(var(--line-height) * 1.5rem); +} + +h5 { + font-size: var(--base-fontsize); + margin-top: calc(var(--line-height) * 1.5rem); +} + +h6 { + font-size: calc(var(--base-fontsize) / var(--header-scale)); + margin-top: calc(var(--line-height) * 1.5rem); +} + +/* Format links & buttons */ +a, +a:visited { + color: var(--accent); +} + +a:hover { + text-decoration: none; +} + +a button, +button, +[role="button"], +input[type="submit"], +input[type="reset"], +input[type="button"] { + border: none; + border-radius: 5px; + background: var(--accent); + font-size: 1rem; + color: var(--bg); + padding: 0.7rem 0.9rem; + margin: 0.5rem 0; + transition: 0.4s; +} + +a button[disabled], +button[disabled], +[role="button"][aria-disabled="true"], +input[type="submit"][disabled], +input[type="reset"][disabled], +input[type="button"][disabled], +input[type="checkbox"][disabled], +input[type="radio"][disabled], +select[disabled] { + cursor: default; + opacity: 0.5; + cursor: not-allowed; +} + +input:disabled, +textarea:disabled, +select:disabled { + cursor: not-allowed; + background-color: var(--disabled); +} + +input[type="range"] { + padding: 0; +} + +/* Set the cursor to '?' while hovering over an abbreviation */ +abbr { + cursor: help; +} + +button:focus, +button:enabled:hover, +[role="button"]:focus, +[role="button"]:not([aria-disabled="true"]):hover, +input[type="submit"]:focus, +input[type="submit"]:enabled:hover, +input[type="reset"]:focus, +input[type="reset"]:enabled:hover, +input[type="button"]:focus, +input[type="button"]:enabled:hover, +input[type="checkbox"]:focus, +input[type="checkbox"]:enabled:hover, +input[type="radio"]:focus, +input[type="radio"]:enabled:hover { + filter: brightness(1.4); + cursor: pointer; +} + +/* Format the expanding box */ +details { + background: var(--accent-bg); + border: 1px solid var(--border); + border-radius: 5px; + margin-bottom: 1rem; +} + +summary { + cursor: pointer; + font-weight: bold; + padding: 0.6rem 1rem; +} + +details[open] { + padding: 0.6rem 1rem 0.75rem 1rem; +} + +details[open] summary { + margin-bottom: 0.5rem; + padding: 0; +} + +details[open] > *:last-child { + margin-bottom: 0; +} + +/* Format tables */ +table { + border-collapse: collapse; + width: 100%; + margin: 1.5rem 0; +} + +td, +th { + border: 1px solid var(--border); + text-align: left; + padding: 0.5rem; +} + +th { + background: var(--accent-bg); + font-weight: bold; +} + +tr:nth-child(even) { + /* Set every other cell slightly darker. Improves readability. */ + background: var(--accent-bg); +} + +table caption { + font-weight: bold; + margin-bottom: 0.5rem; +} + +/* Lists */ +ol, +ul { + padding-left: 3rem; +} + +/* Format forms */ +textarea, +select, +input { + font-size: inherit; + font-family: inherit; + padding: 0.5rem; + margin-bottom: 0.5rem; + color: var(--text); + background: var(--bg); + border: 1px solid var(--border); + border-radius: 5px; + box-shadow: none; + box-sizing: border-box; + width: 60%; + -moz-appearance: none; + -webkit-appearance: none; + appearance: none; +} + +/* Add arrow to */ +select { + background-image: linear-gradient(45deg, transparent 49%, var(--text) 51%), + linear-gradient(135deg, var(--text) 51%, transparent 49%); + background-position: calc(100% - 20px), calc(100% - 15px); + background-size: 5px 5px, 5px 5px; + background-repeat: no-repeat; +} + +select[multiple] { + background-image: none !important; +} + +/* checkbox and radio button style */ +input[type="checkbox"], +input[type="radio"] { + vertical-align: bottom; + position: relative; +} + +input[type="radio"] { + border-radius: 100%; +} + +input[type="checkbox"]:checked, +input[type="radio"]:checked { + background: var(--accent); +} + +input[type="checkbox"]:checked::after { + /* Creates a rectangle with colored right and bottom borders which is rotated to look like a check mark */ + content: " "; + width: 0.1em; + height: 0.25em; + border-radius: 0; + position: absolute; + top: 0.05em; + left: 0.18em; + background: transparent; + border-right: solid var(--bg) 0.08em; + border-bottom: solid var(--bg) 0.08em; + font-size: 1.8em; + transform: rotate(45deg); +} +input[type="radio"]:checked::after { + /* creates a colored circle for the checked radio button */ + content: " "; + width: 0.25em; + height: 0.25em; + border-radius: 100%; + position: absolute; + top: 0.125em; + background: var(--bg); + left: 0.125em; + font-size: 32px; +} + +/* Make the textarea wider than other inputs */ +textarea { + width: 80%; +} + +/* Makes input fields wider on smaller screens */ +@media only screen and (max-width: 720px) { + textarea, + select, + input { + width: 100%; + } +} + +/* Ensures the checkbox and radio inputs do not have a set width like other input fields */ +input[type="checkbox"], +input[type="radio"] { + width: auto; +} + +/* do not show border around file selector button */ +input[type="file"] { + border: 0; +} + +/* Without this any HTML using
shows ugly borders and has additional padding/margin. (Issue #3) */ +fieldset { + border: 0; + padding: 0; + margin: 0; +} + +/* Misc body elements */ + +hr { + color: var(--border); + border-top: 1px; + margin: 1rem auto; +} + +mark { + padding: 2px 5px; + border-radius: 4px; + background: var(--marked); +} + +main img, +main video { + max-width: 100%; + height: auto; + border-radius: 5px; +} + +figure { + margin: 0; +} + +figcaption { + font-size: 0.9rem; + color: var(--text-light); + text-align: center; + margin-bottom: 1rem; +} + +blockquote { + margin: 2rem 0 2rem 2rem; + padding: 0.4rem 0.8rem; + border-left: 0.35rem solid var(--accent); + opacity: 0.8; + font-style: italic; +} + +cite { + font-size: 0.9rem; + color: var(--text-light); + font-style: normal; +} + +/* Use mono font for code like elements */ +code, +pre, +pre span, +kbd, +samp { + font-size: 1.075rem; + font-family: var(--mono-font); + color: var(--code); +} + +kbd { + color: var(--preformatted); + border: 1px solid var(--preformatted); + border-bottom: 3px solid var(--preformatted); + border-radius: 5px; + padding: 0.1rem; +} + +pre { + padding: 1rem 1.4rem; + max-width: 100%; + overflow: auto; + overflow-x: auto; + color: var(--preformatted); + background: var(--accent-bg); + border: 1px solid var(--border); + border-radius: 5px; +} + +/* Fix embedded code within pre */ +pre code { + color: var(--preformatted); + background: none; + margin: 0; + padding: 0; +} diff --git a/simple-v1.min.css b/simple-v1.min.css new file mode 100644 index 0000000..2668b58 --- /dev/null +++ b/simple-v1.min.css @@ -0,0 +1 @@ +:root{--sans-font:-apple-system,BlinkMacSystemFont,"Avenir Next",Avenir,"Nimbus Sans L",Roboto,Noto,"Segoe UI",Arial,Helvetica,"Helvetica Neue",sans-serif;--mono-font:Consolas,Menlo,Monaco,"Andale Mono","Ubuntu Mono",monospace;--base-fontsize:1.15rem;--header-scale:1.25;--line-height:1.618;--bg:#fff;--accent-bg:#f5f7ff;--text:#212121;--text-light:#585858;--border:#d8dae1;--accent:#0d47a1;--accent-light:#90caf9;--code:#d81b60;--preformatted:#444;--marked:#fd3;--disabled:#efefef}@media (prefers-color-scheme:dark){:root{--bg:#212121;--accent-bg:#2b2b2b;--text:#dcdcdc;--text-light:#ababab;--border:#666;--accent:#ffb300;--accent-light:#ffecb3;--code:#f06292;--preformatted:#ccc;--disabled:#111}img,video{opacity:.6}}html{font-family:var(--sans-font)}body{color:var(--text);background:var(--bg);font-size:var(--base-fontsize);line-height:var(--line-height);word-break:break-word;overflow-wrap:break-word;flex-direction:column;flex:1;max-width:45rem;min-height:100vh;margin:0 auto;padding:0 .5rem;display:flex;overflow-x:hidden}header{background:var(--accent-bg);border-bottom:1px solid var(--border);text-align:center;box-sizing:border-box;width:100vw;margin-left:-50vw;margin-right:-50vw;padding:2rem .5rem;position:relative;left:50%;right:50%}header h1,header p{margin:0}main{padding-top:1.5rem}h1,h2,h3{line-height:1.1}nav{padding:1rem 0;font-size:1rem;line-height:2}nav a{border:1px solid var(--border);border-radius:5px;margin:1rem 1rem 0 0;padding:.1rem 1rem;text-decoration:none;transition:all .4s;display:inline-block;color:var(--text)!important}nav a:hover{border-color:var(--accent);color:var(--accent)!important}nav a.current:hover{text-decoration:none}footer{color:var(--text-light);text-align:center;border-top:1px solid var(--border);margin-top:4rem;padding:2rem 1rem 1.5rem;font-size:.9rem}h1{font-size:calc(var(--base-fontsize)*var(--header-scale)*var(--header-scale)*var(--header-scale)*var(--header-scale));margin-top:calc(var(--line-height)*1.5rem)}h2{font-size:calc(var(--base-fontsize)*var(--header-scale)*var(--header-scale)*var(--header-scale));margin-top:calc(var(--line-height)*1.5rem)}h3{font-size:calc(var(--base-fontsize)*var(--header-scale)*var(--header-scale));margin-top:calc(var(--line-height)*1.5rem)}h4{font-size:calc(var(--base-fontsize)*var(--header-scale));margin-top:calc(var(--line-height)*1.5rem)}h5{font-size:var(--base-fontsize);margin-top:calc(var(--line-height)*1.5rem)}h6{font-size:calc(var(--base-fontsize)/var(--header-scale));margin-top:calc(var(--line-height)*1.5rem)}a,a:visited{color:var(--accent)}a:hover{text-decoration:none}a button,button,[role=button],input[type=submit],input[type=reset],input[type=button]{background:var(--accent);color:var(--bg);border:none;border-radius:5px;margin:.5rem 0;padding:.7rem .9rem;font-size:1rem;transition:all .4s}a button[disabled],button[disabled],[role=button][aria-disabled=true],input[type=submit][disabled],input[type=reset][disabled],input[type=button][disabled],input[type=checkbox][disabled],input[type=radio][disabled],select[disabled]{cursor:default;opacity:.5;cursor:not-allowed}input:disabled,textarea:disabled,select:disabled{cursor:not-allowed;background-color:var(--disabled)}input[type=range]{padding:0}abbr{cursor:help}button:focus,button:enabled:hover,[role=button]:focus,[role=button]:not([aria-disabled=true]):hover,input[type=submit]:focus,input[type=submit]:enabled:hover,input[type=reset]:focus,input[type=reset]:enabled:hover,input[type=button]:focus,input[type=button]:enabled:hover,input[type=checkbox]:focus,input[type=checkbox]:enabled:hover,input[type=radio]:focus,input[type=radio]:enabled:hover{filter:brightness(1.4);cursor:pointer}details{background:var(--accent-bg);border:1px solid var(--border);border-radius:5px;margin-bottom:1rem}summary{cursor:pointer;padding:.6rem 1rem;font-weight:700}details[open]{padding:.6rem 1rem .75rem}details[open] summary{margin-bottom:.5rem;padding:0}details[open]>:last-child{margin-bottom:0}table{border-collapse:collapse;width:100%;margin:1.5rem 0}td,th{border:1px solid var(--border);text-align:left;padding:.5rem}th{background:var(--accent-bg);font-weight:700}tr:nth-child(2n){background:var(--accent-bg)}table caption{margin-bottom:.5rem;font-weight:700}ol,ul{padding-left:3rem}textarea,select,input{font-size:inherit;color:var(--text);background:var(--bg);border:1px solid var(--border);box-shadow:none;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:5px;width:60%;margin-bottom:.5rem;padding:.5rem;font-family:inherit}select{background-image:linear-gradient(45deg,transparent 49%,var(--text)51%),linear-gradient(135deg,var(--text)51%,transparent 49%);background-position:calc(100% - 20px),calc(100% - 15px);background-repeat:no-repeat;background-size:5px 5px,5px 5px}select[multiple]{background-image:none!important}input[type=checkbox],input[type=radio]{vertical-align:bottom;position:relative}input[type=radio]{border-radius:100%}input[type=checkbox]:checked,input[type=radio]:checked{background:var(--accent)}input[type=checkbox]:checked:after{content:" ";border-right:solid var(--bg).08em;border-bottom:solid var(--bg).08em;background:0 0;border-radius:0;width:.1em;height:.25em;font-size:1.8em;position:absolute;top:.05em;left:.18em;transform:rotate(45deg)}input[type=radio]:checked:after{content:" ";background:var(--bg);border-radius:100%;width:.25em;height:.25em;font-size:32px;position:absolute;top:.125em;left:.125em}textarea{width:80%}@media only screen and (width<=720px){textarea,select,input{width:100%}}input[type=checkbox],input[type=radio]{width:auto}input[type=file]{border:0}fieldset{border:0;margin:0;padding:0}hr{color:var(--border);border-top:1px;margin:1rem auto}mark{background:var(--marked);border-radius:4px;padding:2px 5px}main img,main video{border-radius:5px;max-width:100%;height:auto}figure{margin:0}figcaption{color:var(--text-light);text-align:center;margin-bottom:1rem;font-size:.9rem}blockquote{border-left:.35rem solid var(--accent);opacity:.8;margin:2rem 0 2rem 2rem;padding:.4rem .8rem;font-style:italic}cite{color:var(--text-light);font-size:.9rem;font-style:normal}code,pre,pre span,kbd,samp{font-size:1.075rem;font-family:var(--mono-font);color:var(--code)}kbd{color:var(--preformatted);border:1px solid var(--preformatted);border-bottom:3px solid var(--preformatted);border-radius:5px;padding:.1rem}pre{color:var(--preformatted);background:var(--accent-bg);border:1px solid var(--border);border-radius:5px;max-width:100%;padding:1rem 1.4rem;overflow:auto}pre code{color:var(--preformatted);background:0 0;margin:0;padding:0} \ No newline at end of file diff --git a/simple.css b/simple.css new file mode 100644 index 0000000..e001e40 --- /dev/null +++ b/simple.css @@ -0,0 +1,712 @@ +/* Global variables. */ +:root, +::backdrop { + /* Set sans-serif & mono fonts */ + --sans-font: -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir, + "Nimbus Sans L", Roboto, "Noto Sans", "Segoe UI", Arial, Helvetica, + "Helvetica Neue", sans-serif; + --mono-font: Consolas, Menlo, Monaco, "Andale Mono", "Ubuntu Mono", monospace; + --standard-border-radius: 5px; + + /* Default (light) theme */ + --bg: #fff; + --accent-bg: #f5f7ff; + --text: #212121; + --text-light: #585858; + --border: #898EA4; + --accent: #0d47a1; + --accent-hover: #1266e2; + --accent-text: var(--bg); + --code: #d81b60; + --preformatted: #444; + --marked: #ffdd33; + --disabled: #efefef; +} + +/* Dark theme */ +@media (prefers-color-scheme: dark) { + :root, + ::backdrop { + color-scheme: dark; + --bg: #212121; + --accent-bg: #2b2b2b; + --text: #dcdcdc; + --text-light: #ababab; + --accent: #ffb300; + --accent-hover: #ffe099; + --accent-text: var(--bg); + --code: #f06292; + --preformatted: #ccc; + --disabled: #111; + } + /* Add a bit of transparency so light media isn't so glaring in dark mode */ + img, + video { + opacity: 0.8; + } +} + +/* Reset box-sizing */ +*, *::before, *::after { + box-sizing: border-box; +} + +/* Reset default appearance */ +textarea, +select, +input, +progress { + appearance: none; + -webkit-appearance: none; + -moz-appearance: none; +} + +html { + /* Set the font globally */ + font-family: var(--sans-font); + scroll-behavior: smooth; +} + +/* Make the body a nice central block */ +body { + color: var(--text); + background-color: var(--bg); + font-size: 1.15rem; + line-height: 1.5; + display: grid; + grid-template-columns: 1fr min(45rem, 90%) 1fr; + margin: 0; +} +body > * { + grid-column: 2; +} + +/* Make the header bg full width, but the content inline with body */ +body > header { + background-color: var(--accent-bg); + border-bottom: 1px solid var(--border); + text-align: center; + padding: 0 0.5rem 2rem 0.5rem; + grid-column: 1 / -1; +} + +body > header > *:only-child { + margin-block-start: 2rem; +} + +body > header h1 { + max-width: 1200px; + margin: 1rem auto; +} + +body > header p { + max-width: 40rem; + margin: 1rem auto; +} + +/* Add a little padding to ensure spacing is correct between content and header > nav */ +main { + padding-top: 1.5rem; +} + +body > footer { + margin-top: 4rem; + padding: 2rem 1rem 1.5rem 1rem; + color: var(--text-light); + font-size: 0.9rem; + text-align: center; + border-top: 1px solid var(--border); +} + +/* Format headers */ +h1 { + font-size: 3rem; +} + +h2 { + font-size: 2.6rem; + margin-top: 3rem; +} + +h3 { + font-size: 2rem; + margin-top: 3rem; +} + +h4 { + font-size: 1.44rem; +} + +h5 { + font-size: 1.15rem; +} + +h6 { + font-size: 0.96rem; +} + +p { + margin: 1.5rem 0; +} + +/* Prevent long strings from overflowing container */ +p, h1, h2, h3, h4, h5, h6 { + overflow-wrap: break-word; +} + +/* Fix line height when title wraps */ +h1, +h2, +h3 { + line-height: 1.1; +} + +/* Reduce header size on mobile */ +@media only screen and (max-width: 720px) { + h1 { + font-size: 2.5rem; + } + + h2 { + font-size: 2.1rem; + } + + h3 { + font-size: 1.75rem; + } + + h4 { + font-size: 1.25rem; + } +} + +/* Format links & buttons */ +a, +a:visited { + color: var(--accent); +} + +a:hover { + text-decoration: none; +} + +button, +.button, +a.button, /* extra specificity to override a */ +input[type="submit"], +input[type="reset"], +input[type="button"], +label[type="button"] { + border: 1px solid var(--accent); + background-color: var(--accent); + color: var(--accent-text); + padding: 0.5rem 0.9rem; + text-decoration: none; + line-height: normal; +} + +.button[aria-disabled="true"], +input:disabled, +textarea:disabled, +select:disabled, +button[disabled] { + cursor: not-allowed; + background-color: var(--disabled); + border-color: var(--disabled); + color: var(--text-light); +} + +input[type="range"] { + padding: 0; +} + +/* Set the cursor to '?' on an abbreviation and style the abbreviation to show that there is more information underneath */ +abbr[title] { + cursor: help; + text-decoration-line: underline; + text-decoration-style: dotted; +} + +button:enabled:hover, +.button:not([aria-disabled="true"]):hover, +input[type="submit"]:enabled:hover, +input[type="reset"]:enabled:hover, +input[type="button"]:enabled:hover, +label[type="button"]:hover { + background-color: var(--accent-hover); + border-color: var(--accent-hover); + cursor: pointer; +} + +.button:focus-visible, +button:focus-visible:where(:enabled), +input:enabled:focus-visible:where( + [type="submit"], + [type="reset"], + [type="button"] +) { + outline: 2px solid var(--accent); + outline-offset: 1px; +} + +/* Format navigation */ +header > nav { + font-size: 1rem; + line-height: 2; + padding: 1rem 0 0 0; +} + +/* Use flexbox to allow items to wrap, as needed */ +header > nav ul, +header > nav ol { + align-content: space-around; + align-items: center; + display: flex; + flex-direction: row; + flex-wrap: wrap; + justify-content: center; + list-style-type: none; + margin: 0; + padding: 0; +} + +/* List items are inline elements, make them behave more like blocks */ +header > nav ul li, +header > nav ol li { + display: inline-block; +} + +header > nav a, +header > nav a:visited { + margin: 0 0.5rem 1rem 0.5rem; + border: 1px solid var(--border); + border-radius: var(--standard-border-radius); + color: var(--text); + display: inline-block; + padding: 0.1rem 1rem; + text-decoration: none; +} + +header > nav a:hover, +header > nav a.current, +header > nav a[aria-current="page"], +header > nav a[aria-current="true"] { + border-color: var(--accent); + color: var(--accent); + cursor: pointer; +} + +/* Reduce nav side on mobile */ +@media only screen and (max-width: 720px) { + header > nav a { + border: none; + padding: 0; + text-decoration: underline; + line-height: 1; + } +} + +/* Consolidate box styling */ +aside, details, pre, progress { + background-color: var(--accent-bg); + border: 1px solid var(--border); + border-radius: var(--standard-border-radius); + margin-bottom: 1rem; +} + +aside { + font-size: 1rem; + width: 30%; + padding: 0 15px; + margin-inline-start: 15px; + float: right; +} +*[dir="rtl"] aside { + float: left; +} + +/* Make aside full-width on mobile */ +@media only screen and (max-width: 720px) { + aside { + width: 100%; + float: none; + margin-inline-start: 0; + } +} + +article, fieldset, dialog { + border: 1px solid var(--border); + padding: 1rem; + border-radius: var(--standard-border-radius); + margin-bottom: 1rem; +} + +article h2:first-child, +section h2:first-child, +article h3:first-child, +section h3:first-child { + margin-top: 1rem; +} + +section { + border-top: 1px solid var(--border); + border-bottom: 1px solid var(--border); + padding: 2rem 1rem; + margin: 3rem 0; +} + +/* Don't double separators when chaining sections */ +section + section, +section:first-child { + border-top: 0; + padding-top: 0; +} + +section + section { + margin-top: 0; +} + +section:last-child { + border-bottom: 0; + padding-bottom: 0; +} + +details { + padding: 0.7rem 1rem; +} + +summary { + cursor: pointer; + font-weight: bold; + padding: 0.7rem 1rem; + margin: -0.7rem -1rem; + word-break: break-all; +} + +details[open] > summary + * { + margin-top: 0; +} + +details[open] > summary { + margin-bottom: 0.5rem; +} + +details[open] > :last-child { + margin-bottom: 0; +} + +/* Format tables */ +table { + border-collapse: collapse; + margin: 1.5rem 0; +} + +figure > table { + width: max-content; + margin: 0; +} + +td, +th { + border: 1px solid var(--border); + text-align: start; + padding: 0.5rem; +} + +th { + background-color: var(--accent-bg); + font-weight: bold; +} + +tr:nth-child(even) { + /* Set every other cell slightly darker. Improves readability. */ + background-color: var(--accent-bg); +} + +table caption { + font-weight: bold; + margin-bottom: 0.5rem; +} + +/* Format forms */ +textarea, +select, +input, +button, +.button { + font-size: inherit; + font-family: inherit; + padding: 0.5rem; + margin-bottom: 0.5rem; + border-radius: var(--standard-border-radius); + box-shadow: none; + max-width: 100%; + display: inline-block; +} +textarea, +select, +input { + color: var(--text); + background-color: var(--bg); + border: 1px solid var(--border); +} +label { + display: block; +} +textarea:not([cols]) { + width: 100%; +} + +/* Add arrow to drop-down */ +select:not([multiple]) { + background-image: linear-gradient(45deg, transparent 49%, var(--text) 51%), + linear-gradient(135deg, var(--text) 51%, transparent 49%); + background-position: calc(100% - 15px), calc(100% - 10px); + background-size: 5px 5px, 5px 5px; + background-repeat: no-repeat; + padding-inline-end: 25px; +} +*[dir="rtl"] select:not([multiple]) { + background-position: 10px, 15px; +} + +/* checkbox and radio button style */ +input[type="checkbox"], +input[type="radio"] { + vertical-align: middle; + position: relative; + width: min-content; +} + +input[type="checkbox"] + label, +input[type="radio"] + label { + display: inline-block; +} + +input[type="radio"] { + border-radius: 100%; +} + +input[type="checkbox"]:checked, +input[type="radio"]:checked { + background-color: var(--accent); +} + +input[type="checkbox"]:checked::after { + /* Creates a rectangle with colored right and bottom borders which is rotated to look like a check mark */ + content: " "; + width: 0.18em; + height: 0.32em; + border-radius: 0; + position: absolute; + top: 0.05em; + left: 0.17em; + background-color: transparent; + border-right: solid var(--bg) 0.08em; + border-bottom: solid var(--bg) 0.08em; + font-size: 1.8em; + transform: rotate(45deg); +} +input[type="radio"]:checked::after { + /* creates a colored circle for the checked radio button */ + content: " "; + width: 0.25em; + height: 0.25em; + border-radius: 100%; + position: absolute; + top: 0.125em; + background-color: var(--bg); + left: 0.125em; + font-size: 32px; +} + +/* Makes input fields wider on smaller screens */ +@media only screen and (max-width: 720px) { + textarea, + select, + input { + width: 100%; + } +} + +/* Set a height for color input */ +input[type="color"] { + height: 2.5rem; + padding: 0.2rem; +} + +/* do not show border around file selector button */ +input[type="file"] { + border: 0; +} + +/* Misc body elements */ +hr { + border: none; + height: 1px; + background: var(--border); + margin: 1rem auto; +} + +mark { + padding: 2px 5px; + border-radius: var(--standard-border-radius); + background-color: var(--marked); + color: black; +} + +mark a { + color: #0d47a1; +} + +img, +video { + max-width: 100%; + height: auto; + border-radius: var(--standard-border-radius); +} + +figure { + margin: 0; + display: block; + overflow-x: auto; +} + +figure > img, +figure > picture > img { + display: block; + margin-inline: auto; +} + +figcaption { + text-align: center; + font-size: 0.9rem; + color: var(--text-light); + margin-block: 1rem; +} + +blockquote { + margin-inline-start: 2rem; + margin-inline-end: 0; + margin-block: 2rem; + padding: 0.4rem 0.8rem; + border-inline-start: 0.35rem solid var(--accent); + color: var(--text-light); + font-style: italic; +} + +cite { + font-size: 0.9rem; + color: var(--text-light); + font-style: normal; +} + +dt { + color: var(--text-light); +} + +/* Use mono font for code elements */ +code, +pre, +pre span, +kbd, +samp { + font-family: var(--mono-font); + color: var(--code); +} + +kbd { + color: var(--preformatted); + border: 1px solid var(--preformatted); + border-bottom: 3px solid var(--preformatted); + border-radius: var(--standard-border-radius); + padding: 0.1rem 0.4rem; +} + +pre { + padding: 1rem 1.4rem; + max-width: 100%; + overflow: auto; + color: var(--preformatted); +} + +/* Fix embedded code within pre */ +pre code { + color: var(--preformatted); + background: none; + margin: 0; + padding: 0; +} + +/* Progress bars */ +/* Declarations are repeated because you */ +/* cannot combine vendor-specific selectors */ +progress { + width: 100%; +} + +progress:indeterminate { + background-color: var(--accent-bg); +} + +progress::-webkit-progress-bar { + border-radius: var(--standard-border-radius); + background-color: var(--accent-bg); +} + +progress::-webkit-progress-value { + border-radius: var(--standard-border-radius); + background-color: var(--accent); +} + +progress::-moz-progress-bar { + border-radius: var(--standard-border-radius); + background-color: var(--accent); + transition-property: width; + transition-duration: 0.3s; +} + +progress:indeterminate::-moz-progress-bar { + background-color: var(--accent-bg); +} + +dialog { + max-width: 40rem; + margin: auto; +} + +dialog::backdrop { + background-color: var(--bg); + opacity: 0.8; +} + +@media only screen and (max-width: 720px) { + dialog { + max-width: 100%; + margin: auto 1em; + } +} + +/* Superscript & Subscript */ +/* Prevent scripts from affecting line-height. */ +sup, sub { + vertical-align: baseline; + position: relative; +} + +sup { + top: -0.4em; +} + +sub { + top: 0.3em; +} + +/* Classes for notices */ +.notice { + background: var(--accent-bg); + border: 2px solid var(--border); + border-radius: var(--standard-border-radius); + padding: 1.5rem; + margin: 2rem 0; +} diff --git a/simple.min.css b/simple.min.css new file mode 100644 index 0000000..8c4e75c --- /dev/null +++ b/simple.min.css @@ -0,0 +1 @@ +:root,::backdrop{--sans-font:-apple-system,BlinkMacSystemFont,"Avenir Next",Avenir,"Nimbus Sans L",Roboto,"Noto Sans","Segoe UI",Arial,Helvetica,"Helvetica Neue",sans-serif;--mono-font:Consolas,Menlo,Monaco,"Andale Mono","Ubuntu Mono",monospace;--standard-border-radius:5px;--bg:#fff;--accent-bg:#f5f7ff;--text:#212121;--text-light:#585858;--border:#898ea4;--accent:#0d47a1;--accent-hover:#1266e2;--accent-text:var(--bg);--code:#d81b60;--preformatted:#444;--marked:#fd3;--disabled:#efefef}@media (prefers-color-scheme:dark){:root,::backdrop{color-scheme:dark;--bg:#212121;--accent-bg:#2b2b2b;--text:#dcdcdc;--text-light:#ababab;--accent:#ffb300;--accent-hover:#ffe099;--accent-text:var(--bg);--code:#f06292;--preformatted:#ccc;--disabled:#111}img,video{opacity:.8}}*,:before,:after{box-sizing:border-box}textarea,select,input,progress{-webkit-appearance:none;-moz-appearance:none;appearance:none}html{font-family:var(--sans-font);scroll-behavior:smooth}body{color:var(--text);background-color:var(--bg);grid-template-columns:1fr min(45rem,90%) 1fr;margin:0;font-size:1.15rem;line-height:1.5;display:grid}body>*{grid-column:2}body>header{background-color:var(--accent-bg);border-bottom:1px solid var(--border);text-align:center;grid-column:1/-1;padding:0 .5rem 2rem}body>header>:only-child{margin-block-start:2rem}body>header h1{max-width:1200px;margin:1rem auto}body>header p{max-width:40rem;margin:1rem auto}main{padding-top:1.5rem}body>footer{color:var(--text-light);text-align:center;border-top:1px solid var(--border);margin-top:4rem;padding:2rem 1rem 1.5rem;font-size:.9rem}h1{font-size:3rem}h2{margin-top:3rem;font-size:2.6rem}h3{margin-top:3rem;font-size:2rem}h4{font-size:1.44rem}h5{font-size:1.15rem}h6{font-size:.96rem}p{margin:1.5rem 0}p,h1,h2,h3,h4,h5,h6{overflow-wrap:break-word}h1,h2,h3{line-height:1.1}@media only screen and (width<=720px){h1{font-size:2.5rem}h2{font-size:2.1rem}h3{font-size:1.75rem}h4{font-size:1.25rem}}a,a:visited{color:var(--accent)}a:hover{text-decoration:none}button,.button,a.button,input[type=submit],input[type=reset],input[type=button],label[type=button]{border:1px solid var(--accent);background-color:var(--accent);color:var(--accent-text);padding:.5rem .9rem;line-height:normal;text-decoration:none}.button[aria-disabled=true],input:disabled,textarea:disabled,select:disabled,button[disabled]{cursor:not-allowed;background-color:var(--disabled);border-color:var(--disabled);color:var(--text-light)}input[type=range]{padding:0}abbr[title]{cursor:help;text-decoration-line:underline;text-decoration-style:dotted}button:enabled:hover,.button:not([aria-disabled=true]):hover,input[type=submit]:enabled:hover,input[type=reset]:enabled:hover,input[type=button]:enabled:hover,label[type=button]:hover{background-color:var(--accent-hover);border-color:var(--accent-hover);cursor:pointer}.button:focus-visible,button:focus-visible:where(:enabled),input:enabled:focus-visible:where([type=submit],[type=reset],[type=button]){outline:2px solid var(--accent);outline-offset:1px}header>nav{padding:1rem 0 0;font-size:1rem;line-height:2}header>nav ul,header>nav ol{flex-flow:wrap;place-content:space-around center;align-items:center;margin:0;padding:0;list-style-type:none;display:flex}header>nav ul li,header>nav ol li{display:inline-block}header>nav a,header>nav a:visited{border:1px solid var(--border);border-radius:var(--standard-border-radius);color:var(--text);margin:0 .5rem 1rem;padding:.1rem 1rem;text-decoration:none;display:inline-block}header>nav a:hover,header>nav a.current,header>nav a[aria-current=page],header>nav a[aria-current=true]{border-color:var(--accent);color:var(--accent);cursor:pointer}@media only screen and (width<=720px){header>nav a{border:none;padding:0;line-height:1;text-decoration:underline}}aside,details,pre,progress{background-color:var(--accent-bg);border:1px solid var(--border);border-radius:var(--standard-border-radius);margin-bottom:1rem}aside{float:right;width:30%;margin-inline-start:15px;padding:0 15px;font-size:1rem}[dir=rtl] aside{float:left}@media only screen and (width<=720px){aside{float:none;width:100%;margin-inline-start:0}}article,fieldset,dialog{border:1px solid var(--border);border-radius:var(--standard-border-radius);margin-bottom:1rem;padding:1rem}article h2:first-child,section h2:first-child,article h3:first-child,section h3:first-child{margin-top:1rem}section{border-top:1px solid var(--border);border-bottom:1px solid var(--border);margin:3rem 0;padding:2rem 1rem}section+section,section:first-child{border-top:0;padding-top:0}section+section{margin-top:0}section:last-child{border-bottom:0;padding-bottom:0}details{padding:.7rem 1rem}summary{cursor:pointer;word-break:break-all;margin:-.7rem -1rem;padding:.7rem 1rem;font-weight:700}details[open]>summary+*{margin-top:0}details[open]>summary{margin-bottom:.5rem}details[open]>:last-child{margin-bottom:0}table{border-collapse:collapse;margin:1.5rem 0}figure>table{width:max-content;margin:0}td,th{border:1px solid var(--border);text-align:start;padding:.5rem}th{background-color:var(--accent-bg);font-weight:700}tr:nth-child(2n){background-color:var(--accent-bg)}table caption{margin-bottom:.5rem;font-weight:700}textarea,select,input,button,.button{font-size:inherit;border-radius:var(--standard-border-radius);box-shadow:none;max-width:100%;margin-bottom:.5rem;padding:.5rem;font-family:inherit;display:inline-block}textarea,select,input{color:var(--text);background-color:var(--bg);border:1px solid var(--border)}label{display:block}textarea:not([cols]){width:100%}select:not([multiple]){background-image:linear-gradient(45deg,transparent 49%,var(--text)51%),linear-gradient(135deg,var(--text)51%,transparent 49%);background-position:calc(100% - 15px),calc(100% - 10px);background-repeat:no-repeat;background-size:5px 5px,5px 5px;padding-inline-end:25px}[dir=rtl] select:not([multiple]){background-position:10px,15px}input[type=checkbox],input[type=radio]{vertical-align:middle;width:min-content;position:relative}input[type=checkbox]+label,input[type=radio]+label{display:inline-block}input[type=radio]{border-radius:100%}input[type=checkbox]:checked,input[type=radio]:checked{background-color:var(--accent)}input[type=checkbox]:checked:after{content:" ";border-right:solid var(--bg).08em;border-bottom:solid var(--bg).08em;background-color:#0000;border-radius:0;width:.18em;height:.32em;font-size:1.8em;position:absolute;top:.05em;left:.17em;transform:rotate(45deg)}input[type=radio]:checked:after{content:" ";background-color:var(--bg);border-radius:100%;width:.25em;height:.25em;font-size:32px;position:absolute;top:.125em;left:.125em}@media only screen and (width<=720px){textarea,select,input{width:100%}}input[type=color]{height:2.5rem;padding:.2rem}input[type=file]{border:0}hr{background:var(--border);border:none;height:1px;margin:1rem auto}mark{border-radius:var(--standard-border-radius);background-color:var(--marked);color:#000;padding:2px 5px}mark a{color:#0d47a1}img,video{border-radius:var(--standard-border-radius);max-width:100%;height:auto}figure{margin:0;display:block;overflow-x:auto}figure>img,figure>picture>img{margin-inline:auto;display:block}figcaption{text-align:center;color:var(--text-light);margin-block:1rem;font-size:.9rem}blockquote{border-inline-start:.35rem solid var(--accent);color:var(--text-light);margin-block:2rem;margin-inline:2rem 0;padding:.4rem .8rem;font-style:italic}cite{color:var(--text-light);font-size:.9rem;font-style:normal}dt{color:var(--text-light)}code,pre,pre span,kbd,samp{font-family:var(--mono-font);color:var(--code)}kbd{color:var(--preformatted);border:1px solid var(--preformatted);border-bottom:3px solid var(--preformatted);border-radius:var(--standard-border-radius);padding:.1rem .4rem}pre{color:var(--preformatted);max-width:100%;padding:1rem 1.4rem;overflow:auto}pre code{color:var(--preformatted);background:0 0;margin:0;padding:0}progress{width:100%}progress:indeterminate{background-color:var(--accent-bg)}progress::-webkit-progress-bar{border-radius:var(--standard-border-radius);background-color:var(--accent-bg)}progress::-webkit-progress-value{border-radius:var(--standard-border-radius);background-color:var(--accent)}progress::-moz-progress-bar{border-radius:var(--standard-border-radius);background-color:var(--accent);transition-property:width;transition-duration:.3s}progress:indeterminate::-moz-progress-bar{background-color:var(--accent-bg)}dialog{max-width:40rem;margin:auto}dialog::backdrop{background-color:var(--bg);opacity:.8}@media only screen and (width<=720px){dialog{max-width:100%;margin:auto 1em}}sup,sub{vertical-align:baseline;position:relative}sup{top:-.4em}sub{top:.3em}.notice{background:var(--accent-bg);border:2px solid var(--border);border-radius:var(--standard-border-radius);margin:2rem 0;padding:1.5rem} \ No newline at end of file