nextcloud/apps/files/css/files.css

373 lines
9.1 KiB
CSS
Raw Normal View History

/* Copyright (c) 2011, Jan-Christoph Borchardt, http://jancborchardt.net
2011-08-10 22:48:56 +04:00
This file is licensed under the Affero General Public License version 3 or later.
See the COPYING-README file. */
/* FILE MENU */
.actions { padding:5px; height:32px; width: 100%; }
.actions input, .actions button, .actions .button { margin:0; float:left; }
.actions .button a { color: #555; }
.actions .button a:hover, .actions .button a:active { color: #333; }
2013-10-04 18:08:34 +04:00
2013-10-07 20:15:23 +04:00
#new {
z-index: 1010;
float: left;
padding: 0 !important; /* override default control bar button padding */
}
#trash {
margin-right: 8px;
float: right;
2013-10-07 20:15:23 +04:00
z-index: 1010;
padding: 10px;
font-weight: normal;
}
2013-10-07 20:15:23 +04:00
#new>a {
padding: 14px 10px;
position: relative;
top: 7px;
}
#new.active {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
border-bottom: none;
}
#new>ul {
display: none;
position: fixed;
min-width: 112px;
z-index: 10;
padding: 8px;
padding-bottom: 0;
margin-top: 14px;
margin-left: -1px;
text-align:left;
2013-10-02 19:04:08 +04:00
background: #f8f8f8;
border: 1px solid #ddd;
border-radius: 5px;
border-top-left-radius: 0;
2012-12-13 22:04:27 +04:00
box-shadow:0 2px 7px rgba(170,170,170,.4);
}
#new>ul>li { height:36px; margin:5px; padding-left:48px; padding-bottom:2px;
background-repeat:no-repeat; cursor:pointer; }
2013-07-09 13:40:09 +04:00
#new>ul>li>p { cursor:pointer; padding-top: 7px; padding-bottom: 7px;}
#new .error, #fileList .error {
color: #e9322d;
border-color: #e9322d;
-webkit-box-shadow: 0 0 6px #f8b9b7;
-moz-box-shadow: 0 0 6px #f8b9b7;
box-shadow: 0 0 6px #f8b9b7;
}
/* FILE TABLE */
#filestable {
position: relative;
top: 44px;
width: 100%;
}
/* make sure there's enough room for the file actions */
#body-user #filestable {
min-width: 750px;
}
#body-user #controls {
min-width: 600px;
}
2014-01-29 13:55:44 +04:00
#filestable tbody tr { background-color:#fff; height:40px; }
2013-09-06 13:01:11 +04:00
#filestable tbody tr:hover, tbody tr:active {
background-color: rgb(240,240,240);
}
2013-09-06 13:01:11 +04:00
#filestable tbody tr.selected {
background-color: rgb(230,230,230);
}
#filestable tbody tr.searchresult {
background-color: rgb(240,240,240);
}
2011-07-07 02:19:38 +04:00
tbody a { color:#000; }
span.extension, span.uploading, td.date { color:#999; }
span.extension { text-transform:lowercase; -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)"; filter:alpha(opacity=70); opacity:.7; -webkit-transition:opacity 300ms; -moz-transition:opacity 300ms; -o-transition:opacity 300ms; transition:opacity 300ms; }
tr:hover span.extension { -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; filter:alpha(opacity=100); opacity:1; color:#777; }
2011-07-22 00:01:55 +04:00
table tr.mouseOver td { background-color:#eee; }
table th { height:24px; padding:0 8px; color:#999; }
table th .name {
position: absolute;
left: 55px;
top: 15px;
}
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: 8px center;
background-repeat: no-repeat;
}
table th#headerName {
position: relative;
width: 9999px; /* not really sure why this works better than 100% … table styling */
padding: 0;
}
#headerName-container {
position: relative;
height: 50px;
}
table th#headerSize, table td.filesize {
min-width: 48px;
padding: 0 16px;
text-align: right;
}
table th#headerDate, table td.date {
-moz-box-sizing: border-box;
box-sizing: border-box;
position: relative;
min-width: 176px;
}
/* Multiselect bar */
#filestable.multiselect {
top: 95px;
}
table.multiselect thead {
position: fixed;
top: 89px;
2013-10-04 18:32:06 +04:00
z-index: 10;
-moz-box-sizing: border-box;
box-sizing: border-box;
left: 0;
padding-left: 80px;
width: 100%;
}
2013-08-29 12:50:55 +04:00
table.multiselect thead th {
2013-10-04 18:32:06 +04:00
background-color: rgba(220,220,220,.8);
color: #000;
font-weight: bold;
border-bottom: 0;
}
table.multiselect #headerName {
position: relative;
width: 9999px; /* when we use 100%, the styling breaks on mobile … table styling */
}
table td.selection, table th.selection, table td.fileaction { width:32px; text-align:center; }
table td.filename a.name {
position:relative; /* Firefox needs to explicitly have this default set … */
-moz-box-sizing: border-box;
box-sizing: border-box;
display: block;
height: 50px;
vertical-align: middle;
padding: 0;
}
2012-04-16 15:14:41 +04:00
table tr[data-type="dir"] td.filename a.name span.nametext {font-weight:bold; }
2013-08-17 12:46:03 +04:00
table td.filename input.filename {
width: 80%;
font-size: 14px;
margin-top: 8px;
margin-left: 2px;
cursor: text;
}
table td.filename a, table td.login, table td.logout, table td.download, table td.upload, table td.create, table td.delete { padding:3px 8px 8px 3px; }
table td.filename .nametext, .uploadtext, .modified { float:left; padding:14px 0; }
#modified {
position: absolute;
top: 15px;
}
.modified {
position: relative;
}
2012-12-05 14:17:41 +04:00
/* TODO fix usability bug (accidental file/folder selection) */
table td.filename .nametext {
position: absolute;
top: 16px;
left: 55px;
padding: 0;
overflow: hidden;
text-overflow: ellipsis;
max-width: 800px;
}
table td.filename .uploadtext { font-weight:normal; margin-left:8px; }
table td.filename form { font-size:14px; margin-left:48px; margin-right:48px; }
2013-10-11 16:10:00 +04:00
.ie8 input[type="checkbox"]{
padding: 0;
}
/* File checkboxes */
#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;
2013-08-17 12:46:03 +04:00
margin: 32px 0 4px 32px; /* bigger clickable area doesnt work in FF width:2.8em; height:2.4em;*/
}
/* Show checkbox when hovering, checked, or selected */
#fileList tr:hover td.filename>input[type="checkbox"]:first-child,
#fileList tr td.filename>input[type="checkbox"]:checked:first-child,
#fileList tr.selected td.filename>input[type="checkbox"]:first-child {
opacity: 1;
}
.lte9 #fileList tr:hover td.filename>input[type="checkbox"]:first-child,
.lte9 #fileList tr td.filename>input[type="checkbox"][checked=checked]:first-child,
.lte9 #fileList tr.selected td.filename>input[type="checkbox"]:first-child {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
filter: alpha(opacity=100);
}
/* Use label to have bigger clickable size for checkbox */
#fileList tr td.filename>input[type="checkbox"] + label,
#select_all + label {
height: 50px;
position: absolute;
width: 50px;
2013-08-15 14:50:26 +04:00
z-index: 5;
}
#fileList tr td.filename>input[type="checkbox"]{
/* sometimes checkbox height is bigger (KDE/Qt), so setting to absolute
* to prevent it to increase the height */
position: absolute;
}
#fileList tr td.filename>input[type="checkbox"] + label {
left: 0;
}
#select_all + label {
top: 0;
}
#select_all {
position: absolute;
top: 18px;
left: 18px;
}
2012-12-20 13:53:50 +04:00
#fileList tr td.filename {
position:relative; width:100%;
2012-12-20 13:53:50 +04:00
-webkit-transition:background-image 500ms; -moz-transition:background-image 500ms; -o-transition:background-image 500ms; transition:background-image 500ms;
}
#fileList tr td.filename a.name label {
position: absolute;
width: 80%;
height: 50px;
}
2011-07-29 02:26:23 +04:00
#uploadsize-message,#delete-confirm { display:none; }
/* File actions */
.fileactions {
position: absolute;
top: 14px;
right: 0;
}
#fileList img.move2trash { display:inline; margin:-8px 0; padding:16px 8px 16px 8px !important; float:right; }
#fileList a.action.delete {
position: absolute;
right: 0;
padding: 28px 14px 19px !important;
}
2012-04-15 16:15:11 +04:00
a.action>img { max-height:16px; max-width:16px; vertical-align:text-bottom; }
/* Actions for selected files */
.selectedActions {
display: none;
position: absolute;
top: -1px;
right: 0;
padding: 15px 8px;
}
.selectedActions a {
display: inline;
padding: 17px 5px;
}
.selectedActions a img {
position:relative;
top:5px;
}
2013-02-21 19:52:18 +04:00
#fileList a.action {
display: inline;
margin: -8px 0;
padding: 18px 8px !important;
2013-02-21 19:52:18 +04:00
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
filter: alpha(opacity=0);
2013-03-03 16:01:25 +04:00
opacity: 0;
display:none;
2013-02-21 19:52:18 +04:00
}
2013-03-03 16:01:25 +04:00
#fileList tr:hover a.action, #fileList a.action.permanent {
2013-07-22 13:18:51 +04:00
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
filter: alpha(opacity=50);
2013-03-03 16:01:25 +04:00
opacity: .5;
display:inline;
2013-02-21 19:52:18 +04:00
}
#fileList tr:hover a.action:hover {
2013-07-22 13:18:51 +04:00
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
filter: alpha(opacity=100);
2013-03-03 16:01:25 +04:00
opacity: 1;
display:inline;
2013-02-21 19:52:18 +04:00
}
.summary {
2013-07-03 21:50:03 +04:00
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";
filter: alpha(opacity=30);
opacity: .3;
height: 70px;
}
2013-07-03 21:50:03 +04:00
.summary:hover, .summary, table tr.summary td {
background-color: transparent;
}
.summary td {
padding-top: 8px;
padding-bottom: 8px;
border-bottom: none;
}
.summary .info {
2013-08-14 23:26:06 +04:00
margin-left: 55px;
}
#scanning-message{ top:40%; left:40%; position:absolute; display:none; }
2013-01-19 00:49:38 +04:00
table.dragshadow {
width:auto;
}
table.dragshadow td.filename {
padding-left:60px;
2013-01-19 00:49:38 +04:00
padding-right:16px;
height: 36px;
2013-01-19 00:49:38 +04:00
}
table.dragshadow td.size {
padding-right:8px;
2013-01-30 22:24:24 +04:00
}
2013-01-03 03:26:13 +04:00
#upgrade {
width: 400px;
position: absolute;
top: 200px;
left: 50%;
text-align: center;
margin-left: -200px;
}
.mask {
z-index: 50;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: white;
background-repeat: no-repeat no-repeat;
background-position: 50%;
opacity: 0.7;
filter: alpha(opacity=70);
transition: opacity 100ms;
-moz-transition: opacity 100ms;
-o-transition: opacity 100ms;
-ms-transition: opacity 100ms;
-webkit-transition: opacity 100ms;
}
.mask.transparent{
opacity: 0;
}