From da1a9ad621844b8cd2f434ca294e1de300153d7c Mon Sep 17 00:00:00 2001 From: frankiefu Date: Thu, 20 Dec 2012 15:56:55 -0800 Subject: [PATCH] added g-menu-button and g-toolbar --- src/css/g-menu-button.css | 68 ++++++++++++++++++++++++++++++++++++++ src/g-menu-button.html | 39 ++++++++++++++++++++++ src/g-toolbar.html | 60 +++++++++++++++++++++++++++++++++ workbench/images/add.svg | 9 +++++ workbench/menu-button.html | 34 +++++++++++++++++++ workbench/toolbar.html | 36 ++++++++++++++++++++ 6 files changed, 246 insertions(+) create mode 100644 src/css/g-menu-button.css create mode 100644 src/g-menu-button.html create mode 100644 src/g-toolbar.html create mode 100644 workbench/images/add.svg create mode 100644 workbench/menu-button.html create mode 100644 workbench/toolbar.html diff --git a/src/css/g-menu-button.css b/src/css/g-menu-button.css new file mode 100644 index 0000000000..7571e1144d --- /dev/null +++ b/src/css/g-menu-button.css @@ -0,0 +1,68 @@ +@host { + display: inline-block; + box-sizing: border-box; + width: 40px; + height: 40px; +} + +#overlay { + background: white; + border: 1px solid #cfcfcf; + box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3); + margin: 10px 0 0 20px; + -webkit-transform: translateX(-50%); +} + +.arrow-border, .arrow { + height: 1px; + width: 0; + margin: 0 auto; + margin-top: -22px; + border-color: transparent transparent #cfcfcf transparent; + border-style: solid; + border-width: 10px; +} + +.arrow { + border-bottom-color: white; + margin-top: -19px; +} + +#menu { + border: 1px solid transparent; + box-shadow: none; +} + +@host g-menu-item { + white-space: nowrap; +} + +@media screen and (max-width: 800px) { + .arrow-border, .arrow { + display: none; + } + + #menu { + width: 100%; + } + + #overlay { + position: absolute; + -webkit-transform: translateX(0); + right: 0; + bottom: 0; + left: 0; + margin: 0; + border-bottom: 0; + box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1); + } + + #overlay.slideup { + -webkit-transform: translateY(100%); + -webkit-transition: -webkit-transform 0.218s; + } + + #overlay.slideup.opened { + -webkit-transform: translateY(0); + } +} \ No newline at end of file diff --git a/src/g-menu-button.html b/src/g-menu-button.html new file mode 100644 index 0000000000..edc6bf300f --- /dev/null +++ b/src/g-menu-button.html @@ -0,0 +1,39 @@ + + + + + + + + + diff --git a/src/g-toolbar.html b/src/g-toolbar.html new file mode 100644 index 0000000000..0aa217ef5a --- /dev/null +++ b/src/g-toolbar.html @@ -0,0 +1,60 @@ + + + + + + diff --git a/workbench/images/add.svg b/workbench/images/add.svg new file mode 100644 index 0000000000..20231fdbe7 --- /dev/null +++ b/workbench/images/add.svg @@ -0,0 +1,9 @@ + + + + + + + diff --git a/workbench/menu-button.html b/workbench/menu-button.html new file mode 100644 index 0000000000..15cb78a8f9 --- /dev/null +++ b/workbench/menu-button.html @@ -0,0 +1,34 @@ + + + + + Dropdown Button + + + + + + + + +
toggle menubutton:
+ + Post a Comment + Share Link + Email Link + Add to Favorites + +
+ + diff --git a/workbench/toolbar.html b/workbench/toolbar.html new file mode 100644 index 0000000000..e43f9c02f5 --- /dev/null +++ b/workbench/toolbar.html @@ -0,0 +1,36 @@ + + + + + Menu + + + + + + + + + +
Title
+ +
(
+ + +
)
+
+ +
+ +