style tables, opts menu

This commit is contained in:
loro2
2019-07-25 10:16:27 +02:00
parent 573cb5321b
commit 12f51f1171
2 changed files with 245 additions and 87 deletions
+2
View File
@@ -148,6 +148,7 @@ SQL.Row.prototype.buildEdit = function() {
this.dom.commentbtn = OZ.DOM.elm("input"); this.dom.commentbtn = OZ.DOM.elm("input");
this.dom.commentbtn.type = "button"; this.dom.commentbtn.type = "button";
this.dom.commentbtn.id = "commentbtn"
this.dom.commentbtn.value = _("comment"); this.dom.commentbtn.value = _("comment");
OZ.Event.add(this.dom.commentbtn, "click", this.changeComment); OZ.Event.add(this.dom.commentbtn, "click", this.changeComment);
@@ -230,6 +231,7 @@ SQL.Row.prototype.load = function() { /* put data to expanded form */
SQL.Row.prototype.redraw = function() { SQL.Row.prototype.redraw = function() {
var color = this.getColor(); var color = this.getColor();
this.dom.container.style.backgroundColor = color; this.dom.container.style.backgroundColor = color;
this.dom.container.style.borderColor = color;
OZ.DOM.removeClass(this.dom.title, "primary"); OZ.DOM.removeClass(this.dom.title, "primary");
OZ.DOM.removeClass(this.dom.title, "key"); OZ.DOM.removeClass(this.dom.title, "key");
if (this.isPrimary()) { OZ.DOM.addClass(this.dom.title, "primary"); } if (this.isPrimary()) { OZ.DOM.addClass(this.dom.title, "primary"); }
+206 -50
View File
@@ -1,9 +1,12 @@
body { body {
font-family: verdana, sans serif; font-family: verdana, sans-serif;
font-size: small; font-size: 12px;
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
background: #FFF; background: #FFF;
font-weight: 400;
line-height: 1.429;
color: rgba(0, 0, 0, .87);
visibility: hidden; visibility: hidden;
-moz-user-select: -moz-none; -moz-user-select: -moz-none;
-khtml-user-select: none; -khtml-user-select: none;
@@ -12,6 +15,158 @@ body {
user-select: none; user-select: none;
} }
input[type=text] {
font-family: verdana, sans-serif;
height: 32px;
display: block;
background-color: transparent;
color: rgba(0, 0, 0, .87);
border: none;
border-bottom-color: currentcolor;
border-bottom-style: none;
border-bottom-width: medium;
border-bottom: 1px solid rgba(0, 0, 0, .26);
outline: 0;
width: 100%;
font-size: 16px;
padding: 0;
box-shadow: none;
border-radius: 0;
background-image: none;
}
input[type=text]:focus {
border-color: #2196F3;
border-width: 2px;
}
textarea {
min-width: 500px;
font-family: verdana, sans-serif;
min-height: 64px;
display: block;
background-color: transparent;
color: rgba(0, 0, 0, .87);
border: none;
border-bottom-color: currentcolor;
border-bottom-style: none;
border-bottom-width: medium;
border-bottom: 1px solid rgba(0, 0, 0, .26);
outline: 0;
width: 100%;
font-size: 16px;
padding: 0;
box-shadow: none;
border-radius: 0;
background-image: none;
}
textarea:focus {
border-color: #2196F3;
border-width: 2px;
}
input[type=button] {
font-family: verdana, sans-serif;
-webkit-appearance: button;
cursor: pointer;
font-weight: 500;
font-size: 14px;
line-height: 18px;
text-transform: uppercase;
color: rgba(0, 0, 0, .87);
background-color: #FFF;
display: inline-block;
height: 36px;
padding: 0 26px;
margin-top: 6px;
margin-bottom: 6px;
border: none;
border-radius: 2px;
cursor: pointer;
-ms-touch-action: manipulation;
touch-action: manipulation;
background-image: none;
text-align: center;
line-height: 36px;
vertical-align: middle;
white-space: nowrap;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
font-size: 14px;
letter-spacing: .03em;
position: relative;
overflow: hidden;
}
legend {
font-weight: bold;
}
label, input, select {
vertical-align: middle;
}
label {
opacity: 0.7;
}
#commentbtn {
box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 2px 2px rgba(0, 0, 0, .2);
}
#windowok {
color: #FF4081;
}
#windowok, #windowcancel {
float: right;
}
#windowok:hover, #windowcancel:hover {
background-color: #f2f2f2;
}
select {
font-family: verdana, sans-serif;
display: block;
height: 32px;
width: 100%;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
outline: 0;
border: none;
border-bottom-color: currentcolor;
border-bottom-style: none;
border-bottom-width: medium;
border-bottom: 1px solid rgba(0, 0, 0, .26);
border-radius: 0;
box-shadow: none;
background-color: transparent;
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iNiIgd2lkdGg9IjEwIj48cG9seWdvbiBwb2ludHM9IjAsMCAxMCwwIDUsNiIgc3R5bGU9ImZpbGw6cmdiYSgwLDAsMCwuMjQpOyIvPjwvc3ZnPg==);
background-repeat: no-repeat;
background-position: right center;
cursor: pointer;
color: rgba(0, 0, 0, .87);
font-size: 16px;
padding: 0 25px 0 0;
}
select:focus {
border-color: #2196F3;
border-width: 2px;
}
select optgroup {
color: rgba(0, 0, 0, .54);
font-size: .9em;
background: white !important;
font-style: normal;
}
#area { #area {
position: relative; position: relative;
background: transparent url(../images/back_dim.png); background: transparent url(../images/back_dim.png);
@@ -36,7 +191,6 @@ body {
padding: 0px; padding: 0px;
background-color: rgb(255, 255, 255); background-color: rgb(255, 255, 255);
text-align: center; text-align: center;
color: rgba(0, 0, 0, 0.87);
border-radius: 0px; border-radius: 0px;
box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px 0px, rgba(0, 0, 0, 0.23) 0px 3px 6px 0px; box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px 0px, rgba(0, 0, 0, 0.23) 0px 3px 6px 0px;
box-sizing: border-box; box-sizing: border-box;
@@ -44,32 +198,26 @@ body {
} }
#bar input { #bar input {
display: block;
cursor: pointer;
transition: all .2s ease-in-out; transition: all .2s ease-in-out;
border-radius: 2px; border-radius: 2px;
width: 100%; width: 100%;
height: auto; height: auto;
background-color: transparent;
border: none;
margin: auto auto 3px auto; margin: auto auto 3px auto;
padding: 2px; padding: 2px;
line-height: 1.3; line-height: 1.3;
font-size: small; font-size: small;
text-transform: uppercase; opacity: .7;
letter-spacing: .03em;
font-family: verdana, sans-serif;
} }
#bar input:hover { #bar input:hover {
background-color: #FF4081; background-color: #e9115d;
color: #fff; color: #fff;
} }
#bar input:disabled { #bar input:disabled {
cursor: not-allowed; cursor: not-allowed;
pointer-events: none; pointer-events: none;
opacity: .6; opacity: .4;
box-shadow: none; box-shadow: none;
} }
@@ -93,10 +241,11 @@ body {
background-position: center; background-position: center;
background-repeat: no-repeat; background-repeat: no-repeat;
height: 21px; height: 21px;
opacity: .7;
} }
#toggle:hover { #toggle:hover {
background-color: #FF4081; background-color: #e9115d;
} }
#toggle.on:hover { #toggle.on:hover {
@@ -150,20 +299,12 @@ body {
.table { .table {
position: absolute; position: absolute;
border: 1px solid #000; padding: 0 6px 6px 6px;
background-color: #ddd;
cursor: pointer; cursor: pointer;
-moz-box-shadow: 4px 4px 8px #888; margin-bottom: 20px;
/* FF 3.5+ */ border-radius: 0;
-webkit-box-shadow: 4px 4px 8px #888; background-color: #FFF;
/* Safari 3.0+, Chrome */ box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
box-shadow: 4px 4px 8px #888;
/* Opera 10.5, IE 9.0 */
filter: progid:DXImageTransform.Microsoft.Shadow(Strength=5, Direction=135, Color='#888888');
/* IE 6, IE 7 */
-ms-filter: progid:DXImageTransform.Microsoft.Shadow(Strength=5, Direction=135, Color='#888888');
/* IE 8 */
border-radius: 3px;
} }
.table table { .table table {
@@ -171,22 +312,28 @@ body {
} }
.table.selected { .table.selected {
border: 2px solid #000; border: 1px solid #FF4081;
} }
.table thead .title { .table thead .title {
text-align: center; text-align: center;
padding: 3px 30px; padding: 6px 30px;
} }
.table tbody { .table tbody {
border-top: 1px dotted #888; border-right: 4px solid transparent;
background: none !important;
} }
.table tbody td { .table tbody td {
padding: 3px; padding: 3px;
} }
.table tbody.expanded {
border-right: 6px solid rgba(0, 0, 0, .12);
background-color: whitesmoke !important;
}
.table tbody .selected { .table tbody .selected {
font-weight: bold; font-weight: bold;
color: #f00; color: #f00;
@@ -202,7 +349,7 @@ body {
position: absolute; position: absolute;
top: 0; top: 0;
right: 0; right: 0;
border-color: royalblue; border-color: rgb(125, 178, 221);
border-style: solid; border-style: solid;
border-width: 5px; border-width: 5px;
border-bottom-color: transparent; border-bottom-color: transparent;
@@ -215,14 +362,14 @@ body {
.table tbody[title]:not(.expanded):not([title=""]) td:last-child:after { .table tbody[title]:not(.expanded):not([title=""]) td:last-child:after {
content: ''; content: '';
position: absolute; position: relative;
top: 0; border-color: rgb(125, 178, 221);
right: 0;
border-color: royalblue;
border-style: solid; border-style: solid;
border-width: 5px; border-width: 6px;
border-bottom-color: transparent; border-bottom-color: transparent;
border-left-color: transparent; border-left-color: transparent;
border-top-color: transparent;
float: right;
} }
.primary { .primary {
@@ -267,23 +414,23 @@ body {
position: absolute; position: absolute;
visibility: hidden; visibility: hidden;
background-color: #fff; background-color: #fff;
border: 6px double #333; box-shadow: 0 10px 20px rgba(0, 0, 0, .19), 0 6px 6px rgba(0, 0, 0, .23);
padding: 15px;
} }
#windowtitle { #windowtitle {
border-bottom: 2px solid #333; font-size: x-large;
padding: 2px; margin: 15px 15px 24px 15px;
padding-left: 1em; padding-left: 15px;
font-weight: bold; padding-right: 15px;
background-color: rgb(238, 238, 170);
} }
#windowcontent { #windowcontent {
padding: 1em; padding: 1em;
} }
#windowok, #windowcancel { #tablename, #tablecomment {
margin: 0em 1em 1em; margin-bottom: 10px;
} }
.small { .small {
@@ -299,18 +446,27 @@ body {
width: 700px; width: 700px;
} }
#opts td {
padding-top: 15px;
margin-bottom: 20px;
}
#opts #optionsnotice {
opacity: 0.7;
}
#opts hr {
background-color: #ddd;
height: 1px;
border: none;
margin: 25px 0px 25px 0px;
}
#keys { #keys {
white-space: nowrap; white-space: nowrap;
text-align: center; text-align: center;
} }
legend {
font-weight: bold;
}
label, input, select {
vertical-align: middle;
}
#throbber { #throbber {
position: absolute; position: absolute;