init the awkward code

This commit is contained in:
Bao Nguyen
2023-02-13 19:32:10 +07:00
commit 27170afcac
5426 changed files with 1244579 additions and 0 deletions

View File

@@ -0,0 +1,555 @@
@import "../../lib/os-gui/windows-98.css";
/* @import "../../lib/os-gui/windows-default.css"; */
/* @import "../../lib/os-gui/peggys-pastels.css"; */
:root {
--theme-loaded: "classic.css";
}
/* .compare-reference is added to <body> when "compare-reference" is in the URL hash. */
.compare-reference::after {
content: url("../../images/mspaint-win98-reference.png");
position: fixed;
top: -23px;
left: -4px;
z-index: 10000;
opacity: 0.5;
/* opacity: attr(data-reference-opacity); not supported */
transition: opacity 0.5s;
}
.compare-reference[data-reference-opacity="0"]::after { opacity: 0; }
.compare-reference[data-reference-opacity="0.1"]::after { opacity: 0.1; }
.compare-reference[data-reference-opacity="0.2"]::after { opacity: 0.2; }
.compare-reference[data-reference-opacity="0.3"]::after { opacity: 0.3; }
.compare-reference[data-reference-opacity="0.4"]::after { opacity: 0.4; }
.compare-reference[data-reference-opacity="0.5"]::after { opacity: 0.5; }
.compare-reference[data-reference-opacity="0.6"]::after { opacity: 0.6; }
.compare-reference[data-reference-opacity="0.7"]::after { opacity: 0.7; }
.compare-reference[data-reference-opacity="0.8"]::after { opacity: 0.8; }
.compare-reference[data-reference-opacity="0.9"]::after { opacity: 0.9; }
.compare-reference[data-reference-opacity="1"]::after { opacity: 1; }
.compare-reference-tool-windows::after {
content: url("../../images/mspaint-win98-reference-tool-windows.png");
}
.compare-reference {
width: calc(567px - 4px - 4px);
height: calc(402px - 23px - 4px);
background: var(--Background);
}
.jspaint {
background: var(--ButtonFace);
}
body,
.canvas-area {
background: var(--AppWorkspace);
}
.canvas-area > canvas {
background: var(--checker);
/* 16px is a common grid size, but that gives 8px grid cells, and our max zoom is 8x */
/*background-size: 16px;*/
background-size: 8px;
}
/* Show images as pixelated if at pixel-perfect scales. */
/* WET for vendor prefixes (for Safari) */
@media (resolution: 1x), (resolution: 2x), (min-resolution: 3x) {
* {
image-rendering: -moz-crisp-edges;
image-rendering: crisp-edges;
image-rendering: pixelated;
}
}
@media (-webkit-device-pixel-ratio: 1), (-webkit-device-pixel-ratio: 2), (-webkit-device-pixel-ratio: 3) {
* {
image-rendering: -moz-crisp-edges;
image-rendering: crisp-edges;
image-rendering: pixelated;
}
}
.disable-aa-for-things-at-main-canvas-scale .main-canvas,
.disable-aa-for-things-at-main-canvas-scale .selection canvas {
image-rendering: -moz-crisp-edges;
image-rendering: crisp-edges;
image-rendering: pixelated;
}
.thumbnail-img {
/* these scale down, so nearest neighbor scaling looks bad */
image-rendering: auto;
}
.selection:after,
.textbox:after {
content: '';
position: absolute;
left: 0px;
top: 0px;
right: 0px;
bottom: 0px;
outline: 1px dashed black;
box-shadow: 0 0 0 1px white;
}
.canvas-area .handle {
background: var(--Hilight);
}
.canvas-area .useless-handle {
background: var(--HilightText); /* @TODO: --ButtonHilight? --Window? */
box-shadow: 1px 1px 0 var(--Hilight) inset;
}
.resize-ghost {
/* this isn't quite the right inversion effect, but I think it's the best I can do;
white makes it invisible over the classic theme's dark gray background;
it's supposed to be lighter over the dark gray background, but I can only make it darker */
outline: 1px dotted #ccc;
mix-blend-mode: difference;
}
.status-area {
gap: 2px;
font-family: 'Segoe UI', sans-serif;
font-size: 12px;
color: var(--ButtonText);
padding-top: 2px;
}
.status-field {
height: 21px;
box-sizing: border-box;
display: flex;
align-items: center;
}
.text-toolbar-button-group button:not(:first-child) {
margin-left: 0;
}
.text-toolbar-button-group button:not(:last-child) {
margin-right: 0;
}
.tool-options {
border: 1px solid var(--ButtonHilight);
border-top-color: var(--ButtonShadow);
border-left-color: var(--ButtonShadow);
}
.tool {
margin: 0;
padding: 0;
width: 25px;
height: 25px;
border: 0;
border-right: 1px solid var(--ButtonDkShadow);
border-bottom: 1px solid var(--ButtonDkShadow);
background: transparent;
outline: 0;
}
.tool:before {
content: " ";
position: absolute;
z-index: 1;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
border-top: 1px solid var(--ButtonHilight);
border-left: 1px solid var(--ButtonHilight);
border-right: 1px solid var(--ButtonShadow);
border-bottom: 1px solid var(--ButtonShadow);
}
.tool:hover:active {
padding: 1px;
background: transparent !important;
}
.tool:hover:active,
.tool.selected {
padding-bottom: 2px;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
border-top: 1px solid var(--ButtonDkShadow);
border-left: 1px solid var(--ButtonDkShadow);
border-right: 1px solid var(--ButtonHilight);
border-bottom: 1px solid var(--ButtonHilight);
}
.tool:hover:active:before,
.tool.selected:before {
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
border-top: 1px solid var(--ButtonShadow);
border-left: 1px solid var(--ButtonShadow);
border-right: 1px solid var(--ButtonFace);
border-bottom: 1px solid var(--ButtonFace);
}
.tool.selected,
.current-colors {
background: var(--checker);
}
.tool-icon {
background-image: url("../../images/classic/tools.png");
background-repeat: no-repeat;
background-position: calc(-16px * var(--icon-index)) 0;
}
.tool-icon.use-svg {
background-image: url("../../images/classic/tools.svg");
background-position: calc(-16px * (var(--icon-index) * 2 + 1)) -16px;
}
.tools {
height: 200px;
width: 50px;
}
.current-colors {
box-sizing: border-box;
-moz-box-sizing: border-box;
}
.color-selection {
box-sizing: border-box;
-moz-box-sizing: border-box;
border-top: 1px solid var(--ButtonHilight);
border-left: 1px solid var(--ButtonHilight);
border-right: 1px solid var(--ButtonShadow);
border-bottom: 1px solid var(--ButtonShadow);
}
.color-selection:after {
content: '';
position: absolute;
left: 0px;
top: 0px;
right: 0px;
bottom: 0px;
/* @TODO: ButtonAlternateFace? */
border: 1px solid var(--ButtonFace);
}
.current-colors,
.color-button {
border-top: 1px solid var(--ButtonShadow);
border-left: 1px solid var(--ButtonShadow);
/* @TODO: var(--ButtonAlternateFace)? */
border-right: 1px solid var(--ButtonFace);
border-bottom: 1px solid var(--ButtonFace);
/*box-shadow: 1px 1px 0px var(--ButtonDkShadow) inset;*/
}
.swatch:before {
content: '';
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
}
.color-selection:before {
left: 1px;
top: 1px;
right: 1px;
bottom: 1px;
}
.color-button:before,
.current-colors:before,
.swatch.pattern:before {
border-left: 1px solid var(--ButtonDkShadow);
border-top: 1px solid var(--ButtonDkShadow);
}
.swatch.pattern:before {
border-right: 1px solid var(--ButtonDkShadow);
border-bottom: 1px solid var(--ButtonDkShadow);
}
.current-colors:after,
.color-button:after {
content: '';
position: absolute;
left: -1px;
top: -1px;
right: -2px;
bottom: -2px;
border-right: 1px solid var(--ButtonHilight);
border-bottom: 1px solid var(--ButtonHilight);
}
.vertical > .component-area::before,
.vertical > .component-area::after {
position: absolute;
left: 0;
right: 0;
border-top: 1px solid var(--ButtonShadow);
border-bottom: 1px solid var(--ButtonHilight);
z-index: 0;
}
.vertical > .component-area::before {
content: '';
top: -2px;
}
.vertical > .component-area:not(:empty)::after {
content: '';
bottom: 0;
}
.vertical > .top.component-area::before {
top: -1px; /* hm, this is a one pixel change, and the tool buttons are supposed to be tucked in by 1px... may be related? */
}
.canvas-area {
z-index: 1;
}
.component-ghost.dock {
/* this isn't quite the right inversion effect, but I think it's the best I can do;
white makes it invisible over the classic theme's dark gray background;
it's supposed to be lighter over the dark gray background, but I can only make it darker */
outline: 1px solid #ccc;
mix-blend-mode: difference;
}
.component-ghost:not(.dock) {
outline: 1px dotted #ccc;
mix-blend-mode: difference;
}
.component-ghost:not(.dock):after,
.component-ghost:not(.dock):before,
/* @TODO: thicker resize ghost (4px instead of 3px) */
.resize-ghost.thick:after,
.resize-ghost.thick:before {
content: '';
position: absolute; left: 0; right: 0; top: 0; bottom: 0;
outline: 1px dotted #ccc;
}
.component-ghost:not(.dock):after,
.resize-ghost.thick:after {
outline-offset: 1px;
}
.component-ghost:not(.dock):before,
.resize-ghost.thick:before {
outline-offset: 2px;
}
.font-box .toggle:enabled > .icon {
-webkit-mask-image: url("../../images/text-tools.png");
-webkit-mask-position: calc(-16px * var(--icon-index)) 0;
mask-image: url("../../images/text-tools.png");
mask-position: calc(-16px * var(--icon-index)) 0;
background-color: currentColor;
}
.font-box .toggle:disabled > .icon {
background-image: url("../../images/text-tools.png");
background-position: calc(-16px * var(--icon-index)) 0;
filter: saturate(0%) opacity(50%); /* fallback */
filter: url("#disabled-inset-filter-2");
}
.tool-window .window-titlebar {
font-size: 12px;
height: 15px;
}
.tool-window .window-title {
padding-left: 2px;
}
.tool-window .window-close-button {
width: 13px;
height: 11px;
background-position: 8px 0;
}
.tool-window .window-close-button:hover:active {
background-position: 9px 1px;
}
.tool-window .window-titlebar button {
margin: 2px;
}
.window-content {
font-family: Arial, sans-serif;
font-size: 16px;
color: var(--WindowText);
}
.help-window .item {
font-family: 'Segoe UI', sans-serif;
font-size: 12px;
padding: 0 2px;
position: relative; /* for ::after */
}
.help-window .item:hover {
text-decoration: underline;
color: #0000FF;
cursor: pointer;
}
.help-window li:before {
background-image: url("../../images/help-icons.png");
}
.help-window:not(.focused) .item.selected {
background-color: var(--ButtonFace);
color: var(--ButtonText); /* ?? */
}
.help-window.focused .item.selected {
background-color: var(--Hilight);
color: var(--HilightText);
/* @TODO: separate focus state of the item */
outline: 1px dotted black;
outline-offset: -1px;
}
/* @TODO: separate focus state of the item; while mouse down, the main highlight does not move with the arrow keys but this does, among other differences */
/* .help-window.focused .item.selected::after {
content: "";
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
border: 1px dotted white;
mix-blend-mode: difference;
} */
.history-view {
background: var(--Window);
color: var(--WindowText);
}
.magnification-option {
background-image: url("../../images/options-magnification.png");
}
.magnification-option.use-svg {
background-image: url("../../images/options-magnification.svg");
}
.transparent-mode-option {
background-image: url("../../images/classic/options-transparency.png");
}
.transparent-mode-option.use-svg {
background-image: url("../../images/classic/options-transparency.svg");
}
.eye-gaze-mode .eye-gaze-mode-undo-button .button-icon {
background: url(../../images/classic/undo.svg);
}
.eye-gaze-mode .toggle-dwell-clicking .button-icon {
background: url(../../images/classic/eye-gaze-pause.svg);
}
.eye-gaze-mode.eye-gaze-mode-paused .toggle-dwell-clicking .button-icon {
background: url(../../images/classic/eye-gaze-unpause.svg);
}
input[type=text]:not(.inset-deep),
input[type=url]:not(.inset-deep),
input[type=number]:not(.inset-deep) {
border: 1px solid gray;
}
input[type=text],
input[type=url],
input[type=search],
input[type=number],
input[type=text].inset-deep, /* overriding background */
input[type=url].inset-deep,
input[type=search].inset-deep,
input[type=number].inset-deep,
select.inset-deep {
background-color: var(--Window);
color: var(--WindowText);
/* @TODO: should controls be styled by default, or need .inset-deep or similar? */
/* border-image: var(--inset-deep-border-image); */
}
/* @XXX: using inset-deep to mean "thematic" */
input[type=text].inset-deep,
input[type=url].inset-deep,
input[type=search].inset-deep,
input[type=number].inset-deep,
select.inset-deep {
outline: none;
}
input[type=text]:disabled,
input[type=url]:disabled,
input[type=search]:disabled,
input[type=number]:disabled {
background: var(--ButtonFace);
color: var(--GrayText);
}
input[type=number].no-spinner::-webkit-inner-spin-button,
input[type=number].no-spinner::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
input[type=number].no-spinner {
-moz-appearance: textfield;
}
input:disabled + label {
color: var(--GrayText);
}
/*
Will need a wrapper element or ideally an accessible stylable replacement for the select element for further styling.
Can't use option:hover, or option::after, or select::after, among other things.
*/
/* @XXX: using inset-deep to mean "thematic" */
select.inset-deep {
/* taken from 98.css: https://jdan.github.io/98.css/ */
/* padding-right and background-position are in layout.css for RTL support (@TODO: RTL theme CSS too) */
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15 0H0v16h1V1h14V0z' fill='%23DFDFDF'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M2 1H1v14h1V2h12V1H2z' fill='%23fff'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M16 17H0v-1h15V0h1v17z' fill='%23000'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15 1h-1v14H1v1h14V1z' fill='gray'/%3E%3Cpath fill='silver' d='M2 2h12v13H2z'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M11 6H4v1h1v1h1v1h1v1h1V9h1V8h1V7h1V6z' fill='%23000'/%3E%3C/svg%3E");
background-repeat: no-repeat;
border-radius: 0;
box-sizing: border-box;
height: 21px;
outline: none;
}
select.inset-deep:focus:not(:active) {
color: var(--HilightText);
background-color: var(--Hilight);
}
select.inset-deep option {
background-color: var(--Window);
color: var(--WindowText);
}
/* input:invalid {
box-shadow: 0 0 0 2px red;
} */
.partial-url-label {
opacity: 0.6;
}
/* @XXX: using .inset-deep to mean "thematic" */
/* @TODO: show percentage on progress bar, white (HilightText) where it overlaps the Hilight */
progress[value].inset-deep {
display: block;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
background-color: var(--ButtonFace);
position: relative;
}
progress[value].inset-deep::-webkit-progress-value {
background: var(--Hilight);
}
progress[value].inset-deep::-moz-progress-bar {
background: var(--Hilight);
}
summary {
padding: 0;
}
summary:focus {
outline: 1px dotted var(--ButtonText);
}
summary:hover > span {
text-decoration: underline;
color: #0000FF;
}
summary::marker {
color: var(--ButtonText);
content: "►";
text-decoration: none;
}
details[open] > summary::marker {
color: var(--ButtonText);
content: "▼";
text-decoration: none;
}
/* For Safari on iPad, Fullscreen mode overlays the system bar, completely obscuring our menu bar. */
/* Code in layout.css adds a spacer to the top of the page, and this styles it with the title bar gradient. */
.jspaint::before {
background: linear-gradient(to left, var(--ActiveTitle), var(--GradientActiveTitle));
}

