Update design

This commit is contained in:
Jakub Vrana 2014-02-12 08:56:40 -08:00
parent 150301ed5f
commit 822f3f2498

View file

@ -1,13 +1,16 @@
/** /**
* Alternative style for Adminer by Frank Bueltge * Alternative style for Adminer by Frank Bültge
* @link http://bueltge.de/ *
* @link http://bueltge.de/
* @version 01/26/2014
*/ */
body { body {
margin: 0; margin: 0;
line-height: 1.25em;
font-size: 12px; font-size: 12px;
line-height: 1.4em;
background: #F9F9F9; background: #F9F9F9;
color: #333;
} }
body, select, option, optgroup, button { body, select, option, optgroup, button {
font-family: "Lucida Grande",Verdana,Arial,"Bitstream Vera Sans",sans-serif; font-family: "Lucida Grande",Verdana,Arial,"Bitstream Vera Sans",sans-serif;
@ -19,28 +22,71 @@ input, textarea, pre, code, samp, kbd, var {
font-family: "Lucida Grande",Verdana,Arial,"Bitstream Vera Sans",sans-serif; font-family: "Lucida Grande",Verdana,Arial,"Bitstream Vera Sans",sans-serif;
font-size: 12px; font-size: 12px;
} }
input[type='submit']#logout {
display:none;
}
pre {
white-space: pre-wrap;
}
p {
margin: 0.8em 20px 0 5px
}
a { a {
color: #21759B; color: #21759B;
background: none !important;
} }
a:visited { a:visited {
color: #21759B; color: #21759B;
} }
a:hover { a:hover, a:hover {
text-decoration: none; text-decoration: none;
color: #D54E21; color: #d54e21;
}
a:focus {
background: #c7e7fd;
color: #124964;
}
a:active {
background: none;
outline: thin dotted;
}
a.active, a.active + a {
text-decoration: none;
font-weight: 700;
} }
form { form {
margin: 0; margin: 0;
padding: 0 0 0 5px;
} }
table { table {
margin: 0 12px 12px 0; width: 100%;
clear: both;
margin: 0;
border-spacing: 0;
border-collapse: separate;
border-color: gray;
}
table, thead, tbody {
margin: 10px 12px 0 0;
border: 1px #BBB solid; border: 1px #BBB solid;
font-size: 90%; font-size: 90%;
} }
thead th, thead td {
text-align: center;
}
td {
white-space: normal;
overflow: hidden;
padding: 0 4px;
}
th { th {
text-align: left; text-align: left;
font-weight: 400;
} }
td, th { td, th {
background-color: #fff; background-color: #fff;
@ -54,9 +100,14 @@ border-top-width: 0;
td:first-child, th:first-child { td:first-child, th:first-child {
border-left-width: 0; border-left-width: 0;
} }
thead {
display: table-header-group;
vertical-align: middle;
border-color: inherit;
}
thead td, thead th { thead td, thead th {
background-color: #DFDFDF; background-color: #DFDFDF;
border: none; border: none;
border-bottom: 1px #BBB solid; border-bottom: 1px #BBB solid;
} }
thead tr:hover td, thead tr:hover th { thead tr:hover td, thead tr:hover th {
@ -85,19 +136,21 @@ fieldset, x:-moz-any-link {
padding-top: 4px; padding-top: 4px;
} }
fieldset { fieldset {
%padding-top: 14px; padding-top: 14px;
} }
legend { legend {
font-weight: 900; font-weight: 900;
color: #000; color: #000;
position: absolute;
top: -1.666em; top: -1.666em;
left: -1em; left: -1em;
padding: 0 4px; padding: 0 4px;
} }
input[name='limit'], input[name*='length'] { input {
padding: 2px 5px 1px 5px;
}
input[name='limit'], input[name='length'] {
width: 3em; width: 3em;
xtext-align: right; text-align: right;
} }
input[name='text_length'] { input[name='text_length'] {
width: 5em; width: 5em;
@ -108,39 +161,83 @@ margin-left: 2px;
textarea, input, select { textarea, input, select {
border-width: 1px; border-width: 1px;
border-style: solid; border-style: solid;
-moz-border-radius: 4px; -moz-border-radius: 3px;
-khtml-border-radius: 4px; -khtml-border-radius: 3px;
-webkit-border-radius: 4px; -webkit-border-radius: 3px;
border-radius: 4px; border-radius: 3px;
border-color: #DFDFDF; border-color: #DFDFDF;
} }
select {
margin: 0 0 1px 0;
}
input[type="checkbox"], input[type="radio"], input[type="image"] { input[type="checkbox"], input[type="radio"], input[type="image"] {
border: 0 none; border: 0 none;
} }
input[type=button], input[type=submit] { input[type=button], input[type=submit] {
border-color: #bbb; display: inline-block;
color: #464646; text-decoration: none;
font-size: 12px;
line-height: 15px;
padding: 1px 0 0 0;
cursor: pointer;
border-width: 1px;
border-style: solid;
-webkit-border-radius: 3px;
border-radius: 3px;
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
white-space: nowrap;
border-color: #dfdfdf;
background-color: #fff;
color: #333;
} }
input[type=button]:hover, input[type=submit]:hover { input[type="button"]:focus, input[type=submit] {
color: #000; border-color: #a1a1a1;
border-color: #666; -webkit-box-shadow: 1px 1px 2px rgba(0,0,0,0.1);
box-shadow: 1px 1px 2px rgba(0,0,0,0.1);
} }
input[type=button], input[type=submit] { input[type=button], input[type=submit] {
text-decoration: none; padding: 2px 5px 1px 5px;
font-size: 11px !important; background: #ececec;
line-height: 14px; background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#eee));
padding: 2px 8px; background-image: -webkit-linear-gradient(top, #fff, #eee);
cursor: pointer; background-image: -moz-linear-gradient(top, #fff, #eee);
border-width: 1px; background-image: -o-linear-gradient(top, #fff, #eee);
border-style: solid; background-image: linear-gradient(to bottom, #fff, #eee);
-moz-border-radius: 11px; border-color: #ccc;
-khtml-border-radius: 11px; -webkit-box-shadow: inset 0 0 1px 1px rgba(255,255,255, 0.9);
-webkit-border-radius: 11px; box-shadow: inset 0 0 1px 1px rgba(255,255,255, 0.9);
border-radius: 11px; color: #464646;
-moz-box-sizing: content-box; text-shadow: 1px 1px 0 #fff;
-webkit-box-sizing: content-box; }
-khtml-box-sizing: content-box; input[type=button]:hover, input[type=submit]:hover,
box-sizing: content-box; input[type=button]:focus, input[type=submit]:focus {
background: #ececec;
background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#eee));
background-image: -webkit-linear-gradient(top, #fff, #eee);
background-image: -moz-linear-gradient(top, #fff, #eee);
background-image: -o-linear-gradient(top, #fff, #eee);
background-image: linear-gradient(to bottom, #fff, #eee);
border-color: #bbb;
-webkit-box-shadow: 0px 1px 1px rgba(0,0,0,.1);
box-shadow: 0px 1px 1px rgba(0,0,0,.1);
color: #000;
}
input[type=button]:active, input[type=submit]:active {
background: #eee;
background-image: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#f9f9f9));
background-image: -webkit-linear-gradient(top, #eee, #f9f9f9);
background-image: -moz-linear-gradient(top, #eee, #f9f9f9);
background-image: -o-linear-gradient(top, #eee, #f9f9f9);
background-image: linear-gradient(to bottom, #eee, #f9f9f9);
border-color: #999 #ddd #ddd #999;
color: #555;
-webkit-box-shadow: inset 1px 1px 0 rgba(50,50,50,0.1);
box-shadow: inset 1px 1px 0 rgba(50,50,50,0.1);
}
input[type=button]:focus, input[type=submit]:focus {
border-color: #aaa;
} }
input + label input, select + label input { input + label input, select + label input {
margin-left: 4px; margin-left: 4px;
@ -166,6 +263,11 @@ vertical-align: middle;
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
.js .column {
position: relative;
background: none;
padding: 0;
}
.error { .error {
padding: 8px; padding: 8px;
color: red; color: red;
@ -190,17 +292,20 @@ color: red;
.jush-sql { .jush-sql {
padding: 2px 4px; padding: 2px 4px;
margin-right: 4px; margin-right: 4px;
outline: 1px #BBB dashed; font-size: 11px;
font-size: 9pt; }
.time {
color: #333;
} }
#content { #content {
margin: 2px 0 0 260px; margin: 2px 0 0 270px;
padding: 10px 20px 20px 0; padding: 10px 20px 20px 0;
} }
#lang { #lang {
font-size:10px;
height: 23px; height: 23px;
width: 250px; width: 255px;
display: block; display: block;
padding: 1px 0; padding: 1px 0;
position: absolute; position: absolute;
@ -212,7 +317,7 @@ border: 1px solid #E3E3E3;
line-height: 1.25em; line-height: 1.25em;
} }
#lang select { #lang select {
font-size: 8pt; font-size: 10px;
} }
#breadcrumb { #breadcrumb {
margin: 0; margin: 0;
@ -220,7 +325,7 @@ height: 21px;
display: block; display: block;
position: absolute; position: absolute;
top: 0; top: 0;
left: 260px; left: 270px;
background-color: #f1f1f1; background-color: #f1f1f1;
border: 1px solid #E3E3E3; border: 1px solid #E3E3E3;
padding: 2px 12px; padding: 2px 12px;
@ -230,7 +335,7 @@ position: absolute;
margin: 0; margin: 0;
top: 28px; top: 28px;
left: 0; left: 0;
width: 250px; width: 255px;
background-color: #f1f1f1; background-color: #f1f1f1;
border: 1px solid #E3E3E3; border: 1px solid #E3E3E3;
} }
@ -239,13 +344,18 @@ margin: 0;
} }
#menu p { #menu p {
padding-left: 8px; padding-left: 8px;
font-size: 10pt;
border-bottom: none; border-bottom: none;
} }
#dbs {
padding: 0 !important;
}
#menu form p { #menu form p {
padding-left: 0; padding-left: 0;
text-align: left; text-align: left;
} }
#menu h1 {
display: none;
}
h1 .h1:hover { h1 .h1:hover {
text-decoration: underline; text-decoration: underline;
} }
@ -266,10 +376,9 @@ font-size: 12px;
h2 { h2 {
padding: 22px 0 0 10px; padding: 22px 0 0 10px;
} }
h3 { h3 {
margin: 40px 0 0; font: normal normal normal 18px/22px Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
font-weight: 400; margin: 20px 0 0 5px;
font-size: 130%;
} }
#schema { #schema {
margin: 1.5em 0 0 220px; margin: 1.5em 0 0 220px;
@ -285,8 +394,11 @@ position: absolute;
#schema .references { #schema .references {
position: absolute; position: absolute;
} }
.js div.hidden { .js .hidden {
display: inline; display: hidden;
}
.js td.hidden, .js input.hidden {
display: none;
} }
legend a { legend a {
color: #333; color: #333;
@ -299,40 +411,27 @@ color: #333;
code { code {
background: transparent; background: transparent;
} }
fieldset, legend, h2, table, .error, .message { fieldset, legend, table, thead, tbody, .error, .message {
-moz-border-radius: 5px; -moz-border-radius: 3px;
-khtml-border-radius: 5px; -khtml-border-radius: 3px;
-webkit-border-radius: 5px; -webkit-border-radius: 3px;
border-radius: 5px; border-radius: 3px;
} }
#breadcrumb, #lang, #menu { #breadcrumb, #lang, #menu {
-moz-border-radius-bottomright: 5px; -moz-border-radius-bottomright: 3px;
-khtml-border-bottom-right-radius: 5px; -khtml-border-bottom-right-radius: 3px;
-webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-right-radius: 3px;
border-bottom-right-radius: 5px; border-bottom-right-radius: 3px;
} }
#breadcrumb { #breadcrumb {
-moz-border-radius-bottomleft: 5px; -moz-border-radius-bottomleft: 3px;
-khtml-border-bottom-left-radius: 5px; -khtml-border-bottom-left-radius: 3px;
-webkit-border-bottom-left-radius: 5px; -webkit-border-bottom-left-radius: 3px;
border-bottom-left-radius: 5px; border-bottom-left-radius: 3px;
} }
#menu { #menu {
-moz-border-radius-topright: 5px; -moz-border-radius-topright: 5px;
-khtml-border-top-right-radius: 5px; -khtml-border-top-right-radius: 3px;
-webkit-border-top-right-radius: 5px; -webkit-border-top-right-radius: 3px;
border-bottom-top-radius: 5px; border-top-right-radius: 3px;
} }
.js .column {
background: #DFDFDF;
}
#logout {
color: #21759B;
}
#logout:hover {
text-decoration: none;
}
#logins a, #tables a {
background: #F1F1F1;
line-height: 1.5em;
}