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

Side by Side Diff: chrome/browser/resources/shared/css/overlay.css

Issue 9701066: Add bottom margin to overlay page h1 instead of top padding on content-area. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use margin instead of padding to allow margin collapsing with content. Created 8 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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 /* The shield that overlays the background. */ 5 /* The shield that overlays the background. */
6 .overlay { 6 .overlay {
7 -webkit-box-align: center; 7 -webkit-box-align: center;
8 -webkit-box-orient: vertical; 8 -webkit-box-orient: vertical;
9 -webkit-box-pack: center; 9 -webkit-box-pack: center;
10 -webkit-transition: 200ms opacity; 10 -webkit-transition: 200ms opacity;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 background-image: url('chrome://resources/images/x-hover.png'); 75 background-image: url('chrome://resources/images/x-hover.png');
76 } 76 }
77 77
78 .overlay .page h1 { 78 .overlay .page h1 {
79 -webkit-padding-end: 24px; 79 -webkit-padding-end: 24px;
80 -webkit-user-select: none; 80 -webkit-user-select: none;
81 color: #333; 81 color: #333;
82 /* 120% of the body's font-size of 84% is 16px. This will keep the relative 82 /* 120% of the body's font-size of 84% is 16px. This will keep the relative
83 * size between the body and these titles consistent. */ 83 * size between the body and these titles consistent. */
84 font-size: 120%; 84 font-size: 120%;
85 margin: 0; 85 margin: 14px 17px 14px;
86 padding: 14px 17px 0;
87 text-shadow: white 0 1px 2px; 86 text-shadow: white 0 1px 2px;
88 } 87 }
89 88
90 .overlay .page .content-area { 89 .overlay .page .content-area {
91 -webkit-box-flex: 1; 90 -webkit-box-flex: 1;
92 overflow: auto; 91 overflow: auto;
93 padding: 14px 17px 6px; 92 padding: 6px 17px 6px;
94 } 93 }
95 94
96 .overlay .page .action-area { 95 .overlay .page .action-area {
97 -webkit-box-align: center; 96 -webkit-box-align: center;
98 -webkit-box-orient: horizontal; 97 -webkit-box-orient: horizontal;
99 -webkit-box-pack: end; 98 -webkit-box-pack: end;
100 display: -webkit-box; 99 display: -webkit-box;
101 padding: 14px; 100 padding: 14px;
102 } 101 }
103 102
104 html[dir='rtl'] .overlay .page .action-area { 103 html[dir='rtl'] .overlay .page .action-area {
105 left: 0; 104 left: 0;
106 } 105 }
107 106
108 .overlay .page .action-area-right { 107 .overlay .page .action-area-right {
109 display: -webkit-box; 108 display: -webkit-box;
110 } 109 }
111 110
112 .overlay .page .button-strip { 111 .overlay .page .button-strip {
113 -webkit-box-orient: horizontal; 112 -webkit-box-orient: horizontal;
114 display: -webkit-box; 113 display: -webkit-box;
115 } 114 }
116 115
117 .overlay .page .button-strip > button { 116 .overlay .page .button-strip > button {
118 -webkit-margin-start: 10px; 117 -webkit-margin-start: 10px;
119 display: block; 118 display: block;
120 } 119 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698