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 html, body { |
| 7 margin: 0; |
| 8 width: 100%; |
| 9 height: 100%; |
| 10 cursor: default; |
| 11 } |
| 12 |
| 13 list { |
| 14 display: block; |
| 15 overflow-x: hidden; |
| 16 overflow-y: visible; /* let the container do the scrolling */ |
| 17 } |
| 18 |
| 19 list > * { |
| 20 text-decoration: none; |
| 21 padding: 5px; |
| 22 } |
| 23 |
| 24 list > * > * { |
| 25 overflow: hidden; |
| 26 text-overflow: ellipsis; |
| 27 white-space: nowrap; |
| 28 display: block; |
| 29 color: black; |
| 30 width: 100%; |
| 31 -webkit-box-sizing: border-box; |
| 32 background: 0 50% no-repeat; |
| 33 -webkit-padding-start: 20px; |
| 34 } |
| 35 |
| 36 list > * > * > span { |
| 37 -webkit-transition: all .15s; |
| 38 text-decoration: none; |
| 39 color: #000; |
| 40 cursor: pointer; |
| 41 opacity: .7; |
| 42 } |
| 43 |
| 44 list > * > :first-child { |
| 45 font-weight: bold; |
| 46 font-size: 110%; |
| 47 } |
| 48 |
| 49 list > * > :last-child { |
| 50 overflow: hidden; |
| 51 } |
| 52 |
| 53 list > * > * > .folder { |
| 54 background-image: url("../images/folder_closed.png"); |
| 55 background-repeat: no-repeat; |
| 56 background-position: 0% 50%; |
| 57 display: inline-block; |
| 58 -webkit-padding-start: 18px; |
| 59 } |
| 60 |
| 61 html[dir=rtl] list > * > * > .folder { |
| 62 background-image: url("../images/folder_closed_rtl.png"); |
| 63 background-position: 100% 50%; |
| 64 } |
| 65 |
| 66 html[os=mac] list > * > * > .folder { |
| 67 background-image: url("../images/bookmark_bar_folder_mac.png"); |
| 68 } |
| 69 |
| 70 list > * > * > :hover { |
| 71 text-decoration: underline; |
| 72 color: blue; |
| 73 opacity: 1; |
| 74 } |
| 75 |
| 76 list > * > * > :active { |
| 77 color: -webkit-activelink; |
| 78 } |
| 79 |
| 80 html[dir=rtl] list .label { |
| 81 background-position: 100% 50%; |
| 82 } |
| 83 |
| 84 list > .folder > .label { |
| 85 background-image: url("../images/folder_closed.png"); |
| 86 } |
| 87 |
| 88 /* We need to ensure that even empty labels take up space */ |
| 89 list > * > .label:empty:after, |
| 90 list > * > .url:empty:after { |
| 91 content: " "; |
| 92 white-space: pre; |
| 93 } |
| 94 |
| 95 list > .folder > .url:empty:after { |
| 96 content: ""; |
| 97 } |
| 98 |
| 99 /* |
| 100 /* Edit mode |
| 101 */ |
| 102 |
| 103 list .label input, |
| 104 list .url input { |
| 105 /* Do not inherit the line-height */ |
| 106 font-family: inherit; |
| 107 font-size: inherit; |
| 108 font-weight: inherit; |
| 109 color: black; |
| 110 background: white; |
| 111 border: 1px solid black; |
| 112 margin: -2px -8px -2px -3px; |
| 113 padding: 1px 7px 1px 1px; |
| 114 outline: none; |
| 115 text-decoration: none; |
| 116 } |
| 117 |
| 118 html[dir=rtl] list .label input, |
| 119 html[dir=rtl] list .url input { |
| 120 margin: -2px -3px -2px -8px; |
| 121 padding: 1px 1px 1px 7px; |
| 122 } |
| 123 |
| 124 list [editing] .label, |
| 125 list [editing] .url, |
| 126 list [editing] > * { |
| 127 overflow: visible; |
| 128 opacity: 1; |
| 129 } |
| 130 |
| 131 list [editing] .url { |
| 132 text-decoration: none; |
| 133 color: inherit; |
| 134 } |
| 135 |
| 136 list .url form { |
| 137 display: inline; |
| 138 } |
| 139 |
| 140 list .url > form > input { |
| 141 -webkit-transition: color .15s, background-color .15s; |
| 142 } |
| 143 |
| 144 list .url > form > :invalid { |
| 145 background: #fdd; |
| 146 color: black; |
| 147 } |
| 148 |
| 149 /* end editing */ |
| 150 |
| 151 html[dir=rtl] list > .folder > .label { |
| 152 background-image: url("../images/folder_closed_rtl.png"); |
| 153 } |
| 154 |
| 155 html[os=mac] list > .folder > .label { |
| 156 background-image: url("../images/bookmark_bar_folder_mac.png"); |
| 157 } |
| 158 |
| 159 html[os=mac] .tree-label { |
| 160 background-image: url("../images/bookmark_bar_folder_mac.png"); |
| 161 } |
| 162 |
| 163 html[os=mac] .tree-row[selected] > .tree-label { |
| 164 background-image: url("../images/bookmark_bar_folder_mac.png"); |
| 165 } |
| 166 |
| 167 .main { |
| 168 position: absolute; |
| 169 top: 75px; |
| 170 left: 0; |
| 171 right: 0; |
| 172 bottom: 0; |
| 173 } |
| 174 |
| 175 #tree-container { |
| 176 position: absolute; |
| 177 left: 0; |
| 178 width: 200px; |
| 179 top: 0; |
| 180 bottom: 0; |
| 181 overflow: auto; |
| 182 -webkit-box-sizing: border-box; |
| 183 padding: 0px 5px 5px 5px; |
| 184 } |
| 185 |
| 186 #tree { |
| 187 min-width: 100%; |
| 188 overflow: visible; /* let the container do the scrolling */ |
| 189 display: inline-block; |
| 190 } |
| 191 |
| 192 #list { |
| 193 position: absolute; |
| 194 left: 200px; |
| 195 right: 0; |
| 196 top: 0; |
| 197 bottom: 0; |
| 198 -webkit-box-sizing: border-box; |
| 199 padding: 0 5px 5px 5px; |
| 200 } |
| 201 |
| 202 .logo { |
| 203 -webkit-appearance: none; |
| 204 border: 0; |
| 205 background: transparent; |
| 206 background: 50% 50% no-repeat url("../images/bookmarks_section.png"); |
| 207 width: 67px; |
| 208 height: 67px; |
| 209 cursor: pointer; |
| 210 vertical-align: bottom; |
| 211 margin: 5px; |
| 212 } |
| 213 |
| 214 html[dir=rtl] #tree-container { |
| 215 left: auto; |
| 216 right: 0; |
| 217 } |
| 218 |
| 219 html[dir=rtl] #list { |
| 220 left: 0; |
| 221 right: 200px; |
| 222 } |
| 223 |
| 224 .header > div { |
| 225 display: inline-block; |
| 226 margin: 5px; |
| 227 } |
| 228 |
| 229 #drop-overlay { |
| 230 position: absolute; |
| 231 display: none; |
| 232 pointer-events: none; |
| 233 border: 1px solid hsl(214, 91%, 85%);; |
| 234 -webkit-border-radius: 3px; |
| 235 -webkit-box-sizing: border-box; |
| 236 background-color: hsla(214, 91%, 85%, .5); |
| 237 overflow: hidden; |
| 238 z-index: -1; |
| 239 } |
| 240 |
| 241 #drop-overlay.line { |
| 242 border: 3px solid black; |
| 243 border-top-color: transparent; |
| 244 border-bottom-color: transparent; |
| 245 background-color: black; |
| 246 background-clip: padding-box; |
| 247 height: 8px; |
| 248 -webkit-border-radius: 0; |
| 249 z-index: 10; |
| 250 } |
| 251 |
| 252 .toolbar button { |
| 253 -webkit-appearance: none; |
| 254 background: transparent; |
| 255 border: 0; |
| 256 font: inherit; |
| 257 padding: 0; |
| 258 background: -webkit-canvas(drop-down-arrow) 100% 50% no-repeat; |
| 259 padding-right: 9px; |
| 260 } |
| 261 |
| 262 html[dir=rtl] .toolbar button { |
| 263 background-position: 0% 50%; |
| 264 padding-right: 0; |
| 265 padding-left: 9px; |
| 266 } |
OLD | NEW |