2017-03-24 02:51:44 +00:00
|
|
|
#message-box {
|
2017-03-25 19:50:37 +00:00
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
display: flex;
|
|
|
|
position: fixed;
|
2017-10-12 23:52:49 +00:00
|
|
|
background-color: rgba(0, 0, 0, 0.45);
|
2017-03-25 19:50:37 +00:00
|
|
|
animation: fadein .25s ease-in-out;
|
|
|
|
z-index: 9999990;
|
2019-01-06 22:07:52 +00:00
|
|
|
pointer-events: auto;
|
2017-08-25 17:50:15 +00:00
|
|
|
-moz-user-select: none;
|
2017-03-25 19:50:37 +00:00
|
|
|
}
|
|
|
|
|
2020-11-06 18:04:10 +00:00
|
|
|
#stylus-popup #message-box {
|
|
|
|
animation: none;
|
|
|
|
}
|
|
|
|
|
2017-03-25 19:50:37 +00:00
|
|
|
#message-box > div {
|
2017-03-24 02:51:44 +00:00
|
|
|
top: 3rem;
|
|
|
|
right: 3rem;
|
|
|
|
min-width: 10rem;
|
|
|
|
max-width: 50vw;
|
|
|
|
min-height: 5rem;
|
|
|
|
max-height: 90vh;
|
|
|
|
position: fixed;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2022-02-17 00:10:59 +00:00
|
|
|
background-color: var(--bg);
|
2017-10-12 23:52:49 +00:00
|
|
|
box-shadow: 5px 5px 50px rgba(0, 0, 0, 0.225);
|
2017-03-25 19:50:37 +00:00
|
|
|
z-index: 9999991;
|
2017-08-25 17:50:15 +00:00
|
|
|
-moz-user-select: text;
|
2017-03-24 02:51:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#message-box.fadeout {
|
2017-12-04 16:14:04 +00:00
|
|
|
animation: fadeout .25s ease-in-out;
|
2017-03-24 02:51:44 +00:00
|
|
|
}
|
|
|
|
|
2021-08-06 16:50:36 +00:00
|
|
|
#message-box.center,
|
|
|
|
#message-box.center-dialog {
|
2017-03-25 19:50:37 +00:00
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2017-03-24 02:51:44 +00:00
|
|
|
}
|
|
|
|
|
2017-03-25 19:50:37 +00:00
|
|
|
#message-box.center #message-box-contents {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2017-11-09 07:54:31 +00:00
|
|
|
#message-box.center #message-box-contents pre {
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
2021-08-06 16:50:36 +00:00
|
|
|
#message-box.center > div,
|
|
|
|
#message-box.center-dialog > div {
|
2017-03-25 19:50:37 +00:00
|
|
|
top: unset;
|
|
|
|
right: unset;
|
2017-03-24 02:51:44 +00:00
|
|
|
}
|
|
|
|
|
2017-11-09 04:26:50 +00:00
|
|
|
#message-box.pre #message-box-contents {
|
|
|
|
white-space: pre-line;
|
2018-03-11 13:31:25 +00:00
|
|
|
font-family: monospace;
|
|
|
|
text-align: left;
|
2017-11-09 04:26:50 +00:00
|
|
|
}
|
|
|
|
|
2020-10-25 19:36:41 +00:00
|
|
|
#message-box.pre-line #message-box-contents {
|
|
|
|
white-space: pre-line;
|
|
|
|
}
|
|
|
|
|
2017-03-24 02:51:44 +00:00
|
|
|
#message-box-title {
|
|
|
|
font-weight: bold;
|
2022-02-17 00:10:59 +00:00
|
|
|
background-color: var(--accent-3);
|
2017-03-26 04:55:03 +00:00
|
|
|
padding: .75rem 24px .75rem 52px;
|
2017-03-24 02:51:44 +00:00
|
|
|
font-size: 1rem;
|
2017-03-25 19:50:37 +00:00
|
|
|
position: relative;
|
2017-11-11 05:21:52 +00:00
|
|
|
min-height: 42px;
|
|
|
|
box-sizing: border-box;
|
2021-07-06 21:19:00 +00:00
|
|
|
cursor: move;
|
|
|
|
user-select: none;
|
|
|
|
-moz-user-select: none;
|
2017-03-24 02:51:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#message-box-title::before {
|
|
|
|
content: "";
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
padding: 0 32px 32px 0;
|
2017-03-25 19:50:37 +00:00
|
|
|
background: url(/images/icon/32.png);
|
|
|
|
position: absolute;
|
2017-03-26 04:55:03 +00:00
|
|
|
left: .5rem;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
margin: auto;
|
2017-03-25 19:50:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#message-box.danger #message-box-title {
|
|
|
|
background-color: firebrick;
|
|
|
|
color: white;
|
|
|
|
}
|
|
|
|
|
|
|
|
#message-box.danger #message-box-title::before {
|
|
|
|
background: url('/images/icon/32x.png');
|
|
|
|
}
|
|
|
|
|
|
|
|
#message-box.danger #message-box-contents {
|
|
|
|
font-weight: bold;
|
2017-03-24 02:51:44 +00:00
|
|
|
}
|
|
|
|
|
2017-08-31 10:28:56 +00:00
|
|
|
#message-box.danger #message-box-close-icon svg {
|
|
|
|
fill: maroon;
|
|
|
|
}
|
|
|
|
|
2017-04-02 23:18:43 +00:00
|
|
|
#message-box.danger #message-box-close-icon svg:hover {
|
|
|
|
fill: #600;
|
|
|
|
}
|
|
|
|
|
2017-03-24 02:51:44 +00:00
|
|
|
#message-box-close-icon {
|
|
|
|
cursor: pointer;
|
|
|
|
position: absolute;
|
2017-04-02 23:18:43 +00:00
|
|
|
right: 3px;
|
2017-04-05 13:14:59 +00:00
|
|
|
top: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#message-box-close-icon svg {
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
2017-03-24 02:51:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#message-box-contents {
|
|
|
|
overflow: auto;
|
2017-03-25 19:50:37 +00:00
|
|
|
padding: 1.5rem .75rem;
|
2017-03-24 02:51:44 +00:00
|
|
|
position: relative;
|
|
|
|
flex-grow: 9;
|
2017-09-30 17:14:44 +00:00
|
|
|
overflow-wrap: break-word;
|
2017-03-24 02:51:44 +00:00
|
|
|
}
|
|
|
|
|
2017-12-23 00:11:46 +00:00
|
|
|
#message-box-contents p:first-child {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#message-box-contents p:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
2017-03-24 02:51:44 +00:00
|
|
|
#message-box-buttons {
|
2017-03-25 20:39:21 +00:00
|
|
|
padding: .75rem .375rem;
|
2022-02-17 00:10:59 +00:00
|
|
|
background-color: var(--c95);
|
2017-03-25 19:50:37 +00:00
|
|
|
text-align: center;
|
2017-03-24 02:51:44 +00:00
|
|
|
}
|
|
|
|
|
2020-06-02 06:33:07 +00:00
|
|
|
.danger #message-box-buttons > button:not([data-focused-via-click]):first-child:focus {
|
2020-10-13 18:14:54 +00:00
|
|
|
box-shadow: 0 0 0 1px red; /* Using box-shadow instead of the ugly outline in new Chrome */
|
2020-06-02 06:33:07 +00:00
|
|
|
}
|
|
|
|
|
2017-03-25 20:39:21 +00:00
|
|
|
.non-windows #message-box-buttons {
|
|
|
|
text-align: right;
|
|
|
|
direction: rtl;
|
|
|
|
}
|
|
|
|
|
|
|
|
#message-box-buttons button {
|
|
|
|
margin: 0 .375rem;
|
2017-03-24 02:51:44 +00:00
|
|
|
}
|
|
|
|
|
2017-12-05 21:14:21 +00:00
|
|
|
/* popup */
|
|
|
|
#message-box.stylus-popup {
|
|
|
|
margin: 0;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
#message-box.stylus-popup > div {
|
2019-06-01 09:12:52 +00:00
|
|
|
max-height: 570px;
|
2017-12-05 21:14:21 +00:00
|
|
|
max-width: 90vw;
|
|
|
|
top: auto;
|
|
|
|
right: auto;
|
|
|
|
}
|
|
|
|
|
2017-03-24 02:51:44 +00:00
|
|
|
@keyframes fadein {
|
|
|
|
from {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
to {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes fadeout {
|
|
|
|
from {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
to {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
}
|