Updated drag and drop thumbnails.
[chromium-blink-merge.git] / chrome / browser / resources / uber / uber_shared.css
blob34da968b74f39fa547218b300da14ccf327cd9b1
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
3 * found in the LICENSE file. */
5 body.uber-frame {
6 -webkit-margin-start: 155px;
7 color: rgb(48, 57, 66);
10 html[dir='rtl'] body.uber-frame {
11 /* Enable vertical scrollbar at all times in RTL to avoid visual glitches when
12 * showing sub-pages that vertically overflow. */
13 overflow-y: scroll;
16 /* TODO(dbeam): Remove .page class from overlays in settings so the junk below
17 * isn't necessary. */
18 body.uber-frame #extension-settings.page,
19 body.uber-frame #mainview-content .page,
20 body.uber-frame .subpage-sheet-container .page,
21 body.uber-frame > .page {
22 -webkit-margin-end: 24px;
23 min-width: 576px;
24 padding-bottom: 20px;
25 padding-top: 55px;
28 body.uber-frame header {
29 background-image: -webkit-linear-gradient(white,
30 white 40%,
31 rgba(255, 255, 255, 0.92));
32 left: 155px;
33 /* <section>s in options currently amount to 638px total, broken up into
34 * 600px max-width + 18px -webkit-padding-start + 20px -webkit-margin-end
35 * so we mirror this value here so the headers match width and horizontal
36 * alignment when scrolling sideways. */
37 max-width: 738px;
38 min-width: 600px;
39 position: fixed;
40 right: 0;
41 top: 0;
42 /* list.css sets a z-index of up to 2, this is set to 3 to ensure that the
43 * header is in front of the selected list item. */
44 z-index: 3;
47 html[dir='rtl'] body.uber-frame header {
48 left: 0;
49 right: 155px;
52 body.uber-frame header > .search-field-container,
53 body.uber-frame header > .header-extras,
54 body.uber-frame header > button {
55 position: absolute;
56 right: 20px;
57 top: 21px;
60 html[dir='rtl'] body.uber-frame header > .search-field-container,
61 html[dir='rtl'] body.uber-frame header > .header-extras,
62 html[dir='rtl'] body.uber-frame header > button {
63 left: 20px;
64 right: auto;
67 body.uber-frame header input[type='search'],
68 body.uber-frame header input[type='text'],
69 body.uber-frame header button {
70 margin: 0;
73 body.uber-frame header > h1 {
74 margin: 0;
75 padding: 21px 0 13px;
78 /* Create a border under the h1 (but before anything that gets appended
79 * to the end of the header). */
80 body.uber-frame header > h1::after {
81 -webkit-margin-end: 20px;
82 background-color: #eee;
83 content: ' ';
84 display: block;
85 height: 1px;
86 position: relative;
87 top: 13px;
90 body.uber-frame footer {
91 border-top: 1px solid #eee;
92 margin-top: 16px;
93 /* min-width and max-width should match the header */
94 max-width: 638px;
95 min-width: 600px;
96 padding: 8px 0;
99 /* Sections are used in options pages, help page and history page. This defines
100 * the section metrics to match the header metrics above. */
101 body.uber-frame section {
102 -webkit-padding-start: 18px;
103 margin-bottom: 24px;
104 margin-top: 8px;
105 max-width: 600px;
108 body.uber-frame section:last-of-type {
109 margin-bottom: 0;
112 body.uber-frame section > h3 {
113 -webkit-margin-start: -18px;
116 @media(pointer:coarse) {
117 /* TODO(kevers): Remove the extra padding once the following bug is fixed:
118 * https://bugs.webkit.org/show_bug.cgi?id=95204
119 * In the interim, the added padding makes it less likely that a touch will
120 * span the boundary of the navigation bar, which results in poor touch
121 * adjustments. */
122 body.uber-frame section {
123 -webkit-padding-start: 28px;
125 body.uber-frame section > h3 {
126 -webkit-margin-start: -28px;
130 body.uber-frame section > div:only-of-type {
131 -webkit-box-flex: 1;
134 /* Styles for a hideable notification banner at the top of a page. */
135 .page.showing-banner {
136 margin-top: 45px;
139 .page-banner {
140 background-color: white;
141 width: 100%;
142 z-index: 2;
145 .page:not(.showing-banner) .page-banner {
146 display: none;
149 .page-banner-gradient {
150 background: -webkit-linear-gradient(rgb(255, 242, 183),
151 rgb(250, 230, 145));
152 border: 1px solid rgb(201, 189, 141);
153 border-radius: 3px;
154 margin: 9px 9px 0 9px;
155 min-height: 25px;
158 .page-banner .page-banner-gradient {
159 -webkit-margin-end: 20px;
160 -webkit-margin-start: 0;
161 margin-bottom: 9px;
164 .page-banner-text {
165 -webkit-padding-end: 8px;
166 -webkit-padding-start: 26px;
167 background-image: url('chrome://theme/IDR_MANAGED');
168 background-position: 5px center;
169 background-repeat: no-repeat;
170 background-size: 16px;
171 display: block;
172 padding-bottom: 8px;
173 padding-top: 8px;
176 .page-banner.clickable:active .page-banner-text {
177 background: -webkit-linear-gradient(rgb(250, 230, 145),
178 rgb(255, 242, 183));