2023-03-20 22:08:47 +01:00
|
|
|
$alert-red: hsl(16deg 60% 45%);
|
|
|
|
$alert-error-red: hsl(0deg 80% 40%);
|
2021-04-01 22:40:25 +02:00
|
|
|
|
2019-06-20 11:47:08 +02:00
|
|
|
.alert-display {
|
2017-03-23 20:37:08 +01:00
|
|
|
display: none;
|
|
|
|
|
2019-06-06 06:49:31 +02:00
|
|
|
&.show {
|
|
|
|
display: block;
|
|
|
|
}
|
2019-06-20 11:47:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.alert-animations {
|
|
|
|
&.show {
|
|
|
|
animation-name: fadeIn;
|
|
|
|
animation-duration: 0.3s;
|
|
|
|
animation-fill-mode: forwards;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.fade-out {
|
|
|
|
animation-name: fadeOut;
|
|
|
|
animation-duration: 0.3s;
|
|
|
|
animation-fill-mode: forwards;
|
|
|
|
}
|
|
|
|
|
|
|
|
.faded {
|
|
|
|
opacity: 0.7;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-01 22:40:25 +02:00
|
|
|
/* alert box component changes */
|
|
|
|
.alert-box {
|
2023-05-28 20:01:36 +02:00
|
|
|
/* Ensure alert box remains in viewport,
|
|
|
|
regardless of scroll position in message
|
|
|
|
list. */
|
|
|
|
position: fixed;
|
2021-04-01 22:40:25 +02:00
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 900px;
|
|
|
|
margin-left: calc(50% - 450px);
|
|
|
|
z-index: 220;
|
|
|
|
max-height: 100%;
|
|
|
|
overflow-y: auto;
|
|
|
|
overscroll-behavior: contain;
|
|
|
|
|
|
|
|
.stacktrace {
|
|
|
|
@extend .alert-display, .alert-animations;
|
|
|
|
|
|
|
|
font-size: 1rem;
|
2023-03-20 22:08:47 +01:00
|
|
|
color: hsl(0deg 80% 40%);
|
2021-04-01 22:40:25 +02:00
|
|
|
|
|
|
|
margin-top: 5px;
|
|
|
|
padding: 1rem 0;
|
|
|
|
|
2023-03-20 22:08:47 +01:00
|
|
|
background-color: hsl(0deg 100% 98%);
|
2021-04-01 22:40:25 +02:00
|
|
|
border-radius: 4px;
|
2023-03-20 22:08:47 +01:00
|
|
|
border: 1px solid hsl(0deg 80% 40%);
|
|
|
|
box-shadow: 0 0 2px hsl(0deg 80% 40%);
|
2021-04-01 22:40:25 +02:00
|
|
|
|
|
|
|
.stacktrace-header {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
2023-04-21 22:03:34 +02:00
|
|
|
align-items: center;
|
2021-04-01 22:40:25 +02:00
|
|
|
|
|
|
|
.message {
|
|
|
|
flex: 1 1 auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.warning-symbol,
|
|
|
|
.exit {
|
|
|
|
flex: 0 0 auto;
|
|
|
|
font-size: 1.3rem;
|
|
|
|
padding: 0 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.exit::after {
|
|
|
|
cursor: pointer;
|
|
|
|
font-size: 2.3rem;
|
|
|
|
content: "\d7";
|
2023-04-21 22:03:34 +02:00
|
|
|
line-height: 0.5;
|
2021-04-01 22:40:25 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-04-21 23:00:59 +02:00
|
|
|
.stacktrace-more-info {
|
|
|
|
font-size: 0.85rem;
|
|
|
|
white-space: pre;
|
|
|
|
font-family: "Source Code Pro", monospace;
|
|
|
|
margin-left: 3.3rem;
|
|
|
|
margin-bottom: 0.5rem;
|
|
|
|
padding: 0.5rem;
|
|
|
|
background-color: hsl(0deg 7% 98%);
|
|
|
|
}
|
|
|
|
|
2021-04-01 22:40:25 +02:00
|
|
|
.stacktrace-content {
|
2021-04-03 04:01:40 +02:00
|
|
|
font-family: "Source Code Pro", monospace;
|
2021-04-01 22:40:25 +02:00
|
|
|
font-size: 0.85rem;
|
|
|
|
|
2023-04-21 22:03:34 +02:00
|
|
|
margin-bottom: 0.5rem;
|
2021-04-01 22:40:25 +02:00
|
|
|
|
|
|
|
.stackframe {
|
|
|
|
padding-left: calc(3.3rem - 14px);
|
|
|
|
padding-right: 1rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.expand {
|
|
|
|
cursor: pointer;
|
2023-03-20 22:08:47 +01:00
|
|
|
color: hsl(0deg 32% 83%);
|
2021-04-01 22:40:25 +02:00
|
|
|
|
|
|
|
&:hover {
|
2023-03-20 22:08:47 +01:00
|
|
|
color: hsl(0deg 0% 20%);
|
2021-04-01 22:40:25 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.subtle {
|
2023-03-20 22:08:47 +01:00
|
|
|
color: hsl(0deg 7% 45%);
|
2021-04-01 22:40:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.code-context {
|
2023-03-20 22:08:47 +01:00
|
|
|
color: hsl(0deg 7% 15%);
|
|
|
|
background-color: hsl(0deg 7% 98%);
|
2023-07-21 23:08:07 +02:00
|
|
|
box-shadow:
|
|
|
|
inset 0 11px 10px -10px hsl(0deg 7% 70%),
|
2023-03-20 22:08:47 +01:00
|
|
|
inset 0 -11px 10px -10px hsl(0deg 7% 70%);
|
2021-04-01 22:40:25 +02:00
|
|
|
|
|
|
|
margin-top: 1em;
|
|
|
|
margin-bottom: 1em;
|
|
|
|
|
|
|
|
.code-context-content {
|
|
|
|
padding: 1rem 0;
|
|
|
|
white-space: pre;
|
|
|
|
overflow-x: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.line-number {
|
|
|
|
width: 3rem;
|
|
|
|
display: inline-block;
|
|
|
|
text-align: right;
|
2023-03-20 22:08:47 +01:00
|
|
|
color: hsl(0deg 7% 35%);
|
2021-04-01 22:40:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.focus-line {
|
2023-03-20 22:08:47 +01:00
|
|
|
background-color: hsl(0deg 7% 90%);
|
2021-04-01 22:40:25 +02:00
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.alert {
|
|
|
|
@extend .alert-animations;
|
|
|
|
|
|
|
|
font-size: 1rem;
|
|
|
|
border-radius: 4px;
|
2023-03-20 22:08:47 +01:00
|
|
|
background-color: hsl(0deg 0% 100%);
|
2021-04-01 22:40:25 +02:00
|
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
/* gives room for the error icon and the exit button. */
|
|
|
|
padding: 10px 50px;
|
|
|
|
|
|
|
|
text-shadow: none;
|
|
|
|
|
|
|
|
color: $alert-red;
|
|
|
|
border: 1px solid $alert-red;
|
|
|
|
box-shadow: 0 0 2px $alert-red;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
float: left;
|
|
|
|
margin-left: -38px;
|
|
|
|
|
|
|
|
font-family: FontAwesome;
|
|
|
|
font-size: 1.3em;
|
|
|
|
line-height: 1;
|
|
|
|
overflow: hidden;
|
|
|
|
content: "\f071";
|
|
|
|
|
2023-03-20 22:08:47 +01:00
|
|
|
color: hsl(16deg 60% 55%);
|
2021-04-01 22:40:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
clear: both;
|
|
|
|
content: "";
|
|
|
|
display: table;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.alert-error {
|
|
|
|
color: $alert-error-red;
|
|
|
|
border: 1px solid $alert-error-red;
|
|
|
|
box-shadow: 0 0 2px $alert-error-red;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
color: $alert-error-red;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.exit {
|
|
|
|
float: right;
|
|
|
|
margin: -10px -50px -10px 0;
|
2023-05-24 13:49:11 +02:00
|
|
|
padding: 13px 10px;
|
2021-04-01 22:40:25 +02:00
|
|
|
|
|
|
|
font-size: 2.5em;
|
|
|
|
font-weight: 300;
|
|
|
|
line-height: 1ex;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
content: "\d7";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-03-23 20:37:08 +01:00
|
|
|
/* animation section */
|
|
|
|
@keyframes fadeIn {
|
|
|
|
0% {
|
|
|
|
opacity: 0;
|
|
|
|
transform: translateY(-100px);
|
|
|
|
}
|
|
|
|
|
|
|
|
100% {
|
|
|
|
opacity: 1;
|
2020-08-06 02:42:07 +02:00
|
|
|
transform: translateY(0);
|
2017-03-23 20:37:08 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes fadeOut {
|
|
|
|
0% {
|
|
|
|
opacity: 1;
|
2020-08-06 02:42:07 +02:00
|
|
|
transform: translateY(0);
|
2017-03-23 20:37:08 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
100% {
|
|
|
|
opacity: 0;
|
|
|
|
transform: translateY(-100px);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* @media queries */
|
2021-02-04 02:49:05 +01:00
|
|
|
@media (width < $lg_min) {
|
2017-03-23 20:37:08 +01:00
|
|
|
.alert-box {
|
|
|
|
width: 80%;
|
|
|
|
left: 10%;
|
2020-08-06 02:42:07 +02:00
|
|
|
margin-left: 0;
|
2017-03-23 20:37:08 +01:00
|
|
|
}
|
|
|
|
}
|
2022-11-16 10:50:35 +01:00
|
|
|
|
|
|
|
#request-progress-status-banner {
|
|
|
|
display: none;
|
|
|
|
align-items: center;
|
|
|
|
padding: 5px 10px;
|
|
|
|
margin-top: 10px;
|
|
|
|
grid-template-columns: 80px auto 50px;
|
|
|
|
|
|
|
|
&.show {
|
|
|
|
display: grid !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.alert-loading {
|
|
|
|
.alert-zulip-logo,
|
|
|
|
.loading-indicator {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Hide exit button since clicking it will be useless in
|
|
|
|
this scenario. */
|
|
|
|
.exit {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.alert-success .success-indicator {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.alert-loading,
|
|
|
|
&.alert-success {
|
2023-03-20 22:08:47 +01:00
|
|
|
border-color: hsl(156deg 28% 70%);
|
|
|
|
box-shadow: 0 0 2px hsl(156deg 28% 70%);
|
2022-11-16 10:50:35 +01:00
|
|
|
|
|
|
|
.exit {
|
2023-03-20 22:08:47 +01:00
|
|
|
color: hsl(156deg 30% 50%);
|
2022-11-16 10:50:35 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: "";
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.alert-zulip-logo {
|
|
|
|
display: none;
|
|
|
|
margin: auto;
|
|
|
|
grid-column: 1 / 2;
|
|
|
|
grid-row-start: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.loading-indicator {
|
|
|
|
display: none;
|
|
|
|
margin: auto;
|
|
|
|
grid-column: 1 / 2;
|
|
|
|
grid-row-start: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.success-indicator {
|
|
|
|
display: none;
|
|
|
|
margin: auto;
|
|
|
|
grid-column: 1 / 2;
|
|
|
|
grid-row-start: 1;
|
|
|
|
padding: 7px;
|
|
|
|
font-size: 1.5em;
|
|
|
|
line-height: 0;
|
2023-03-20 22:08:47 +01:00
|
|
|
color: hsl(156deg 30% 50%);
|
2022-11-16 10:50:35 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.alert-content {
|
|
|
|
grid-column: 2 / 3;
|
|
|
|
grid-row-start: 1;
|
2024-09-15 15:27:34 +02:00
|
|
|
color: var(--color-request-progress-status-alert-text);
|
2022-11-16 10:50:35 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.exit {
|
|
|
|
float: unset;
|
|
|
|
margin: 0;
|
|
|
|
margin-left: auto;
|
|
|
|
grid-column: 3 / 4;
|
|
|
|
grid-row-start: 1;
|
|
|
|
line-height: 0;
|
|
|
|
}
|
|
|
|
}
|