sync
This commit is contained in:
1 parent
c68c3ef8b8
commit
9d32dd8161
44 files changed
+209
-2947
No files matched your search
@@ -1,22 +1,33 @@
|
||||
|
||||
function copy_text(element_id, keep_url) {
|
||||
|
||||
function copy_text(element_id, keep_url, discord_format = false) {
|
||||
var text = document.getElementById(element_id).innerHTML;
|
||||
text = text.replace(/<br>/g, "\n");
|
||||
|
||||
if (keep_url)
|
||||
text += "\n" + window.location.href;
|
||||
if (keep_url) {
|
||||
if (discord_format) {
|
||||
// Wrap stat block in code block, then add URL outside
|
||||
text = "```\n" + text + "\n```\n" + window.location.href;
|
||||
} else {
|
||||
text += "\n" + window.location.href;
|
||||
}
|
||||
}
|
||||
|
||||
var area = document.createElement("textarea");
|
||||
area.value = text;
|
||||
document.body.append(area);
|
||||
area.style.position = 'fixed';
|
||||
area.style.top = '0';
|
||||
area.style.left = '0';
|
||||
area.style.width = '1px';
|
||||
area.style.height = '1px';
|
||||
area.style.opacity = '0';
|
||||
document.body.appendChild(area);
|
||||
area.focus();
|
||||
area.select();
|
||||
|
||||
try {
|
||||
document.execCommand("copy");
|
||||
document.body.removeChild(area);
|
||||
}
|
||||
|
||||
catch (err) {
|
||||
document.body.removeChild(area);
|
||||
console.error("Unable to copy to Clipboard");
|
||||
|
||||
+58
-66
@@ -1,17 +1,16 @@
|
||||
|
||||
a:link, a:visited, a:hover, a:active {
|
||||
text-decoration: none;
|
||||
color: #8BBAD6;
|
||||
color: #88C0D0;
|
||||
}
|
||||
|
||||
body {
|
||||
--color1: #222222;
|
||||
--color2: #2D2D2D;
|
||||
--color3: #3B3B3B;
|
||||
--color1: #2E3440;
|
||||
--color2: #3B4252;
|
||||
--color3: #434C5E;
|
||||
|
||||
--color-font1: #DBDEE1;
|
||||
--color-font2: #949BA4;
|
||||
--color-font3: #008F11;
|
||||
--color-font1: #ECEFF4;
|
||||
--color-font2: #D8DEE9;
|
||||
--color-font3: #88C0D0;
|
||||
|
||||
background-color: var(--color1);
|
||||
|
||||
@@ -74,7 +73,7 @@ body, html, main{
|
||||
}
|
||||
|
||||
#sidebar li:hover {
|
||||
background-color: #303030;
|
||||
background-color: #4C566A;
|
||||
}
|
||||
|
||||
#sidebar .header {
|
||||
@@ -98,17 +97,17 @@ body, html, main{
|
||||
}
|
||||
|
||||
#content .stripes th {
|
||||
background-color: black;
|
||||
background-color: #242933;
|
||||
}
|
||||
|
||||
/* Tables that have hoverable table rows */
|
||||
|
||||
#content .hoverable tr:nth-child(odd):hover:not(.table-header) {
|
||||
background-color: #323232;
|
||||
background-color: #434C5E;
|
||||
}
|
||||
|
||||
#content .hoverable tr:nth-child(even):hover:not(.table-header) {
|
||||
background-color: #323232;
|
||||
background-color: #434C5E;
|
||||
}
|
||||
|
||||
#content .hoverable tr:hover{
|
||||
@@ -142,13 +141,13 @@ body, html, main{
|
||||
#content .table-header th {
|
||||
color: var(--color-font3);
|
||||
font-weight: 400;
|
||||
background-color: #171717;
|
||||
background-color: #242933;
|
||||
}
|
||||
|
||||
#content .table-small-header th {
|
||||
color: var(--color-font3);
|
||||
font-size: small;
|
||||
background-color: #171717;
|
||||
background-color: #242933;
|
||||
}
|
||||
|
||||
/* Table Spacer for chaining Tables as a hack */
|
||||
@@ -159,7 +158,7 @@ body, html, main{
|
||||
}
|
||||
|
||||
#content .table-spacer-small th, #content .table-spacer-small tr {
|
||||
background-color: #171717;
|
||||
background-color: #242933;
|
||||
height: 0.4rem;
|
||||
padding: 0px;
|
||||
}
|
||||
@@ -173,7 +172,7 @@ body, html, main{
|
||||
|
||||
#content td {
|
||||
color: var(--color-font2);
|
||||
border-bottom: 1px #444444 solid;
|
||||
border-bottom: 1px #4C566A solid;
|
||||
}
|
||||
|
||||
#content th, #content td {
|
||||
@@ -207,61 +206,56 @@ body, html, main{
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* Buttons */
|
||||
#content .btn-blue {
|
||||
background-color: #1C2D40;
|
||||
background-color: #6C63FF; /* modern indigo-blue */
|
||||
color: #ffffff;
|
||||
}
|
||||
#content .btn-blue:hover {
|
||||
background-color: #837BFF;
|
||||
}
|
||||
|
||||
#content .btn-start {
|
||||
background-color: #384A5F;
|
||||
width: 100%;
|
||||
background-color: #34495E; /* unchanged navy-gray */
|
||||
color: #ffffff;
|
||||
}
|
||||
#content .btn-start:hover {
|
||||
background-color: #4A6278;
|
||||
}
|
||||
|
||||
#content .btn-preset {
|
||||
background-color: #046c52;
|
||||
background-color: #00B894; /* teal green */
|
||||
color: #ffffff;
|
||||
}
|
||||
#content .btn-preset:hover {
|
||||
background-color: #17DDB2;
|
||||
}
|
||||
|
||||
#content .btn-yellow {
|
||||
background-color: #7A4E09;
|
||||
background-color: #F5B041; /* golden amber */
|
||||
color: #1F1400; /* dark brown for contrast */
|
||||
}
|
||||
#content .btn-yellow:hover {
|
||||
background-color: #FFC966;
|
||||
}
|
||||
|
||||
#content .btn-red {
|
||||
background-color: #74261E;
|
||||
background-color: #E74C3C; /* soft red */
|
||||
color: #ffffff;
|
||||
}
|
||||
#content .btn-red:hover {
|
||||
background-color: #FF6B5E;
|
||||
}
|
||||
|
||||
#content .btn-disabled {
|
||||
background-color: var(--color3);
|
||||
}
|
||||
|
||||
#content .btn-blue:hover {
|
||||
background-color: #2E3F57;
|
||||
}
|
||||
|
||||
#content .btn-start:hover {
|
||||
background-color: #2E3F57;
|
||||
}
|
||||
|
||||
#content .btn-preset:hover {
|
||||
background-color: #11a983;
|
||||
}
|
||||
|
||||
#content .btn-yellow:hover {
|
||||
background-color: #9B6B0F;
|
||||
}
|
||||
|
||||
#content .btn-red:hover {
|
||||
background-color: #8E3D28;
|
||||
}
|
||||
|
||||
#content .btn-disabled:hover {
|
||||
background-color: var(--color3);
|
||||
background-color: #444;
|
||||
color: #999;
|
||||
cursor: not-allowed;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
#content .copy-button {
|
||||
color: var(--color-font2);
|
||||
transition: color 0.2s ease-in-out;
|
||||
|
||||
}
|
||||
|
||||
#content .copy-button:hover {
|
||||
@@ -275,30 +269,35 @@ body, html, main{
|
||||
font-size: 13px;
|
||||
color: black;
|
||||
line-height: 92%;
|
||||
background-color: #CCCCCC;
|
||||
background-color: #D8DEE9;
|
||||
font-family: "Courier New";
|
||||
border-radius: 4px;
|
||||
padding: 7px 10px 4px;
|
||||
}
|
||||
|
||||
#content .statblock-green {
|
||||
background-color: #76D576;
|
||||
background-color: #24C486; /* balanced mint green */
|
||||
color: #101F1A; /* dark readable text */
|
||||
}
|
||||
|
||||
#content .statblock-blue {
|
||||
background-color: #60F0FF;
|
||||
background-color: #3FA9F5; /* modern soft blue */
|
||||
color: #0E1A26;
|
||||
}
|
||||
|
||||
#content .statblock-yellow {
|
||||
background-color: #EFF891;
|
||||
background-color: #FFCB4A; /* golden yellow */
|
||||
color: #2B2300;
|
||||
}
|
||||
|
||||
#content .statblock-red {
|
||||
background-color: #FA9696;
|
||||
background-color: #FF6B6B; /* soft crimson red */
|
||||
color: #2C0D0D;
|
||||
}
|
||||
|
||||
|
||||
#content .redlink {
|
||||
color: #FF4D4D;
|
||||
color: #BF616A;
|
||||
}
|
||||
|
||||
/* Long StatBlock which we can copy */
|
||||
@@ -341,15 +340,15 @@ td pre {
|
||||
}
|
||||
|
||||
#content .error-message {
|
||||
color: red;
|
||||
color: #BF616A;
|
||||
}
|
||||
|
||||
#content .warning-message {
|
||||
color: yellow;
|
||||
color: #EBCB8B;
|
||||
}
|
||||
|
||||
#content .status-message {
|
||||
color: green;
|
||||
color: #A3BE8C;
|
||||
}
|
||||
|
||||
#content .site-title {
|
||||
@@ -362,7 +361,7 @@ td pre {
|
||||
}
|
||||
|
||||
#content .was-default-network {
|
||||
color: #EFF891;
|
||||
color: #EBCB8B;
|
||||
transform: scale(0.90);
|
||||
}
|
||||
|
||||
@@ -371,7 +370,6 @@ td pre {
|
||||
transform: scale(0.70);
|
||||
}
|
||||
|
||||
|
||||
#content .numeric {
|
||||
text-align: right;
|
||||
}
|
||||
@@ -436,7 +434,6 @@ td pre {
|
||||
}
|
||||
|
||||
#content-header h2 {
|
||||
/* Adjust the font size to the screen width, ensuring that the title doesn't overflow */
|
||||
font-size: clamp(1.0rem, 4.8vw, 1.4rem);
|
||||
margin: 8px 0;
|
||||
}
|
||||
@@ -449,25 +446,20 @@ td pre {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
/* Disable vertical body scrolling when the sidebar is open */
|
||||
body.sidebar-open {
|
||||
position: fixed;
|
||||
overflow-y: hidden;
|
||||
}
|
||||
|
||||
/* Horizontally scrollable table */
|
||||
table {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
/* Tables cannot break words to avoid issues such as single-letter lines */
|
||||
/* The only exception is the test config table */
|
||||
#content .wrappable:not(.workload-container .test-config) td {
|
||||
word-break: normal;
|
||||
}
|
||||
|
||||
/* Test Views */
|
||||
.workload-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
Reference in new issue
Block a user