From c70498ebcd7f68b6b0887daf3b917c9d361e95e8 Mon Sep 17 00:00:00 2001 From: George Michael Brower Date: Thu, 14 Aug 2014 22:21:45 -0400 Subject: [PATCH] basecontroller --- elements/base-controller.html | 66 ++++++++++ elements/gui-panel.html | 34 +++++ elements/gui-row.html | 48 +++++++ elements/number-controller.css | 97 ++++++++++++++ elements/number-controller.html | 215 ++++++++++++++++++++++++++++++++ 5 files changed, 460 insertions(+) create mode 100644 elements/base-controller.html create mode 100644 elements/gui-panel.html create mode 100644 elements/gui-row.html create mode 100644 elements/number-controller.css create mode 100644 elements/number-controller.html diff --git a/elements/base-controller.html b/elements/base-controller.html new file mode 100644 index 0000000..3dd2fc5 --- /dev/null +++ b/elements/base-controller.html @@ -0,0 +1,66 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/elements/gui-panel.html b/elements/gui-panel.html new file mode 100644 index 0000000..cfd4527 --- /dev/null +++ b/elements/gui-panel.html @@ -0,0 +1,34 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/elements/gui-row.html b/elements/gui-row.html new file mode 100644 index 0000000..ee9c2fc --- /dev/null +++ b/elements/gui-row.html @@ -0,0 +1,48 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/elements/number-controller.css b/elements/number-controller.css new file mode 100644 index 0000000..a83fdc1 --- /dev/null +++ b/elements/number-controller.css @@ -0,0 +1,97 @@ +:host { + display: block; + -webkit-text-select: none; + font-size: 0; + height: 100%; +} + +:host * { + margin: 0; +} + +#track-container { + height: 100%; + width: 100%; + height: 30px; +} + +#track { + width: 100%; + height: 11px; + display: inline-block; + position: relative; + border-radius: 20px; + background: rgba( 0, 0, 0, 0.1 ); + +} + +#fill { + height: 9px; + margin-top: 1px; + margin-left: 1px; + border-radius: 10px; + position: absolute; + background: #fff; + pointer-events: none; +} + + +#container.transition #knob { + -webkit-transition: left 0.1s ease-out; +} + +#container.transition #fill { + -webkit-transition: width 0.1s ease-out; +} + +.straddle-zero #knob { + position: absolute; + pointer-events: none; + width: 9px; + height: 9px; + margin-top: 1px; + background-color: #fff; + border-radius: 100%; +} + +.straddle-zero.negative #knob { + margin-left: -3px; +} +.straddle-zero.positive #knob { + margin-left: -5px; +} + +/* +.negative #knob, +.negative #fill { + background: #333; +} +*/ +input { + + font: 11px 'Montserrat', sans-serif; + color: #fff; + -webkit-font-smoothing: antialiased; + + padding-left: 5px; + display: inline-block; + vertical-align: top; + background: transparent; + border-radius: 10px; + height: 30px; + border: 0; + text-align: center; + outline: none; + width: 20%; + -webkit-transition: width 0.24s cubic-bezier(.25,.25,0,1); +} + + +input:hover { + width: 28%; +} + +input:focus { + width: 65%; +} + diff --git a/elements/number-controller.html b/elements/number-controller.html new file mode 100644 index 0000000..9d03404 --- /dev/null +++ b/elements/number-controller.html @@ -0,0 +1,215 @@ + + + + + + + + + + + + +