Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shared/style/buttons
diff options
context:
space:
mode:
Diffstat (limited to 'shared/style/buttons')
-rw-r--r--shared/style/buttons/images/icons/dialog.pngbin0 -> 1167 bytes
-rw-r--r--shared/style/buttons/images/icons/view.pngbin0 -> 1235 bytes
-rw-r--r--shared/style/buttons/images/ui/danger-disabled.pngbin0 -> 1020 bytes
-rw-r--r--shared/style/buttons/images/ui/danger-press.pngbin0 -> 1015 bytes
-rw-r--r--shared/style/buttons/images/ui/danger.pngbin0 -> 1031 bytes
-rw-r--r--shared/style/buttons/images/ui/default.pngbin0 -> 1014 bytes
-rw-r--r--shared/style/buttons/images/ui/disabled.pngbin0 -> 1013 bytes
-rw-r--r--shared/style/buttons/images/ui/recommend.pngbin0 -> 1020 bytes
-rw-r--r--shared/style/buttons/images/ui/shadow.pngbin0 -> 146 bytes
-rw-r--r--shared/style/buttons/index.html126
10 files changed, 126 insertions, 0 deletions
diff --git a/shared/style/buttons/images/icons/dialog.png b/shared/style/buttons/images/icons/dialog.png
new file mode 100644
index 0000000..6cda241
--- /dev/null
+++ b/shared/style/buttons/images/icons/dialog.png
Binary files differ
diff --git a/shared/style/buttons/images/icons/view.png b/shared/style/buttons/images/icons/view.png
new file mode 100644
index 0000000..de62f59
--- /dev/null
+++ b/shared/style/buttons/images/icons/view.png
Binary files differ
diff --git a/shared/style/buttons/images/ui/danger-disabled.png b/shared/style/buttons/images/ui/danger-disabled.png
new file mode 100644
index 0000000..2a14bfb
--- /dev/null
+++ b/shared/style/buttons/images/ui/danger-disabled.png
Binary files differ
diff --git a/shared/style/buttons/images/ui/danger-press.png b/shared/style/buttons/images/ui/danger-press.png
new file mode 100644
index 0000000..d7529b5
--- /dev/null
+++ b/shared/style/buttons/images/ui/danger-press.png
Binary files differ
diff --git a/shared/style/buttons/images/ui/danger.png b/shared/style/buttons/images/ui/danger.png
new file mode 100644
index 0000000..400e3ae
--- /dev/null
+++ b/shared/style/buttons/images/ui/danger.png
Binary files differ
diff --git a/shared/style/buttons/images/ui/default.png b/shared/style/buttons/images/ui/default.png
new file mode 100644
index 0000000..2ff298a
--- /dev/null
+++ b/shared/style/buttons/images/ui/default.png
Binary files differ
diff --git a/shared/style/buttons/images/ui/disabled.png b/shared/style/buttons/images/ui/disabled.png
new file mode 100644
index 0000000..2e97135
--- /dev/null
+++ b/shared/style/buttons/images/ui/disabled.png
Binary files differ
diff --git a/shared/style/buttons/images/ui/recommend.png b/shared/style/buttons/images/ui/recommend.png
new file mode 100644
index 0000000..42aed39
--- /dev/null
+++ b/shared/style/buttons/images/ui/recommend.png
Binary files differ
diff --git a/shared/style/buttons/images/ui/shadow.png b/shared/style/buttons/images/ui/shadow.png
new file mode 100644
index 0000000..acc799f
--- /dev/null
+++ b/shared/style/buttons/images/ui/shadow.png
Binary files differ
diff --git a/shared/style/buttons/index.html b/shared/style/buttons/index.html
new file mode 100644
index 0000000..c97cbd6
--- /dev/null
+++ b/shared/style/buttons/index.html
@@ -0,0 +1,126 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8">
+
+ <title>Buttons</title>
+ <meta name="description" content="You can use button tag or also anchor tag with role button">
+
+ <link rel="stylesheet" href="../buttons.css">
+
+ <!--
+ - This <style> and <link> is only used for the example preview,
+ - it isn't needed for the real use case.
+ -->
+ <style>
+ html, body {
+ margin: 0;
+ padding: 0;
+ font-size: 10px;
+ background-color: #fff;
+ }
+
+ h2.bb-docs {
+ font-size: 1.8rem;
+ font-family: "MozTT", Sans-serif;
+ font-weight: lighter;
+ color: #666;
+ margin: -0.1rem 0 0;
+ background-color: #f5f5f5;
+ padding: 0.4rem 0.4rem 0.4rem 3rem;
+ border: solid 0.1rem #e8e8e8;
+ }
+
+ div.bb-docs {
+ padding: 1rem;
+ }
+
+ div.bb-docs.dark {
+ background: #000;
+ }
+
+ ul {
+ padding: 0;
+ margin: 0;
+ list-style: none;
+ }
+
+ body[role="application"] > [role="region"] {
+ height: 100%;
+ position: relative;
+ }
+ </style>
+</head>
+<body role="application">
+ <h2 class="bb-docs">Normal</h2>
+ <div class="bb-docs">
+ <button>Default</button>
+ <button class="recommend">Recommend</button>
+ <button class="danger">Danger</button>
+ </div>
+
+ <h2 class="bb-docs">Disabled</h2>
+ <div class="bb-docs">
+ <button disabled>Default</button>
+ <a href="#" role="button" aria-disabled="true" class="recommend">Recommend</a>
+ <button disabled class="danger">Danger</button>
+ </div>
+
+ <h2 class="bb-docs">Disabled with dark background</h2>
+ <div class="bb-docs dark">
+ <button disabled>Default</button>
+ <a href="#" role="button" aria-disabled="true" class="recommend">Recommend</a>
+ <button disabled class="danger">Danger</button>
+ </div>
+
+ <h2 class="bb-docs">Button List </h2>
+ <div class="bb-docs">
+ <ul>
+ <li>
+ <button>Default</button>
+ </li>
+ <li>
+ <button disabled="disabled">Disabled</button>
+ </li>
+ <li>
+ <button class="icon icon-view">
+ View Name
+ </button>
+ </li>
+ <li>
+ <button disabled="disabled" class="icon icon-view">
+ View Name
+ </button>
+ </li>
+ <li>
+ <a role="button" class="icon icon-dialog">
+ Tuesday September 18, 2012
+ </a>
+ </li>
+ <li>
+ <a role="button" aria-disabled="true" class="icon icon-dialog">
+ Tuesday September 18, 2012
+ </a>
+ </li>
+ </ul>
+ </div>
+
+ <h2 class="bb-docs">Button list (compact mode)</h2>
+ <div class="bb-docs">
+ <ul class="compact">
+ <li><button>Action 1</button></li>
+ <li><button>Action 2</button></li>
+ <li><button disabled >Action 3 (disabled)</button></li>
+ <li><button>Action 4</button></li>
+ <li><button>Action 5</button></li>
+ <li>
+ <button>
+ <span class="end tick"></span>
+ Action 6
+ </button>
+ </li>
+ </ul>
+ </div>
+</body>
+</html>
+