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

Unified Diff: ui/file_manager/file_manager/foreground/css/common.css

Issue 941283002: Files.app: Adjust vertical position of texts slightly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed unintentionally added blank line. Created 5 years, 10 months 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/css/file_manager.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/file_manager/foreground/css/common.css
diff --git a/ui/file_manager/file_manager/foreground/css/common.css b/ui/file_manager/file_manager/foreground/css/common.css
index 5068ec4e9b08b8abfd76cb95a82dd5bd84940e4c..80134e414bf67ee77697942ac4d75e62a8b8694b 100644
--- a/ui/file_manager/file_manager/foreground/css/common.css
+++ b/ui/file_manager/file_manager/foreground/css/common.css
@@ -472,3 +472,29 @@ html[dir='rtl'] .entry-name {
.cr-dialog-close:active {
background-image: url(chrome://theme/IDR_CLOSE_DIALOG_P);
}
+
+/* Minor tweak of vertical position for texts which need to be vertically
+ * aligned with corresponding file-type icons. */
+.tree-row > .label,
+.table-row-cell .filename-label,
+.table-row-cell .size,
+.table-row-cell .type,
+.table-row-cell .date,
+.thumbnail-bottom .filename-label,
+.autocomplete-suggestions > li > .detail-text {
+ padding-top: 1px;
+}
+
+@media (-webkit-min-device-pixel-ratio: 1.5) {
+ .tree-row > .label,
+ .table-row-cell .filename-label,
+ .table-row-cell .size,
+ .table-row-cell .type,
+ .table-row-cell .date,
+ .thumbnail-bottom .filename-label,
+ .autocomplete-suggestions > li > .detail-text {
+ /* In HiDPI display, 13pt Roboto font is drawn upper than normal display,
+ * so add extra padding on top of it. */
+ padding-top: 3px;
+ }
+}
« no previous file with comments | « no previous file | ui/file_manager/file_manager/foreground/css/file_manager.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698