Button to format SQL, closes #136

SQL code will be formatted on page load, and can additionally
be formatted by clicking the "Format SQL" button.

Thanks, @rixx!
This commit is contained in:
Tobias Kunze 2019-10-14 05:46:12 +02:00 committed by Simon Willison
commit af2e6a5cf1
6 changed files with 50 additions and 9 deletions

View file

@ -166,22 +166,32 @@ form input[type=search] {
width: 95%;
}
}
form input[type=submit] {
color: #fff;
background-color: #007bff;
border-color: #007bff;
form input[type=submit], form button[type=button] {
font-weight: 400;
cursor: pointer;
text-align: center;
vertical-align: middle;
border: 1px solid blue;
border-width: 1px;
border-style: solid;
padding: .5em 0.8em;
font-size: 0.9rem;
line-height: 1;
border-radius: .25rem;
}
form input[type=submit] {
color: #fff;
background-color: #007bff;
border-color: #007bff;
-webkit-appearance: button;
}
form button[type=button] {
color: #007bff;
background-color: #fff;
border-color: #007bff;
}
.filter-row {
margin-bottom: 0.6em;
}