Moves the site styling and behavior into the bundled themes

This commit is contained in:
BinaryAlley committed 2026-08-29 13:11:30 +03:00
1 parent 3192b9c585
commit a0678bcdc8
27 files changed
+37 -3031

No files matched your search

+22 -7
View File
@@ -40,7 +40,7 @@ my-theme/
theme.json
assets/
preview.svg
theme.css
site.css
templates/
index.html
shared/
@@ -90,7 +90,7 @@ The manifest is a JSON object describing the theme. The example below is the man
| `author` | yes | Author of the theme, up to 80 characters. |
| `version` | yes | Semantic version form, for example `1.0.0`. Up to 40 characters. |
| `preview` | no | Path to a preview image, relative to the pack root and under `assets/`. Shown on the administration page. |
| `templates` | yes | A mapping from template key to a file under `templates/`, with 1 to 32 entries. Must include the `default` key. |
| `templates` | no | An optional mapping from template key to a file under `templates/`, with up to 32 entries. Templates can also be provided as mirrored files under `templates/` without a manifest entry. |
All text fields must be non-empty and must not contain control characters. Template keys follow the same lowercase kebab-case rule as the theme id and are at most 40 characters. Template paths are normalized and must point to an existing file under `templates/`.
@@ -149,9 +149,10 @@ Every themed page is identified by a page key that mirrors the path of the corre
1. An explicit mapping in `templates` when the manifest declares the page key.
2. A mirrored template file at `templates/{pageKey}.html`, walking up the scope of the path when the exact mirror does not exist.
3. The `default` template from the manifest.
For example, the books index page has the page key `library/written-content-library/book-library/books/index`. The engine tries, in order: the explicit `templates` entry for that key, `templates/library/written-content-library/book-library/books/index.html`, then the parent scopes such as `templates/library/written-content-library/book-library/books.html`, and finally the `default` template.
When neither an explicit mapping nor a mirrored file exists, the theme has no template for that page, and the application renders its own fallback unstylied Razor view instead.
For example, the books index page has the page key `library/written-content-library/book-library/books/index`. The engine tries, in order: the explicit `templates` entry for that key, `templates/library/written-content-library/book-library/books/index.html`, then the parent scopes such as `templates/library/written-content-library/book-library/books.html`. When none exists, the application renders the books page view itself.
Known page keys:
@@ -188,7 +189,7 @@ The layout template of the bundled theme shows the intended shape:
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{title}} - Lumina</title>
{{&appHead}}
<link rel="stylesheet" href="{{assetBase}}/theme.css">
<link rel="stylesheet" href="{{assetBase}}/site.css">
</head>
<body>
<div id="page">
@@ -262,10 +263,24 @@ JavaScript is always allowed in themes: script elements in templates are served
## Assets
Static files under `assets/` are served to the browser. The asset base URL is available to the layout and page templates as `assetBase`, so a stylesheet is referenced as `{{assetBase}}/theme.css`. Assets are served only from within the pack, and paths that would escape the pack are rejected.
Static files under `assets/` are served to the browser. The asset base URL is available to the layout and page templates as `assetBase`, so a stylesheet is referenced as `{{assetBase}}/site.css`. Assets are served only from within the pack, and paths that would escape the pack are rejected.
A theme owns its behavior as much as its look: the theme script, for example `{{assetBase}}/theme.js`, carries the behavior of the theme chrome, such as the desktop menu bar.
A theme ships the images its stylesheets use as assets too, referenced with paths relative to the stylesheet. For example a stylesheet at `assets/combobox.css` references `images/ui/metal-plate.png`, which is served from `assets/images/ui/metal-plate.png`.
The `preview` field of the manifest points at an asset that is shown as the theme thumbnail on the administration page.
### The top offset contract
The application translates page coordinates into the content coordinate space of some widgets (for example the selection rectangle of the file system browser) by subtracting the height of the fixed top bar of the theme. A theme that renders a fixed top bar declares that height on the root element as the `--theme-top-offset` custom property, for example in its theme script:
```js
document.documentElement.style.setProperty('--theme-top-offset', window.getComputedStyle(menubar).height);
```
When the property is absent it is treated as `0`, which is correct for a theme without a fixed top bar.
## Configuration Options
The theme engine is configured through the `ThemeEngine` section of the API configuration (`appsettings.shared.json`):
@@ -284,7 +299,7 @@ The theme engine is configured through the `ThemeEngine` section of the API conf
1. Create a directory for the theme with `theme.json`, a `templates/` directory and an `assets/` directory, following the layout of `editorial-paper`.
2. Write the manifest following the field rules in [The Manifest (theme.json)](#the-manifest-themejson).
3. Author the templates. Start with `templates/shared/layout.html` and `templates/shared/nav-menu.html`, then add page templates and the `default` template.
3. Author the templates. Start with `templates/shared/layout.html` and `templates/shared/nav-menu.html`, then add page templates.
4. Add the static files under `assets/`, for example a stylesheet referenced from the layout.
5. Keep the pack within the size limits: the archive at most 8 MB, the extracted pack at most 24 MB, no single file larger than 6 MB and at most 250 entries.
6. Compress the directory into a ZIP archive with `theme.json` at the root of the archive, not nested inside an extra folder.
@@ -1,46 +0,0 @@
#authorization-permissions-container {
display: flex;
margin: auto;
width: 100%;
height: 100%;
flex-direction: column;
flex-wrap: nowrap;
}
#authorization-permissions-permissions-container {
flex-grow: 1;
min-width: 135px;
min-height: 0px;
}
#authorization-permissions-permissions {
border: 1px solid var(--border-color-light-high);
border-top: 1px solid var(--border-color-dark);
border-left: 1px solid var(--border-color-dark);
margin: auto;
padding-left: 5px;
width: 100%;
height: 100%;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: left;
align-items: stretch;
}
#authorization-permissions-permissions-scroll {
background-color: #232323;
margin: auto;
width: 100%;
height: 100%;
}
#authorization-permissions-permissions-list {
margin: 1px;
display: flex;
flex-direction: column;
flex-wrap: wrap;
border: 0px solid black;
padding: 0px;
gap: 0px 10px;
}
@@ -1,46 +0,0 @@
#authorization-roles-container {
display: flex;
margin: auto;
width: 100%;
height: 100%;
flex-direction: column;
flex-wrap: nowrap;
}
#authorization-roles-permissions-container {
flex-grow: 1;
min-width: 135px;
min-height: 0px;
}
#authorization-roles-permissions {
border: 1px solid var(--border-color-light-high);
border-top: 1px solid var(--border-color-dark);
border-left: 1px solid var(--border-color-dark);
margin: auto;
padding-left: 5px;
width: 100%;
height: 100%;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: left;
align-items: stretch;
}
#authorization-roles-permissions-scroll {
background-color: #232323;
margin: auto;
width: 100%;
height: 100%;
}
#authorization-roles-permissions-list {
margin: 1px;
display: flex;
flex-direction: column;
flex-wrap: wrap;
border: 0px solid black;
padding: 0px;
gap: 0px 10px;
}
@@ -1 +0,0 @@

