Skip to content

Commit cc66071

Browse files
committed
Moved from style info from dbadmin.html to no.css for dashboard
1 parent 12d8cee commit cc66071

File tree

2 files changed

+28
-59
lines changed

2 files changed

+28
-59
lines changed

apps/_dashboard/static/css/no.css

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ body {
4646
grid-template-rows: auto 1fr auto;
4747
}
4848

49+
body > center, body > center > main {
50+
width: 100vw;
51+
}
52+
4953
/****************************************************
5054
elements style
5155
****************************************************/
@@ -565,9 +569,26 @@ button, a[role=button], input[type=submit], input[type=button] { background-colo
565569
p, input, textarea { margin: 5px}
566570
thead>tr {background: black; border-top: 2px solid #33BFFF; border-bottom: 2px solid #33BFFF;}
567571
tr:hover {background:#111111}
568-
.grid-search-form {width:100%; max-width: 100%}
569-
tbody tr:hover { background-color:#002233 }
570-
.grid-search-form-tr {border-bottom: none}
572+
573+
header { background-color: #111; }
574+
nav { width: auto; }
575+
576+
@media (min-width: 600px) {
577+
nav>ul>li { padding: 0.5em 0.5em; }
578+
}
579+
580+
.padded { max-width: unset; padding-top: 0; }
581+
582+
.dbadmin { width: 100%;}
583+
.dbadmin .grid-search-form {width:100%; max-width: 100%}
584+
.dbadmin tbody tr:hover { background-color:#002233 }
585+
.dbadmin .grid-search-form-tr {border-bottom: none}
571586
/* Prevent word wrapping in grid cells - truncate with ellipsis instead */
572-
.grid-td { max-width: 300px !important; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
573-
.grid-td:last-child {text-align: right}
587+
.dbadmin .grid-td { max-width: 300px !important; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
588+
.dbadmin .grid-td:last-child {text-align: right}
589+
.dbadmin .grid-table-wrapper { overflow-x: auto; }
590+
.dbadmin div:has(> flash-alerts) { height: 6px; }
591+
.dbadmin h2 { margin-top: 0px; font-size: 1.5em; }
592+
.dbadmin .grid-search-form-table { width: 70vw; }
593+
.dbadmin .grid-search-form-tr:hover { background-color: transparent; }
594+
.dbadmin td, .dbadmin th { padding: 1px 8px; }
Lines changed: 2 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,6 @@
11
[[extend "layout.html"]]
22

3-
<style>
4-
html,
5-
body {
6-
overflow-x: visible;
7-
}
8-
9-
.grid-table-wrapper {
10-
overflow-x: visible;
11-
}
12-
</style>
13-
14-
<style>
15-
header {
16-
background-color: #111;
17-
}
18-
19-
nav {
20-
width: auto;
21-
}
22-
23-
@media (min-width: 600px) {
24-
nav>ul>li {
25-
padding: 0.5em 0.5em;
26-
}
27-
}
28-
29-
div:has(> flash-alerts) {
30-
height: 6px;
31-
}
32-
33-
h2 {
34-
margin-top: 0px;
35-
font-size: 1.5em;
36-
}
37-
38-
.padded {
39-
max-width: unset;
40-
padding-top: 0;
41-
}
42-
43-
.grid-search-form-table {
44-
width: 70vw;
45-
}
46-
47-
.grid-search-form-tr:hover {
48-
background-color: transparent;
49-
}
50-
51-
td,
52-
th {
53-
padding: 1px 8px;
54-
}
55-
</style>
56-
3+
<div class="dbadmin">
574
<h2>Table "[[=table_name]]"</h2>
585
[[=grid]]
6+
</div>

0 commit comments

Comments
 (0)