mirror of
https://github.com/SoPat712/videospeed.git
synced 2026-04-23 05:12:37 -04:00
409 lines
6.2 KiB
CSS
409 lines
6.2 KiB
CSS
body {
|
|
margin: 0;
|
|
padding-left: 15px;
|
|
padding-top: 80px;
|
|
font-family: sans-serif;
|
|
font-size: 12px;
|
|
color: rgb(48, 57, 66);
|
|
background-color: white;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3 {
|
|
font-weight: normal;
|
|
line-height: 1;
|
|
user-select: none;
|
|
cursor: default;
|
|
}
|
|
h1 {
|
|
font-size: 1.5em;
|
|
margin: 21px 0 6px;
|
|
}
|
|
.version {
|
|
margin: 0 0 6px;
|
|
color: #6b6b6b;
|
|
font-size: 0.95em;
|
|
}
|
|
h3 {
|
|
font-size: 1.2em;
|
|
margin-bottom: 0.8em;
|
|
color: black;
|
|
}
|
|
p {
|
|
margin: 0.65em 0;
|
|
}
|
|
|
|
header {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 15px;
|
|
right: 0;
|
|
padding-bottom: 10px;
|
|
background: white;
|
|
z-index: 100;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
header,
|
|
section {
|
|
min-width: 600px;
|
|
max-width: 738px;
|
|
}
|
|
section {
|
|
padding-left: 18px;
|
|
margin-top: 8px;
|
|
margin-bottom: 24px;
|
|
}
|
|
section h3 {
|
|
margin-left: -18px;
|
|
}
|
|
|
|
button {
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
position: relative;
|
|
|
|
margin: 0 1px 0 0;
|
|
padding: 0 10px;
|
|
min-width: 4em;
|
|
min-height: 2em;
|
|
|
|
background-image: linear-gradient(#ededed, #ededed 38%, #dedede);
|
|
border: 1px solid rgba(0, 0, 0, 0.25);
|
|
border-radius: 2px;
|
|
outline: none;
|
|
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08),
|
|
inset 0 1px 2px rgba(255, 255, 255, 0.75);
|
|
color: #444;
|
|
text-shadow: 0 1px 0 rgb(240, 240, 240);
|
|
font: inherit;
|
|
|
|
user-select: none;
|
|
}
|
|
|
|
input[type="text"] {
|
|
width: 75px;
|
|
text-align: center;
|
|
}
|
|
|
|
.row {
|
|
margin: 5px 0px;
|
|
}
|
|
|
|
.shortcuts-grid {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 5px;
|
|
}
|
|
|
|
.shortcut-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
}
|
|
|
|
.shortcut-label {
|
|
display: inline-block;
|
|
width: 170px;
|
|
padding: 4px 8px;
|
|
background-color: #f5f5f5;
|
|
border: 1px solid #ccc;
|
|
border-radius: 2px;
|
|
box-sizing: border-box;
|
|
font-size: 12px;
|
|
line-height: normal;
|
|
min-height: 26px;
|
|
}
|
|
|
|
.shortcut-row input[type="text"] {
|
|
height: 26px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.removeParent {
|
|
width: 20px;
|
|
height: 20px;
|
|
min-width: 20px;
|
|
border-radius: 50%;
|
|
padding: 0;
|
|
display: flex !important;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 10px;
|
|
line-height: 1;
|
|
background-color: #eee;
|
|
border: 1px solid #ccc;
|
|
color: #666;
|
|
cursor: pointer;
|
|
margin-left: 5px;
|
|
}
|
|
|
|
.removeParent:hover {
|
|
background-color: #ff4444;
|
|
color: white;
|
|
border-color: #cc0000;
|
|
}
|
|
|
|
#addShortcutSelector {
|
|
margin-top: 15px;
|
|
padding: 4px;
|
|
width: 200px;
|
|
}
|
|
|
|
label {
|
|
display: inline-block;
|
|
width: 170px;
|
|
vertical-align: top;
|
|
}
|
|
|
|
#status {
|
|
color: #9d9d9d;
|
|
display: inline-block;
|
|
margin-left: 50px;
|
|
}
|
|
|
|
#faq {
|
|
margin-top: 2em;
|
|
}
|
|
|
|
select {
|
|
width: 170px;
|
|
}
|
|
|
|
.customKey {
|
|
color: transparent;
|
|
text-shadow: 0 0 0 #000000;
|
|
}
|
|
|
|
/* Dark mode styles */
|
|
@media (prefers-color-scheme: dark) {
|
|
body {
|
|
background-color: #1a1a1a;
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
h3 {
|
|
color: #ffffff;
|
|
}
|
|
|
|
.version {
|
|
color: #a8a8a8;
|
|
}
|
|
|
|
header {
|
|
border-bottom: 1px solid #333;
|
|
background: linear-gradient(#1a1a1a, #1a1a1a 40%, rgba(26, 26, 26, 0.92));
|
|
}
|
|
|
|
button {
|
|
background-image: linear-gradient(#404040, #404040 38%, #353535);
|
|
border: 1px solid rgba(255, 255, 255, 0.25);
|
|
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08),
|
|
inset 0 1px 2px rgba(0, 0, 0, 0.75);
|
|
color: #e0e0e0;
|
|
text-shadow: 0 1px 0 rgb(20, 20, 20);
|
|
}
|
|
|
|
button:hover {
|
|
background-image: linear-gradient(#4a4a4a, #4a4a4a 38%, #3f3f3f);
|
|
}
|
|
|
|
input[type="text"],
|
|
input[type="checkbox"],
|
|
select,
|
|
textarea {
|
|
background-color: #2a2a2a;
|
|
color: #e0e0e0;
|
|
border: 1px solid #555;
|
|
}
|
|
|
|
input[type="text"]:focus,
|
|
select:focus,
|
|
textarea:focus {
|
|
background-color: #333;
|
|
border-color: #777;
|
|
outline: none;
|
|
}
|
|
|
|
select option {
|
|
background-color: #2a2a2a;
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.customKey {
|
|
color: transparent;
|
|
text-shadow: 0 0 0 #e0e0e0;
|
|
}
|
|
|
|
.shortcut-label {
|
|
background-color: #2a2a2a;
|
|
border-color: #555;
|
|
}
|
|
|
|
#status {
|
|
color: #888;
|
|
}
|
|
|
|
a {
|
|
color: #66b3ff;
|
|
}
|
|
|
|
a:visited {
|
|
color: #cc99ff;
|
|
}
|
|
|
|
hr {
|
|
border-color: #333;
|
|
}
|
|
}
|
|
|
|
/* Site Rules Styles */
|
|
#siteRulesContainer {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.site-rule {
|
|
border: 1px solid #ddd;
|
|
border-radius: 4px;
|
|
padding: 12px;
|
|
margin-bottom: 12px;
|
|
background-color: #f9f9f9;
|
|
}
|
|
|
|
.site-rule-header {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-bottom: 12px;
|
|
align-items: center;
|
|
}
|
|
|
|
.site-rule.collapsed .site-rule-header {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.toggle-site-rule {
|
|
min-width: auto;
|
|
padding: 0 8px;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.site-pattern {
|
|
flex: 1;
|
|
min-width: 300px;
|
|
padding: 6px;
|
|
font-family: monospace;
|
|
}
|
|
|
|
.remove-site-rule {
|
|
min-width: auto;
|
|
padding: 0 12px;
|
|
}
|
|
|
|
.site-rule-body {
|
|
margin-left: 10px;
|
|
}
|
|
|
|
.site-rule-content.disabled-rule {
|
|
opacity: 0.5;
|
|
pointer-events: none;
|
|
filter: grayscale(1);
|
|
}
|
|
|
|
.site-rule-option {
|
|
margin: 10px 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
max-width: 450px;
|
|
}
|
|
|
|
.site-rule-option label {
|
|
width: auto;
|
|
line-height: normal;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.site-rule-option input[type="text"],
|
|
.site-rule-option select {
|
|
width: 150px;
|
|
text-align: left;
|
|
}
|
|
|
|
.site-rule-shortcuts {
|
|
margin-top: 12px;
|
|
padding-top: 12px;
|
|
padding-bottom: 8px;
|
|
border-top: 1px solid #ddd;
|
|
}
|
|
|
|
.site-rule-shortcuts > label {
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
width: auto;
|
|
}
|
|
|
|
.site-shortcuts-container {
|
|
margin-left: 20px;
|
|
margin-top: 10px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.site-shortcuts-container .shortcut-row {
|
|
margin: 6px 0;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
}
|
|
|
|
.site-shortcuts-container .customKey {
|
|
width: 100px;
|
|
}
|
|
|
|
.site-shortcuts-container .customValue {
|
|
width: 80px;
|
|
}
|
|
|
|
.site-shortcuts-container .customDo {
|
|
width: 180px;
|
|
}
|
|
|
|
.site-shortcuts-container .customForce {
|
|
width: auto;
|
|
margin-left: 5px;
|
|
}
|
|
|
|
.site-shortcuts-container .force-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
margin-left: 8px;
|
|
width: auto;
|
|
font-size: 11px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.site-shortcuts-container .force-text {
|
|
user-select: none;
|
|
}
|
|
|
|
/* Dark mode for site rules */
|
|
@media (prefers-color-scheme: dark) {
|
|
.site-rule {
|
|
border-color: #444;
|
|
background-color: #252525;
|
|
}
|
|
|
|
.site-pattern {
|
|
background-color: #2a2a2a;
|
|
color: #e0e0e0;
|
|
border: 1px solid #555;
|
|
}
|
|
|
|
.site-rule-shortcuts {
|
|
border-top-color: #444;
|
|
}
|
|
}
|