Skip to content

Commit 7b31d97

Browse files
committed
Improve style of buttons
1 parent b4bbf81 commit 7b31d97

File tree

2 files changed

+20
-12
lines changed

2 files changed

+20
-12
lines changed

GUI/demo.css

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,23 @@ h1 {
1818
margin: 0 0 30px;
1919
}
2020

21-
button {
21+
.button {
22+
color: #333;
2223
background: linear-gradient(#eee, #ddd);
2324
border: 1px solid #222;
2425
border-radius: 3px;
2526
padding: 7px;
27+
margin-right: 5px;
2628
transition: .3s;
29+
font-family: ubuntu, sans-serif;
30+
font-size: 1em;
2731
}
2832

29-
button:active {
33+
.button:active {
3034
background: linear-gradient(#ddd, #eee);
3135
}
3236

33-
button:hover, button:focus {
37+
.button:hover, button:focus {
3438
box-shadow: 0 0 2px #222;
3539
}
3640

@@ -66,4 +70,8 @@ table {
6670
th, td {
6771
border:1px solid #777;
6872
}
69-
73+
74+
footer {
75+
font-size:.8em;
76+
color: #222;
77+
}

GUI/index.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ <h1>Online SQL interpreter</h1>
3838

3939
SELECT designation,COUNT(*) AS nbr, (AVG(salary)) AS avg_salary FROM employees GROUP BY designation ORDER BY avg_salary DESC;
4040
SELECT name,hired_on FROM employees ORDER BY hired_on;</textarea>
41-
<button id="execute">Execute</button>
42-
<br>
43-
<label>Load an SQLite database file: <input type='file' id='dbfile' ></label>
44-
<button id='savedb'>Save the db</button>
45-
46-
<div id="error" class="error"></div>
47-
Result:
48-
<pre id="output"></pre>
41+
42+
<button id="execute" class="button">Execute</button>
43+
<button id='savedb' class="button">Save the db</button>
44+
<label class="button">Load an SQLite database file: <input type='file' id='dbfile' ></label>
45+
46+
<div id="error" class="error"></div>
47+
48+
<pre id="output">Results will be displayed here</pre>
4949
</main>
5050

5151
<script src="codemirror/mode/sql/sql.js"></script>

0 commit comments

Comments
 (0)