OLD | NEW |
---|---|
(Empty) | |
1 /* | |
2 Copyright (c) 2010 The Chromium Authors. All rights reserved. | |
3 Use of this source code is governed by a BSD-style license that can be | |
4 found in the LICENSE file. | |
5 */ | |
6 | |
7 /* styles for the intents list elements in intents_view.html */ | |
8 | |
9 #intents-column-headers { | |
10 position: relative; | |
11 width: 100%; | |
12 } | |
13 | |
14 #intents-column-headers h3 { | |
15 font-size: 105%; | |
16 font-weight: bold; | |
17 margin: 10px 0; | |
18 } | |
19 | |
20 /* Notice the width and padding for these columns match up with those below. */ | |
21 #intents-site-column { | |
22 display: inline-block; | |
23 font-weight: bold; | |
24 width: 11em; | |
25 } | |
26 | |
27 #intents-data-column { | |
28 -webkit-padding-start: 7px; | |
29 display: inline-block; | |
30 font-weight: bold; | |
31 } | |
32 | |
33 #intents-list { | |
34 border: 1px solid #d9d9d9; | |
35 margin: 0; | |
36 } | |
37 | |
38 | |
39 /* Enable animating the height of items. */ | |
40 list.intents-list .deletable-item { | |
41 -webkit-transition: height .15s ease-in-out; | |
42 } | |
43 | |
44 /* Disable webkit-box display. */ | |
45 list.intents-list .deletable-item > :first-child { | |
46 display: block; | |
47 } | |
48 | |
49 /* Force the X for deleting an origin to stay at the top. */ | |
50 list.intents-list > .deletable-item > .close-button { | |
51 position: absolute; | |
52 right: 2px; | |
53 top: 8px; | |
54 } | |
55 | |
56 html[dir=rtl] list.intents-list > .deletable-item > .close-button { | |
57 left: 2px; | |
58 right: auto; | |
59 } | |
60 | |
61 | |
62 /* styles for the site (aka origin) and its summary */ | |
63 | |
64 .intents-site { | |
65 /* Notice that the width, margin, and padding match up with those above. */ | |
66 -webkit-margin-end: 2px; | |
67 -webkit-padding-start: 5px; | |
68 display: inline-block; | |
69 overflow: hidden; | |
70 text-overflow: ellipsis; | |
71 width: 11em; | |
72 } | |
73 | |
74 list.intents-list > .deletable-item[selected] .intents-site { | |
75 -webkit-user-select: text; | |
76 } | |
77 | |
78 .intents-data { | |
79 display: inline-block; | |
80 } | |
81 | |
82 list.intents-list > .deletable-item[selected] .intents-data { | |
83 -webkit-user-select: text; | |
84 } | |
85 | |
86 | |
87 .intents-items { | |
88 display: table; | |
89 height: 0; | |
90 opacity: 0; | |
91 /* Make the intents items wrap correctly. */ | |
92 white-space: normal; | |
93 /* Notice that the margin and padding match up with those above. */ | |
94 -webkit-margin-start: 11em; | |
James Hawkins
2011/08/17 21:34:15
These (-webkit*) go at the top.
Greg Billock
2011/08/17 22:44:02
Done.
| |
95 -webkit-padding-start: 7px; | |
96 -webkit-transition: .15s ease-in-out; | |
97 } | |
98 | |
99 .measure-items .intents-items { | |
100 -webkit-transition: none; | |
101 height: auto; | |
102 visibility: hidden; | |
103 } | |
104 | |
105 .show-items .intents-items { | |
106 opacity: 1; | |
107 } | |
108 | |
109 .intents-items .intents-item { | |
110 display: table-row; | |
111 -webkit-box-orient: horizontal; | |
James Hawkins
2011/08/17 21:34:15
-webkit at the top, alphabetize display.
Greg Billock
2011/08/17 22:44:02
Done.
| |
112 -webkit-box-pack: start; | |
113 background: #e0e9f5; | |
114 border: 1px solid #8392ae; | |
115 font-size: 85%; | |
116 height: auto; | |
117 margin: 2px 4px 2px 0; | |
118 overflow: hidden; | |
119 padding: 0 3px; | |
120 text-align: center; | |
121 text-overflow: ellipsis; | |
122 } | |
123 | |
124 | |
125 .intents-item .intents-item-action { | |
126 display: table-cell; | |
127 padding: 2px 5px 2px 5px; | |
James Hawkins
2011/08/17 21:34:15
Shorthand notation, HAE.
Greg Billock
2011/08/17 22:44:02
Done.
| |
128 } | |
129 | |
130 .intents-item .intents-item-types { | |
131 display: table-cell; | |
132 padding: 2px 5px 2px 5px; | |
133 overflow: hidden; | |
134 } | |
135 | |
136 .intents-item .intents-item-url { | |
137 display: table-cell; | |
138 text-overflow: ellipsis; | |
139 padding: 2px 5px 2px 5px; | |
140 overflow: hidden; | |
141 } | |
142 | |
143 .intents-items .intents-item:hover { | |
144 background: #eef3f9; | |
145 border-color: #647187; | |
146 } | |
147 | |
148 .intents-items .intents-item[selected] { | |
149 background: #f5f8f8; | |
150 border-color: #b2b2b2; | |
151 } | |
152 | |
153 .intents-items .intents-item[selected]:hover { | |
154 background: #f5f8f8; | |
155 border-color: #647187; | |
156 } | |
157 | |
158 | |
James Hawkins
2011/08/17 21:34:15
Remove extra blank line.
Greg Billock
2011/08/17 22:44:02
Done.
| |
159 /* styles for the intents details box */ | |
James Hawkins
2011/08/17 21:34:15
Styles, add period.
Greg Billock
2011/08/17 22:44:02
Done.
| |
160 | |
161 .intents-details { | |
162 background: #f5f8f8; | |
163 border-radius: 5px; | |
164 border: 1px solid #b2b2b2; | |
165 margin-top: 2px; | |
166 padding: 5px; | |
167 } | |
168 | |
169 list.intents-list > .deletable-item[selected] .intents-details { | |
170 -webkit-user-select: text; | |
171 } | |
172 | |
173 .intents-details-table { | |
174 table-layout: fixed; | |
175 width: 100%; | |
176 } | |
177 | |
178 .intents-details-label { | |
179 vertical-align: top; | |
180 white-space: pre; | |
181 width: 10em; | |
182 } | |
183 | |
184 .intents-details-value { | |
185 word-wrap: break-word; | |
186 } | |
OLD | NEW |