Upgrade to ExtJS 3.0.0 - Released 07/06/2009
[extjs.git] / resources / css / structure / box.css
diff --git a/resources/css/structure/box.css b/resources/css/structure/box.css
new file mode 100644 (file)
index 0000000..16d02fa
--- /dev/null
@@ -0,0 +1,80 @@
+/*!
+ * Ext JS Library 3.0.0
+ * Copyright(c) 2006-2009 Ext JS, LLC
+ * licensing@extjs.com
+ * http://www.extjs.com/license
+ */
+/*
+ Creates rounded, raised boxes like on the Ext website - the markup isn't pretty:
+  <div class="x-box-blue">
+        <div class="x-box-tl"><div class="x-box-tr"><div class="x-box-tc"></div></div></div>
+        <div class="x-box-ml"><div class="x-box-mr"><div class="x-box-mc">
+            <h3>YOUR TITLE HERE (optional)</h3>
+            <div>YOUR CONTENT HERE</div>
+        </div></div></div>
+        <div class="x-box-bl"><div class="x-box-br"><div class="x-box-bc"></div></div></div>
+    </div>
+ */
+
+.x-box-tl {
+       background: transparent no-repeat 0 0;
+    zoom:1;
+}
+
+.x-box-tc {
+       height: 8px;
+       background: transparent repeat-x 0 0;
+       overflow: hidden;
+}
+
+.x-box-tr {
+       background: transparent no-repeat right -8px;
+}
+
+.x-box-ml {
+       background: transparent repeat-y 0;
+       padding-left: 4px;
+       overflow: hidden;
+    zoom:1;
+}
+
+.x-box-mc {
+       background: repeat-x 0 -16px;
+       padding: 4px 10px;
+}
+
+.x-box-mc h3 {
+       margin: 0 0 4px 0;
+    zoom:1;
+}
+
+.x-box-mr {
+       background: transparent repeat-y right;
+       padding-right: 4px;
+       overflow: hidden;
+}
+
+.x-box-bl {
+       background: transparent no-repeat 0 -16px;
+    zoom:1;
+}
+
+.x-box-bc {
+       background: transparent repeat-x 0 -8px;
+       height: 8px;
+       overflow: hidden;
+}
+
+.x-box-br {
+       background: transparent no-repeat right -24px;
+}
+
+.x-box-tl, .x-box-bl {
+       padding-left: 8px;
+       overflow: hidden;
+}
+
+.x-box-tr, .x-box-br {
+       padding-right: 8px;
+       overflow: hidden;
+}
\ No newline at end of file