aboutsummaryrefslogtreecommitdiffstats
path: root/themes
diff options
context:
space:
mode:
authorjzaefferer <joern.zaefferer@gmail.com>2010-10-22 06:16:12 +0200
committerjzaefferer <joern.zaefferer@gmail.com>2010-10-22 06:16:12 +0200
commitf7d8a1ba570fd620d65b377ebe806eac0b578328 (patch)
treed4c36877f1f537c943f99241a60fe44bb9edac9f /themes
parent19f9c3a559497c893a4fcdbc8cbbbacef60c315c (diff)
downloadjquery-ui-f7d8a1ba570fd620d65b377ebe806eac0b578328.tar.gz
jquery-ui-f7d8a1ba570fd620d65b377ebe806eac0b578328.zip
Porting old spinner implementation to 1.8, dropping some baggage.
Diffstat (limited to 'themes')
-rw-r--r--themes/base/jquery.ui.base.css1
-rw-r--r--themes/base/jquery.ui.spinner.css24
2 files changed, 25 insertions, 0 deletions
diff --git a/themes/base/jquery.ui.base.css b/themes/base/jquery.ui.base.css
index 7634fb61e..62d17c7e2 100644
--- a/themes/base/jquery.ui.base.css
+++ b/themes/base/jquery.ui.base.css
@@ -18,4 +18,5 @@
@import url("jquery.ui.resizable.css");
@import url("jquery.ui.selectable.css");
@import url("jquery.ui.slider.css");
+@import url("jquery.ui.spinner.css");
@import url("jquery.ui.tabs.css");
diff --git a/themes/base/jquery.ui.spinner.css b/themes/base/jquery.ui.spinner.css
new file mode 100644
index 000000000..6d8bfa59b
--- /dev/null
+++ b/themes/base/jquery.ui.spinner.css
@@ -0,0 +1,24 @@
+/* Spinner
+----------------------------------*/
+.ui-spinner { position:relative; display: inline-block; overflow: hidden; padding: 0; vertical-align: middle; height: 1.8em; }
+.ui-spinner-input { border: none; background: none; padding: 0; margin: .2em 0; vertical-align: middle; }
+.ui-spinner-button { width: 16px; height: 50%; font-size: .5em; padding: 0; margin: 0; z-index: 100; text-align: center; vertical-align: middle; position: absolute; cursor: default; display: block; overflow: hidden; }
+.ui-spinner a.ui-spinner-button { border-top: none; border-bottom: none; } /* more specificity required here to overide default borders */
+.ui-spinner .ui-icon { position: absolute; margin-top: -8px; top: 50%; left: 0; } /* vertical centre icon */
+.ui-spinner-up { top: 0; }
+.ui-spinner-down { bottom: 0; }
+
+/* ltr (default) */
+.ui-spinner-ltr { direction: ltr; }
+.ui-spinner-ltr .ui-spinner-input { float: left; margin-left: .4em; margin-right: 22px; }
+.ui-spinner-ltr .ui-spinner-button { right: 0; }
+.ui-spinner-ltr a.ui-spinner-button { border-right: none; }
+
+/* rtl */
+.ui-spinner-rtl { direction: rtl; }
+.ui-spinner-rtl .ui-spinner-input { float: right; margin-left: 22px; margin-right: .4em; }
+.ui-spinner-rtl .ui-spinner-button { left: 0; }
+.ui-spinner-rtl a.ui-spinner-button { border-left: none; }
+
+/* TR overrides */
+div.ui-spinner { background: none; }