mirror of
https://gitee.com/coder-xiaomo/algorithm-visualization
synced 2025-01-10 19:58:18 +08:00
小改动
This commit is contained in:
parent
7c62e215c5
commit
cee91f51fc
@ -1,205 +1,207 @@
|
|||||||
html,
|
html,
|
||||||
body,
|
body,
|
||||||
.main {
|
.main {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: rgb(28, 85, 255);
|
color: rgb(28, 85, 255);
|
||||||
}
|
}
|
||||||
a:hover {
|
a:hover {
|
||||||
text-shadow: 0 0 2px #b9b9b9;
|
text-shadow: 0 0 2px #b9b9b9;
|
||||||
}
|
}
|
||||||
|
|
||||||
.main {
|
.main {
|
||||||
display: grid;
|
display: grid;
|
||||||
place-items: center;
|
place-items: center;
|
||||||
}
|
padding-top: 60px;
|
||||||
|
height: calc(100% - 60px);
|
||||||
/* 字体 */
|
}
|
||||||
/* refer: https://www.bilibili.com/video/BV1b54y1Z7pu */
|
|
||||||
@font-face {
|
/* 字体 */
|
||||||
font-family: Emoji;
|
/* refer: https://www.bilibili.com/video/BV1b54y1Z7pu */
|
||||||
src: local("Apple Color Emojiji"), local("Segoe UI Emoji"),
|
@font-face {
|
||||||
local("Segoe UI Symbol"), local("Noto Color Emoji");
|
font-family: Emoji;
|
||||||
unicode-range: U+1F000-1F644, U+203C-3299;
|
src: local("Apple Color Emojiji"), local("Segoe UI Emoji"),
|
||||||
}
|
local("Segoe UI Symbol"), local("Noto Color Emoji");
|
||||||
body {
|
unicode-range: U+1F000-1F644, U+203C-3299;
|
||||||
font-family: system-ui, —apple-system, Segoe UI, Rototo, Emoji, Helvetica,
|
}
|
||||||
Arial, sans-serif;
|
body {
|
||||||
}
|
font-family: system-ui, —apple-system, Segoe UI, Rototo, Emoji, Helvetica,
|
||||||
/* 衬线字体 */
|
Arial, sans-serif;
|
||||||
.font-serif {
|
}
|
||||||
font-family: Georgia, Cambria, "Times New Roman", Times, serif;
|
/* 衬线字体 */
|
||||||
}
|
.font-serif {
|
||||||
/* 等宽字体 */
|
font-family: Georgia, Cambria, "Times New Roman", Times, serif;
|
||||||
.font-mono {
|
}
|
||||||
font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
|
/* 等宽字体 */
|
||||||
monospace;
|
.font-mono {
|
||||||
}
|
font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
|
||||||
|
monospace;
|
||||||
/* 深色模式 */
|
}
|
||||||
:root {
|
|
||||||
--color-mode: "light";
|
/* 深色模式 */
|
||||||
--color-dark: #141414;
|
:root {
|
||||||
--color-dark-alpha: rgba(0, 0, 0, 0.1);
|
--color-mode: "light";
|
||||||
--color-dark-console: #323232;
|
--color-dark: #141414;
|
||||||
--color-dark-text-input-filter: invert(1);
|
--color-dark-alpha: rgba(0, 0, 0, 0.1);
|
||||||
--color-dark-filter: brightness(0.5);
|
--color-dark-console: #323232;
|
||||||
|
--color-dark-text-input-filter: invert(1);
|
||||||
/* --color-light: #efefef; */
|
--color-dark-filter: brightness(0.5);
|
||||||
--color-light: #b4b4b4;
|
|
||||||
--color-light-alpha: rgba(255, 255, 255, 0.9);
|
/* --color-light: #efefef; */
|
||||||
--color-light-console: #cccccc;
|
--color-light: #b4b4b4;
|
||||||
--color-light-text-input-filter: initial;
|
--color-light-alpha: rgba(255, 255, 255, 0.9);
|
||||||
--color-light-filter: none;
|
--color-light-console: #cccccc;
|
||||||
|
--color-light-text-input-filter: initial;
|
||||||
--background: #efefef;
|
--color-light-filter: none;
|
||||||
--text-color: #141414;
|
|
||||||
--button-background: var(--color-dark);
|
--background: #efefef;
|
||||||
--button-color: var(--color-light);
|
--text-color: #141414;
|
||||||
--border-color: var(--color-dark-alpha);
|
--button-background: var(--color-dark);
|
||||||
--console-background: var(--color-light-console);
|
--button-color: var(--color-light);
|
||||||
--text-input-filter: var(--color-light-text-input-filter);
|
--border-color: var(--color-dark-alpha);
|
||||||
--filter: var(--color-light-filter);
|
--console-background: var(--color-light-console);
|
||||||
}
|
--text-input-filter: var(--color-light-text-input-filter);
|
||||||
|
--filter: var(--color-light-filter);
|
||||||
@media (prefers-color-scheme: dark) {
|
}
|
||||||
:root {
|
|
||||||
--color-mode: "dark";
|
@media (prefers-color-scheme: dark) {
|
||||||
}
|
:root {
|
||||||
|
--color-mode: "dark";
|
||||||
:root:not([data-user-color-scheme]) {
|
}
|
||||||
--background: var(--color-dark);
|
|
||||||
--text-color: var(--color-light);
|
:root:not([data-user-color-scheme]) {
|
||||||
--button-background: var(--color-light);
|
--background: var(--color-dark);
|
||||||
--button-color: var(--color-dark);
|
--text-color: var(--color-light);
|
||||||
--border-color: var(--color-light-alpha);
|
--button-background: var(--color-light);
|
||||||
--console-background: var(--color-dark-console);
|
--button-color: var(--color-dark);
|
||||||
--text-input-filter: var(--color-dark-text-input-filter);
|
--border-color: var(--color-light-alpha);
|
||||||
--filter: var(--color-dark-filter);
|
--console-background: var(--color-dark-console);
|
||||||
}
|
--text-input-filter: var(--color-dark-text-input-filter);
|
||||||
}
|
--filter: var(--color-dark-filter);
|
||||||
|
}
|
||||||
[data-user-color-scheme="dark"] {
|
}
|
||||||
--background: var(--color-dark);
|
|
||||||
--text-color: var(--color-light);
|
[data-user-color-scheme="dark"] {
|
||||||
--button-background: var(--color-light-alpha);
|
--background: var(--color-dark);
|
||||||
--button-color: var(--color-dark);
|
--text-color: var(--color-light);
|
||||||
--border-color: var(--color-light-alpha);
|
--button-background: var(--color-light-alpha);
|
||||||
--console-background: var(--color-dark-console);
|
--button-color: var(--color-dark);
|
||||||
--text-input-filter: var(--color-dark-text-input-filter);
|
--border-color: var(--color-light-alpha);
|
||||||
--filter: var(--color-dark-filter);
|
--console-background: var(--color-dark-console);
|
||||||
}
|
--text-input-filter: var(--color-dark-text-input-filter);
|
||||||
|
--filter: var(--color-dark-filter);
|
||||||
body {
|
}
|
||||||
background: var(--background);
|
|
||||||
color: var(--text-color);
|
body {
|
||||||
transition: background 500ms ease-in-out, color 200ms ease;
|
background: var(--background);
|
||||||
}
|
color: var(--text-color);
|
||||||
|
transition: background 500ms ease-in-out, color 200ms ease;
|
||||||
input[type="text"],
|
}
|
||||||
input[type="button"],
|
|
||||||
button,
|
input[type="text"],
|
||||||
select {
|
input[type="button"],
|
||||||
filter: var(--text-input-filter);
|
button,
|
||||||
}
|
select {
|
||||||
|
filter: var(--text-input-filter);
|
||||||
/* 导航栏 */
|
}
|
||||||
#header {
|
|
||||||
width: 100%;
|
/* 导航栏 */
|
||||||
height: 60px;
|
#header {
|
||||||
position: fixed;
|
width: 100%;
|
||||||
top: 0;
|
height: 60px;
|
||||||
left: 0;
|
position: fixed;
|
||||||
background-color: var(--background);
|
top: 0;
|
||||||
box-shadow: 0 0 5px #888;
|
left: 0;
|
||||||
overflow-y: hidden;
|
background-color: var(--background);
|
||||||
-webkit-user-select: none;
|
box-shadow: 0 0 5px #888;
|
||||||
user-select: none;
|
overflow: hidden;
|
||||||
}
|
-webkit-user-select: none;
|
||||||
|
user-select: none;
|
||||||
#header-wapper {
|
}
|
||||||
display: grid;
|
|
||||||
height: 100%;
|
#header-wapper {
|
||||||
margin: 0 6vw;
|
display: grid;
|
||||||
grid-template-columns: 300px 1fr 300px;
|
height: 100%;
|
||||||
}
|
margin: 0 6vw;
|
||||||
|
grid-template-columns: 300px 1fr 100px;
|
||||||
.header-logo-image {
|
}
|
||||||
height: 48px;
|
|
||||||
margin: auto 0;
|
.header-logo-image {
|
||||||
-webkit-user-drag: none;
|
height: 48px;
|
||||||
}
|
margin: auto 0;
|
||||||
|
-webkit-user-drag: none;
|
||||||
.header-logo-links a {
|
}
|
||||||
margin-left: 12px;
|
|
||||||
}
|
.header-logo-links a {
|
||||||
|
margin-left: 12px;
|
||||||
/* 正文 */
|
}
|
||||||
#container {
|
|
||||||
border: 1px solid #999;
|
/* 正文 */
|
||||||
border-radius: 5px;
|
#container {
|
||||||
box-shadow: 0 0 5px #999;
|
border: 1px solid #999;
|
||||||
}
|
border-radius: 5px;
|
||||||
|
box-shadow: 0 0 5px #999;
|
||||||
#sidebar {
|
}
|
||||||
display: grid;
|
|
||||||
place-items: center;
|
#sidebar {
|
||||||
}
|
display: grid;
|
||||||
|
place-items: center;
|
||||||
#console-logs {
|
}
|
||||||
margin: 0 auto;
|
|
||||||
margin-top: 8px;
|
#console-logs {
|
||||||
padding: 0 15px;
|
margin: 0 auto;
|
||||||
height: 100px;
|
margin-top: 8px;
|
||||||
width: 300px;
|
padding: 0 15px;
|
||||||
background-color: var(--console-background);
|
height: 100px;
|
||||||
overflow-y: overlay;
|
width: 300px;
|
||||||
border-radius: 10px;
|
background-color: var(--console-background);
|
||||||
}
|
overflow-y: overlay;
|
||||||
|
border-radius: 10px;
|
||||||
/* 滚动条样式 refer: https://www.changchenghao.cn/n/679637.html */
|
}
|
||||||
#console-logs::-webkit-scrollbar {
|
|
||||||
-webkit-appearance: none;
|
/* 滚动条样式 refer: https://www.changchenghao.cn/n/679637.html */
|
||||||
}
|
#console-logs::-webkit-scrollbar {
|
||||||
|
-webkit-appearance: none;
|
||||||
#console-logs::-webkit-scrollbar:vertical {
|
}
|
||||||
width: 11px;
|
|
||||||
}
|
#console-logs::-webkit-scrollbar:vertical {
|
||||||
|
width: 11px;
|
||||||
#console-logs::-webkit-scrollbar-thumb {
|
}
|
||||||
border-radius: 8px;
|
|
||||||
border: 2px solid white;
|
#console-logs::-webkit-scrollbar-thumb {
|
||||||
background-color: rgba(0, 0, 0, 0.5);
|
border-radius: 8px;
|
||||||
}
|
border: 2px solid white;
|
||||||
|
background-color: rgba(0, 0, 0, 0.5);
|
||||||
/* SVG */
|
}
|
||||||
/* 调整 SVG 中文本定位点到文本中央 */
|
|
||||||
svg text {
|
/* SVG */
|
||||||
text-anchor: middle;
|
/* 调整 SVG 中文本定位点到文本中央 */
|
||||||
dominant-baseline: middle;
|
svg text {
|
||||||
}
|
text-anchor: middle;
|
||||||
|
dominant-baseline: middle;
|
||||||
svg {
|
}
|
||||||
-webkit-user-select: none;
|
|
||||||
user-select: none;
|
svg {
|
||||||
filter: var(--filter);
|
-webkit-user-select: none;
|
||||||
}
|
user-select: none;
|
||||||
|
filter: var(--filter);
|
||||||
/* 元素鼠标悬浮样式 */
|
}
|
||||||
svg g:hover > rect {
|
|
||||||
fill: #ffafb6;
|
/* 元素鼠标悬浮样式 */
|
||||||
}
|
svg g:hover > rect {
|
||||||
|
fill: #ffafb6;
|
||||||
/* 右下角水印样式 */
|
}
|
||||||
svg #watermark-r-b {
|
|
||||||
opacity: 0.2;
|
/* 右下角水印样式 */
|
||||||
transition: 0.2s;
|
svg #watermark-r-b {
|
||||||
}
|
opacity: 0.2;
|
||||||
svg #watermark-r-b:hover {
|
transition: 0.2s;
|
||||||
opacity: 0.8;
|
}
|
||||||
}
|
svg #watermark-r-b:hover {
|
||||||
|
opacity: 0.8;
|
||||||
|
}
|
||||||
|
@ -452,7 +452,6 @@ class VectorAnimation {
|
|||||||
var settings = this.workSpace.settings
|
var settings = this.workSpace.settings
|
||||||
let linkedList = document.getElementById(id)
|
let linkedList = document.getElementById(id)
|
||||||
let customAttr = linkedList.customAttr
|
let customAttr = linkedList.customAttr
|
||||||
// console.log(customAttr)
|
|
||||||
|
|
||||||
var gList = linkedList.childNodes
|
var gList = linkedList.childNodes
|
||||||
|
|
||||||
@ -630,7 +629,6 @@ class VectorAnimation {
|
|||||||
var settings = this.workSpace.settings
|
var settings = this.workSpace.settings
|
||||||
let linkedList = document.getElementById(id)
|
let linkedList = document.getElementById(id)
|
||||||
let customAttr = linkedList.customAttr
|
let customAttr = linkedList.customAttr
|
||||||
// console.log(customAttr)
|
|
||||||
|
|
||||||
var gList = linkedList.childNodes
|
var gList = linkedList.childNodes
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user