]> source.dussan.org Git - vaadin-framework.git/commitdiff
Corrections to table column reordering styles.
authorJouni Koivuviita <jouni.koivuviita@itmill.com>
Tue, 27 Sep 2011 09:59:54 +0000 (09:59 +0000)
committerJouni Koivuviita <jouni.koivuviita@itmill.com>
Tue, 27 Sep 2011 09:59:54 +0000 (09:59 +0000)
Cleaned up table column drag styles for Reindeer (lost of duplication)

svn changeset:21334/svn branch:6.7

WebContent/VAADIN/themes/base/table/table.css
WebContent/VAADIN/themes/liferay/table/table.css
WebContent/VAADIN/themes/reindeer/common/common.css
WebContent/VAADIN/themes/reindeer/table/table.css
WebContent/VAADIN/themes/runo/table/table.css
build/buildhelpers/com/vaadin/buildhelpers/CompileDefaultTheme.java

index a5611e809f395135e087ae1da93e4ec6832f8e70..4b3922c554a697eeda481eb750e1922f9c90cfe8 100644 (file)
@@ -58,7 +58,7 @@
        border-top: none;
        background: #efefef;
 }
-.v-table-footer table{
+.v-table-footer table {
        border-spacing: 0;
        border-collapse: collapse;
        margin: 0;
        padding: 0;
        border-right: 1px solid #aaa;
 }
-.v-table-footer-cell{
+.v-table-footer-cell {
        cursor: pointer;
 }
-.v-table-footer-container    
+.v-table-footer-container {    
        float:right;    
        padding-right:6px;
        overflow:hidden;
 }
 .v-table-focus-slot-left {
        border-left: 2px solid #999;
-       margin-right: -2px;
+       float: none;
+       margin-bottom: -1.2em;
+       width: auto;
+       background: transparent;
+       border-right: 1px solid #aaa;
 }
 .v-table-focus-slot-right {
        border-right: 2px solid #999;
index 020bac882b2464862caf2d8e645c691e037ba502..81446d46280113ef3228f62906fe6c889981808f 100644 (file)
        background: #999;
 }
 
+.v-table-focus-slot-left {
+       margin-bottom: -26px;
+       background: transparent;
+}
+
 .v-table-column-selector {
        background: transparent url(columnselect.png);
        width: 16px;
index 1e540715e107110aa75dad92a8a5910ba25c5a41..50dcdd84ab8d2cc77a6411f0743adb6a0808f822 100644 (file)
@@ -24,7 +24,8 @@
 .v-contextmenu,
 .v-Notification,
 .v-menubar-submenu,
-.v-drag-element {
+.v-drag-element,
+.v-table-header-drag {
        font-family: Arial, Helvetica, Tahoma, Verdana, sans-serif;
        font-size: 12px;
        line-height: normal;
index d4e7046d2b4940a98bb44df670608d6e6c0042b5..e58ee8eb69254e401d9601d97eb3adc369c213dd 100644 (file)
@@ -11,7 +11,8 @@
 .v-table-header-wrap,
 .white .v-table-header-wrap,
 .v-table-footer-wrap,
-.white .v-table-footer-wrap {
+.white .v-table-footer-wrap,
+.v-table-header-drag {
        border-color: #c2c3c4;
        background: transparent repeat-x;
        background-image: url(img/header-bg-light.png); /** sprite-ref: verticals; sprite-alignment: repeat */
 .v-ie6 .v-table,
 .v-ie6 .v-table-header-wrap,
 .v-ie6 .v-table-footer-wrap,
-.v-ie6 .v-table-column-selector{
+.v-ie6 .v-table-column-selector {
        /* The header will overflow the Table due to a bug in IE6 after changes in #3003. To fix this (#7314) 
         * we need to apply position:relative to the wrappers and selector to make them appear on top of the 
-        * header. We also need to apply it to the table root div to get rid of a really wierd IE6 rendering bug
+        * header. We also need to apply it to the table root div to get rid of a really weird IE6 rendering bug
         * caused by all this relativeness (see attachment in #7314).  
         */
-       position:relative;
+       position: relative;
 }
 
 .v-ie6 .v-table.v-disabled,
-.v-ie7 .v-table.v-disabled{
+.v-ie7 .v-table.v-disabled {
        /* Fixes ie issue #7324 where disabled shim does not cover table body */ 
-       position:relative;
+       position: relative;
 }
 
 .v-table-footer-wrap,
        height: 20px;
 }
 
-.v-table-caption-container {
-       heigth: 16px;
+.v-table-caption-container,
+.v-table-header-drag {
+       height: 16px;
        padding-top: 4px;
        padding-right: 4px;
 }
-.v-table-caption-container .v-icon {
+.v-table-caption-container .v-icon,
+.v-table-header-drag .v-icon {
        height: 16px;
        margin: -4px 3px 0 0;
        vertical-align: middle;
 }
-.v-ie .v-table-caption-container .v-icon {
+.v-ie .v-table-caption-container .v-icon,
+.v-ie .v-table-header-drag .v-icon {
        margin-top: -3px;
 }
 .v-table-footer-container {
        background-image: url(img/col-sel-light-pressed.png); /** sprite-ref: verticals */
 }
 .v-table-focus-slot-left {
-       border-left-color: #222;
-       margin-left: 0;
+       border-left: 1px solid #222;
+       margin-bottom: -20px;
+       width: auto;
 }
 .v-table-focus-slot-right {
        border-right-color: #222;
        margin-right: 0;
 }
 .v-table-header-drag {
-       font-family: arial, helvetica, verdana, sans-serif;
-       background: transparent repeat-x;
-       background-image: url(img/header-bg-light.png); /** sprite-ref: verticals; sprite-alignment: repeat */
-       padding: 4px;
-       text-transform: uppercase;
-       font-size: 10px;
-       font-weight: bold;
-       color: #222;
-       text-shadow: #fff 0 1px 0;
-       line-height: normal;
-}
-.v-table-header-drag * {
-       vertical-align: middle;
+       padding-left: 6px;
 }
 .v-table-header-drag img {
        height: 16px;
 
 
 /* Strong style */
-.v-table-strong .v-table-header-wrap {
+.v-table-strong .v-table-header-wrap,
+.v-table-strong .v-table-header-drag {
        border-color: #2b3033;
        border-top-color: #2b3033;
        background-image: url(img/header-bg.png); /** sprite-ref: verticals; sprite-alignment: repeat */
 .v-table-strong .v-table-column-selector:active {
        background-image: url(img/col-sel-pressed.png); /** sprite-ref: verticals */
 }
-.v-table-strong .v-table-header-drag {
-       background-image: url(img/header-bg.png); /** sprite-ref: verticals; sprite-alignment: repeat */
-       color: #e7e9ea;
-       text-shadow: #000 0 -1px 0;
-}
 .v-table-strong .v-table-focus-slot-left,
 .v-table-strong .v-table-focus-slot-right {
        border-color: #9ca1a5;
 
 
 /* Table on black background (normal style) */
-.black .v-table-header-wrap {
+.black .v-table-header-wrap,
+.black .v-table-header-drag {
        border-color: #252729;
        background-image: url(img/header-bg-black.png); /** sprite-ref: black-verticals; sprite-alignment: repeat */
        color: #e7eaee;
 .black .v-table-column-selector:active {
        background-image: url(img/col-sel-black-pressed.png); /** sprite-ref: black-verticals */
 }
-.black .v-table-header-drag {
-       background-image: url(img/header-bg-black.png); /** sprite-ref: black-verticals; sprite-alignment: repeat */
-       color: #e7eaee;
-       text-shadow: #000 0 -1px 0;
-}
 .black .v-table-focus-slot-left,
 .black .v-table-focus-slot-right {
        border-color: #9ca1a5;
 .black .v-table-row-odd {
        background: transparent;
 }
-/* Selection background-color combined with default style selector, so we don't have to duplicate the sprite image in the final sprite collection */
+/* Selection background-color combined with the default (white) style selector, so we don't have to duplicate the sprite image in the final sprite collection */
 .black .v-table .v-selected .v-table-cell-content {
        border-bottom: 1px solid #4d749f;
 }
 
-
 /* Borderless style */
 .v-table-borderless .v-table-header-wrap,
 .v-table-borderless .v-table-body {
        border: none;
-}
-
-
+}
\ No newline at end of file
index 2b2bcbce05a0bd09143adc656ed69615f97b2fbf..8c82a6f3e84cfc3020543cf8090cf23b4bb4e9a3 100644 (file)
@@ -116,6 +116,9 @@ tr.v-table-row-odd:hover {
 }
 .v-table-focus-slot-left {
        border-color: #b6bbbc;
+       margin-bottom: -36px;
+       width: auto;
+       border-right: none;
 }
 .v-table-focus-slot-right {
        border-color: #b6bbbc;
index 2c4867e7730195b0e64db7661e83c79702dacc57..15d2acf6e94f68e1a8ebca4459b6f8a24c37e001 100644 (file)
@@ -42,11 +42,15 @@ public class CompileDefaultTheme {
                 break;
             }
         }
+        // Compile Reindeer last, since it requires the spriting operation
+        // (makes testing the other themes a bit faster, since you don't need to
+        // wait for the spriting operation to finish before the theme CSS is
+        // compiled)
         combineTheme(new String[] { BASE }, false, ver);
         combineTheme(new String[] { BASE, RUNO }, false, ver);
-        combineTheme(new String[] { BASE, REINDEER }, true, ver);
         combineTheme(new String[] { BASE, LIFERAY }, false, ver);
         combineTheme(new String[] { BASE, CHAMELEON }, false, ver);
+        combineTheme(new String[] { BASE, REINDEER }, true, ver);
     }
 
     /**