diff --git a/images/back_dim.png b/images/back_dim.png
new file mode 100644
index 0000000..83f4bb7
Binary files /dev/null and b/images/back_dim.png differ
diff --git a/images/down_2_black.png b/images/down_2_black.png
new file mode 100644
index 0000000..53f9909
Binary files /dev/null and b/images/down_2_black.png differ
diff --git a/images/down_2_white.png b/images/down_2_white.png
new file mode 100644
index 0000000..ba12907
Binary files /dev/null and b/images/down_2_white.png differ
diff --git a/images/fast_forward_black.png b/images/fast_forward_black.png
new file mode 100644
index 0000000..a1394ab
Binary files /dev/null and b/images/fast_forward_black.png differ
diff --git a/images/fast_rewind_black.png b/images/fast_rewind_black.png
new file mode 100644
index 0000000..30fdf6e
Binary files /dev/null and b/images/fast_rewind_black.png differ
diff --git a/images/up_2_black.png b/images/up_2_black.png
new file mode 100644
index 0000000..8d669aa
Binary files /dev/null and b/images/up_2_black.png differ
diff --git a/images/up_2_white.png b/images/up_2_white.png
new file mode 100644
index 0000000..e4eabb5
Binary files /dev/null and b/images/up_2_white.png differ
diff --git a/index.html b/index.html
index 24b98ad..55e889a 100644
--- a/index.html
+++ b/index.html
@@ -8,8 +8,9 @@
|
diff --git a/js/config.js b/js/config.js
index a6a91b0..49636ed 100644
--- a/js/config.js
+++ b/js/config.js
@@ -12,6 +12,9 @@ var CONFIG = {
RELATION_SPACING: 15,
RELATION_COLORS: ["#000", "#800", "#080", "#008", "#088", "#808", "#088"],
+ STYLES: ["material-inspired", "original"],
+ MATERIAL_RELATION_COLORS: ["#323232", "#F44336", "#E91E63", "#9C27B0", "#3F51B5", "#673AB7", "#2196F3", "#03A9F4", "#00BCD4", "#009688", "#4CAF50", "#8BC34A", "#CDDC39", "#FFC107", "#FF5722", "#795548", "#607D8B"],
+
STATIC_PATH: "",
XHR_PATH: "",
diff --git a/js/options.js b/js/options.js
index 90854e5..8c39a47 100644
--- a/js/options.js
+++ b/js/options.js
@@ -16,18 +16,19 @@ SQL.Options.prototype.build = function() {
this.dom.optiondb = OZ.$("optiondb");
this.dom.optionsnap = OZ.$("optionsnap");
this.dom.optionpattern = OZ.$("optionpattern");
+ this.dom.optionstyle = OZ.$("optionstyle");
this.dom.optionhide = OZ.$("optionhide");
this.dom.optionvector = OZ.$("optionvector");
this.dom.optionshowsize = OZ.$("optionshowsize");
this.dom.optionshowtype = OZ.$("optionshowtype");
- var ids = ["language","db","snap","pattern","hide","vector","showsize","showtype","optionsnapnotice","optionpatternnotice","optionsnotice"];
+ var ids = ["language","db","snap","pattern","style","hide","vector","showsize","showtype","optionsnapnotice","optionpatternnotice","optionsnotice"];
for (var i=0;i"+t+"\n";
-
+
if (this.data.def || this.data.def === null) {
var q = elm.getAttribute("quote");
var d = this.data.def;
@@ -348,27 +350,27 @@ SQL.Row.prototype.toXML = function() {
if (r.row2 != this) { continue; }
xml += '\n';
}
-
+
if (this.data.comment) {
xml += ""+SQL.escape(this.data.comment)+"\n";
}
-
+
xml += "\n";
return xml;
}
SQL.Row.prototype.fromXML = function(node) {
var name = node.getAttribute("name");
-
+
var obj = { type:0, size:"" };
obj.nll = (node.getAttribute("null") == "1");
obj.ai = (node.getAttribute("autoincrement") == "1");
-
+
var cs = node.getElementsByTagName("comment");
if (cs.length && cs[0].firstChild) { obj.comment = cs[0].firstChild.nodeValue; }
-
+
var d = node.getElementsByTagName("datatype");
- if (d.length && d[0].firstChild) {
+ if (d.length && d[0].firstChild) {
var s = d[0].firstChild.nodeValue;
var r = s.match(/^([^\(]+)(\((.*)\))?.*$/);
var type = r[1];
@@ -380,7 +382,7 @@ SQL.Row.prototype.fromXML = function(node) {
if (sql == type || (re && new RegExp(re).exec(type)) ) { obj.type = i; }
}
}
-
+
var elm = DATATYPES.getElementsByTagName("type")[obj.type];
var d = node.getElementsByTagName("default");
if (d.length && d[0].firstChild) {
diff --git a/js/toggle.js b/js/toggle.js
index 6b1ec05..703dbb7 100644
--- a/js/toggle.js
+++ b/js/toggle.js
@@ -17,10 +17,10 @@ SQL.Toggle.prototype._click = function(e) {
SQL.Toggle.prototype._switch = function(state) {
this._state = state;
if (this._state) {
- OZ.$("bar").style.height = "";
+ OZ.$("bar").style.maxHeight = "";
} else {
OZ.$("bar").style.overflow = "hidden";
- OZ.$("bar").style.height = this._elm.offsetHeight + "px";
+ OZ.$("bar").style.maxHeight = this._elm.offsetHeight + "px";
}
this._elm.className = (this._state ? "on" : "off");
}
diff --git a/js/wwwsqldesigner.js b/js/wwwsqldesigner.js
index 2a83420..383b359 100644
--- a/js/wwwsqldesigner.js
+++ b/js/wwwsqldesigner.js
@@ -29,6 +29,7 @@ SQL.Designer = function() {
this.flag = 2;
this.requestLanguage();
this.requestDB();
+ this.applyStyle();
}
SQL.Designer.prototype = Object.create(SQL.Visual.prototype);
@@ -87,6 +88,17 @@ SQL.Designer.prototype.dbResponse = function(xmlDoc) {
if (!this.flag) { this.init2(); }
}
+SQL.Designer.prototype.applyStyle = function() { /* apply style */
+ var style = this.getOption("style");
+ var i, link_elms;
+ for (i=0; link_elms = document.getElementsByTagName("link"); i++) {
+ if (link_elms[i].getAttribute("rel").indexOf("style") != -1 && link_elms[i].getAttribute("title")) {
+ link_elms[i].disabled = true;
+ if (link_elms[i].getAttribute("title") == style) link_elms[i].disabled = false;
+ }
+ }
+}
+
SQL.Designer.prototype.init2 = function() { /* secondary init, after locale & datatypes were retrieved */
this.map = new SQL.Map(this);
this.rubberband = new SQL.Rubberband(this);
@@ -187,6 +199,7 @@ SQL.Designer.prototype.getOption = function(name) {
case "pattern": return "%R_%T";
case "hide": return false;
case "vector": return true;
+ case "style": return "material-inspired";
default: return null;
}
}
diff --git a/locale/ar.xml b/locale/ar.xml
index 0091e6b..557a927 100644
--- a/locale/ar.xml
+++ b/locale/ar.xml
@@ -52,6 +52,7 @@
%T = الجدول الرئيسي, %R = المفتاح الرئيسي, %t = الجدول الخارجي
إخفاء الخطوط عند تحريك الجدول؟
رسم خطوط ناعمة (إذا كان المتصفح يدعم ذلك) ؟
+ قلم المدقة
diff --git a/locale/cs.xml b/locale/cs.xml
index 177d2d4..899e0ef 100644
--- a/locale/cs.xml
+++ b/locale/cs.xml
@@ -55,6 +55,7 @@
Vykreslovat oblé spojovníky (pakliže to prohlížeč podporuje)?
Zobrazovat velikost polí v tabulce?
Zobrazovat datový typ polí v tabulce?
+ Styl
Klíče
diff --git a/locale/de.xml b/locale/de.xml
index d0965be..10d0c68 100644
--- a/locale/de.xml
+++ b/locale/de.xml
@@ -55,6 +55,7 @@
Zeichne gekrümmte Verbindungslinien (Browser-abhängig)?
Zeige Feldgröße im Tabellendesign?
Zeige Felddatentyp im Tabellendesign?
+ Stil
Schlüssel
diff --git a/locale/el.xml b/locale/el.xml
index f157dfd..91751fe 100644
--- a/locale/el.xml
+++ b/locale/el.xml
@@ -53,6 +53,7 @@
%T = πρωτεύων πίνακας, %R = προτεύον κλειδί, %t = ξένος πίνακας
Απόκρυψη συνδέσμων όταν σύρονται οι πίνακες;
Διάγραμμα με ομαλούς συνδέσμους(αν παρέχεται από τον περιηγητή);
+ Στυλ
diff --git a/locale/en.xml b/locale/en.xml
index 51c42b6..f5b821d 100755
--- a/locale/en.xml
+++ b/locale/en.xml
@@ -55,6 +55,7 @@
Draw smooth connectors (if supported by browser)?
Show field size in table design?
Show field datatype in table design?
+ Style
Keys
diff --git a/locale/eo.xml b/locale/eo.xml
index cb5b3d3..2b29723 100644
--- a/locale/eo.xml
+++ b/locale/eo.xml
@@ -55,6 +55,7 @@
Desegni glatajn konektilojn (se subtenata de retumilo)?
Show field size in table design?
Show field datatype in table design?
+ Stilo
Klavoj
diff --git a/locale/es.xml b/locale/es.xml
index 7a4591c..7ab14ef 100644
--- a/locale/es.xml
+++ b/locale/es.xml
@@ -55,6 +55,7 @@
¿Dibujar conectores suaves (si son soportados por el navegador)?
¿Mostrar tamaño del campo en el diseño de tabla?
¿Mostrar tipo de dato del campo en el diseño de tabla?
+ Estilo
Claves
diff --git a/locale/fr.xml b/locale/fr.xml
index e7d3302..75b876e 100644
--- a/locale/fr.xml
+++ b/locale/fr.xml
@@ -55,7 +55,8 @@
Dessiner des connecteurs « adoucis » (si le navigateur le supporte) ?
Afficher la taille du champ dans le schéma de table ?
Afficher le type du champ dans le schéma de table ?
-
+ Style
+
Clés
Clés dans la table « %s »
diff --git a/locale/hu.xml b/locale/hu.xml
index c6ca773..734d593 100644
--- a/locale/hu.xml
+++ b/locale/hu.xml
@@ -53,6 +53,7 @@
%T = elsődleges tábla, %R = elsődleges kulcs, %t = idegen tábla
Elrejtsem a kapcsolókat a rajztáblán?
Kapcsolók finom kirajzolása (ha a böngésző lehetővé teszi)?
+ Stílus
diff --git a/locale/it.xml b/locale/it.xml
index 69e929d..c6ffce2 100644
--- a/locale/it.xml
+++ b/locale/it.xml
@@ -55,6 +55,7 @@
Disegna connettori arrotondati (se supportato dal browser)?
Show field size in table design?
Show field datatype in table design?
+ Stile
Chiavi
diff --git a/locale/ja.xml b/locale/ja.xml
index 5ac033b..ce7350a 100644
--- a/locale/ja.xml
+++ b/locale/ja.xml
@@ -54,6 +54,7 @@
滑らかな線を使う(要ブラウザのサポート)
フィールドサイズを表示
フィールドタイプを表示
+ スタイル
キーの設定
diff --git a/locale/ko.xml b/locale/ko.xml
index 3f5e75c..c293406 100644
--- a/locale/ko.xml
+++ b/locale/ko.xml
@@ -55,6 +55,7 @@
부드러운 연결선 사용 (브라우저 지원 필요)?
디자인에서 필드 사이즈를 표시
디자인에서 필드 타입을 표시
+ 스타일
키 설정
diff --git a/locale/nl.xml b/locale/nl.xml
index b236de7..eaefb3d 100644
--- a/locale/nl.xml
+++ b/locale/nl.xml
@@ -55,6 +55,7 @@
Teken gekromde relaties (als de browser dit ondersteund)?
Toon veld omvang in tabelontwerp?
Toon veld type in tabelontwerp?
+ Stijl
Sleutels
diff --git a/locale/pl.xml b/locale/pl.xml
index 7350c40..65176e1 100644
--- a/locale/pl.xml
+++ b/locale/pl.xml
@@ -55,6 +55,7 @@
Rysuj pływające złącza (jesli wsperane jest przez przeglądarkę)?
Show field size in table design?
Show field datatype in table design?
+ Styl
Klucze
diff --git a/locale/pt_BR.xml b/locale/pt_BR.xml
index 3d6df03..9c0a4b1 100644
--- a/locale/pt_BR.xml
+++ b/locale/pt_BR.xml
@@ -53,6 +53,7 @@
%T = tabela primária, %R = chave primária, %t = tabela estrangeira
Esconder connectores na tela?
Desenhar conectores suaves (se suportado pelo navegador)?
+ Estilo
diff --git a/locale/ro.xml b/locale/ro.xml
index 6b1ffdd..816d9fb 100644
--- a/locale/ro.xml
+++ b/locale/ro.xml
@@ -53,6 +53,7 @@
%T = Tabela primara, %R = Primary key, %t = Tabela cu Foreign key
Ascunde conexiunile la mutarea tabelei?
Deseneaza folosind "smooth connectors" (daca browserul suporta)?
+ Stil
diff --git a/locale/ru.xml b/locale/ru.xml
index 1b31548..c185d20 100644
--- a/locale/ru.xml
+++ b/locale/ru.xml
@@ -55,6 +55,7 @@
Рисовать сглаженные связи (если поддерживается браузером)?
Показывать размеры полей таблиц?
Показывать типы данных полей таблиц?
+ Стиль
Ключи
diff --git a/locale/sv.xml b/locale/sv.xml
index 583b5bf..2f9c93e 100644
--- a/locale/sv.xml
+++ b/locale/sv.xml
@@ -53,7 +53,7 @@
%T = primär tabell, %R = primär nycke, %t = främmande tabell
Dölj anslutningar när du drar i tabellen?
Rita mjuka anslutningar (om din webbläsare stöder det)?
-
+ Stil
Nycklar
diff --git a/locale/tr.xml b/locale/tr.xml
index 9d4849d..83c8a9a 100644
--- a/locale/tr.xml
+++ b/locale/tr.xml
@@ -55,6 +55,7 @@
Draw smooth connectors (if supported by browser)?
Tablo tasarımında alan boyutunu gösterme?
Alan veri tipini tablo tasarımında göster?
+ Stil
Anahtarlar
diff --git a/locale/zh.xml b/locale/zh.xml
index 5e8f71b..be2dffd 100644
--- a/locale/zh.xml
+++ b/locale/zh.xml
@@ -52,9 +52,9 @@
%T = 主表, %R = 主键, %t = 外连表
在表格移动时不显示连接?
绘制平滑的连接 (如果浏览器支持)?
- 设计表格时显示字段大小?
+ 设计表格时显示字段大小?
设计表格时显示字段数据类型?
-
+ 样式
设置表键
diff --git a/styles/material-inspired.css b/styles/material-inspired.css
new file mode 100644
index 0000000..992876c
--- /dev/null
+++ b/styles/material-inspired.css
@@ -0,0 +1,595 @@
+/* Generic styles */
+
+body {
+ font-family: verdana, sans-serif;
+ font-size: 12px;
+ padding: 0px;
+ margin: 0px;
+ background: #FFF;
+ font-weight: 400;
+ line-height: 1.429;
+ color: rgba(0, 0, 0, .87);
+ visibility: hidden;
+ -moz-user-select: -moz-none;
+ -khtml-user-select: none;
+ -webkit-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+}
+
+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;
+}
+
+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;
+}
+
+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;
+}
+
+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;
+}
+
+textarea:focus, select:focus, input[type=text]:focus {
+ border-color: #2196F3;
+ border-width: 2px;
+}
+
+select optgroup {
+ color: rgba(0, 0, 0, .54);
+ font-size: .9em;
+ background: white !important;
+ font-style: normal;
+}
+
+legend {
+ text-align: left;
+ display: block;
+ width: 100%;
+ padding: 0;
+ margin-bottom: 10px;
+ font-size: 21px;
+ color: rgba(0, 0, 0, .87);
+ line-height: inherit;
+}
+
+fieldset {
+ border: none;
+ padding: 0px;
+ margin: 0px 0px 10px 0px;
+}
+
+label {
+ opacity: 0.7;
+}
+
+label, input, select {
+ vertical-align: middle;
+}
+
+/* Area */
+
+#area {
+ position: relative;
+ background: transparent url(../images/back_dim.png);
+ width: 3000px;
+ height: 3000px;
+ opacity: 0.7;
+}
+
+#rubberband {
+ position: absolute;
+ border: .2px solid #FF4081;
+ background: rgba(255, 64, 129, 0.5);
+ opacity: 0.5;
+ visibility: hidden;
+}
+
+#background {
+ position: absolute;
+ background-color: #000;
+ opacity: 0.5;
+ visibility: hidden;
+}
+
+/* Main menu */
+
+#controls {
+ position: absolute;
+ left: 0px;
+ top: 0px;
+}
+
+#bar {
+ position: fixed;
+ transition: all .2s ease-in-out;
+ right: 4px;
+ top: 0px;
+ width: 190px;
+ margin: 0px 0px 20px 0px;
+ padding: 0px;
+ background-color: rgb(255, 255, 255);
+ text-align: center;
+ 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-sizing: border-box;
+ max-height: 600px;
+}
+
+#bar input {
+ transition: all .2s ease-in-out;
+ border-radius: 2px;
+ width: 100%;
+ height: auto;
+ margin: auto auto 3px auto;
+ padding: 2px;
+ line-height: 1.3;
+ opacity: .7;
+ text-transform: none;
+}
+
+#bar input:hover {
+ background-color: #de2665;
+ color: #fff;
+}
+
+#bar input:disabled {
+ cursor: not-allowed;
+ pointer-events: none;
+ opacity: .4;
+ box-shadow: none;
+}
+
+#bar input.small {
+ width: 45%;
+ display: inline;
+}
+
+#bar hr {
+ margin: 8px;
+ background-color: #ddd;
+ height: 1px;
+ border: none;
+}
+
+#toggle {
+ margin-bottom: 5px;
+ cursor: pointer;
+ transition: all .2s ease-in-out;
+ border-radius: 2px;
+ background-position: center;
+ background-repeat: no-repeat;
+ height: 22px;
+ opacity: .7;
+}
+
+#toggle:hover {
+ background-color: #de2665;
+}
+
+#toggle.on {
+ background-image: url(../images/up_2_black.png);
+}
+
+#toggle.on:hover {
+ background-image: url(../images/up_2_white.png);
+}
+
+#toggle.off {
+ background-image: url(../images/down_2_black.png);
+}
+
+#toggle.off:hover {
+ background-image: url(../images/down_2_white.png);
+}
+
+/* Minimap */
+
+#minimap {
+ position: fixed;
+ width: 100px;
+ height: 100px;
+ right: 5px;
+ bottom: 5px;
+ background-color: #fff;
+ opacity: 0.9;
+ overflow: hidden;
+ box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24);
+}
+
+.mini {
+ position: absolute;
+ background-color: #ff8fb5;
+ font-size: 1px;
+ line-height: 1px;
+}
+
+.mini_selected {
+ background-color: #de2665;
+}
+
+.port {
+ position: absolute;
+ transition: border 0.2s ease-in-out;
+ border: 2px solid rgba(0, 0, 0, .3);
+}
+
+#minimap:hover .port {
+ border: 2px solid rgba(0, 0, 0, .8);
+}
+
+/* Tables */
+
+.table {
+ position: absolute;
+ padding: 0 6px 6px 6px;
+ cursor: pointer;
+ margin-bottom: 20px;
+ border-radius: 0;
+ background-color: #FFF;
+ box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
+}
+
+.table table {
+ border-collapse: collapse;
+}
+
+.table.selected {
+ border: 1px solid #FF4081;
+}
+
+.table thead .title {
+ text-align: center;
+ padding: 6px 30px;
+}
+
+.table tbody {
+ border-right: 4px solid transparent;
+ background: none !important;
+}
+
+.table tbody td {
+ padding: 3px;
+ position: relative;
+}
+
+.table tbody.expanded {
+ border-right: 6px solid rgba(0, 0, 0, .12);
+ background-color: whitesmoke !important;
+}
+
+.table tbody .selected {
+ font-weight: bold;
+ color: #f00;
+ display: inline-block;
+}
+
+.table tbody .title {
+ display: inline-block;
+}
+
+.table thead td[title]:not([title=""]):after {
+ content: '';
+ position: absolute;
+ top: 0;
+ right: 0;
+ border-color: rgb(125, 178, 221);
+ border-style: solid;
+ border-width: 5px;
+ border-bottom-color: transparent;
+ border-left-color: transparent;
+}
+
+.table tbody[title]:not(.expanded):not([title=""]) td:last-child:after {
+ content: '';
+ position: relative;
+ border-color: rgb(125, 178, 221);
+ border-style: solid;
+ border-width: 6px;
+ border-bottom-color: transparent;
+ border-left-color: transparent;
+ border-top-color: transparent;
+ float: right;
+}
+
+.primary {
+ font-weight: bold;
+}
+
+.key {
+ font-style: italic;
+}
+
+.primary.key {
+ font-style: normal;
+}
+
+.typehint {
+ font-size: 80%;
+ color: gray;
+}
+
+.comment {
+ font-size: 80%;
+ font-weight: normal;
+ margin-right: 0.5em;
+}
+
+#commentbtn {
+ box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 2px 2px rgba(0, 0, 0, .2);
+}
+
+.adding {
+ cursor: crosshair;
+}
+
+.relation {
+ overflow: hidden;
+}
+
+#tablename, #tablecomment {
+ margin-bottom: 10px;
+}
+
+/* Window */
+
+#window {
+ position: absolute;
+ visibility: hidden;
+ background-color: #fff;
+ box-shadow: 0 10px 20px rgba(0, 0, 0, .19), 0 6px 6px rgba(0, 0, 0, .23);
+ padding: 15px;
+}
+
+#windowtitle {
+ font-size: x-large;
+ margin: 15px 15px 24px 15px;
+ padding-left: 15px;
+ padding-right: 15px;
+}
+
+#windowcontent {
+ padding: 1em;
+}
+
+#windowok {
+ color: #FF4081;
+}
+
+#windowok, #windowcancel {
+ float: right;
+}
+
+#windowok:hover, #windowcancel:hover {
+ background-color: #f2f2f2;
+}
+
+#throbber {
+ position: absolute;
+ top: 2px;
+ right: 3px;
+}
+
+/* Save / Load */
+
+#io {
+ min-width: 860px;
+}
+
+#io hr {
+ visibility: hidden;
+}
+
+#io table {
+ width: 100%;
+}
+
+#io input[type=button] {
+ box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 2px 2px rgba(0, 0, 0, .2);
+}
+
+#io input[type=button]:active {
+ background-color: #f2f2f2;
+ transition: all .2s ease-out;
+}
+
+#io #clientsql {
+ color: #FFF;
+ background-color: #FF4081;
+}
+
+#io #clientsql:hover {
+ transition: all .2s ease-in-out;
+ box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 2px 2px rgba(0, 0, 0, .2);
+ background-color: #ff5a92;
+}
+
+#textarea {
+ width: 100%;
+ height: 200px;
+ font-size: small;
+ font-family: "Lucida Console", Monaco, monospace;
+}
+
+/* Options */
+
+#opts {
+ 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;
+}
+
+.small {
+ font-size: 85%;
+}
+
+/* Keys */
+
+#keys {
+ white-space: nowrap;
+ padding: 0px 10px;
+ text-align: center;
+}
+
+#keys hr {
+ visibility: hidden;
+}
+
+#keys table {
+ width: 100%;
+}
+
+#keys table td {
+ width: 42%;
+}
+
+#keys table td+td {
+ width: 16%;
+}
+
+#keys table td+td+td {
+ width: 42%;
+}
+
+#keyadd {
+ margin: 15px;
+ color: #FFF;
+ background-color: #2196F3;
+}
+
+#keyadd:hover {
+ transition: all .2s ease-in-out;
+ background-color: #39a1f4;
+ box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 2px 2px rgba(0, 0, 0, .2);
+}
+
+#keyremove {
+ margin: 15px;
+ color: #FFF;
+ background-color: #F44336;
+}
+
+#keyremove:hover {
+ transition: all .2s ease-in-out;
+ background-color: #f55a4e;
+ box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 2px 2px rgba(0, 0, 0, .2);
+}
+
+#keyleft, #keyright {
+ height: auto;
+ line-height: normal;
+ box-shadow: none;
+ padding: 3px;
+ box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 2px 2px rgba(0, 0, 0, .2);
+}
+
+#keyfields, #keyavail {
+ height: auto;
+ background-image: none;
+ font-size: small;
+ border: 1px solid rgba(0, 0, 0, .26);
+ padding: 0px;
+}
\ No newline at end of file
diff --git a/styles/style.css b/styles/original.css
similarity index 100%
rename from styles/style.css
rename to styles/original.css
|