1
0
mirror of https://github.com/flarum/core.git synced 2025-08-05 16:07:34 +02:00

Add "Debug" button to inspect the response of a failed AJAX request

Related to #118
This commit is contained in:
Toby Zerner
2015-09-18 16:46:46 +09:30
parent a2a0d8ee83
commit 2976541d5c
6 changed files with 79 additions and 17 deletions

View File

@@ -4,21 +4,21 @@
background: @alert-bg;
line-height: 1.5;
&, button, button:hover {
&, .Button, .Button:hover {
color: @alert-color;
}
}
.Alert--error {
background: @alert-error-bg;
&, a, a:hover, button, button:hover {
&, a, a:hover, .Button, .Button:hover {
color: @alert-error-color;
}
}
.Alert--success {
background: @alert-success-bg;
&, a, a:hover, button, button:hover {
&, a, a:hover, .Button, .Button:hover {
color: @alert-success-color;
}
a, a:hover {
@@ -35,7 +35,7 @@
display: inline-block;
margin: 0 5px;
> a {
> a, > .Button {
text-transform: uppercase;
font-size: 12px;
font-weight: bold;
@@ -45,6 +45,9 @@
text-decoration: none;
opacity: 0.5;
}
&:hover {
text-decoration: underline;
}
}
> .Button {

View File

@@ -130,3 +130,10 @@ blockquote ol:last-child {
position: fixed;
}
}
.RequestErrorModal {
pre {
white-space: pre-wrap;
margin: 0;
}
}