Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 } | 7 } |
| 8 | 8 |
| 9 html.col-resize * { | 9 html.col-resize * { |
| 10 cursor: col-resize !important; | 10 cursor: col-resize !important; |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 153 } | 153 } |
| 154 | 154 |
| 155 /* List/grid and preview are inside this container. */ | 155 /* List/grid and preview are inside this container. */ |
| 156 .dialog-main { | 156 .dialog-main { |
| 157 -webkit-box-align: stretch; | 157 -webkit-box-align: stretch; |
| 158 -webkit-box-flex: 1; | 158 -webkit-box-flex: 1; |
| 159 -webkit-box-orient: vertical; | 159 -webkit-box-orient: vertical; |
| 160 display: -webkit-box; | 160 display: -webkit-box; |
| 161 } | 161 } |
| 162 | 162 |
| 163 /* Roots list at the left. */ | 163 /* Directory tree at the left. */ |
| 164 .dialog-sidebar { | 164 .dialog-sidebar { |
| 165 -webkit-box-flex: 0; | 165 -webkit-box-flex: 0; |
| 166 background-color: #e6e6e6; | 166 background-color: #e6e6e6; |
| 167 display: -webkit-box; | 167 display: -webkit-box; |
| 168 max-width: 50%; | 168 max-width: 50%; |
| 169 min-width: 45px; | 169 min-width: 45px; |
| 170 overflow: hidden; | 170 overflow: hidden; |
| 171 position: relative; | 171 position: relative; |
| 172 width: 168px; | 172 width: 168px; |
| 173 } | 173 } |
| 174 | 174 |
| 175 /* A vertical splitter between the roots list and the file list. It is actually | 175 /* A vertical splitter between the roots list and the file list. It is actually |
| 176 a transparent area centered on the roots list right border.*/ | 176 a transparent area centered on the roots list right border.*/ |
| 177 div.sidebar-splitter { | 177 div.sidebar-splitter { |
| 178 -webkit-box-flex: 0; | 178 -webkit-box-flex: 0; |
| 179 cursor: col-resize; | 179 cursor: col-resize; |
| 180 margin-left: -4px; /* +1px to accomodate the roots list border */ | 180 margin-left: -4px; /* +1px to accomodate the roots list border */ |
| 181 margin-right: -3px; | 181 margin-right: -3px; |
| 182 position: relative; | 182 position: relative; |
| 183 width: 7px; | 183 width: 7px; |
| 184 z-index: 2; | 184 z-index: 2; |
| 185 } | 185 } |
| 186 | 186 |
| 187 /* Roots list at the left. */ | 187 #directory-tree { |
| 188 #roots-list { | |
| 189 -webkit-box-flex: 1; | |
| 190 -webkit-box-orient: vertical; | 188 -webkit-box-orient: vertical; |
| 191 border-right: 1px solid rgb(170, 170, 170); | 189 border-right: 1px solid rgb(170, 170, 170); |
| 192 display: -webkit-box; | 190 display: -webkit-box; |
| 191 overflow-x: hidden; | |
| 192 overflow-y: auto; | |
| 193 width: 100%; | |
| 193 } | 194 } |
| 194 | 195 |
| 195 #roots-list > * { | 196 #directory-tree .tree-row { |
| 196 background-color: #e6e6e6; | 197 background-color: #e6e6e6; |
| 197 background-image: none; | 198 background-image: none; |
| 198 border: none; | 199 border: none; |
| 200 display: -webkit-box; | |
| 199 height: 39px; | 201 height: 39px; |
|
mtomasz
2013/03/14 02:52:05
Remove height: 39px;
yoshiki
2013/03/14 07:57:53
Done.
| |
| 202 line-height: 39px; | |
| 200 margin: 0; | 203 margin: 0; |
| 201 padding: 0 5px; | 204 padding: 0 5px; |
| 202 } | 205 } |
| 203 | 206 |
| 204 #roots-list > :hover { | 207 #directory-tree .tree-row > .expand-icon { |
| 208 margin: 0 0; | |
|
mtomasz
2013/03/14 02:52:05
1. Override .expand-icon opacity: 0.5 to 1.0 to ma
yoshiki
2013/03/14 07:57:53
I think we should match to default tree view keepi
| |
| 209 top: 11px; | |
|
mtomasz
2013/03/14 02:52:05
Can we avoid this absolute positioning with a magi
yoshiki
2013/03/14 07:57:53
I changed it vertical-align:center, but to fit it
| |
| 210 } | |
| 211 | |
| 212 #directory-tree .tree-row > .volume-icon { | |
| 213 background-position: center 2px; | |
| 214 background-repeat: no-repeat; | |
| 215 height: 24px; | |
| 216 margin: 0 0; | |
|
mtomasz
2013/03/14 02:52:05
Is this margin: 0 0 necessary here?
yoshiki
2013/03/14 07:57:53
removed.
| |
| 217 vertical-align: middle; | |
| 218 width: 24px; | |
| 219 } | |
| 220 | |
| 221 #directory-tree .tree-row > .label { | |
| 222 -webkit-box-flex: 1; | |
| 223 display: block; | |
| 224 margin: 0 3px; | |
| 225 overflow-x: hidden; | |
| 226 text-overflow: ellipsis; | |
| 227 } | |
| 228 | |
| 229 #directory-tree .tree-row:hover { | |
| 205 background-color: rgba(0, 0, 0, 0.05); | 230 background-color: rgba(0, 0, 0, 0.05); |
| 206 border-color: rgba(0, 0, 0, 0.05); | 231 border-color: rgba(0, 0, 0, 0.05); |
| 207 } | 232 } |
| 208 | 233 |
| 209 #roots-list > .accepts, | 234 #directory-tree .accepts, |
| 210 #roots-list > [lead][selected], | 235 #directory-tree .tree-row[lead][selected], |
| 211 #roots-list > [lead], | 236 #directory-tree .tree-row[lead], |
| 212 #roots-list > [selected], | 237 #directory-tree .tree-row[selected], |
| 213 #roots-list > [anchor] { | 238 #directory-tree .tree-row[anchor] { |
| 214 background-color: rgb(204, 204, 204); | 239 background-color: rgb(204, 204, 204); |
| 215 } | 240 } |
| 216 | 241 |
| 217 #roots-list:focus > .accepts, | 242 #directory-tree:focus .accepts, |
| 218 #roots-list:focus > [lead][selected], | 243 #directory-tree:focus .tree-row[lead][selected], |
| 219 #roots-list:focus > [lead], | 244 #directory-tree:focus .tree-row[lead], |
| 220 #roots-list:focus > [selected], | 245 #directory-tree:focus .tree-row[selected], |
| 221 #roots-list:focus > [anchor] { | 246 #directory-tree:focus .tree-row[anchor] { |
| 222 background-color: rgb(193, 209, 232); | 247 background-color: rgb(193, 209, 232); |
| 223 } | 248 } |
| 224 | 249 |
| 225 #roots-list > .accepts:hover, | 250 #directory-tree .accepts:hover, |
| 226 #roots-list > [lead]:hover, | 251 #directory-tree .tree-row[lead]:hover, |
| 227 #roots-list > [lead][selected]:hover, | 252 #directory-tree .tree-row[lead][selected]:hover, |
| 228 #roots-list > [selected]:hover, | 253 #directory-tree .tree-row[selected]:hover, |
| 229 #roots-list > [anchor]:hover { | 254 #directory-tree .tree-row[anchor]:hover { |
| 230 background-color: rgb(192, 192, 192); | 255 background-color: rgb(192, 192, 192); |
| 231 } | 256 } |
| 232 | 257 |
| 233 #roots-list:hover > .accepts:hover, | 258 #directory-tree:hover .accepts:hover, |
| 234 #roots-list:hover > [lead]:hover, | 259 #directory-tree:hover .tree-row[lead]:hover, |
| 235 #roots-list:hover > [lead][selected]:hover, | 260 #directory-tree:hover .tree-row[lead][selected]:hover, |
| 236 #roots-list:hover > [selected]:hover, | 261 #directory-tree:hover .tree-row[selected]:hover, |
| 237 #roots-list:hover > [anchor]:hover { | 262 #directory-tree:hover .tree-row[anchor]:hover { |
| 238 background-color: rgb(177, 193, 216); | 263 background-color: rgb(177, 193, 216); |
| 239 } | 264 } |
| 240 | 265 |
| 241 #roots-list li.root-item { | |
| 242 -webkit-box-align: center; | |
| 243 display: -webkit-box; | |
| 244 line-height: 22px; /* To accomodate for icons. */ | |
| 245 padding-left: 11px; | |
| 246 } | |
| 247 | |
| 248 li.root-item > .root-label { | |
| 249 -webkit-box-flex: 1; | |
| 250 margin: 0 2px; | |
| 251 overflow: hidden; | |
| 252 text-overflow: ellipsis; | |
| 253 white-space: nowrap; | |
| 254 } | |
| 255 | |
| 256 .volume-icon { | |
| 257 background-position: center 2px; | |
| 258 background-repeat: no-repeat; | |
| 259 height: 24px; | |
| 260 width: 24px; | |
| 261 } | |
| 262 | |
| 263 div.root-eject { | 266 div.root-eject { |
| 264 /* The transition commented out to work around crbug.com/157813 */ | 267 /* The transition commented out to work around crbug.com/157813 */ |
| 265 /*-webkit-transition: opacity 70ms linear;*/ | 268 /*-webkit-transition: opacity 70ms linear;*/ |
| 266 background-image: -webkit-image-set( | 269 background-image: -webkit-image-set( |
| 267 url('../images/files/ui/eject.png') 1x, | 270 url('../images/files/ui/eject.png') 1x, |
| 268 url('../images/files/ui/2x/eject.png') 2x); | 271 url('../images/files/ui/2x/eject.png') 2x); |
| 269 background-position: center center; | 272 background-position: center center; |
| 270 background-repeat: no-repeat; | 273 background-repeat: no-repeat; |
| 271 cursor: pointer; | 274 cursor: pointer; |
| 272 height: 20px; | 275 height: 20px; |
| 273 margin-right: 6px; | 276 margin-right: 6px; |
| 274 opacity: 0.7; | 277 opacity: 0.7; |
|
mtomasz
2013/03/14 02:52:05
IS this opacity: 0.7 necessary here?
yoshiki
2013/03/14 07:57:53
It exists original on eject icon hence I'm keeping
| |
| 278 vertical-align: middle; | |
| 275 width: 20px; | 279 width: 20px; |
| 276 } | 280 } |
| 277 | 281 |
| 278 div.root-eject:hover { | 282 div.root-eject:hover { |
| 279 opacity: 1; | 283 opacity: 1; |
| 280 } | 284 } |
| 281 | 285 |
| 286 div.root-eject[hidden] { | |
| 287 display: none; | |
| 288 } | |
| 289 | |
| 282 .root-item[selected] > div.root-eject:not(:hover), | 290 .root-item[selected] > div.root-eject:not(:hover), |
| 283 .root-item:hover > div.root-eject:not(:hover) { | 291 .root-item:hover > div.root-eject:not(:hover) { |
| 284 opacity: 0.7; | 292 opacity: 0.7; |
| 285 } | 293 } |
| 286 | 294 |
| 287 .root-item[disabled] { | 295 .root-item[disabled] { |
| 288 opacity: 0.5; | 296 opacity: 0.5; |
| 289 pointer-events: none; | 297 pointer-events: none; |
| 290 } | 298 } |
| 291 | 299 |
| (...skipping 1390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1682 } | 1690 } |
| 1683 | 1691 |
| 1684 list.autocomplete-suggestions[hasElementFocus] > [selected], | 1692 list.autocomplete-suggestions[hasElementFocus] > [selected], |
| 1685 list.autocomplete-suggestions[hasElementFocus] > [lead], | 1693 list.autocomplete-suggestions[hasElementFocus] > [lead], |
| 1686 list.autocomplete-suggestions:not([hasElementFocus]) > [selected], | 1694 list.autocomplete-suggestions:not([hasElementFocus]) > [selected], |
| 1687 list.autocomplete-suggestions:not([hasElementFocus]) > [lead] { | 1695 list.autocomplete-suggestions:not([hasElementFocus]) > [lead] { |
| 1688 background-color: rgb(238, 238, 238); | 1696 background-color: rgb(238, 238, 238); |
| 1689 background-image: none; | 1697 background-image: none; |
| 1690 border: 1px solid white; | 1698 border: 1px solid white; |
| 1691 } | 1699 } |
| OLD | NEW |