Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(751)

Unified Diff: ui/file_manager/file_manager/foreground/elements/files_quick_view.css

Issue 2540863004: Quick View: Support pdf and text preview. (Closed)
Patch Set: Fix nits. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/file_manager/file_manager/foreground/elements/files_quick_view.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/file_manager/foreground/elements/files_quick_view.css
diff --git a/ui/file_manager/file_manager/foreground/elements/files_quick_view.css b/ui/file_manager/file_manager/foreground/elements/files_quick_view.css
index 0b31eeae2f3493bf7335bcea3300a14dedba7148..984a58d5e6db58c0672e61470293d694aa357ef7 100644
--- a/ui/file_manager/file_manager/foreground/elements/files_quick_view.css
+++ b/ui/file_manager/file_manager/foreground/elements/files_quick_view.css
@@ -50,7 +50,9 @@ paper-button:focus:not(:active) {
#contentPanel {
background-color: transparent;
+ display: flex;
height: 100%;
+ justify-content: center;
position: relative;
}
@@ -76,25 +78,26 @@ paper-button:focus:not(:active) {
color: white;
display: flex;
flex-direction: column;
- height: 70%;
justify-content: center;
- margin: auto;
outline: none;
+ padding: 24px 15%;
position: relative;
text-align: center;
- top: 15%;
- width: 70%;
+ width: 100%;
+}
+
+#innerContentPanel[type="audio"],
+#innerContentPanel[type="image"],
+#innerContentPanel[type="video"] {
+ align-self: center;
+ height: 70%;
+ padding-bottom: initial;
+ padding-top: initial;
}
.content {
- bottom: 0;
- left: 0;
- margin: auto;
- max-height: 100%;
- max-width: 100%;
- position: absolute;
- right: 0;
- top: 0;
+ height: 100%;
+ width: 100%;
}
#toolbar {
« no previous file with comments | « no previous file | ui/file_manager/file_manager/foreground/elements/files_quick_view.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698