]> source.dussan.org Git - nextcloud-server.git/commitdiff
bring back fixed multiselect bar so it’s visible when scrolled down, fix #746
authorJan-Christoph Borchardt <hey@jancborchardt.net>
Thu, 13 Dec 2012 18:44:55 +0000 (19:44 +0100)
committerJan-Christoph Borchardt <hey@jancborchardt.net>
Thu, 13 Dec 2012 18:44:55 +0000 (19:44 +0100)
apps/files/css/files.css
apps/files/js/files.js

index 59aa4dbf0fb24430e43190fba294e239933248c4..ccf33c8493bb90a13279ac3ab8e937ea38244065 100644 (file)
@@ -64,11 +64,16 @@ tr:hover span.extension { -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Op
 table tr.mouseOver td { background-color:#eee; }
 table th { height:2em; padding:0 .5em; color:#999; }
 table th .name { float:left; margin-left:.5em; }
-table th.multiselect { background:#ddd; color:#000; font-weight:bold; }
 table th, table td { border-bottom:1px solid #ddd; text-align:left; font-weight:normal; }
 table td { border-bottom:1px solid #eee; font-style:normal; background-position:1em .5em; background-repeat:no-repeat; }
 table th#headerSize, table td.filesize { width:3em; padding:0 1em; text-align:right; }
 table th#headerDate, table td.date { width:11em; padding:0 .1em 0 1em; text-align:left; }
+
+/* Multiselect bar */
+table.multiselect { top:63px; }
+table.multiselect thead { position:fixed; top:82px; z-index:1; }
+table.multiselect thead th { background:rgba(230,230,230,.8); color:#000; font-weight:bold; border-bottom:0; }
+
 table td.selection, table th.selection, table td.fileaction { width:2em; text-align:center; }
 table td.filename a.name { display:block; height:1.5em; vertical-align:middle; margin-left:3em; }
 table tr[data-type="dir"] td.filename a.name span.nametext {font-weight:bold; }
@@ -79,8 +84,6 @@ table td.filename .nametext, .uploadtext, .modified { float:left; padding:.3em 0
 table td.filename .nametext { overflow:hidden; text-overflow:ellipsis; }
 table td.filename .uploadtext { font-weight:normal; margin-left:.5em; }
 table td.filename form { font-size:.85em; margin-left:3em; margin-right:3em; }
-table thead.fixed tr{ position:fixed; top:6.5em; z-index:49; -moz-box-shadow:0 -3px 7px #ddd; -webkit-box-shadow:0 -3px 7px #ddd; box-shadow:0 -3px 7px #ddd; }
-table thead.fixed { height:2em; }
 #fileList tr td.filename>input[type="checkbox"]:first-child { -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; filter:alpha(opacity=0); opacity:0; float:left; margin:.7em 0 0 1em; /* bigger clickable area doesn’t work in FF width:2.8em; height:2.4em;*/ -webkit-transition:opacity 200ms; -moz-transition:opacity 200ms; -o-transition:opacity 200ms; transition:opacity 200ms; }
 #fileList tr td.filename>input[type="checkbox"]:hover:first-child { -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)"; filter:alpha(opacity=80); opacity:.8; }
 #fileList tr td.filename>input[type="checkbox"]:checked:first-child { -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; filter:alpha(opacity=100); opacity:1; }
index ece0b29ae16c70133c71e6fed737fc87a9d7e7ec..feffa10c9f6565e53c95d7caac7c83aca6110be1 100644 (file)
@@ -774,9 +774,8 @@ function procesSelection(){
                $('#headerName>span.name').text(t('files','Name'));
                $('#headerSize').text(t('files','Size'));
                $('#modified').text(t('files','Modified'));
-               $('th').removeClass('multiselect');
+               $('table').removeClass('multiselect');
                $('.selectedActions').hide();
-               $('thead').removeClass('fixed');
                $('#headerName').css('width','auto');
                $('#headerSize').css('width','auto');
                $('#headerDate').css('width','auto');
@@ -817,7 +816,7 @@ function procesSelection(){
                }
                $('#headerName>span.name').text(selection);
                $('#modified').text('');
-               $('th').addClass('multiselect');
+               $('table').addClass('multiselect');
        }
 }