View File

@@ -0,0 +1,23 @@
@import "./classic.css";
@import "./vista-esque-midnight-green.css";
:root {
--theme-loaded: "dark.css";
}
.tool-icon {
background-image: url("../../images/dark/tools.png");
background-repeat: no-repeat;
background-position: calc(-16px * var(--icon-index)) 0; /* same as classic theme, but couldn't hurt */
}
.tool-icon.use-svg {
background-image: url("../../images/dark/tools.svg");
background-position: calc(-16px * (var(--icon-index) * 2 + 1)) -16px; /* same as classic theme, but couldn't hurt */
}
.eye-gaze-mode .toggle-dwell-clicking .button-icon {
background: url(../../images/dark/eye-gaze-pause.svg);
}
.eye-gaze-mode.eye-gaze-mode-paused .toggle-dwell-clicking .button-icon {
background: url(../../images/dark/eye-gaze-unpause.svg);
}

View File

@@ -0,0 +1,543 @@
:root {
--theme-loaded: "modern.css";
--Hilight: #0178d7;
--HilightText: #ffffff;
--WindowText: #000000;
--ButtonText: #000000;
}
body {
font-family: Roboto, sans-serif;
font-size: 15px;
}
.canvas-area > canvas {
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACAQMAAABIeJ9nAAAABlBMVEW9vb3///8EwsWUAAAADElEQVQI12NoYHAAAAHEAMFJRSpJAAAAAElFTkSuQmCC") repeat;
/* 16px is a common grid size, but that gives 8px grid cells, and our max zoom is 8x */
/*background-size: 16px;*/
background-size: 8px;
}
@media (resolution: 1x), (resolution: 2x), (min-resolution: 3x) {
.canvas-area canvas,
.selection canvas,
.selection img {
image-rendering: -moz-crisp-edges;
image-rendering: crisp-edges;
image-rendering: pixelated;
}
}
.disable-aa-for-things-at-main-canvas-scale .main-canvas,
.disable-aa-for-things-at-main-canvas-scale .selection canvas {
image-rendering: -moz-crisp-edges;
image-rendering: crisp-edges;
image-rendering: pixelated;
}
.selection:after,
.textbox:after {
content: '';
position: absolute;
left: 0px;
top: 0px;
right: 0px;
bottom: 0px;
outline: 1px dashed black;
box-shadow: 0 0 0 1px white;
}
.canvas-area .handle {
background: #000080;
}
.useless-handle {
background: #fff;
box-shadow: 1px 1px 0 #000080 inset;
}
.resize-ghost {
outline: 1px dotted #ccc;
mix-blend-mode: difference;
}
.window {
--window-frame-color: #3f51b5;
}
.window:not(.focused) {
--window-frame-color: #9396a5;
}
.window:not(.maximized) {
border: 4px solid var(--window-frame-color);
border-top-left-radius: 4px;
border-top-right-radius: 4px;
}
.window,
.menu-popup {
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
}
.menu-popup {
border-radius: 2px;
}
.window-titlebar {
background: var(--window-frame-color);
color: white;
padding-left: 8px;
padding-right: 8px;
border-bottom: 4px solid var(--window-frame-color);
}
.tool-window .window-titlebar {
padding: 5px;
}
.window-title-area {
padding: 8px;
}
.window-content {
padding: 16px;
background: white;
color: black;
border-bottom-left-radius: 2px;
border-bottom-right-radius: 2px;
}
.component-window .window-content {
padding: 0;
}
.component-window .component {
padding: 4px 8px;
}
.window-button {
border: 0;
background: none;
color: transparent;
transform: scale(1.5);
font-size: 1px;
border-radius: 50%;
width: 17px;
height: 17px;
margin-left: 10px;
position: relative;
}
.window-button:hover {
background: rgba(255, 255, 255, 0.2);
}
.window-button:hover:active {
background: rgba(255, 255, 255, 0.5);
}
.os-window .window-button {
transform: scale(1.8);
}
.window-button::after {
color: white;
font-size: 15px;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
text-align: center;
}
.window-close-button::after {
content: "×";
}
.window-minimize-button::after {
content: "-";
}
.window-maximize-button::after {
content: "+";
}
.menus {
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.26);
}
.eye-gaze-mode .menu-button {
height: 3rem;
line-height: 3rem;
}
.menu-button,
.menu-item {
outline: 0;
}
.menu-button {
/*padding: 16px;*/
padding: 3px 7px 5px 7px;
margin-top: 2px;
border: 1px solid transparent;
}
.menu-button:hover {
background: #eeeeee;
}
.menu-button:active,
.menu-button.active {
background: #e5e5e5;
}
.menu-item:hover {
background: #eeeeee;
}
.menu-item:active,
.menu-item.active {
background: #e5e5e5;
}
.menu-popup {
background: white;
padding: 8px 0;
}
/*.menu-item {
padding: 6px 10px 6px 30px;
}*/
.menu-item td {
/*height: 32px;*/
height: 27px;
padding: 0;
}
.menu-item td:first-child {
padding-left: 16px;
}
.menu-item td:last-child {
padding-right: 16px;
}
.menu-item[disabled] {
color: #bdbdbd;
}
.menu-item.active {
background: #eeeeee;
}
.menu-hr {
/*height: 32px;*/
margin-top: 6px;
margin-bottom: 6px;
border: 0;
border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.menu-item .menu-item-checkbox-area {
padding-right: 8px;
}
.menu-item .menu-item-shortcut {
padding-left: 16px;
}
/* Menu item SVG for checkboxes and submenu indicators, copy pasted from OS-GUI's CSS */
/* Note: viewBox is needed for scaling the SVG, used in Eye Gaze Mode */
.menu-item-checkbox-area::after {
-webkit-mask-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg' style='fill:currentColor;display:inline-block;vertical-align:middle' %3E%3Cpath d='M5 7v3l2 2 5-5V4L7 9Z'/%3E%3C/svg%3E");
mask-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg' style='fill:currentColor;display:inline-block;vertical-align:middle' %3E%3Cpath d='M5 7v3l2 2 5-5V4L7 9Z'/%3E%3C/svg%3E");
}
.menu-item-checkbox-area.radio::after {
-webkit-mask-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg' style='fill:currentColor;display:inline-block;vertical-align:middle' %3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E");
mask-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg' style='fill:currentColor;display:inline-block;vertical-align:middle' %3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E");
}
.has-submenu .menu-item-submenu-area::after {
-webkit-mask-image: url("data:image/svg+xml, %3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg' style='fill:currentColor;display:inline-block;vertical-align:middle' %3E%3Cpath d='m6 4 4 4-4 4z'/%3E%3C/svg%3E");
mask-image: url("data:image/svg+xml, %3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg' style='fill:currentColor;display:inline-block;vertical-align:middle' %3E%3Cpath d='m6 4 4 4-4 4z'/%3E%3C/svg%3E");
}
.has-submenu .menu-item-submenu-area.point-right::after {
transform: scaleX(-1);
}
.menu-item-checkbox-area::after,
.menu-item-submenu-area::after {
content: "";
display: block;
width: 16px;
height: 16px;
/* no background means it's invisible by default here (masking transparent gives transparent, i.e. nothing) */
}
.menu-item[aria-checked=true] .menu-item-checkbox-area::after,
.menu-item.has-submenu .menu-item-submenu-area::after {
/* makes it visible */
background: currentColor;
}
.color-selection {
width: 18px;
height: 18px;
}
.color-button, /* this outer one is only for detection for the hover halo in eye gaze mode */
.edit-colors-window .swatch, /* this outer one is only for detection for the hover halo in eye gaze mode */
.color-button canvas,
.color-selection canvas,
.edit-colors-window .swatch canvas,
.color-button:after,
.color-selection:after,
.edit-colors-window .swatch:after {
border-radius: 3px;
position: relative;
}
.color-button::after,
.color-selection::after,
.edit-colors-window .swatch::after {
content: '';
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5) inset;
}
.eye-gaze-mode .colors-component.tall {
width: 53px;
}
.eye-gaze-mode .colors-component.tall .color-button {
margin-left: 1px;
}
.edit-colors-window .inset-shallow {
border: 1px solid rgba(0, 0, 0, 0.5);
border-radius: 3px;
}
.edit-colors-window .swatch {
width: 20px;
height: 17px;
}
.edit-colors-window .swatch:focus::after {
outline-offset: 3px;
}
/* @TODO: modern style (this is copied straight from classic.css) */
.font-box .toggle:enabled > .icon {
-webkit-mask-image: url("../../images/text-tools.png");
-webkit-mask-position: calc(-16px * var(--icon-index)) 0;
mask-image: url("../../images/text-tools.png");
mask-position: calc(-16px * var(--icon-index)) 0;
background-color: currentColor;
}
.font-box .toggle:disabled > .icon {
background-image: url("../../images/text-tools.png");
background-position: calc(-16px * var(--icon-index)) 0;
filter: saturate(0%) opacity(50%); /* fallback */
filter: url("#disabled-inset-filter-2");
}
/* @TODO: padding/margin on the top at least when in the sidebar */
.tools {
width: 50px;
}
.tool {
border: 0;
background: 0;
width: 24px;
height: 24px;
}
.tool.selected {
background: rgba(0, 0, 0, 0.24);
}
.toggle.selected {
box-shadow: 0px -2px 1px 0px blue;
}
.tool-icon,
.tool-icon.use-svg { /* specificity needed for overriding classic theme; SVG is not supported yet for this theme */
background-image: url("../../images/modern/tools.png");
background-repeat: no-repeat;
background-position: calc(-16px * var(--icon-index)) 0;
}
/* .tool-icon.use-svg {
background-image: url("../../images/modern/tools.svg");
background-position: calc(-16px * (var(--icon-index) * 2 + 1)) -16px;
} */
.eye-gaze-mode .tool-icon.use-svg {
background-image: url("../../images/classic/tools.svg");
background-position: calc(-16px * (var(--icon-index) * 2 + 1)) -16px;
}
.tool-options {
/* the layout currently depends on the exact pixel width (specifically the brush tool options) */
border: 1px solid rgba(0, 0, 0, 0.24);
}
.magnification-option {
/* background-image: url("../../images/options-magnification.png"); */
background-image: url("../../images/options-magnification.svg");
}
/* .magnification-option.use-svg {
background-image: url("../../images/options-magnification.svg");
} */
.transparent-mode-option {
background-image: url("../../images/modern/options-transparency.png");
}
.eye-gaze-mode .eye-gaze-mode-undo-button .button-icon {
background: url(../../images/classic/undo.svg);
}
.eye-gaze-mode .toggle-dwell-clicking .button-icon {
background: url(../../images/classic/eye-gaze-pause.svg);
}
.eye-gaze-mode.eye-gaze-mode-paused .toggle-dwell-clicking .button-icon {
background: url(../../images/classic/eye-gaze-unpause.svg);
}
.menus,
.component-area,
.status-area {
background: #fff;
}
.status-field {
height: 1.5rem;
line-height: 1.5rem;
}
.status-text {
padding-left: 8px;
}
body,
.canvas-area {
background: #7b7b7b;
/*background: #e9e9e9;*/
}
.canvas-area {
padding: 8px;
border: 1px solid gray;
}
.component-ghost {
border-radius: 2px;
transition: border-radius .2s ease, border-width .2s ease, opacity .2s ease;
outline: 0;
}
/* NOTE: copy/pasted from classic.css */
/* @TODO: actually show a preview of the component itself when dragging for the modern theme */
/* @TODO: cursor maybe? just when already dragging? */
.component-ghost.dock {
border: 1px solid #2196f3;
animation: squish 0.7s ease infinite;
}
@keyframes squish {
0% {
transform: scale(90%, 110%);
}
50% {
transform: scale(110%, 90%);
}
100% {
transform: scale(90%, 110%);
}
}
.component-ghost:not(.dock) {
border: 4px solid #2196f3;
opacity: 0.3;
animation: bobble 1s ease-in-out infinite;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
}
@keyframes bobble {
0% {
transform: scale(95%);
}
50% {
transform: scale(105%);
}
100% {
transform: scale(95%);
}
}
@media (prefers-reduced-motion) {
.component-ghost {
animation: none !important;
}
}
.resize-ghost.thick:after,
.resize-ghost.thick:before {
content: '';
position: absolute; left: 0; right: 0; top: 0; bottom: 0;
outline: 1px dotted #ccc;
}
.resize-ghost.thick:after {
outline-offset: 1px;
}
.resize-ghost.thick:before {
outline-offset: 2px;
}
:root {
/* for disabled button icon effect */
--ButtonHilight: #fff;
--ButtonShadow: #aaa;
}
.help-window .resizer {
background-color: #aaa !important;
border: 0 !important;
box-shadow: none !important;
}
.help-window .toolbar button {
width: 60px;
height: 42px;
margin-left: 2px;
margin-right: 0;
margin-top: 2px;
margin-bottom: 1px;
border-width: 1px; /* or else it's like 17px in Firefox?? and totally screws up the icons */
}
.help-window .window-content {
padding: 0;
}
.help-window iframe {
border: 0;
/* @TODO ideally, apply a padding: 16px on the body in the iframe, except for on the landing page (which has a background) */
}
.help-window ul.contents {
padding: 16px;
border-right: 1px solid rgba(128, 128, 128, 0.5);
}
.help-window .item {
font-family: 'Segoe UI', sans-serif;
font-size: 12px;
padding: 0 2px;
}
.help-window .item:hover {
text-decoration: underline;
color: #1976D2;
cursor: pointer;
}
.help-window li:before {
/* @TODO: more modern icons */
background-image: url("../../images/help-icons.png");
}
.help-window .item.selected {
/* @TODO: separate .help-window .contents.focused .item.selected */
background-color: #2196f3;
color: white;
}
/* ::selection {
background-color: #2196f3;
color: white;
} */
.history-view {
background: white;
color: black;
}
input:invalid {
box-shadow: 0 0 0 2px red;
}
.partial-url-label {
opacity: 0.6;
}
input:disabled + label {
color: gray;
}
details {
border: 1px solid gray;
}
summary {
background-color: #dfdfdf;
color: black;
padding: 3px;
padding-left: 7px;
}
details[open] > summary {
border-bottom: 1px solid gray;
}
details,
summary {
border-top-left-radius: 3px;
border-top-right-radius: 3px;
}
details:not([open]),
details:not([open]) > summary {
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
}

