move back to tiles (200x200 as in pictures)

pull/1/head
Jörn Friedrich Dreyer 11 years ago committed by Tobias Hintze
parent 93877f2a30
commit 3e59604485

@ -1,35 +1,77 @@
#emptyfolder { position:absolute; margin:10em 0 0 10em; font-size:1.5em; font-weight:bold; color:#888; text-shadow:#fff 0 1px 0; } #emptyfolder {
position:absolute; margin:10em 0 0 10em;
font-size:1.5em; font-weight:bold; color:#888; text-shadow:#fff 0 1px 0;
}
#office-content{
padding-top: 3em;
}
.documentslist { padding:5px; } .documentslist { padding:5px; }
.documentslist li{
margin:4px; .documentslist .add-document {
display: inline-block;
height: 200px;
width: 200px;
margin: 1em;
vertical-align: top;
} }
.documentslist .session-active { .add-document a {
float: left; display: inline-block;
margin-left: 16px; position: relative;
margin-top: 16px; height: 200px;
width: 20px; width: 98px;
background-repeat: no-repeat;
background-size: 64px;
background-position: 18px;
}
.add-document .add {
background-image: url('%webroot%/core/img/actions/add.png');
} }
.documentslist .document-info { .add-document .upload {
display: inline; background-image: url('%webroot%/core/img/actions/upload.png');
height:32px;
} }
.documentslist .document-info a { .add-document label {
position: absolute;
bottom: 5px;
width: 100%;
color: white;
text-shadow: 0 0 10px #000;
text-align: center;
}
.documentslist .document {
display: inline-block;
height: 200px;
width: 200px;
margin: 1em;
vertical-align: top;
}
.documentslist .session-active {
position: relative;
margin-left: 128px;
margin-top: 128px;
width: 32px;
}
.document a {
display: block; display: block;
position: relative;
height: 200px;
width: 200px;
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: 32px; background-size: 64px;
height: 32px; background-position: 68px;
padding-left: 36px;
vertical-align: middle;
line-height: 32px;
} }
.document label {
#office-content{ position: absolute;
padding-top: 3em; bottom: 5px;
width: 100%;
color: white;
text-shadow: 0 0 10px #000;
text-align: center;
} }
#odf_close{ #odf_close{
float:left; float:left;
} }
#odf_invite{ #odf_invite{

@ -234,8 +234,8 @@ officeDocuments.renderDocuments = function () {
docElem.attr('data-id', document.fileid); docElem.attr('data-id', document.fileid);
var a = docElem.find('a'); var a = docElem.find('a');
a.text(document.name);
a.attr('href', OC.Router.generate('download',{file:document.path})); a.attr('href', OC.Router.generate('download',{file:document.path}));
a.find('label').text(document.name);
getMimeIcon(document.mimetype).then(function(path){ getMimeIcon(document.mimetype).then(function(path){
a.css('background-image', 'url("'+path+'")'); a.css('background-image', 'url("'+path+'")');
@ -247,7 +247,7 @@ officeDocuments.renderDocuments = function () {
var docElem = $('.documentslist .document[data-id="'+session.file_id+'"]'); var docElem = $('.documentslist .document[data-id="'+session.file_id+'"]');
if (docElem.length > 0) { if (docElem.length > 0) {
docElem.attr('data-esid', session.es_id); docElem.attr('data-esid', session.es_id);
docElem.find('a').before('<img class="svg session-active" src="'+OC.imagePath('core','places/contacts-dark')+'">'); docElem.find('label').after('<img class="svg session-active" src="'+OC.imagePath('core','places/contacts-dark')+'">');
docElem.addClass('session'); docElem.addClass('session');
} else { } else {
console.log('Could not find file '+session.file_id+' for session '+session.es_id); console.log('Could not find file '+session.file_id+' for session '+session.es_id);

@ -9,12 +9,15 @@
<div id="editor-content"> <div id="editor-content">
<ul class="documentslist"> <ul class="documentslist">
<li class="add-document"> <li class="add-document">
<img class="svg" src="<?php p(\OCP\Util::imagePath('core','actions/add.svg')) ?>" /> <a class="add svg" target="_blank" href="">
<label><?php p('Add') ?></label>
</a>
<a class="upload svg" target="_blank" href="">
<label><?php p('Upload') ?></label>
</a>
</li> </li>
<li class="document template" data-id="" style="display:none;"> <li class="document template" data-id="" style="display:none;">
<div class="document-info"> <a target="_blank" href=""><label></label></a>
<a target="_blank" href=""></a>
</div>
</li> </li>
</ul> </ul>
</div> </div>

Loading…
Cancel
Save