From 573cb5321bde8b87bfecfe5739c1ef2c07c27ecd Mon Sep 17 00:00:00 2001 From: loro2 <51793898+loro2@users.noreply.github.com> Date: Wed, 24 Jul 2019 10:07:03 +0200 Subject: [PATCH] add new stylesheet, change background,menu,minimap --- images/back_dim.png | Bin 0 -> 353 bytes images/down_2_black.png | Bin 0 -> 123 bytes images/down_2_white.png | Bin 0 -> 128 bytes images/fast_forward_black.png | Bin 0 -> 239 bytes images/fast_rewind_black.png | Bin 0 -> 247 bytes images/up_2_black.png | Bin 0 -> 115 bytes images/up_2_white.png | Bin 0 -> 118 bytes index.html | 5 +- js/toggle.js | 4 +- styles/material-inspired.css | 327 +++++++++++++++++++++++++++++ styles/{style.css => original.css} | 0 11 files changed, 332 insertions(+), 4 deletions(-) create mode 100644 images/back_dim.png create mode 100644 images/down_2_black.png create mode 100644 images/down_2_white.png create mode 100644 images/fast_forward_black.png create mode 100644 images/fast_rewind_black.png create mode 100644 images/up_2_black.png create mode 100644 images/up_2_white.png create mode 100644 styles/material-inspired.css rename styles/{style.css => original.css} (100%) diff --git a/images/back_dim.png b/images/back_dim.png new file mode 100644 index 0000000000000000000000000000000000000000..83f4bb7a595c108900ac8b6072c50fd1f4c180e1 GIT binary patch literal 353 zcmeAS@N?(olHy`uVBq!ia0vp^DImFdh=fRm3&Qu6eM!fOl+j0~PGjv*Dd-rnBG%cLmLmUzyBne}R~!&#A>6J9=!2SxlA zJmj(!n!kSUvrjJn_ZWW6Sj!rH+qfklyY_pQ-}+j7lIbNAkB63R=rBp|5-HTBvR`wzxz r01531;tl4ycNU~urgTe~DWM4f#9f5- literal 0 HcmV?d00001 diff --git a/images/down_2_black.png b/images/down_2_black.png new file mode 100644 index 0000000000000000000000000000000000000000..53f9909171968f246984c64f4330f76a8eda431c GIT binary patch literal 123 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+0wn(&ce?|moIG6|Ln;`PCHNXx=eBd2NWL?O zI9$1nXS<|{fvBg^orE7}5|~3jv7VUBve|GdqiXI44Mz=Ujf0DMma(iiQjiH`U`YBb V@P=c}U1gwY44$rjF6*2UngFEhBozPv literal 0 HcmV?d00001 diff --git a/images/down_2_white.png b/images/down_2_white.png new file mode 100644 index 0000000000000000000000000000000000000000..ba129079f43fed3e95465cebab6d205213136d96 GIT binary patch literal 128 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+0wn(&ce?|m+&x_!Lp07OCrJEyV9%W==M(Vx z|J?uA3g*52fBV0wfvD%d{U85-u9sdhN#9|firHp|Q~UmGKe(91Q_@bgAoa&ohpC=M cJsJ!Q6Pry=FkPNk2{e+y)78&qol`;+0LvUN{{R30 literal 0 HcmV?d00001 diff --git a/images/fast_forward_black.png b/images/fast_forward_black.png new file mode 100644 index 0000000000000000000000000000000000000000..a1394ab3215683ef21c4c993af1bdbfdad663631 GIT binary patch literal 239 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+0wn(&ce?|m6p}rHd>I(3)EF2VS{N990fib~ zFff!FFfhDIU|_JC!N4G1FlSew4N!t9$=lt9;eUJonf*W>XMsm#F#`j)FbFd;%$g$s z6ioMYaSYKopPV4E$3eVP_ozZk>_z@ICpI^Y+l>!3o3+hc|2GzhU*PFj^q=Ry#4pJk z8#RBO|Int$v5JF5f1w4_Iu4fShCdG6JkjS6Xd>zopr0LJJ_cK`qY literal 0 HcmV?d00001 diff --git a/images/fast_rewind_black.png b/images/fast_rewind_black.png new file mode 100644 index 0000000000000000000000000000000000000000..30fdf6e706b346a87914b3ae3c15172ddd15f75c GIT binary patch literal 247 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+0wn(&ce?|m6p}rHd>I(3)EF2VS{N990fib~ zFff!FFfhDIU|_JC!N4G1FlSew4N!t9$=lt9;eUJonf*W>XMsm#F#`j)FbFd;%$g$s z6wLQ@aSYKopPV4^$6-%jnr!EEdrvnMW`@Q{5MQ(0SGTRqSJgRe5ca|T+?;OXk;vd$@?2>{SPN#pVr-DIFC N44$rjF6*2UngE{^BM1Nh literal 0 HcmV?d00001 diff --git a/images/up_2_white.png b/images/up_2_white.png new file mode 100644 index 0000000000000000000000000000000000000000..e4eabb51522d13c9d28c5dc59bacd17a36d4be87 GIT binary patch literal 118 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+0wn(&ce?|mY&~5ZLp07OCrAW7s6YIl?U0wl zg2oAxX8uoq7|0f8^w(Zl;8D=G`-~cfZ|#+5@CK&!`_43X;S8Di-J?^Bp~%6Y<8+jd Q7tkOEPgg&ebxsLQ0QDUvRsaA1 literal 0 HcmV?d00001 diff --git a/index.html b/index.html index 24b98ad..7709428 100644 --- a/index.html +++ b/index.html @@ -8,8 +8,9 @@ WWW SQL Designer - - + + + 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/styles/material-inspired.css b/styles/material-inspired.css new file mode 100644 index 0000000..6533e02 --- /dev/null +++ b/styles/material-inspired.css @@ -0,0 +1,327 @@ +body { + font-family: verdana, sans serif; + font-size: small; + padding: 0px; + margin: 0px; + background: #FFF; + visibility: hidden; + -moz-user-select: -moz-none; + -khtml-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; + user-select: none; +} + +#area { + position: relative; + background: transparent url(../images/back_dim.png); + width: 3000px; + height: 3000px; + opacity: 0.7; +} + +#controls { + position: absolute; + left: 0px; + top: 0px; +} + +#bar { + position: fixed; + transition: all .2s ease-in-out; + right: 4px; + top: 0px; + width: 200px; + margin: 0px 0px 20px 0px; + padding: 0px; + background-color: rgb(255, 255, 255); + text-align: center; + color: rgba(0, 0, 0, 0.87); + 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 { + display: block; + cursor: pointer; + transition: all .2s ease-in-out; + border-radius: 2px; + width: 100%; + height: auto; + background-color: transparent; + border: none; + margin: auto auto 3px auto; + padding: 2px; + line-height: 1.3; + font-size: small; + text-transform: uppercase; + letter-spacing: .03em; + font-family: verdana, sans-serif; +} + +#bar input:hover { + background-color: #FF4081; + color: #fff; +} + +#bar input:disabled { + cursor: not-allowed; + pointer-events: none; + opacity: .6; + box-shadow: none; +} + +#bar hr { + margin: 8px; + background-color: #ddd; + height: 1px; + border: none; +} + +#bar input.small { + width: 45%; + display: inline; +} + +#toggle { + margin-bottom: 5px; + cursor: pointer; + transition: all .2s ease-in-out; + border-radius: 2px; + background-position: center; + background-repeat: no-repeat; + height: 21px; +} + +#toggle:hover { + background-color: #FF4081; +} + +#toggle.on:hover { + background-image: url(../images/up_2_white.png); +} + +#toggle.off:hover { + background-image: url(../images/down_2_white.png); +} + +#toggle.on { + background-image: url(../images/up_2_black.png); +} + +#toggle.off { + background-image: url(../images/down_2_black.png); +} + +#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); +} + +.table { + position: absolute; + border: 1px solid #000; + background-color: #ddd; + cursor: pointer; + -moz-box-shadow: 4px 4px 8px #888; + /* FF 3.5+ */ + -webkit-box-shadow: 4px 4px 8px #888; + /* Safari 3.0+, Chrome */ + 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 { + border-collapse: collapse; +} + +.table.selected { + border: 2px solid #000; +} + +.table thead .title { + text-align: center; + padding: 3px 30px; +} + +.table tbody { + border-top: 1px dotted #888; +} + +.table tbody td { + padding: 3px; +} + +.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: royalblue; + border-style: solid; + border-width: 5px; + border-bottom-color: transparent; + border-left-color: transparent; +} + +.table tbody td { + position: relative; +} + +.table tbody[title]:not(.expanded):not([title=""]) td:last-child:after { + content: ''; + position: absolute; + top: 0; + right: 0; + border-color: royalblue; + border-style: solid; + border-width: 5px; + border-bottom-color: transparent; + border-left-color: transparent; +} + +.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; +} + +.adding { + cursor: crosshair; +} + +.relation { + overflow: hidden; +} + +#background { + position: absolute; + background-color: #000; + opacity: 0.5; + visibility: hidden; +} + +#window { + position: absolute; + visibility: hidden; + background-color: #fff; + border: 6px double #333; +} + +#windowtitle { + border-bottom: 2px solid #333; + padding: 2px; + padding-left: 1em; + font-weight: bold; + background-color: rgb(238, 238, 170); +} + +#windowcontent { + padding: 1em; +} + +#windowok, #windowcancel { + margin: 0em 1em 1em; +} + +.small { + font-size: 85%; +} + +#textarea { + width: 650px; + height: 200px; +} + +#opts { + width: 700px; +} + +#keys { + white-space: nowrap; + text-align: center; +} + +legend { + font-weight: bold; +} + +label, input, select { + vertical-align: middle; +} + +#throbber { + position: absolute; + top: 2px; + right: 3px; +} + +#rubberband { + position: absolute; + border: 1px solid #000; + background: #888; + opacity: 0.5; + visibility: hidden; +} \ 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