From a4d75a60a9f7784ffe13c88108f3e8c9cb551188 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 4 Jul 2016 12:54:12 +0200 Subject: Add large sidebar previews for text files --- apps/files/css/detailsView.css | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'apps/files/css') diff --git a/apps/files/css/detailsView.css b/apps/files/css/detailsView.css index 669a15c4e38..a49b37e6aab 100644 --- a/apps/files/css/detailsView.css +++ b/apps/files/css/detailsView.css @@ -32,17 +32,17 @@ float: left; } -#app-sidebar .thumbnailContainer.image { +#app-sidebar .thumbnailContainer.large { margin-left: -15px; margin-right: -35px; /* 15 + 20 for the close button */ margin-top: -15px; } -#app-sidebar .thumbnailContainer.image.portrait { +#app-sidebar .thumbnailContainer.large.portrait { margin: 0; /* if we don't fit the image anyway we give it back the margin */ } -#app-sidebar .image .thumbnail { +#app-sidebar .large .thumbnail { width:100%; display:block; background-repeat: no-repeat; @@ -53,20 +53,27 @@ height: auto; } -#app-sidebar .image .thumbnail .stretcher { +#app-sidebar .large .thumbnail .stretcher { content: ''; display: block; padding-bottom: 56.25%; /* sets height of .thumbnail to 9/16 of the width */ } -#app-sidebar .image.portrait .thumbnail { +#app-sidebar .large.portrait .thumbnail { background-position: 50% top; } -#app-sidebar .image.portrait .thumbnail { +#app-sidebar .large.portrait .thumbnail { background-size: contain; } +#app-sidebar .text { + overflow-y: scroll; + overflow-x: hidden; + padding-left: 5px; + font-size: 80%; +} + #app-sidebar .thumbnail { width: 75px; height: 75px; -- cgit v1.2.3