View File

@@ -0,0 +1,36 @@
@import "./classic.css";
@import "./red-wine.css";
:root {
--theme-loaded: "occult.css";
}
.tool-icon,
.tool-icon.use-svg { /* specificity needed for overriding classic theme; SVG is not supported yet for this theme */
background-image: url("../../images/occult/tools.png");
background-repeat: no-repeat;
background-position: calc(-16px * var(--icon-index)) 0;
}
/* .tool-icon.use-svg {
background-image: url("../../images/occult/tools.svg");
background-position: calc(-16px * (var(--icon-index) * 2 + 1)) -16px;
} */
.eye-gaze-mode .tool-icon.use-svg {
background-image: url("../../images/dark/tools.svg");
background-position: calc(-16px * (var(--icon-index) * 2 + 1)) -16px;
}
.transparent-mode-option,
.transparent-mode-option.use-svg { /* specificity needed for overriding classic theme; SVG is not supported yet for this theme */
background-image: url("../../images/occult/options-transparency.png");
}
/* .transparent-mode-option.use-svg {
background-image: url("../../images/occult/options-transparency.svg");
} */
.eye-gaze-mode .toggle-dwell-clicking .button-icon {
background: url(../../images/dark/eye-gaze-pause.svg);
}
.eye-gaze-mode.eye-gaze-mode-paused .toggle-dwell-clicking .button-icon {
background: url(../../images/dark/eye-gaze-unpause.svg);
}