@@ -1,12 +1 @@
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
<link rel="stylesheet" href="~/css/button.css" asp-append-version="true" />
<link rel="stylesheet" href="~/css/checkbox.css" asp-append-version="true" />
<link rel="stylesheet" href="~/css/combobox.css" asp-append-version="true" />
<link rel="stylesheet" href="~/css/file-system-browser.css" asp-append-version="true" />
<link rel="stylesheet" href="~/css/file-system-tree-view-node.css" asp-append-version="true" />
<link rel="stylesheet" href="~/css/navigation-menu.css" asp-append-version="true" />
<link rel="stylesheet" href="~/css/notification.css" asp-append-version="true" />
<link rel="stylesheet" href="~/css/dialog.css" asp-append-version="true" />
<link rel="stylesheet" href="~/css/image-viewer.css" asp-append-version="true" />
<link rel="stylesheet" href="~/css/textbox.css" asp-append-version="true" />
<link rel="stylesheet" href="~/Lumina.Presentation.Web.styles.css" asp-append-version="true" />
@@ -1,161 +0,0 @@
.abort-button {
text-decoration: none;
border-radius: 4px;
border: solid 1px;
border-color: #006666 #004030 #003020 #006666;
background: linear-gradient(to bottom, #90AEA6 0%, #336659 50%, #004030 50%, #004030 100%);
color: #999999;
position: relative;
overflow: hidden;
transition: all 0.3s;
cursor: pointer;
outline: none;
box-shadow: 0 4px 4px rgba(0, 0, 0, 0.5);
z-index: 1;
}
.abort-button:before {
content: "";
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 50%;
background: radial-gradient(circle at center, #00FF00, transparent);
background-size: 120% 100%;
transform: translateY(100%);
background-position: center;
transition: transform 0.3s, opacity 0.8s;
pointer-events: none;
opacity: 0;
filter: blur(8px);
}
.abort-button:hover {
color: #fff;
}
.abort-button:hover:before {
transform: translateY(50%);
opacity: 1;
}
.abort-button:active {
background: #CC009F58;
font-style: italic;
}
.abort-button:disabled {
background: #333333;
border-color: #333333;
color: #777;
cursor: not-allowed;
}
.abort-button:disabled:hover:before {
transform: translateY(100%);
opacity: 0;
}
.abort-button:disabled:active {
font-style: normal;
}
.abort-button[disabled] {
background: #333333;
border-color: #333333;
color: #777;
cursor: not-allowed;
pointer-events: none;
text-decoration: none;
}
.abort-button[disabled]:hover:before {
transform: translateY(100%);
opacity: 0;
}
.abort-button[disabled]:active {
font-style: normal;
}
.confirm-button {
text-decoration: none;
border-radius: 4px;
border: solid 1px;
border-color: #363636 #000 #000 #363636;
background: linear-gradient(to bottom, #AAAAAA 0%, #363636 50%, #000 50%, #000 100%);
color: #AAAAAA;
position: relative;
overflow: hidden;
transition: all 0.3s;
cursor: pointer;
outline: none;
box-shadow: 0 4px 4px rgba(0, 0, 0, 0.5);
z-index: 1;
}
.confirm-button:before {
content: "";
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 50%;
background: radial-gradient(circle at center, #00FF8B, transparent);
background-size: 120% 100%;
transform: translateY(100%);
background-position: center;
transition: transform 0.3s, opacity 0.8s;
pointer-events: none;
opacity: 0;
filter: blur(8px);
}
.confirm-button:hover {
color: #fff;
}
.confirm-button:hover:before {
transform: translateY(50%);
opacity: 1;
}
.confirm-button:active {
background: #CC000000;
font-style: italic;
}
.confirm-button:disabled {
background: #333333;
border-color: #333333;
color: #777;
cursor: not-allowed;
}
.confirm-button:disabled:hover:before {
transform: translateY(100%);
opacity: 0;
}
.confirm-button:disabled:active {
font-style: normal;
}
confirm-button[disabled] {
background: #333333;
border-color: #333333;
color: #777;
cursor: not-allowed;
pointer-events: none;
text-decoration: none;
}
.confirm-button[disabled]:hover:before {
transform: translateY(100%);
opacity: 0;
}
.confirm-button[disabled]:active {
font-style: normal;
}
@@ -1,36 +0,0 @@
/* Basic styles for the label and the hidden checkbox */
.enlightenment-checkbox-label {
display: flex;
align-items: center;
cursor: pointer;
font-size: 14px;
color: #6DCBFE;
user-select: none;
}
.enlightenment-checkbox-hidden {
display: none;
}
/* Custom checkbox appearance */
.enlightenment-checkbox {
width: 14px;
height: 14px;
border-top: #000000 1px solid;
border-bottom: #333333 1px solid;
border-left: #000000 1px solid;
border-right: #333333 1px solid;
border-radius: 0;
margin-right: 10px;
position: relative;
background: linear-gradient(to bottom, #111, #222 50%, #333);
}
/* Update the custom checkbox appearance when checked */
.enlightenment-checkbox-hidden:checked + .enlightenment-checkbox {
background-image: linear-gradient(180deg, #5E5D5D, #505050, #424343);
border-top: #888888 1px solid;
border-bottom: #333333 1px solid;
border-left: #666666 1px solid;
border-right: #444444 1px solid;
}
@@ -1,171 +0,0 @@
.enlightenment-combobox {
position: relative;
font-family: Arial, sans-serif;
padding: 0;
margin: 0;
box-sizing: border-box;
}
.enlightenment-toggle-checkbox {
display: none;
}
.enlightenment-toggle-checkbox:checked + .enlightenment-toggle + .enlightenment-dropdown {
display: block;
}
.enlightenment-toggle-checkbox:checked + .enlightenment-toggle .enlightenment-arrow {
background-size: 9px 11px;
background-position: 3px -2px;
transform: rotate(90deg);
}
.enlightenment-toggle {
display: flex;
align-items: center;
justify-content: space-between;
cursor: pointer;
font-family: Arial, sans-serif;
font-size: 14px;
border-radius: 3px;
box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
color: #6DCBFE;
padding: 3px 24px 3px 18px;
width: 100%;
border: none;
outline: none;
appearance: none;
border-top: #989898 1px solid;
border-bottom: #151515 1px solid;
border-left: #878787 1px solid;
border-right: #202020 1px solid;
background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%225%22%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%222%22%20d%3D%22M2%2C0L6%2C4L10%2C0%22%2F%3E%3C%2Fsvg%3E'), url('../images/ui/scrollbar_dots_v.png'), linear-gradient(180deg, #606060, #555555, #4C4C4C, #414141);
background-repeat: no-repeat, no-repeat, repeat;
background-position: right 10px top 50%, left 7px top 50%, 0 0;
background-size: 12px 6px, 3px auto, 100%;
user-select: none;
box-sizing: border-box;
}
.enlightenment-toggle:hover {
background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%225%22%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%222%22%20d%3D%22M2%2C0L6%2C4L10%2C0%22%2F%3E%3C%2Fsvg%3E'), url('../images/ui/scrollbar_dots_lit_v.png'), linear-gradient(180deg, #606060, #555555, #4C4C4C, #414141);
background-repeat: no-repeat, no-repeat, repeat;
background-position: right 10px top 50%, left 7px top 50%, 0 0;
background-size: 12px 6px, 3px auto, 100%;
}
.enlightenment-arrow {
display: inline-block;
width: 12px;
height: 9px;
background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%22545%20-32.5%2027.5%2065%22%3E%3Cpath%20fill%3D%22%23FFF%22%20d%3D%22M568.254,-7.43524%20568.159,-7.34277%20567.977,-7.52246%20546.559,-28.9417%20525.484,-28.9417%20549.787,-4.63446%20557.439,3.01532%20557.619,3.19629%20550.067,10.7549%20525.758,35.0583%20546.834,35.0583%20568.254,13.6429%20578.792,3.10254%20568.254,-7.43524z%22%2F%3E%3C%2Fsvg%3E');
background-size: 10px 9px;
background-repeat: no-repeat;
background-position: 3px -0px;
transition: transform 0.3s ease;
}
.enlightenment-toggle-checkbox:checked + .enlightenment-toggle .enlightenment-arrow {
transform: rotate(90deg);
}
.enlightenment-selected-text {
flex: 1;
text-align: right;
}
.enlightenment-dropdown {
display: none;
position: absolute;
top: 100%;
left: 0;
width: 100%;
box-sizing: border-box;
background-image: url('../images/ui/metal-plate.png'), linear-gradient(180deg, #505050, #464646, #404040, #363636);
background-repeat: repeat, no-repeat;
background-position: 3px 3px, 0 0; /* offset the metal-plate image by 3 pixels from the top and left */
background-clip: content-box, border-box; /* clip the metal-plate image to the content box */
border-top: #989898 1px solid;
border-bottom: #151515 1px solid;
border-left: #878787 1px solid;
border-right: #202020 1px solid;
padding: 3px;
z-index: 999;
}
.enlightenment-option {
display: block;
border-left: 1px solid #232323;
border-right: 1px solid #777777;
border-top: 1px solid #232323;
border-bottom: 1px solid #777777;
color: #FFFFFF;
padding: 5px 10px;
width: 100%;
box-sizing: border-box;
user-select: none;
cursor: pointer;
}
.enlightenment-option.first-option {
border-top: 1px solid #232323;
margin-top: -1px;
}
.enlightenment-option.last-option {
border-bottom: 1px solid #777777;
}
.enlightenment-option.disabled {
color: #AAAAAA; /* Gray color */
}
.enlightenment-option:hover {
background-image: none;
background: linear-gradient(to bottom, #505050, #464646, #404040, #363636);
color: #1D8AF9;
box-shadow: inset 1px 0 0 0 #777777, /* left */
inset -1px 0 0 0 #232323, /* right */
inset 0 1px 0 0 #989898, /* top */
inset 0 -1px 0 0 #151515; /* bottom */
}
.enlightenment-combobox > .shine-effect:first-child {
opacity: 0;
transition: opacity 0.5s;
}
.enlightenment-combobox:hover > .shine-effect:first-child {
opacity: 1;
}
.enlightenment-combobox > .shine-effect::before,
.enlightenment-combobox > .shine-effect::after {
content: "";
position: absolute;
top: -1px;
left: 50%;
transform: translateX(-50%);
opacity: 0;
transition: opacity 0.5s;
}
.enlightenment-combobox > .shine-effect::before {
width: 3px;
height: 2px;
border-radius: 5px 5px 0 0;
background-color: #FFFFFF;
}
.enlightenment-combobox > .shine-effect::after {
width: 10px;
height: 3px;
border-radius: 5px 5px 0 0;
background-color: #FFFFFF;
filter: blur(3px);
}
.enlightenment-combobox:hover > .shine-effect::before,
.enlightenment-combobox:hover > .shine-effect::after {
opacity: 1;
}
@@ -1,127 +0,0 @@
.dialog-modal-background {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #000000;
opacity: 0.6;
z-index: 998;
}
.dialog-container {
display: none;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 999;
width: 400px;
max-width: 90%;
}
.dialog {
background: linear-gradient(135deg, #404040, #232323);
border-radius: 4px;
border-top: 1px solid #505050;
border-left: 1px solid #505050;
border-right: 1px solid #000;
border-bottom: 1px solid #000;
box-shadow: 5px 5px 5px var(--shadow-color);
overflow: hidden;
animation: fadeIn 0.3s ease-out;
position: relative;
}
.dialog-content {
padding: 20px;
display: flex;
flex-direction: column;
}
.dialog-header {
padding-bottom: 15px;
position: relative;
}
.dialog-header h2 {
margin: 0;
color: var(--text-foreground);
font-family: monospace;
font-size: 1.1rem;
}
.dialog-shine-effect {
background: linear-gradient(to right, transparent, #fff, transparent);
width: 100%;
top: -1px;
height: 1px;
position: absolute;
pointer-events: none;
}
.dialog-body {
border-top: 1px solid #000;
border-left: 1px solid #000;
border-right: 1px solid #505050;
border-bottom: 1px solid #505050;
padding: 5px;
color: var(--text-foreground);
font-family: monospace;
display: block;
position: relative;
overflow-y: auto;
padding-left: 34px;
}
.dialog-icon {
position: sticky;
top: 5px;
float: left;
margin-bottom: 5px;
width: 24px;
height: 24px;
margin-left: -29px;
}
.dialog-icon.info {
background-image: url('../images/ui/information.svg');
}
.dialog-icon.warning {
background-image: url('../images/ui/warning.svg');
}
.dialog-icon.error {
background-image: url('../images/ui/error.svg');
}
.dialog-icon.question {
background-image: url('../images/ui/question.svg');
}
.dialog-message {
overflow-wrap: break-word;
word-break: break-word;
white-space: pre-wrap;
}
.dialog-buttons {
display: flex;
justify-content: flex-end;
padding-top: 15px;
gap: 10px;
}
.dialog-button {
padding: 2px 16px;
font-weight: 500;
}
@keyframes dialogAppear {
to {
opacity: 1;
transform: translateY(0);
}
}
File diff suppressed because it is too large. Load diff
@@ -1,78 +0,0 @@
.tree-node {
padding: 2px 0;
}
.node-content {
display: flex;
align-items: flex-start;
cursor: pointer;
padding: 0px;
border-radius: 2px;
border: 1px solid transparent;
flex-wrap: wrap;
min-width: 100%;
display: inline-block;
white-space: nowrap;
}
.node-content:hover {
background-color: #131313;
border-top: 1px solid var(--border-color-light);
border-left: 1px solid var(--border-color-light);
border-right: 1px solid var(--border-color-dark);
background-color: var(--container-background);
}
.node-content.selected {
background-color: #131313;
border-bottom: 1px solid var(--border-color-light);
border-right: 1px solid var(--border-color-light);
border-left: 1px solid var(--border-color-dark);
background-color: var(--container-background);
}
.node-icon {
margin-right: 5px;
width: 16px;
text-align: center;
flex-shrink: 0;
}
.node-icon, .expand-button {
flex-shrink: 0;
align-self: center;
}
.child-nodes {
padding-left: 20px;
border-left: 1px dotted #ccc;
margin-left: 7px;
}
.expand-button {
display: inline-flex;
width: 10px;
height: 10px;
margin-right: 5px;
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='%231E90FF' d='M6 4l4 4-4 4z'/></svg>");
background-size: contain;
transition: transform 0.2s ease;
}
.expand-button.expanded {
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='%23f00' d='M6 4l4 4-4 4z'/></svg>");
transform: rotate(90deg);
}
.spacer {
display: inline-block;
width: 15px;
}
.node-name {
margin-left: 3px;
overflow-wrap: break-word;
word-break: break-all;
flex: 1;
align-self: end;
}
@@ -1,146 +0,0 @@
.image-viewer-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1001;
background-color: rgba(0, 0, 0, 0.85);
align-items: center;
justify-content: center;
}
.image-viewer-overlay.open {
display: flex;
animation: fadeIn 0.3s ease-out;
}
.image-viewer-stage {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
max-width: 92%;
max-height: 92%;
}
.image-viewer-image {
max-width: 100%;
max-height: 88vh;
object-fit: contain;
opacity: 0;
border: 1px solid #505050;
background-color: #000;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}
.image-viewer-image.loaded {
opacity: 1;
transition: opacity 0.2s ease-out;
}
.image-viewer-caption {
margin-top: 12px;
color: var(--text-foreground);
font-family: monospace;
font-size: 0.95rem;
text-align: center;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
.image-viewer-spinner {
position: absolute;
top: 50%;
left: 50%;
width: 40px;
height: 40px;
margin: -20px 0 0 -20px;
border: 4px solid rgba(255, 255, 255, 0.25);
border-top-color: #fff;
border-radius: 50%;
animation: image-viewer-spin 0.8s linear infinite;
}
@keyframes image-viewer-spin {
to {
transform: rotate(360deg);
}
}
.image-viewer-button {
position: absolute;
width: 44px;
height: 44px;
border: 1px solid #505050;
border-radius: 50%;
background-color: rgba(0, 0, 0, 0.5);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}
.image-viewer-button:hover {
border-color: var(--text-foreground);
background-color: rgba(0, 0, 0, 0.75);
}
.image-viewer-button:disabled {
opacity: 0.35;
cursor: default;
}
.image-viewer-close {
top: 18px;
right: 18px;
}
.image-viewer-close::before,
.image-viewer-close::after {
content: '';
position: absolute;
width: 20px;
height: 2px;
background-color: var(--text-foreground);
}
.image-viewer-close::before {
transform: rotate(45deg);
}
.image-viewer-close::after {
transform: rotate(-45deg);
}
.image-viewer-prev {
left: 18px;
top: 50%;
transform: translateY(-50%);
}
.image-viewer-prev::before {
content: '';
width: 12px;
height: 12px;
margin-left: 5px;
border-left: 3px solid var(--text-foreground);
border-bottom: 3px solid var(--text-foreground);
transform: rotate(45deg);
}
.image-viewer-next {
right: 18px;
top: 50%;
transform: translateY(-50%);
}
.image-viewer-next::before {
content: '';
width: 12px;
height: 12px;
margin-right: 5px;
border-right: 3px solid var(--text-foreground);
border-top: 3px solid var(--text-foreground);
transform: rotate(45deg);
}
@@ -1,356 +0,0 @@
.overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
visibility: hidden;
transition: opacity 0.50s, visibility 0.50s, height 0.50s;
-webkit-transition: opacity 0.50s, visibility 0.50s, height 0.50s;
overflow: hidden;
background: black;
z-index: -1;
}
#hamburger-input {
display: none;
}
#hamburger-menu {
cursor: pointer;
position: fixed;
border-radius: 4px;
border: 1px solid #777777;
border-bottom-color: #000000;
border-right-color: #000000;
top: 10px;
left: 10px;
width: 46px;
height: 46px;
display: none;
z-index: 999;
padding: 5px 0;
margin: 0px;
font-family: 'Cabin', Sans-serif;
background: linear-gradient(to top, #424343 0%, #505050 50%, #5E5D5D 100%);
}
#hamburger-menu > span {
display: block;
width: 30px;
height: 4px;
margin: 6px auto;
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
border-radius: 2px;
box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.2), 0 1px 0 rgba(255, 255, 255, 0.2);
}
#hamburger-menu:hover {
background: linear-gradient(to top, #505050 0%, #5E5D5D 50%, #6A6969 100%);
}
#hamburger-menu:hover > span {
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.3);
}
#hamburger-menu #mobile-menu {
visibility: hidden;
position: fixed;
margin: 0px;
top: 0;
left: -100%;
width: 100%;
border: 1px solid #777777;
border-bottom-color: #000000;
border-right-color: #000000;
overflow: auto;
color: #6DCBFE;
text-align: center;
background: #4F4F4F;
transition: 0.50s;
-webkit-transition: 0.50s;
padding: 0px 10px;
box-sizing: border-box;
}
#mobile-menu-content {
border: 1px solid #777777;
border-top-color: #000000;
border-left-color: #000000;
margin-top: 4px;
margin-left: -6px;
margin-right: -5px;
margin-bottom: 3px;
color: #6DCBFE;
text-align: center;
font-size: 18px;
font-family: 'Trebuchet MS', 'Lucida Grande', Verdana, Arial, Sans-Serif;
font-weight: bold;
text-shadow: 0px 0px 2px rgba(0,0,0,1);
/*background: #000 url(../images/metal-plate.png);*/
}
.mobile-menu-heading {
height: 35px;
font-size: 28px;
background: rgb(10, 11, 11);
border: 1px solid #777777;
border-bottom-color: #000000;
border-right-color: #000000;
width: 100%;
background-image: linear-gradient(180deg, #505050, #464646, #404040, #363636);
}
#hamburger-menu ul {
margin-left: 0px;
margin-top: 0px;
margin-bottom: 0px;
padding: 0px;
width: 100%;
}
#hamburger-menu li {
width: 100%;
list-style-type: none;
line-height: 2rem;
display: flex;
font-weight: normal;
font-size: 10px;
text-shadow: none;
text-align: left;
border: 1px solid #333333;
border-bottom-color: #000000;
border-right-color: #000000;
}
#hamburger-menu li:nth-child(even) {
background-color: #191E21;
}
#hamburger-menu li:nth-child(odd) {
background-color: #28292B;
}
#hamburger-menu a {
padding-left: 5px;
width: 100%;
color: #6DCBFE;
font-weight: normal;
font-size: 18px;
font-family: 'Arial';
text-decoration: none;
display: inline-block;
margin-left: 0.3em;
}
#hamburger-menu a:focus,
#hamburger-menu a:active {
color: #7CACF8;
}
#hamburger-menu a:hover {
color: #FFFFFF;
background: rgb(10, 11, 11);
background-image: linear-gradient(180deg, #505050, #464646, #404040, #363636);
}
#hamburger-input:checked + #hamburger-menu {
background: linear-gradient(to bottom, #424343 0%, #505050 50%, #5E5D5D 100%);
border: 1px solid #777777;
border-top: 1px solid #000000;
border-left: 1px solid #000000;
}
#hamburger-input:checked + #hamburger-menu #mobile-menu {
visibility: visible;
left: 0;
top: 71px;
}
#hamburger-input:checked + #hamburger-menu {
z-index: 2;
}
#hamburger-input:checked ~ .overlay {
visibility: visible;
opacity: 0.5;
z-index: 1;
}
.menubar {
background: linear-gradient( to bottom, #505050 0%, #464646 35%, #404040 55%, #363636 100% );
padding: 0;
position: fixed;
top: 0px;
left: 0px;
max-height: 22px;
width: 100%;
z-index: 900;
}
.menubar li.open > ul {
display: block; /* show submenu when parent has 'open' class */
}
.menubar ul {
list-style-type: none;
margin: 0;
padding: 0;
}
.menubar > ul > li {
display: inline-block;
position: relative;
}
.menubar label,
.menubar a {
display: block;
padding: 2px 10px;
text-decoration: none;
cursor: default;
color: #6DCBFE;
position: relative;
user-select: none;
border: 1px solid transparent;
}
.menubar > ul > li > label:hover,
.menubar > ul > li > a:hover {
background: linear-gradient( to bottom, #505050 0%, #464646 35%, #404040 55%, #363636 100% );
border-left: 1px solid #777777;
border-right: 1px solid #000000;
border-top: 1px solid #505050;
border-bottom: 1px solid #222222;
color: #FFFFFF;
}
.menubar input[type="checkbox"] {
display: none;
}
.menubar ul ul {
display: none;
position: absolute;
top: 100%;
left: 0;
min-width: 150px;
background: #4F4F4F;
border: 1px solid #777777;
border-bottom-color: #000000;
border-right-color: #000000;
padding-top: 4px;
padding-left: 4px;
padding-bottom: 4px;
padding-right: 4px;
}
.menubar ul ul li {
background: #232323;
border-left: 1px solid #000000;
border-right: 1px solid #777777;
position: relative;
}
/* show submenus on hover */
.menubar ul ul li.open > ul {
display: block;
}
.menubar ul ul li:first-child {
border-top: 1px solid #000000;
}
.menubar ul ul li:last-child {
border-bottom: 1px solid #777777;
}
.menubar ul ul li > label:hover,
.menubar ul ul li > a:hover {
background: linear-gradient( to bottom, #505050 0%, #464646 35%, #404040 55%, #363636 100% );
border: 1px solid #777777;
border-right-color: #000000;
border-bottom-color: #000000;
color: #FFFFFF;
}
.menubar ul ul ul {
left: 100%;
top: 0;
}
.menubar > ul > li.hovered > label,
.menubar > ul > li.hovered > a {
background-color: #28292B;
background: radial-gradient( 115% 115% at 68% 70%, #30303088 0%, #20202044 50%, #101010 100% );
border: 1px solid #777777;
border-top: 1px solid #000000;
border-left: 1px solid #000000;
color: #FFFFFF;
}
.menubar .has-submenu > label::after,
.menubar .has-submenu > a::after {
content: " ▶";
font-size: 0.6em;
position: absolute;
right: 5px;
top: 50%;
transform: translateY(-50%);
transition: transform 0.3s ease;
}
.menubar .has-submenu:focus-within > label,
.menubar .has-submenu:focus-within,
.menubar .has-submenu:hover > label,
.menubar .has-submenu:hover > a {
background: linear-gradient( to bottom, #505050 0%, #464646 35%, #404040 55%, #363636 100% );
border: 1px solid #777777;
border-right-color: #000000;
border-bottom-color: #000000;
}
.menubar .has-submenu:focus-within > label::after,
.menubar .has-submenu:focus-within > a::after,
.menubar .has-submenu:hover > label::after,
.menubar .has-submenu:hover > a::after {
content: " ▼";
color: #FF0000;
transform: translateY(-50%) rotate(0deg);
}
.menubar .has-submenu:focus-within > label,
.menubar .has-submenu:focus-within > a,
.menubar .has-submenu:hover > label,
.menubar .has-submenu:hover > a {
color: #7CACF8;
}
/* For phones */
@media only screen and (max-width: 768px) {
.menubar {
visibility: hidden;
max-height: 0px;
}
#hamburger-menu {
display: block;
}
#mobile-menu {
height: calc(100% - 70px);
}
}
/* For desktop: */
@media only screen and (min-width: 768px) {
.menubar {
visibility: visible;
}
.overlay {
visibility: hidden !important;
}
}
@@ -1,106 +0,0 @@
.notification-container {
position: fixed;
bottom: 10px;
left: 20px;
z-index: 1000;
width: 300px;
max-height: calc(100vh - 40px); /* full viewport height minus 40px */
overflow-y: auto; /* add vertical scrollbar if content exceeds max-height */
}
.notification {
border-radius: 4px;
margin-bottom: 10px;
margin-right: 10px;
display: flex;
flex-direction: row; /* stack content horizontally */
align-items: flex-start; /* align items to the top */
background: linear-gradient(135deg, #404040, #232323) !important;
border-top: 1px solid #505050 !important;
border-left: 1px solid #505050 !important;
border-right: 1px solid #000 !important;
border-bottom: 1px solid #000 !important;
box-shadow: 5px 5px 5px var(--shadow-color);
animation: fadeIn 0.3s, fadeOut 0.3s 9.7s; /* animation for notifications fade out effect */
flex-direction: column;
flex-wrap: nowrap;
align-items: stretch;
justify-content: flex-start;
position: relative;
}
.notification-body {
padding: 15px;
display: flex;
flex-direction: row; /* stack content horizontally */
align-items: flex-start; /* align items to the top */
word-wrap: break-word; /* allow long words to break and wrap */
overflow-wrap: break-word; /* modern browsers */
word-break: break-word; /* for very long words or URLs */
}
.notification-message {
flex-grow: 1; /* allow message to take up available space */
margin-right: 3px; /* add some space between message and close button */
overflow-wrap: break-word; /* modern browsers */
word-break: break-word; /* for very long words or URLs */
hyphens: auto; /* enable automatic hyphenation */
white-space: pre-wrap; /* preserve line breaks */
font-family: monospace;
}
.close-button {
background: none;
color: var(--text-foreground);
border: none;
font-size: 20px;
cursor: pointer;
padding: 0;
line-height: 1;
flex-shrink: 0; /* prevent button from shrinking */
}
.notification-shine-effect {
background: linear-gradient(to right, transparent, #fff, transparent);
width: 100%;
top: -1px;
height: 1px;
flex-shrink: 0;
pointer-events: none; /* ensure it doesn't interfere with interactions */
}
.info {
color: #2196F3;
}
.success {
color: #4CAF50;
}
.warning {
color: #FFC107;
}
.error {
color: #F44336;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes fadeOut {
from {
opacity: 1;
}
to {
opacity: 0;
}
}
@@ -1,213 +1,11 @@
:root {
--background-color: #222;
--container-background: #232323;
--border-color-light: #363636;
--border-color-light-medium: #555555;
--border-color-light-high: #777777;
--border-color-dark: #000000;
--border-color-dialog: #1E90FF;
--shadow-color: #000000;
--highlight-color: #383838AA;
--text-foreground: #6DCBFE;
--light-row-background: #28292B;
--dark-row-background: #191E21;
}
html,
body {
margin: 0px;
padding: 0px;
min-height: 100%;
height: 100%;
font-family: 'Arial';
}
body {
font-size: 14px;
background-color: var(--background-color);
color: #6DCBFE;
margin: 0px;
}
* {
box-sizing: border-box;
}
#app {
margin: auto;
min-width: 399px;
min-height: 100vh;
height: 100vh;
background-color: var(--background-color);
}
#page {
border-style: solid;
border-width: 1px;
border-color: var(--border-color-light-high) var(--border-color-dark) var(--border-color-dark) var(--border-color-light-high);
background-color: #222;
min-width: 100%;
min-height: 100%;
height: 100%;
position: relative;
display: flex;
flex-direction: column;
}
main {
position: fixed;
top: 20px;
bottom: 50px;
width: 100%;
overflow-y: auto;
transition: bottom 1s ease, height 1s ease;
}
main.audio-player-not-shown {
bottom: 0;
}
main.audio-player-full-height {
bottom: calc(100% - 22px); /* full height minus menu height */
}
.cotton-candy {
min-height: 100%;
background-image: radial-gradient(ellipse at 10% 90%, #3c2d83 0%, transparent 55%), radial-gradient(ellipse at 90% 90%, #c33c65 0%, transparent 55%), radial-gradient(ellipse at 90% 10%, #4a74dc 0%, transparent 55%), radial-gradient(ellipse at 10% 10%, #35244f 0%, transparent 55%);
}
.audio-player-container {
position: fixed;
bottom: 0;
width: 100%;
height: 50px;
transition: height 1s ease;
}
.audio-player-container.not-shown {
height: 0px;
}
.audio-player-container.full-height {
height: calc(100% - 22px); /* full height minus menu height */
}
#modal-background-menu {
display: none;
z-index: 998;
position: absolute;
top: 0px;
left: 0px;
min-width: 100%;
min-height: 22px;
background-color: #000000;
opacity: 0.6;
}
#modal-background-article {
display: none;
z-index: 998;
position: fixed;
top: 0px;
left: 0px;
min-width: 100%;
min-height: 100%;
background-color: #000000;
opacity: 0.6;
}
.above-modal {
z-index: 999;
}
.shine-effect {
position: relative;
top: -11px;
left: 0;
right: 0;
height: 1px;
background: linear-gradient(to right, transparent, #fff, transparent);
z-index: 1;
}
.shadow-effect {
box-shadow: 3px 3px 5px 0 rgba(0, 0, 0, 0.5);
}
.enlightenment-panel {
border-radius: 5px;
background: linear-gradient(135deg, #404040, var(--container-background));
border-top: 1px solid #505050;
border-left: 1px solid #505050;
border-right: 1px solid #000;
border-bottom: 1px solid #000;
padding: 10px;
}
.container-background {
background-color: var(--container-background);
}
.panel {
background-color: #00000033;
border-radius: 5px;
padding: 10px;
}
.media-panel {
border-radius: 5px;
background-color: #00000033;
width: 300px;
height: 200px;
display: flex;
flex-direction: column;
gap: 0.2rem;
cursor: pointer;
user-select: none;
}
.media-panel:hover {
background-color: #00000066;
}
.media-panel img {
width: 100%;
flex-grow: 1;
}
.media-panel span {
height: 26px;
display: flex;
align-items: center;
justify-content: center;
}
#audio-player-full-height-toggle, #audio-player-close {
cursor: pointer;
}
.text-light-one {
color: #6DCBFE;
}
.text-light-two {
color: #FFFFFF;
}
.text-light-three {
color: #FFD764;
}
.text-disabled {
color: #777777;
}
.invalid-feedback {
margin-top: 0.25rem;
font-size: 0.875em;
color: #FF0000;
}
.transparent {
background-color: transparent !important;
}
@@ -219,163 +17,6 @@ main {
.no-underline {
text-decoration: none !important;
}
.cards-container {
display: flex;
flex-wrap: wrap;
flex-direction: row;
gap: 0.5rem;
}
.form-container {
display: flex;
flex-direction: column;
gap: 0.2rem;
}
.form-row {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
align-items: center;
gap: 0.5rem;
}
.form-row-align-start {
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
align-items: center;
gap: 0.5rem;
}
.form-label {
flex: 2 0 27%;
min-width: 200px;
display: flex;
align-items: center;
}
.form-field {
flex: 0 0 70%;
min-width: 0;
}
.form-field input[type="text"],
.form-field input[type="number"],
.form-field input[type="date"],
.form-field input[type="datetime"],
.form-field input[type="datetime-local"],
.form-field textarea,
.form-field input[type="password"] {
width: 100%;
}
.form-table {
max-height: 150px;
overflow-y: auto;
}
.form-table > div:nth-child(even) {
background-color: var(--dark-row-background);
}
.form-table > div:nth-child(odd) {
background-color: var(--light-row-background);
}
.form-description {
margin-left: 25px;
}
.invalid-feedback {
flex: 0 0 100%;
}
.mandatory-field {
color: red;
}
.engraved-title {
margin: 0px;
font-size: 3rem;
background-color: var(--shadow-color);
background-clip: text;
-webkit-background-clip: text;
color: transparent;
text-shadow: var(--highlight-color) 2px 2px 2px;
}
.inset-panel {
border-top: #000 1px solid;
border-left: #000 1px solid;
border-right: #777 1px solid;
border-bottom: #999 1px solid;
}
.engraved-panel {
background-color: #00000033;
border-radius: 5px;
min-height: 70px;
padding: 10px;
-webkit-box-shadow: 0 0 7px 0px var(--shadow-color) inset;
-moz-box-shadow: 0 0 7px 0px var(--shadow-color) inset;
box-shadow: 0 0 7px 0px var(--shadow-color) inset;
flex: 0 0 70%;
}
.form-table-row {
padding: 3px 8px;
gap: 8px;
width: 100%;
display: flex;
align-items: center;
border-top: 1px solid var(--border-color-light);
border-left: 1px solid var(--border-color-light);
border-bottom: 1px solid var(--border-color-dark);
border-right: 1px solid var(--border-color-dark);
}
.form-table-row span {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
flex: 1;
min-width: 0;
}
.remove-form-table-row-icon {
width: 15px;
flex-shrink: 0;
cursor: pointer;
}
.add-form-table-row-icon {
width: 15px;
cursor: pointer;
}
table {
border-spacing: 0px;
width: 100%;
}
th, td {
border-top: 1px solid var(--border-color-light);
border-left: 1px solid var(--border-color-light);
border-bottom: 1px solid var(--border-color-dark);
border-right: 1px solid var(--border-color-dark);
padding: 3px 8px;
}
tr:nth-child(even) {
background-color: var(--dark-row-background);
}
tr:nth-child(odd) {
background-color: var(--light-row-background);
}
/* Margins */
.mt-0 {
margin-top: 0px;
@@ -552,7 +193,6 @@ th, td {
.ml-10 {
margin-left: 10px;
}
/* Paddings */
.pt-0 {
padding-top: 0px;
@@ -729,7 +369,6 @@ th, td {
.pl-10 {
padding-left: 10px;
}
/* Widths (1 to 10, then 5 by 5 until 100) */
.w-0px {
width: 0px;
@@ -1252,7 +891,6 @@ th, td {
.w-100 {
width: 100%;
}
/* Heights (1 to 10, then 5 by 5 until 100) */
.h-1 {
height: 1%;
@@ -1365,7 +1003,6 @@ th, td {
.h-100 {
height: 100%;
}
.f-8 {
font-size: 8px !important;
}
@@ -1409,7 +1046,6 @@ th, td {
.f-24 {
font-size: 24px !important;
}
.bold {
font-weight: bold;
}
@@ -1433,7 +1069,6 @@ th, td {
.inline-block {
display: inline-block !important;
}
.mx-auto {
margin-left: auto;
margin-right: auto;
@@ -1487,37 +1122,3 @@ th, td {
.h-align-r {
margin-left: auto !important;
}
.alpha-picker {
display: flex;
flex-direction: column;
gap: 0.1rem;
overflow-y: auto;
}
.alpha-key {
padding: 0 0.6rem;
cursor: pointer;
text-align: center;
user-select: none;
}
.alpha-key:hover,
.alpha-key.alpha-key-active {
background-color: #00000066;
}
/* For phones */
@media only screen and (max-width: 768px) {
main {
top: 0px;
}
#app {
max-width: 100%;
width: 99.5%;
}
}
/* For desktop: */
@media only screen and (min-width: 768px) {
}
@@ -1,56 +0,0 @@
.enlightenment-input {
font-size: 14px;
padding: 5px;
border: 1px solid;
border-color: var(--border-color-dark) var(--border-color-light) var(--border-color-light) var(--border-color-dark);
border-radius: 3px;
background: linear-gradient(0deg, #90c247, #509c00);
transition: background 0.3s, color 0.3s;
color: #000;
outline: none;
position: relative;
box-sizing: border-box;
}
.enlightenment-input:hover {
background: var(--window-button-over-color);
}
.enlightenment-input:not(:focus) {
background: linear-gradient(0deg, #6b7579, #576b65);
color: #000;
}
.enlightenment-input:focus {
font-style: italic;
color: #333;
background: linear-gradient(0deg, #6AAFF8, #82E9F7);
box-shadow: inset 4px 6px 8px rgba(0,0,0,0.6);
border-color: var(--border-color-dark) var(--border-color-light) var(--border-color-light) var(--border-color-dark);
outline: none;
}
.enlightenment-input::placeholder {
color: #999;
}
.enlightenment-input:disabled {
color: #999;
background: var(--container-background);
}
.enlightenment-input[readonly] {
color: #999;
background: var(--container-background);
border-color: var(--border-color-light) var(--border-color-dark) var(--border-color-dark) var(--border-color-light);
}
.enlightenment-input[data-has-error="true"] {
border-color: #f00;
color: #FFF;
background: #700;
}
textarea {
resize: vertical;
}
@@ -1,12 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg width="24px" height="24px" viewBox="0 0 512 512" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>error-filled</title>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="add" fill="#D41919" transform="translate(42.666667, 42.666667)">
<path d="M213.333333,3.55271368e-14 C331.136,3.55271368e-14 426.666667,95.5306667 426.666667,213.333333 C426.666667,331.136 331.136,426.666667 213.333333,426.666667 C95.5306667,426.666667 3.55271368e-14,331.136 3.55271368e-14,213.333333 C3.55271368e-14,95.5306667 95.5306667,3.55271368e-14 213.333333,3.55271368e-14 Z M262.250667,134.250667 L213.333333,183.168 L164.416,134.250667 L134.250667,164.416 L183.168,213.333333 L134.250667,262.250667 L164.416,292.416 L213.333333,243.498667 L262.250667,292.416 L292.416,262.250667 L243.498667,213.333333 L292.416,164.416 L262.250667,134.250667 Z" id="Combined-Shape">
</path>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.1 KiB

@@ -1,2 +0,0 @@
<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg width="24px" height="24px" viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--emojione-monotone" preserveAspectRatio="xMidYMid meet"><path d="M32 2C15.432 2 2 15.432 2 32s13.432 30 30 30s30-13.432 30-30S48.568 2 32 2m5 49.75H27v-24h10v24m-5-29.5a5 5 0 1 1 0-10a5 5 0 0 1 0 10" fill="#22B14C"></path></svg>

Before

Width:  |  Height:  |  Size: 530 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

@@ -1,12 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg width="24px" height="24px" viewBox="0 0 512 512" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>question-filled</title>
<g id="Page-1" stroke="none" stroke-width="1" fill="red" fill-rule="evenodd">
<g id="add" fill="#3F48CC" transform="translate(42.666667, 42.666667)">
<path d="M213.333333,3.55271368e-14 C331.153707,3.55271368e-14 426.666667,95.51168 426.666667,213.333333 C426.666667,331.153707 331.153707,426.666667 213.333333,426.666667 C95.51296,426.666667 3.55271368e-14,331.153707 3.55271368e-14,213.333333 C3.55271368e-14,95.51168 95.51296,3.55271368e-14 213.333333,3.55271368e-14 Z M213.332053,282.666667 C198.60416,282.666667 186.665387,294.60544 186.665387,309.333333 C186.665387,324.061227 198.60416,336 213.332053,336 C228.059947,336 239.99872,324.061227 239.99872,309.333333 C239.99872,294.60544 228.059947,282.666667 213.332053,282.666667 Z M209.77344,93.3346133 C189.007787,93.3346133 171.554773,98.9922133 157.43488,110.274773 C140.703147,123.790507 132.34368,143.751253 132.34368,170.173227 L132.34368,170.173227 L177.7056,170.173227 L177.7056,169.868587 C177.7056,159.787733 179.829333,151.518293 184.065067,145.069013 C189.911467,136.398507 199.39328,132.059947 212.501333,132.059947 C220.56768,132.059947 227.4336,134.177067 233.070293,138.404907 C240.125013,144.26304 243.664,153.13024 243.664,165.028693 C243.664,172.49216 241.839787,179.143253 238.214827,184.994773 C235.188693,190.2368 230.350293,195.374933 223.686187,200.42048 C209.571627,210.098773 200.394453,219.679573 196.165333,229.162667 C192.53504,237.027413 190.710827,249.530027 190.710827,266.666667 L190.710827,266.666667 L233.376213,266.666667 C233.376213,255.371093 234.87744,246.90624 237.916587,241.257813 C240.331947,236.618667 245.378987,231.682347 253.042987,226.434987 C266.358187,216.549547 275.828267,207.371093 281.479253,198.90112 C288.33216,188.82176 291.76704,177.01952 291.76704,163.504 C291.76704,135.494827 280.37504,115.62624 257.571627,103.9232 C243.865813,96.86848 227.933653,93.3346133 209.77344,93.3346133 Z" id="Combined-Shape">
</path>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

@@ -13,7 +13,6 @@
const fileSystemBrowserTreeview = document.getElementById('file-system-browser-treeview');
const pathSegmentsContainer = document.getElementById('navigator-path-segments');
const article = document.querySelector('article');
const menubar = document.getElementsByClassName('menubar')[0];
const fileSystemTreeViewContainer = document.getElementById('file-system-browser-file-system-treeview-container');
const fileSystemExplorerContainer = document.getElementById('file-system-browser-file-system-explorer-container');
@@ -1075,6 +1074,14 @@
//| Selection |
//+======================================================================================+
/**
* Gets the height of the fixed top bar of the active theme, declared by the theme script, used to translate
* page coordinates into the content coordinate space of the file system browser.
*/
function getThemeTopOffset() {
return parseInt(window.getComputedStyle(document.documentElement).getPropertyValue('--theme-top-offset')) || 0;
}
/**
* Handler for the file system browser dialog selection start.
* @param {MouseEvent} e - The mousedown event object.
@@ -1092,16 +1099,16 @@
document.body.style.overflowY = 'hidden'; // needed in order to not put a vertical scrollbar on the document, while in vertical layout selection
document.documentElement.style.overflowY = 'hidden';
selectionStartPosition.x = e.pageX + fileSystemExplorer.scrollLeft;
selectionStartPosition.y = (e.pageY - parseInt(window.getComputedStyle(menubar).height)) + fileSystemExplorerContainer.scrollTop; // not a mistake - in vertical mode, this is the overflow container!
selectionStartPosition.y = (e.pageY - getThemeTopOffset()) + fileSystemExplorerContainer.scrollTop; // not a mistake - in vertical mode, this is the overflow container!
// place the selection rectangle at the clicked location (relative to the whole page, and taking into account scroll offset), with 0 size
visibleSelectionRectangle.style.left = e.pageX + 'px';
visibleSelectionRectangle.style.top = (e.pageY - parseInt(window.getComputedStyle(menubar).height)) + 'px';
visibleSelectionRectangle.style.top = (e.pageY - getThemeTopOffset()) + 'px';
visibleSelectionRectangle.style.width = '0px';
visibleSelectionRectangle.style.height = '0px';
visibleSelectionRectangle.style.visibility = 'visible';
selectionRectangle.style.left = e.pageX + 'px';
selectionRectangle.style.top = (e.pageY - parseInt(window.getComputedStyle(menubar).height)) + 'px';
selectionRectangle.style.top = (e.pageY - getThemeTopOffset()) + 'px';
selectionRectangle.style.width = '0px';
selectionRectangle.style.height = '0px';
}
@@ -1114,7 +1121,7 @@
if (!isSelecting)
return;
currentMousePosition.x = e.pageX;
currentMousePosition.y = e.pageY - parseInt(window.getComputedStyle(menubar).height);
currentMousePosition.y = e.pageY - getThemeTopOffset();
handleSelection();
}
@@ -1205,10 +1212,10 @@
if (right > containerRect.right)
visibleSelectionRectangle.style.width = (containerRect.right - left) + 'px';
if (top < containerRect.top - parseInt(window.getComputedStyle(menubar).height)) {
const difference = containerRect.top - top - parseInt(window.getComputedStyle(menubar).height);
if (top < containerRect.top - getThemeTopOffset()) {
const difference = containerRect.top - top - getThemeTopOffset();
visibleSelectionRectangle.style.height = (parseFloat(visibleSelectionRectangle.style.height) - difference) + 'px';
visibleSelectionRectangle.style.top = (containerRect.top - parseInt(window.getComputedStyle(menubar).height)) + 'px';
visibleSelectionRectangle.style.top = (containerRect.top - getThemeTopOffset()) + 'px';
}
if (bottom > containerRect.bottom)
visibleSelectionRectangle.style.height = (containerRect.bottom - top) + 'px';
@@ -440,109 +440,6 @@ function updateLanguageUrls() {
});
}
//+======================================================================================+
//| Website menu |
//+======================================================================================+
/**
* Handles the navigation through the website desktop menu bar
*/
function handleWebsiteDesktopMenu() {
const menuBar = document.querySelector('.menubar');
const topLevelItems = menuBar.querySelectorAll('.menubar > ul > li');
const hasSubmenuItems = menuBar.querySelectorAll('.has-submenu');
const submenuNavigationItems = menuBar.querySelectorAll('li:not(.has-submenu):not(.top-level-menuitem)');
function closeAllDropdowns() { // close all top level or submenu dropdowns
topLevelItems.forEach(item => {
item.classList.remove('open');
item.classList.remove('hovered');
});
hasSubmenuItems.forEach(submenu => {
submenu.classList.remove('open');
});
}
// handle clicks on top-level menu items
topLevelItems.forEach(item => {
const labelOrAnchor = item.querySelector('label, a');
labelOrAnchor.addEventListener('click', function (event) {
event.stopPropagation();
// close all menu drop down
const isOpen = item.classList.contains('open');
closeAllDropdowns();
// if the item was not already opened, toggle it (mark it as opened)
if (!isOpen) {
item.classList.add('open');
// immediately add 'hovered' class on click to maintain visual feedback
item.classList.add('hovered');
}
});
// Handle hover on top-level menu items
item.addEventListener('mouseenter', function () {
if (Array.from(topLevelItems).some(li => li.classList.contains('open') && li !== this)) {
closeAllDropdowns();
this.classList.add('open');
this.classList.add('hovered');
}
});
item.addEventListener('mouseleave', function () {
// Remove 'hovered' only if the dropdown is not open
if (!this.classList.contains('open')) {
this.classList.remove('hovered');
}
});
});
// handle hover on submenu items
hasSubmenuItems.forEach(item => {
item.addEventListener('mouseenter', function () {
const parentUl = this.closest('ul');
if (parentUl) {
// if the current menu item has multiple items with subemnus, close them if they are not the hovered one
const otherSubmenus = parentUl.querySelectorAll('.has-submenu.open');
otherSubmenus.forEach(submenu => {
if (submenu !== this && !this.contains(submenu))
submenu.classList.remove('open');
});
}
this.classList.add('open'); // show the current menu item as opened
});
item.addEventListener('mouseleave', function (event) {
// on mouse exit, simplu close menu items
if (!this.contains(event.relatedTarget))
this.classList.remove('open');
});
});
submenuNavigationItems.forEach(item => {
item.addEventListener('click', function (event) {
if (!item.classList.contains('has-submenu'))
closeAllDropdowns();
});
});
// close all menus when clicking outside the menubar
document.addEventListener('click', function (event) {
if (!menuBar.contains(event.target))
closeAllDropdowns();
});
// keep the 'hovered' class on the open menu item, if no other item is hovered
menuBar.addEventListener('mouseleave', function(event) {
if (!menuBar.contains(event.relatedTarget)) {
// if there is an item with a visible drop down, mark it as opened, but not if its the last hovered item
topLevelItems.forEach(item => {
if (item.classList.contains('open'))
item.classList.add('hovered');
else
item.classList.remove('hovered');
});
}
});
}
//+======================================================================================+
//| Common Helper Functions |
//+======================================================================================+
@@ -861,4 +758,3 @@ document.addEventListener('click', function (e) {
});
document.addEventListener('DOMContentLoaded', initializeNavigation);
document.addEventListener('DOMContentLoaded', handleWebsiteDesktopMenu);