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

Unified Diff: chrome/browser/resources/print_preview/print_preview.css

Issue 565213005: Make Print Preview elements transitions smoother. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | chrome/browser/resources/print_preview/print_preview.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/print_preview/print_preview.css
diff --git a/chrome/browser/resources/print_preview/print_preview.css b/chrome/browser/resources/print_preview/print_preview.css
index eb7d94ca2ee15a1af593da37a1ff6c007a612781..1bbb36d239bd3b87c8710a140a2f01d76c39f7a1 100644
--- a/chrome/browser/resources/print_preview/print_preview.css
+++ b/chrome/browser/resources/print_preview/print_preview.css
@@ -78,21 +78,34 @@ header {
width: 13px;
}
-.two-column h1 {
+.left-column {
-webkit-padding-end: 20px;
-webkit-padding-start: 20px;
- color: #646464;
display: table-cell;
- font-size: 12px;
min-width: 70px;
+ vertical-align: middle;
}
-.two-column.visible h1,
+.left-column h1 {
+ -webkit-margin-after: 0;
+ -webkit-margin-before: 0;
+ color: #646464;
+ font-size: 12px;
+}
+
+.two-column.visible .left-column,
.two-column.visible .right-column {
padding-bottom: 5px;
padding-top: 5px;
}
+.two-column:not(.visible) .left-column,
+.two-column:not(.visible) .right-column {
+ -webkit-transition: padding-bottom 150ms, padding-top 150ms;
+ padding-bottom: 0;
+ padding-top: 0;
+}
+
.two-column:not(.visible) select {
border-top-width: 0;
margin-top: 0;
@@ -174,6 +187,7 @@ span.hint.closing {
.collapsible {
height: 0;
+ position: relative;
}
.collapsible.visible {
@@ -189,6 +203,10 @@ span.hint.closing {
overflow: hidden;
}
+.collapsible.closing > * {
+ position: absolute;
+}
+
select {
width: 100%;
}
« no previous file with comments | « no previous file | chrome/browser/resources/print_preview/print_preview.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698