View File

@@ -0,0 +1,45 @@
/* This is a generated file. */
:root {
--checker: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAGklEQVQYV2M84GDxf9mZCwyMaTwc/6NMDBgASCgGs4uut0wAAAAASUVORK5CYII=");
--button-active-border-image: url("data:image/svg+xml,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22256px%22%20height%3D%22256px%22%20viewBox%3D%220%200%20256%20256%22%3E%0A%09%09%09%0A%09%09%3Cpath%20d%3D%22M0%200h256v256h-256v-256z%22%20fill%3D%22rgb(64%2C%2032%2C%2032)%22%2F%3E%0A%09%09%3Cpath%20d%3D%22M32%2032h192v192h-192v-192z%22%20fill%3D%22rgb(67%2C%209%2C%205)%22%2F%3E%0A%09%09%3Cpath%20d%3D%22M64%2064h128v128h-128v-128z%22%20fill%3D%22rgb(102%2C%2012%2C%208)%22%2F%3E%0A%09%0A%09%09%3C%2Fsvg%3E") 64 / 2px;
--button-normal-border-image: url("data:image/svg+xml,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22256px%22%20height%3D%22256px%22%20viewBox%3D%220%200%20256%20256%22%3E%0A%09%09%09%0A%09%09%3Cpath%20d%3D%22M0%200h224v32h-192v192h-32v-224z%22%20fill%3D%22rgb(192%2C%2064%2C%2056)%22%2F%3E%0A%09%09%3Cpath%20d%3D%22M224%200h32v256h-256v-32h224v-224z%22%20fill%3D%22rgb(64%2C%2032%2C%2032)%22%2F%3E%0A%09%09%3Cpath%20d%3D%22M32%2032h160v32h-128v128h-32v-160z%22%20fill%3D%22rgb(102%2C%2012%2C%208)%22%2F%3E%0A%09%09%3Cpath%20d%3D%22M192%2032h32v192h-192v-32h160v-160z%22%20fill%3D%22rgb(67%2C%209%2C%205)%22%2F%3E%0A%09%09%3Cpath%20d%3D%22M64%2064h128v128h-128v-128z%22%20fill%3D%22rgb(102%2C%2012%2C%208)%22%2F%3E%0A%09%0A%09%09%3C%2Fsvg%3E") 64 / 2px;
--inset-deep-border-image: url("data:image/svg+xml,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22256px%22%20height%3D%22256px%22%20viewBox%3D%220%200%20256%20256%22%3E%0A%09%09%09%0A%09%09%3Cpath%20d%3D%22M0%200h224v32h-192v192h-32v-224z%22%20fill%3D%22rgb(64%2C%2032%2C%2032)%22%2F%3E%0A%09%09%3Cpath%20d%3D%22M224%200h32v256h-256v-32h224v-224z%22%20fill%3D%22rgb(192%2C%2064%2C%2056)%22%2F%3E%0A%09%09%3Cpath%20d%3D%22M32%2032h160v32h-128v128h-32v-160z%22%20fill%3D%22rgb(67%2C%209%2C%205)%22%2F%3E%0A%09%09%3Cpath%20d%3D%22M192%2032h32v192h-192v-32h160v-160z%22%20fill%3D%22rgb(102%2C%2012%2C%208)%22%2F%3E%0A%09%09%3Cpath%20d%3D%22M64%2064h128v128h-128v-128z%22%20fill%3D%22rgb(102%2C%2012%2C%208)%22%2F%3E%0A%09%0A%09%09%3C%2Fsvg%3E") 64 / 2px;
--button-default-border-image: url("data:image/svg+xml,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22256px%22%20height%3D%22256px%22%20viewBox%3D%220%200%20256%20256%22%3E%0A%09%09%09%0A%09%09%3Cpath%20d%3D%22M0%200h256v256h-256v-256z%22%20fill%3D%22rgb(64%2C%2032%2C%2032)%22%2F%3E%0A%09%09%3Cpath%20d%3D%22M32%2032h160v32h-128v128h-32v-160z%22%20fill%3D%22rgb(192%2C%2064%2C%2056)%22%2F%3E%0A%09%09%3Cpath%20d%3D%22M64%2064h96v32h-64v64h-32v-96z%22%20fill%3D%22rgb(102%2C%2012%2C%208)%22%2F%3E%0A%09%09%3Cpath%20d%3D%22M160%2064h32v128h-128v-32h96v-96z%22%20fill%3D%22rgb(67%2C%209%2C%205)%22%2F%3E%0A%09%09%3Cpath%20d%3D%22M96%2096h64v64h-64v-64z%22%20fill%3D%22rgb(102%2C%2012%2C%208)%22%2F%3E%0A%09%09%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%22256%22%20height%3D%22256%22%20stroke-width%3D%2264%22%20stroke%3D%22rgb(0%2C%200%2C%200)%22%20fill%3D%22none%22%2F%3E%0A%09%0A%09%09%3C%2Fsvg%3E") 96 / 3px;
--button-default-active-border-image: url("data:image/svg+xml,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22256px%22%20height%3D%22256px%22%20viewBox%3D%220%200%20256%20256%22%3E%0A%09%09%09%0A%09%09%3Cpath%20d%3D%22M0%200h256v256h-256v-256z%22%20fill%3D%22rgb(64%2C%2032%2C%2032)%22%2F%3E%0A%09%09%3Cpath%20d%3D%22M32%2032h192v192h-192v-192z%22%20fill%3D%22rgb(67%2C%209%2C%205)%22%2F%3E%0A%09%09%3Cpath%20d%3D%22M64%2064h128v128h-128v-128z%22%20fill%3D%22rgb(102%2C%2012%2C%208)%22%2F%3E%0A%09%09%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%22256%22%20height%3D%22256%22%20stroke-width%3D%2264%22%20stroke%3D%22rgb(0%2C%200%2C%200)%22%20fill%3D%22none%22%2F%3E%0A%09%0A%09%09%3C%2Fsvg%3E") 64 / 2px;
--scrollbar-arrows-ButtonText: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAJCAYAAABaMo5wAAAAYElEQVQ4T2NkGGSAcZC5h4EmDvr///9/RkZGosxGVwvXBJJADy1chhKyEGYWIUdhU4fiC2RH4XMMzOG0UIMRrPh8T2woUi2EqJXACUUpsj040xC1HEOpOUTlBEotIUU/AKXFQAqyTJ6DAAAAAElFTkSuQmCC");
--scrollbar-arrows-GrayText: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAJCAYAAABaMo5wAAAAYElEQVQ4T2NkGGSAcZC5h4EmDjrg4PDf4cABosxGVwvXBJJADy1chhKyEGYWIUdhU4fiC2RH4XMMzOG0UIMRrPh8T2woUi2EqJXACUUpsj040xC1HEOpOUTlBEotIUU/AKtmQArdV6QJAAAAAElFTkSuQmCC");
--scrollbar-arrows-ButtonHilight: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAJCAYAAABaMo5wAAAAYElEQVQ4T2NkGGSAcZC5h4EmDjrgYPHf4cAJosxGVwvXBJJADy1chhKyEGYWIUdhU4fiC2RH4XMMzOG0UIMRrPh8T2woUi2EqJXACUUpsj040xC1HEOpOUTlBEotIUU/AKbmQArChw1hAAAAAElFTkSuQmCC");
--scrollbar-size: 13px;
--scrollbar-button-inner-size: 9px;
--ActiveTitle: rgb(64, 0, 12);
--Background: rgb(147, 9, 0);
--Hilight: rgb(192, 0, 0);
--HilightText: rgb(255, 255, 255);
--TitleText: rgb(255, 255, 255);
--Window: rgb(64, 0, 0);
--WindowText: rgb(255, 255, 255);
--Scrollbar: rgb(192, 64, 56);
--InactiveTitle: rgb(0, 0, 0);
--Menu: rgb(102, 12, 8);
--WindowFrame: rgb(0, 0, 0);
--MenuText: rgb(255, 255, 255);
--ActiveBorder: rgb(102, 12, 8);
--InactiveBorder: rgb(102, 12, 8);
--AppWorkspace: rgb(67, 9, 5);
--ButtonFace: rgb(102, 12, 8);
--ButtonShadow: rgb(67, 9, 5);
--GrayText: rgb(192, 64, 64);
--ButtonText: rgb(255, 255, 255);
--InactiveTitleText: rgb(239, 44, 33);
--ButtonHilight: rgb(192, 64, 56);
--ButtonDkShadow: rgb(64, 32, 32);
--ButtonLight: rgb(102, 12, 8);
--InfoText: rgb(255, 217, 173);
--InfoWindow: rgb(64, 0, 0);
--GradientActiveTitle: rgb(217, 11, 0);
--GradientInactiveTitle: rgb(134, 4, 2);
--ButtonAlternateFace: rgb(192, 192, 192);
--HotTrackingColor: rgb(255, 0, 0);
--MenuHilight: rgb(192, 0, 0);
--MenuBar: rgb(102, 12, 8);
}

