diff options
author | Robin Appelman <icewind@owncloud.com> | 2016-07-04 12:54:12 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2016-07-04 12:54:12 +0200 |
commit | a4d75a60a9f7784ffe13c88108f3e8c9cb551188 (patch) | |
tree | 4148418f8710e5173e44820f965468ea7e931836 /apps/files/css/detailsView.css | |
parent | 860b7c36ecc97f4e33abfb68790a66dd8f24532d (diff) | |
download | nextcloud-server-a4d75a60a9f7784ffe13c88108f3e8c9cb551188.tar.gz nextcloud-server-a4d75a60a9f7784ffe13c88108f3e8c9cb551188.zip |
Add large sidebar previews for text files
Diffstat (limited to 'apps/files/css/detailsView.css')
-rw-r--r-- | apps/files/css/detailsView.css | 19 |
1 files changed, 13 insertions, 6 deletions
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; |