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

Side by Side Diff: chrome/browser/resources/print_preview/print_preview.css

Issue 8371017: Print Preview: Changing the structure of the html/css. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updating unittests Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2011 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 5
6 html { 6 html {
7 height: 100%; 7 height: 100%;
8 } 8 }
9 9
10 body { 10 body {
11 background: white;
12 display: -webkit-box; 11 display: -webkit-box;
13 height: 100%; 12 height: 100%;
14 margin: 0; 13 margin: 0;
15 overflow: hidden; 14 overflow: hidden;
16 } 15 }
17 16
18 #main { 17 #main {
19 display: block; 18 display: block;
20 margin-bottom: -49px;
21 min-height: 100%;
22 }
23
24 #main::before {
25 content: '';
26 display: block;
27 height: 72px;
28 padding-top: 14px;
29 }
30
31 body #main {
32 margin-bottom: 0; 19 margin-bottom: 0;
33 min-height: 0; 20 min-height: 0;
34 } 21 padding-top: 10px;
35
36 body #main::after {
37 content: '';
38 display: block;
39 } 22 }
40 23
41 /* Layout: Sidebar */ 24 /* Layout: Sidebar */
42 25
43 #sidebar { 26 #sidebar {
44 -webkit-user-select: none; 27 -webkit-user-select: none;
45 border-right: 1px solid #a0a0a0; 28 border-right: 1px solid #a0a0a0;
46 background: white;
47 height: 100%; 29 height: 100%;
48 overflow-x: hidden; 30 overflow-x: hidden;
49 overflow-y: auto; 31 overflow-y: auto;
50 position: relative;
51 width: 310px; 32 width: 310px;
52 z-index: 2000;
53 } 33 }
54 34
55 html[dir='rtl'] #sidebar { 35 html[dir='rtl'] #sidebar {
56 border-left: 1px solid #a0a0a0; 36 border-left: 1px solid #a0a0a0;
57 border-right-width: 0; 37 border-right-width: 0;
58 } 38 }
59 39
60 #sidebar header {
61 width: 310px;
62 }
63
64 #sidebar header > h1 {
65 -webkit-padding-start: 16px;
66 }
67
68 #system-dialog-div {
69 -webkit-padding-start: 16px;
70 font-size: 13px;
71 line-height: 22px;
72 }
73
74 /* Header */ 40 /* Header */
75 41
76 header { 42 header {
77 -webkit-box-shadow: 0 2px 2px rgba(0, 0, 0, .1); 43 -webkit-box-shadow: 0 2px 2px rgba(0, 0, 0, .1);
78 background-clip: border-box;
79 background-image: none, 44 background-image: none,
80 -webkit-linear-gradient(#dcdcdc, #f0f0f0); 45 -webkit-linear-gradient(#dcdcdc, #f0f0f0);
81 background-origin: border-box;
82 background-position: 80px 26px, 0 0;
83 background-repeat: no-repeat;
84 background-size: 26px, 100%;
85 border-bottom: 1px solid rgba(255, 255, 255, .5); 46 border-bottom: 1px solid rgba(255, 255, 255, .5);
86 display: block;
87 margin: 0 0 -73px 0;
88 min-height: 72px;
89 overflow: hidden;
90 position: fixed;
91 top: 0;
92 width: 100%;
93 z-index: 1;
94 }
95
96 body header {
97 position: relative;
98 } 47 }
99 48
100 header > h1 { 49 header > h1 {
101 -webkit-font-smoothing: antialiased; 50 -webkit-font-smoothing: antialiased;
102 -webkit-margin-start: -1px; 51 -webkit-padding-start: 16px;
103 -webkit-padding-start: 118px;
104 color: #000; 52 color: #000;
105 font-size: 26px; 53 font-size: 26px;
106 font-weight: 600; 54 font-weight: 600;
107 letter-spacing: -1px; 55 letter-spacing: -1px;
108 margin: 0; 56 margin: 0;
109 padding-top: 22px; 57 padding-top: 14px;
110 text-shadow: 0 1px 1px rgba(255, 255, 255, .75); 58 text-shadow: 0 1px 1px rgba(255, 255, 255, .75);
111 } 59 }
112 60
113 body header > h1 { 61 .two-column {
114 line-height: 32px; 62 display: table-row;
115 padding-top: 14px; 63 font-size: 13px;
64 line-height: 22px;
116 } 65 }
117 66
118 .two-column { 67 .right-column {
119 -webkit-padding-end: 16px; 68 -webkit-padding-end: 16px;
120 -webkit-padding-start: 118px; 69 display: table-cell;
121 font-size: 13px; 70 width: auto;
122 line-height: 22px; 71 }
123 margin-top: 10px; 72
124 margin-bottom: 10px; 73 .two-column h1 {
125 max-width: 616px; 74 -webkit-padding-start: 16px;
126 position: relative; 75 display: table-cell;
76 width: 86px;
77 }
78
79 .two-column.visible h1,
80 .two-column.visible .right-column {
81 border-bottom: 1px solid #dcdcdc;
82 padding-bottom: 10px;
83 padding-top: 10px;
84 }
85
86 .two-column:not(.visible) select {
87 border-top-width: 0;
88 margin-top: 0;
89 padding-top: 0;
127 } 90 }
128 91
129 #print-header { 92 #print-header {
130 -webkit-padding-start: 16px; 93 -webkit-padding-start: 16px;
131 font-size: 13px; 94 font-size: 13px;
132 line-height: 22px; 95 line-height: 22px;
133 margin-bottom: 10px; 96 margin-bottom: 10px;
134 margin-top: 10px; 97 margin-top: 10px;
135 max-width: 616px;
136 position: relative;
137 }
138
139 #destination-option {
140 -webkit-line-box-contain: block;
141 max-height: 22px;
142 } 98 }
143 99
144 p { 100 p {
145 -webkit-line-box-contain: block; 101 -webkit-line-box-contain: block;
146 margin: 0; 102 margin: 0;
147 margin-bottom: 10px; 103 margin-bottom: 10px;
148 } 104 }
149 105
150 h1 { 106 h1 {
151 color: #808080; 107 color: #808080;
152 font-size: 100%; 108 font-size: 100%;
153 font-weight: 300; 109 font-weight: 300;
154 margin: 0;
155 }
156
157 .two-column h1 {
158 -webkit-margin-start: -118px;
159 -webkit-padding-end: 16px;
160 -webkit-padding-start: 16px;
161 display: inline-block;
162 float: left;
163 width: 86px;
164 }
165
166 html[dir='rtl'] .two-column h1 {
167 float:right;
168 }
169
170 hr {
171 border: 0;
172 border-top: 1px solid #dcdcdc;
173 height: 3px;
174 margin: 14px 0 10px 0;
175 }
176
177 hr.bigger {
178 margin-bottom: 20px;
179 margin-top: 24px;
180 }
181
182 hr.invisible {
183 visibility: hidden;
184 } 110 }
185 111
186 /* TODO(jhawkins): Remove this specialization once all WebUI shares the same 112 /* TODO(jhawkins): Remove this specialization once all WebUI shares the same
187 * link-button styling. 113 * link-button styling.
188 */ 114 */
189 #system-dialog-link { 115 #system-dialog-link {
190 -webkit-padding-start: 0; 116 -webkit-padding-start: 16px;
191 -webkit-transition: text-shadow 150ms; 117 -webkit-transition: text-shadow 150ms;
192 color: #4080fa; 118 color: #4080fa;
193 outline: 0; 119 outline: 0;
120 padding-top: 10px;
194 text-decoration: none; 121 text-decoration: none;
195 text-shadow: 0 0 1px white; 122 text-shadow: 0 0 1px white;
196 } 123 }
197 124
198 #system-dialog-link:hover { 125 #system-dialog-link:hover {
199 text-shadow: 0 0 1px rgba(85, 143, 250, .75); 126 text-shadow: 0 0 1px rgba(85, 143, 250, .75);
200 } 127 }
201 128
202 #system-dialog-link:active { 129 #system-dialog-link:active {
203 color: #4080fa; 130 color: #4080fa;
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 424
498 span.hint.closing { 425 span.hint.closing {
499 -webkit-transition: margin 150ms, height 150ms, opacity 150ms; 426 -webkit-transition: margin 150ms, height 150ms, opacity 150ms;
500 background: transparent; 427 background: transparent;
501 height: 0 !important; 428 height: 0 !important;
502 margin-bottom: 0; 429 margin-bottom: 0;
503 margin-top: 0; 430 margin-top: 0;
504 opacity: 0; 431 opacity: 0;
505 } 432 }
506 433
507 .option { 434 .collapsible {
508 -webkit-transition: color 200ms; 435 -webkit-transition: color 200ms;
509 background: white;
510 display: block;
511 height: 0; 436 height: 0;
512 margin-bottom: 0;
513 margin: 0;
514 overflow: hidden; 437 overflow: hidden;
515 } 438 }
516 439
517 .option.visible { 440 .collapsible.visible {
518 -webkit-animation-duration: 200ms; 441 -webkit-animation-duration: 200ms;
519 -webkit-animation-fill-mode: forwards; 442 -webkit-animation-fill-mode: forwards;
520 height: auto; 443 height: auto;
521 margin-bottom: -10px;
522 margin-top: 5px;
523 padding-bottom: 5px;
524 } 444 }
525 445
526 .option:not(.visible) + hr { 446 .collapsible.closing {
527 display: none;
528 }
529
530 .option.closing {
531 -webkit-transition: margin 150ms, height 150ms, opacity 150ms; 447 -webkit-transition: margin 150ms, height 150ms, opacity 150ms;
532 background: transparent;
533 height: 0 !important; 448 height: 0 !important;
534 margin-bottom: 0;
535 margin-top: 0;
536 opacity: 0; 449 opacity: 0;
537 } 450 }
538 451
539 452
540 select { 453 select {
541 -webkit-box-shadow: inset 0 1px 2px white, 454 -webkit-box-shadow: inset 0 1px 2px white,
542 0 1px 2px rgba(0, 0, 0, .2); 455 0 1px 2px rgba(0, 0, 0, .2);
543 -webkit-appearance: none; 456 -webkit-appearance: none;
544 -webkit-padding-end: 20px; 457 -webkit-padding-end: 20px;
545 -webkit-padding-start: 14px; 458 -webkit-padding-start: 14px;
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
779 margin-top: 10px; 692 margin-top: 10px;
780 } 693 }
781 694
782 input[disabled] + label { 695 input[disabled] + label {
783 color: gray; 696 color: gray;
784 } 697 }
785 698
786 #error-action-area { 699 #error-action-area {
787 margin-top: 10px; 700 margin-top: 10px;
788 } 701 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/print_preview/page_settings.js ('k') | chrome/browser/resources/print_preview/print_preview.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698