View File

@@ -0,0 +1,47 @@
/* Source: https://www.deviantart.com/tpenguinltg/art/Vista-esque-Midnight-Green-563591910 */
/* License: https://creativecommons.org/licenses/by-sa/3.0/ */
/* This is a generated file. */
:root {
--checker: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAGklEQVQYV2NsaGj4v2DBAgZGBQWF/wkJCQwAR5oG4S4rhtYAAAAASUVORK5CYII=");
--button-active-border-image: url("data:image/svg+xml,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22256px%22%20height%3D%22256px%22%20viewBox%3D%220%200%20256%20256%22%3E%0A%09%09%09%0A%09%09%3Cpath%20d%3D%22M0%200h256v256h-256v-256z%22%20fill%3D%22rgb(0%2C%200%2C%200)%22%2F%3E%0A%09%09%3Cpath%20d%3D%22M32%2032h192v192h-192v-192z%22%20fill%3D%22rgb(21%2C%2021%2C%2021)%22%2F%3E%0A%09%09%3Cpath%20d%3D%22M64%2064h128v128h-128v-128z%22%20fill%3D%22rgb(32%2C%2032%2C%2032)%22%2F%3E%0A%09%0A%09%09%3C%2Fsvg%3E") 64 / 2px;
--button-normal-border-image: url("data:image/svg+xml,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22256px%22%20height%3D%22256px%22%20viewBox%3D%220%200%20256%20256%22%3E%0A%09%09%09%0A%09%09%3Cpath%20d%3D%22M0%200h224v32h-192v192h-32v-224z%22%20fill%3D%22rgb(128%2C%20128%2C%20128)%22%2F%3E%0A%09%09%3Cpath%20d%3D%22M224%200h32v256h-256v-32h224v-224z%22%20fill%3D%22rgb(0%2C%200%2C%200)%22%2F%3E%0A%09%09%3Cpath%20d%3D%22M32%2032h160v32h-128v128h-32v-160z%22%20fill%3D%22rgb(32%2C%2032%2C%2032)%22%2F%3E%0A%09%09%3Cpath%20d%3D%22M192%2032h32v192h-192v-32h160v-160z%22%20fill%3D%22rgb(21%2C%2021%2C%2021)%22%2F%3E%0A%09%09%3Cpath%20d%3D%22M64%2064h128v128h-128v-128z%22%20fill%3D%22rgb(32%2C%2032%2C%2032)%22%2F%3E%0A%09%0A%09%09%3C%2Fsvg%3E") 64 / 2px;
--inset-deep-border-image: url("data:image/svg+xml,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22256px%22%20height%3D%22256px%22%20viewBox%3D%220%200%20256%20256%22%3E%0A%09%09%09%0A%09%09%3Cpath%20d%3D%22M0%200h224v32h-192v192h-32v-224z%22%20fill%3D%22rgb(0%2C%200%2C%200)%22%2F%3E%0A%09%09%3Cpath%20d%3D%22M224%200h32v256h-256v-32h224v-224z%22%20fill%3D%22rgb(128%2C%20128%2C%20128)%22%2F%3E%0A%09%09%3Cpath%20d%3D%22M32%2032h160v32h-128v128h-32v-160z%22%20fill%3D%22rgb(21%2C%2021%2C%2021)%22%2F%3E%0A%09%09%3Cpath%20d%3D%22M192%2032h32v192h-192v-32h160v-160z%22%20fill%3D%22rgb(32%2C%2032%2C%2032)%22%2F%3E%0A%09%09%3Cpath%20d%3D%22M64%2064h128v128h-128v-128z%22%20fill%3D%22rgb(32%2C%2032%2C%2032)%22%2F%3E%0A%09%0A%09%09%3C%2Fsvg%3E") 64 / 2px;
--button-default-border-image: url("data:image/svg+xml,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22256px%22%20height%3D%22256px%22%20viewBox%3D%220%200%20256%20256%22%3E%0A%09%09%09%0A%09%09%3Cpath%20d%3D%22M0%200h256v256h-256v-256z%22%20fill%3D%22rgb(0%2C%200%2C%200)%22%2F%3E%0A%09%09%3Cpath%20d%3D%22M32%2032h160v32h-128v128h-32v-160z%22%20fill%3D%22rgb(128%2C%20128%2C%20128)%22%2F%3E%0A%09%09%3Cpath%20d%3D%22M64%2064h96v32h-64v64h-32v-96z%22%20fill%3D%22rgb(32%2C%2032%2C%2032)%22%2F%3E%0A%09%09%3Cpath%20d%3D%22M160%2064h32v128h-128v-32h96v-96z%22%20fill%3D%22rgb(21%2C%2021%2C%2021)%22%2F%3E%0A%09%09%3Cpath%20d%3D%22M96%2096h64v64h-64v-64z%22%20fill%3D%22rgb(32%2C%2032%2C%2032)%22%2F%3E%0A%09%09%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%22256%22%20height%3D%22256%22%20stroke-width%3D%2264%22%20stroke%3D%22rgb(0%2C%200%2C%200)%22%20fill%3D%22none%22%2F%3E%0A%09%0A%09%09%3C%2Fsvg%3E") 96 / 3px;
--button-default-active-border-image: url("data:image/svg+xml,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22256px%22%20height%3D%22256px%22%20viewBox%3D%220%200%20256%20256%22%3E%0A%09%09%09%0A%09%09%3Cpath%20d%3D%22M0%200h256v256h-256v-256z%22%20fill%3D%22rgb(0%2C%200%2C%200)%22%2F%3E%0A%09%09%3Cpath%20d%3D%22M32%2032h192v192h-192v-192z%22%20fill%3D%22rgb(21%2C%2021%2C%2021)%22%2F%3E%0A%09%09%3Cpath%20d%3D%22M64%2064h128v128h-128v-128z%22%20fill%3D%22rgb(32%2C%2032%2C%2032)%22%2F%3E%0A%09%09%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%22256%22%20height%3D%22256%22%20stroke-width%3D%2264%22%20stroke%3D%22rgb(0%2C%200%2C%200)%22%20fill%3D%22none%22%2F%3E%0A%09%0A%09%09%3C%2Fsvg%3E") 64 / 2px;
--scrollbar-arrows-ButtonText: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAJCAYAAABaMo5wAAAAYElEQVQ4T2NkGGSAcZC5h4EmDvr///9/RkZGosxGVwvXBJJADy1chhKyEGYWIUdhU4fiC2RH4XMMzOG0UIMRrPh8T2woUi2EqJXACUUpsj040xC1HEOpOUTlBEotIUU/AKXFQAqyTJ6DAAAAAElFTkSuQmCC");
--scrollbar-arrows-GrayText: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAJCAYAAABaMo5wAAAAYElEQVQ4T2NkGGSAcZC5h4EmDlJQUPj/4MEDosxGVwvXBJJADy1chhKyEGYWIUdhU4fiC2RH4XMMzOG0UIMRrPh8T2woUi2EqJXACUUpsj040xC1HEOpOUTlBEotIUU/AC1mQAqnFEiwAAAAAElFTkSuQmCC");
--scrollbar-arrows-ButtonHilight: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAJCAYAAABaMo5wAAAAYElEQVQ4T2NkGGSAcZC5h4EmDmpoaPjf0NBAlNnoauGaQBLooYXLUEIWwswi5Chs6lB8gewofI6BOZwWajCCFZ/viQ1FqoUQtRI4oShFtgdnGqKWYyg1h6icQKklpOgHAM9mQArEvm5+AAAAAElFTkSuQmCC");
--scrollbar-size: 13px;
--scrollbar-button-inner-size: 9px;
--ActiveTitle: rgb(18, 91, 30);
--Background: rgb(15, 45, 30);
--Hilight: rgb(32, 128, 44);
--HilightText: rgb(255, 255, 255);
--TitleText: rgb(255, 255, 255);
--Window: rgb(0, 0, 0);
--WindowText: rgb(255, 255, 255);
--Scrollbar: rgb(128, 128, 128);
--InactiveTitle: rgb(18, 91, 30);
--Menu: rgb(32, 32, 32);
--WindowFrame: rgb(0, 0, 0);
--MenuText: rgb(255, 255, 255);
--ActiveBorder: rgb(32, 32, 32);
--InactiveBorder: rgb(32, 32, 32);
--AppWorkspace: rgb(21, 21, 21);
--ButtonFace: rgb(32, 32, 32);
--ButtonShadow: rgb(21, 21, 21);
--GrayText: rgb(32, 32, 32);
--ButtonText: rgb(255, 255, 255);
--InactiveTitleText: rgb(192, 192, 192);
--ButtonHilight: rgb(128, 128, 128);
--ButtonDkShadow: rgb(0, 0, 0);
--ButtonLight: rgb(32, 32, 32);
--InfoText: rgb(255, 255, 255);
--InfoWindow: rgb(0, 30, 0);
--GradientActiveTitle: rgb(100, 168, 60);
--GradientInactiveTitle: rgb(18, 91, 30);
--ButtonAlternateFace: rgb(192, 192, 192);
--HotTrackingColor: rgb(64, 180, 64);
--MenuHilight: rgb(32, 128, 44);
--MenuBar: rgb(32, 32, 32);
}

