OLD | NEW |
1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2011 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 | 5 |
6 .bookmarks { | 6 /* Bookmark Tiles ************************************************************/ |
| 7 |
| 8 .bookmark { |
| 9 display: -webkit-box; |
7 position: absolute; | 10 position: absolute; |
| 11 -webkit-box-orient: vertical; |
8 } | 12 } |
9 | 13 |
10 /* TODO(csilv): Remove this placeholder. */ | 14 .bookmark-fills-parent { |
11 .placeholder { | 15 bottom: 0; |
12 color: #999; | 16 display: -webkit-box; |
13 font-size: 20px; | 17 left: 0; |
14 padding-top: 80px; | 18 position: absolute; |
| 19 right: 0; |
| 20 top: 0; |
15 } | 21 } |
| 22 |
| 23 .bookmark .close-button { |
| 24 opacity: 0; |
| 25 position: absolute; |
| 26 right: 0; |
| 27 top: 0; |
| 28 z-index: 5; |
| 29 -webkit-transition: opacity 0.15s; |
| 30 } |
| 31 |
| 32 html[dir=rtl] .bookmark .close-button { |
| 33 left: 0; |
| 34 right: auto; |
| 35 } |
| 36 |
| 37 .bookmark:hover .close-button { |
| 38 opacity: 1; |
| 39 -webkit-transition-delay: 0.5s; |
| 40 } |
| 41 |
| 42 .bookmark .favicon { |
| 43 background: no-repeat 50% 50%; |
| 44 background-size: 32px; |
| 45 } |
| 46 |
| 47 .bookmark .color-stripe { |
| 48 border-bottom-left-radius: 3px 3px; |
| 49 border-bottom-right-radius: 3px 3px; |
| 50 bottom: 23px; |
| 51 height: 3px; |
| 52 opacity: 0.5; |
| 53 position: absolute; |
| 54 width: 100%; |
| 55 z-index: 100; |
| 56 } |
| 57 |
| 58 .bookmark .title { |
| 59 cursor: pointer; |
| 60 display: block; |
| 61 height: 23px; |
| 62 line-height: 23px; |
| 63 overflow: hidden; |
| 64 text-align: center; |
| 65 text-overflow: ellipsis; |
| 66 white-space: nowrap; |
| 67 } |
| 68 |
| 69 .bookmark .button { |
| 70 cursor: pointer; |
| 71 background-color: rgba(0, 0, 0, 0.2); |
| 72 border: 1px solid transparent; |
| 73 border-radius: 5px; |
| 74 bottom: 70px; |
| 75 position: relative; |
| 76 z-index: 5; |
| 77 -webkit-box-flex: 1; |
| 78 -webkit-transition: background-color .15s; |
| 79 } |
| 80 |
| 81 .bookmark:hover .button { |
| 82 background-color: rgba(0, 0, 0, 0.4); |
| 83 } |
| 84 |
| 85 .bookmark .button-frame { |
| 86 background: -webkit-gradient(radial, 50% 25%, 0, 50% 50%, 80, from(#fff), |
| 87 color-stop(0.68, #f5f5f5), to(#e5e5e5)); |
| 88 border-radius: 5px; |
| 89 } |
| 90 |
| 91 /* The bookmark gets a shadow when clicked, but not when the click is on the |
| 92 * close button. */ |
| 93 .bookmark:active .close-button:not(:active) + .button-frame { |
| 94 -webkit-box-shadow: inset 0 1px 10px rgba(0, 0, 0, 0.2); |
| 95 } |
| 96 |
| 97 /* Bookmark Titles ************************************************************/ |
| 98 |
| 99 #bookmarks_title_wrapper { |
| 100 background: #fff; |
| 101 background-position: left; |
| 102 background-repeat: no-repeat; |
| 103 border-bottom: 1px solid rgba(0, 0, 0, 0.1); |
| 104 color: #777; |
| 105 display: -webkit-box; |
| 106 font-size: 16px; |
| 107 height: 48px; |
| 108 line-height: 48px; |
| 109 overflow: hidden; |
| 110 white-space: nowrap; |
| 111 } |
| 112 |
| 113 #bookmarks_title_wrapper .title-crumb { |
| 114 cursor: pointer; |
| 115 margin: 0 25px; |
| 116 } |
| 117 |
| 118 #bookmarks_title_wrapper .title-crumb-active { |
| 119 color: #7f7f7f; |
| 120 cursor: default; |
| 121 font-weight: bold; |
| 122 margin-right: 0; |
| 123 padding-right: 10px; |
| 124 } |
| 125 |
| 126 .section-title { |
| 127 display: -webkit-box; |
| 128 left: 0; |
| 129 overflow: hidden; |
| 130 position: absolute; |
| 131 top: 0; |
| 132 -webkit-box-flex: 1; |
| 133 -webkit-box-orient: horizontal; |
| 134 } |
| 135 |
| 136 .section-title-mask { |
| 137 background: #fff; |
| 138 height: 100%; |
| 139 overflow: hidden; |
| 140 position: relative; |
| 141 -webkit-box-flex: 1; |
| 142 } |
| 143 |
| 144 .bookmark-separator { |
| 145 background: -webkit-canvas(bookmark-chevron) center center no-repeat; |
| 146 height: 44px; |
| 147 margin: 2px 0; |
| 148 width: 10px; |
| 149 } |
OLD | NEW |