Wplace-BlueMarble/dist/BlueMarble-For-GreasyFork.user.css
2026-02-27 05:33:15 -05:00

283 lines
5.8 KiB
CSS

/* src/overlay.css */
.bm-screenreader {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.bm-window {
position: fixed;
background-color: rgba(21, 48, 99, 0.9);
color: white;
padding: 10px;
border-radius: 8px;
z-index: 9000;
transition: all 0.3s ease, transform 0s;
top: 75px;
left: 60px;
width: auto;
max-height: calc(100vh - 150px);
max-width: calc(100% - 135px);
font-family:
"Roboto Mono",
"Courier New",
"Monaco",
"DejaVu Sans Mono",
monospace,
"Arial";
letter-spacing: 0.05em;
}
#bm-window-main {
max-width: 300px;
}
.bm-dragbar {
display: grid;
grid-template-columns: auto 1fr auto;
align-items: center;
gap: 0.5ch;
background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="5" height="5"><circle cx="3" cy="3" r="1.5" fill="CornflowerBlue" /></svg>') repeat;
cursor: grab;
width: 100%;
height: fit-content;
}
.bm-dragbar.bm-dragging {
cursor: grabbing;
}
.bm-window:has(.bm-dragbar.bm-dragging) {
pointer-events: none;
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
}
.bm-dragbar.bm-dragging {
pointer-events: auto;
}
.bm-favicon {
display: inline-block;
height: 2.5em;
margin-right: 1ch;
vertical-align: middle;
}
.bm-window h1 {
display: inline-block;
font-size: x-large;
font-weight: bold;
vertical-align: middle;
}
.bm-dragbar h1 {
font-size: 1.2em;
user-select: none;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
text-shadow:
3px 0px rgba(21, 48, 99, 0.5),
-3px 0px rgba(21, 48, 99, 0.5),
0px 3px rgba(21, 48, 99, 0.5),
0px -3px rgba(21, 48, 99, 0.5),
3px 3px rgba(21, 48, 99, 0.5),
-3px 3px rgba(21, 48, 99, 0.5),
3px -3px rgba(21, 48, 99, 0.5),
-3px -3px rgba(21, 48, 99, 0.5);
}
.bm-dragbar div:has(h1) {
display: contents;
}
.bm-container {
margin: 0.5em 0;
}
.bm-window button {
background-color: #144eb9;
border-radius: 1em;
padding: 0 0.75ch;
}
.bm-window button:hover,
.bm-window button:focus-visible {
background-color: #1061e5;
}
.bm-window button:active,
.bm-window button:disabled {
background-color: #2e97ff;
}
.bm-window button:disabled,
.bm-window button:disabled {
text-decoration: line-through;
}
.bm-button-circle {
border: white 1px solid;
height: 1.5em;
width: 1.5em;
margin-top: 2px;
text-align: center;
line-height: 1em;
padding: 0 !important;
}
.bm-button-pin {
vertical-align: middle;
}
.bm-button-pin svg {
width: 50%;
margin: 0 auto;
fill: #111;
}
.bm-window button.bm-button-trans {
background-color: unset;
}
.bm-button-trans.bm-button-hover-white:hover,
.bm-button-trans.bm-button-hover-white:focus {
background-color: rgba(255, 255, 255, 0.17);
}
.bm-button-trans.bm-button-hover-white:active {
background-color: rgba(255, 255, 255, 0.22);
}
.bm-button-trans.bm-button-hover-black:hover,
.bm-button-trans.bm-button-hover-black:focus {
background-color: rgba(0, 0, 0, 0.17);
}
.bm-button-trans.bm-button-hover-black:active {
background-color: rgba(0, 0, 0, 0.22);
}
input[type=number].bm-input-coords {
appearance: auto;
-moz-appearance: textfield;
width: 5.5ch;
margin-left: 1ch;
background-color: rgba(0, 0, 0, 0.2);
padding: 0 0.5ch;
font-size: small;
}
input[type=number].bm-input-coords::-webkit-outer-spin-button,
input[type=number].bm-input-coords::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
div:has(> .bm-input-file) > button {
width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.bm-input-file,
input[type=file] {
display: none !important;
visibility: hidden !important;
position: absolute !important;
left: -9999px !important;
top: -9999px !important;
width: 0 !important;
height: 0 !important;
opacity: 0 !important;
z-index: -9999 !important;
pointer-events: none !important;
}
.bm-window-content {
overflow: hidden;
transition: height 300ms cubic-bezier(.4, 0, .2, 1);
}
.bm-window textarea {
font-size: small;
background-color: rgba(0, 0, 0, 0.2);
padding: 0 0.5ch;
height: 5.25em;
width: 100%;
}
.bm-window small {
font-size: x-small;
color: lightgray;
}
.bm-flex-between {
display: flex;
align-content: center;
justify-content: space-between;
align-items: center;
gap: 0.5ch;
}
.bm-flex-center {
display: flex;
align-content: center;
justify-content: center;
align-items: center;
gap: 0.5ch;
}
#bm-window-filter .bm-container:has(table) {
max-height: 60vh;
overflow: auto;
}
#bm-window-filter table {
table-layout: fixed;
width: 50ch;
border-collapse: separate;
border-spacing: 0 0.5em;
}
#bm-window-filter tr {
padding: 0.5em 0;
}
.bm-filter-tbl-clr {
display: block;
border: thick double lightgray;
width: fit-content;
height: fit-content;
padding: 1ch;
}
.bm-filter-tbl-clr button {
padding: 0.75em 0.5ch;
}
.bm-filter-tbl-clr svg {
width: 4ch;
isolation: isolate;
}
.bm-filter-tbl-id {
position: relative;
top: 0.75em;
left: 0.5ch;
}
.bm-filter-tbl-prmim {
position: relative;
top: 0.75em;
left: -3.5ch;
}
.bm-filter-tbl-name {
position: relative;
top: -0.75em;
left: -16ch;
text-wrap: nowrap;
}
.bm-filter-tbl-crct {
display: block;
width: 100%;
position: relative;
right: 18ch;
top: 0.75em;
text-align: right;
}
.bm-filter-tbl-totl {
display: block;
width: 100%;
position: relative;
left: -16ch;
top: 0.75em;
text-align: left;
}
.bm-filter-tbl-totl::after {
content: "/";
position: absolute;
left: -1.5ch;
top: 50%;
transform: translateY(-50%);
}
#bm-window-filter tfoot {
display: table-header-group;
}
#bm-window-filter tfoot th {
text-align: left;
}
#bm-window-filter tfoot td {
text-align: right;
padding-left: 1ch;
}