View File

@@ -0,0 +1,162 @@
@import "./classic.css";
@import "../../lib/os-gui/blue.css";
@import url('https://fonts.googleapis.com/css?family=Charm|Princess+Sofia&display=swap');
:root {
--theme-loaded: "winter.css";
}
/* Advent calendar-style tool buttons that flip to reveal thematic pixel art for each tool */
/* .tool-icon::before is a flap, and .tool-icon::after is an icon visible on the front of the flap, showing the classic theme's icons for usability */
/* The .tool-icon is used to show the revealed thematic icon. */
.tool-icon,
.tool-icon.use-svg { /* specificity needed for overriding classic theme; SVG is not supported yet for this theme */
background-image: url("../../images/winter/tools.png");
background-repeat: no-repeat;
background-position: calc(-16px * var(--icon-index)) 0;
}
/* .tool-icon.use-svg {
background-image: url("../../images/winter/tools.svg");
background-position: calc(-16px * (var(--icon-index) * 2 + 1)) -16px;
} */
.tool-icon::before,
.tool-icon::after {
content: " ";
position: absolute;
--border-width: 3px;
/* inset doesn't have enough browser support for me */
top: calc(-1 * var(--border-width));
left: calc(-1 * var(--border-width));
right: calc(-1 * var(--border-width));
bottom: calc(-1 * var(--border-width));
border-top: var(--border-width) solid var(--ButtonHilight);
border-left: var(--border-width) solid var(--ButtonHilight);
border-right: var(--border-width) solid var(--ButtonShadow);
border-bottom: var(--border-width) solid var(--ButtonShadow);
--transition-duration: 0.2s;
transition: transform var(--transition-duration) ease-in-out;
transform-origin: left;
--side: -1;
}
.tool-icon::after {
z-index: 3;
background-image: url("../../images/classic/tools.png");
background-repeat: no-repeat;
background-position: calc(-16px * var(--icon-index)) 0;
backface-visibility: hidden;
}
.tool-icon.use-svg::after {
background-image: url("../../images/classic/tools.svg");
background-position: calc(-16px * (var(--icon-index) * 2 + 1)) -16px;
}
.tool .tool-icon::before {
border-width: 1px;
background: linear-gradient(var(--gradient-direction), var(--ButtonFace), var(--ButtonShadow) 190%);
background-position: 20px 0; /* starting gradient not visible */
background-repeat: no-repeat; /* mustn't wrap to be invisible */
background-color: var(--ButtonFace);
transition: transform var(--transition-duration) ease-in-out, background-position var(--transition-duration) ease-in-out;
z-index: 2;
--gradient-direction: to left;
}
.tool.selected .tool-icon::before,
.tool.selected .tool-icon::after {
transform: rotateY(calc(120deg * var(--side))) skewY(calc(-20deg * var(--side)));
}
.tool.selected .tool-icon::before {
background-position: 0% 0% !important; /* !important to override .tool:nth-child(2n+1) .tool-icon::before */
}
.tool:nth-child(2n) .tool-icon::before,
.tool:nth-child(2n) .tool-icon::after {
--side: 1;
transform-origin: right;
--gradient-direction: to right;
}
.tool:nth-child(2n+1) .tool-icon::before {
background-position: -20px 0; /* opposite for transition to work right */
}
/* Fancy cursive menus */
.menus * {
font-family: 'Princess Sofia', cursive;
font-size: 20px;
}
.menu-button {
padding: 5px 10px;
height: 30px;
}
.menu-popup * {
font-family: 'Charm', cursive;
font-size: 18px;
}
/* Fanciful snow flakes for hotkey highlighting */
@supports (mix-blend-mode: overlay) {
.menu-hotkey {
text-decoration: none;
position: relative;
}
.menu-hotkey::after {
/* content: "❄️"; */
/* font-size: 20px; */
/* color: #fff; */
content: "";
width: 1em;
height: 1em;
/* Noto Color Emoji snowflake, brightened a bit. Original fill: #95c7ec */
/* Source: https://github.com/googlefonts/noto-emoji/blob/9a5261d871451f9b5183c93483cbd68ed916b1e9/svg/emoji_u2744.svg */
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 128 128'%3E%3Cpath style='fill:%23aad1ef' d='m70 51-1-19s10-5 12-8 1-9-1-10c-2 0-11 7-12 6s4-6 4-8l-7-7-8 8s3 7 2 8-10-6-12-6c-3 1-2 5-1 7s15 9 15 9l-1 20h-3l-2 3-15-9-1-18c0-2-4-3-5-3l-4 16-6-10-9 2 3 12 10 2-12 14s3 3 6 2l11-8 16 8v3l1 1-16 9c-1 0-10-7-13-7s-5 4-5 4l12 9-10 5-4 9 11 3c2 0 4-8 5-9l1 2s3 11 5 11 4-3 5-4-1-15-1-15l15-8 2 2 4 1v17s-16 7-17 9l1 7 14-5v9s6 9 8 8l6-8-5-9c1 0 10 7 12 6 2 0 3-2 3-4S70 96 70 96V78l3-1 3-4 15 11 1 18 6 2 1-16 7 6 10-2-3-9c-1-2-8-1-8-1-1-1 11-5 11-7s-4-5-5-6l-15 7-17-10 1-2-1-2 17-10s15 6 16 5l3-3-12-7h9l5-10-12-3-5 6-1-13h-6l-2 18-16 9-2-3h-3z'/%3E%3Cpath style='fill:%23afe3ff' d='m76 56 19-10V26l-5 3-1 14-16 9 3 4zM99 44l8-8c2-1 9 2 9 2l1-3c-1-1-10-5-12-4s-5 7-5 7l-1 6zM99 51l-4 2s10 6 13 6 6-3 6-3h-5l-10-5zM77 70l-2 5 14 9s-1 15 1 17l4 2 1-22-18-11zM95 75s9-7 12-7 5 2 5 2l-13 7-4-2zM100 85l-1 4s3 8 6 8c2 1 10-2 11-3v-4s-7 3-9 2c-3 0-7-7-7-7zM59 55l-5 8c0 1 4 9 6 10h10l4-9-4-9H59zM63 22l-2-9 6-6-3-3c-2 0-9 6-9 8l4 9 4 1zM45 19s0 4 2 6c1 2 11 7 11 7l1 19h4V29l-10-5-8-5zM40 48l13 8 2-3-15-9zM30 40l3 3c2-1 2-19 2-19s-3-1-4 0l-1 16zM29 44c2 1 2 3 1 4L17 61s-3-1-3-3l11-11s-8 2-10 0l-4-14 5-1 2 11 11 1zM50 66l-16 9 4 3 14-9zM31 81l-6 4h-6l-4 10-3-1c-1-1 3-11 4-13h9l-10-7c-1-2 3-4 3-4s14 9 13 11zM33 86l-3 3 2 13h4l-3-16zM59 78v15l-14 9-1 5 19-10V78h-4zM83 109l-13-9v-6l12 10 1 5zM60 114l8 8-4 2c-1 0-9-7-9-9l4-9 3-1-2 9z'/%3E%3Cpath style='fill:%23fefefe' d='m71 62-2 4-1 4h-7c-2 0-3 4 0 4l10-1 5-10c0-2-4-7-6-8-1-2-4 0-2 3l3 4zM93 30c-2 0-2 3-2 6s1 6 3 6 1-5 1-7 1-5-2-5zM64 8c1 1-1 3-1 4-1 0-3 2-5 0s1-3 2-4h4zM63 28c-2 0-2 5-2 11 0 8 0 12 2 12s1-4 1-13c0-4 1-10-1-10zM15 33c-3 1-2 4-1 7 1 1 2 6 5 5 2-1 1-5 0-7 0-2-2-6-4-5zM92 90l-1 5 1 5c2 0 2-4 2-5 0-2 0-5-2-5zM63 78l-1 9c0 6-1 10 1 10 2-1 2-7 2-11s0-8-2-8zM37 78c1 1 5-2 8-3 4-2 8-4 7-6s-5 1-8 3c-3 1-8 4-7 6zM25 86l-5 1-2 4c-2 1-3-1-2-3 0-3 1-4 2-5l5-1c2 0 3 3 2 4z'/%3E%3C/svg%3E");
background-repeat: no-repeat;
overflow: hidden;
position: absolute;
mix-blend-mode: overlay;
left: 50%;
bottom: 0.1em;
transform: translateX(-50%);
--base-transform: translateX(-50%);
transform-origin: center;
transition: width 0.2s ease-in-out, height 0.2s ease-in-out, bottom 0.2s ease-in-out, opacity 0.2s ease-in-out;
}
[aria-disabled=true] .menu-hotkey::after {
opacity: 0.7;
--is-disabled: 1;
}
/* This might obscure the purpose of the snowflake indicators, but it's fun. */
.menu-button:hover .menu-hotkey::after,
.highlight:not(.menu-button[aria-expanded="true"]) .menu-hotkey::after {
animation: rotate-snowflake calc(4s + 6s * var(--is-disabled, 0)) linear infinite;
opacity: calc(0.5 - 0.3 * var(--is-disabled, 0));
width: 2em;
height: 2em;
bottom: -0.4em;
}
@keyframes rotate-snowflake {
from {
transform: var(--base-transform) rotate(0deg);
}
to {
transform: var(--base-transform) rotate(360deg);
}
}
/* This might clarify the purpose of the indicators, by asserting that "yes, this letter specifically is special" */
.menu-button:not([aria-disabled=true]).highlight .menu-hotkey,
.menu-item:not([aria-disabled=true]).highlight .menu-hotkey {
color: red;
}
}
/* a button to leave the Winter theme */
button.grinch-button {
position: absolute;
bottom: 0px;
right: 0px;
width: 100px;
height: 179px;
z-index: 2;
background-image: url("../../images/winter/grinch-smile-spritesheet.png");
border: 0;
background-color: transparent;
cursor: pointer;
}