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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/print_preview/print_preview.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. */ 3 * found in the LICENSE file. */
4 4
5 html { 5 html {
6 height: 100%; 6 height: 100%;
7 overflow: hidden; 7 overflow: hidden;
8 } 8 }
9 9
10 body { 10 body {
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 .right-column .radio label { 71 .right-column .radio label {
72 padding-bottom: 5px; 72 padding-bottom: 5px;
73 padding-top: 10px; 73 padding-top: 10px;
74 } 74 }
75 75
76 .right-column .radio input[type='radio'] { 76 .right-column .radio input[type='radio'] {
77 height: 13px; 77 height: 13px;
78 width: 13px; 78 width: 13px;
79 } 79 }
80 80
81 .two-column h1 { 81 .left-column {
82 -webkit-padding-end: 20px; 82 -webkit-padding-end: 20px;
83 -webkit-padding-start: 20px; 83 -webkit-padding-start: 20px;
84 color: #646464;
85 display: table-cell; 84 display: table-cell;
86 font-size: 12px;
87 min-width: 70px; 85 min-width: 70px;
86 vertical-align: middle;
88 } 87 }
89 88
90 .two-column.visible h1, 89 .left-column h1 {
90 -webkit-margin-after: 0;
91 -webkit-margin-before: 0;
92 color: #646464;
93 font-size: 12px;
94 }
95
96 .two-column.visible .left-column,
91 .two-column.visible .right-column { 97 .two-column.visible .right-column {
92 padding-bottom: 5px; 98 padding-bottom: 5px;
93 padding-top: 5px; 99 padding-top: 5px;
94 } 100 }
95 101
102 .two-column:not(.visible) .left-column,
103 .two-column:not(.visible) .right-column {
104 -webkit-transition: padding-bottom 150ms, padding-top 150ms;
105 padding-bottom: 0;
106 padding-top: 0;
107 }
108
96 .two-column:not(.visible) select { 109 .two-column:not(.visible) select {
97 border-top-width: 0; 110 border-top-width: 0;
98 margin-top: 0; 111 margin-top: 0;
99 padding-top: 0; 112 padding-top: 0;
100 } 113 }
101 114
102 p { 115 p {
103 -webkit-line-box-contain: block; 116 -webkit-line-box-contain: block;
104 margin: 0; 117 margin: 0;
105 margin-bottom: 10px; 118 margin-bottom: 10px;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 span.hint.closing { 180 span.hint.closing {
168 -webkit-transition: margin 150ms, height 150ms, opacity 150ms; 181 -webkit-transition: margin 150ms, height 150ms, opacity 150ms;
169 background: transparent; 182 background: transparent;
170 height: 0 !important; 183 height: 0 !important;
171 margin: 0; 184 margin: 0;
172 opacity: 0; 185 opacity: 0;
173 } 186 }
174 187
175 .collapsible { 188 .collapsible {
176 height: 0; 189 height: 0;
190 position: relative;
177 } 191 }
178 192
179 .collapsible.visible { 193 .collapsible.visible {
180 -webkit-animation-duration: 200ms; 194 -webkit-animation-duration: 200ms;
181 -webkit-animation-fill-mode: forwards; 195 -webkit-animation-fill-mode: forwards;
182 height: auto; 196 height: auto;
183 } 197 }
184 198
185 .collapsible.closing { 199 .collapsible.closing {
186 -webkit-transition: margin 150ms, height 150ms, opacity 150ms; 200 -webkit-transition: margin 150ms, height 150ms, opacity 150ms;
187 height: 0 !important; 201 height: 0 !important;
188 opacity: 0; 202 opacity: 0;
189 overflow: hidden; 203 overflow: hidden;
190 } 204 }
191 205
206 .collapsible.closing > * {
207 position: absolute;
208 }
209
192 select { 210 select {
193 width: 100%; 211 width: 100%;
194 } 212 }
195 213
196 label { 214 label {
197 -webkit-user-select: none; 215 -webkit-user-select: none;
198 } 216 }
199 217
200 .hidden-section { 218 .hidden-section {
201 background: white; 219 background: white;
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 :enabled:focus:-webkit-any(input[type='checkbox'], 317 :enabled:focus:-webkit-any(input[type='checkbox'],
300 input[type='radio'], 318 input[type='radio'],
301 button):not(.link-button) { 319 button):not(.link-button) {
302 /* Cancel border-color for :focus specified in widgets.css. */ 320 /* Cancel border-color for :focus specified in widgets.css. */
303 border-color: rgba(0,0,0,0.25); 321 border-color: rgba(0,0,0,0.25);
304 } 322 }
305 323
306 html:not(.focus-outline-visible) button:focus.link-button { 324 html:not(.focus-outline-visible) button:focus.link-button {
307 outline: none; 325 outline: none;
308 } 326 }
OLDNEW
« 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