| 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 body { | 5 body { |
| 6 -webkit-user-select: none; | 6 -webkit-user-select: none; |
| 7 font-family: Open Sans, Droid Sans Fallback, sans-serif; | 7 font-family: Open Sans, Droid Sans Fallback, sans-serif; |
| 8 font-size: 84%; | 8 font-size: 84%; |
| 9 margin: 0; | 9 margin: 0; |
| 10 } | 10 } |
| (...skipping 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1108 | 1108 |
| 1109 .mosaic::-webkit-scrollbar-thumb { | 1109 .mosaic::-webkit-scrollbar-thumb { |
| 1110 background: rgb(31, 31, 31); | 1110 background: rgb(31, 31, 31); |
| 1111 } | 1111 } |
| 1112 | 1112 |
| 1113 .gallery:not([mode='mosaic']) .mosaic::-webkit-scrollbar-thumb { | 1113 .gallery:not([mode='mosaic']) .mosaic::-webkit-scrollbar-thumb { |
| 1114 background: transparent; | 1114 background: transparent; |
| 1115 } | 1115 } |
| 1116 | 1116 |
| 1117 .mosaic-tile { | 1117 .mosaic-tile { |
| 1118 /* Tile's zoom factor is animated on hover. We apply the transform to |
| 1119 the entire tile so that the image outline is included into the animation. */ |
| 1120 -webkit-transition: -webkit-transform 150ms linear; |
| 1118 position: absolute; | 1121 position: absolute; |
| 1119 } | 1122 } |
| 1120 | 1123 |
| 1121 /* Mosaic tile's opacity is controlled by |visible| attribute which changes | 1124 /* Mosaic tile's opacity is controlled by |visible| attribute which changes |
| 1122 separately from .gallery[mode] */ | 1125 separately from .gallery[mode] */ |
| 1123 .mosaic:not([visible]) .mosaic-tile { | 1126 .mosaic:not([visible]) .mosaic-tile .img-border { |
| 1124 opacity: 0; | 1127 opacity: 0; |
| 1125 } | 1128 } |
| 1126 | 1129 |
| 1127 /* Animate tile's opacity, except for the selected tile which should show/hide | 1130 /* Animate tile's opacity, except for the selected tile which should show/hide |
| 1128 instantly (this looks better when zooming to/from the slide mode). */ | 1131 instantly (this looks better when zooming to/from the slide mode). */ |
| 1129 .mosaic-tile:not([selected]) { | 1132 .mosaic-tile:not([selected]) .img-border { |
| 1130 -webkit-transition: opacity 350ms linear; | 1133 -webkit-transition: opacity 350ms linear; |
| 1131 } | 1134 } |
| 1132 | 1135 |
| 1133 /* Must be in sync with mosaic_mode.js. | 1136 /* Must be in sync with mosaic_mode.js. |
| 1134 Mosaic.Layout.SPACING should be equal to | 1137 Mosaic.Layout.SPACING should be equal to |
| 1135 top + bottom + border-top-width + border-bottom-width AND | 1138 top + bottom + border-top-width + border-bottom-width AND |
| 1136 left + right + border-left-width + border-right-width */ | 1139 left + right + border-left-width + border-right-width */ |
| 1137 .mosaic-tile .img-border { | 1140 .mosaic-tile .img-border { |
| 1138 border: 1px solid transparent; /* Space between the outline and the image. */ | 1141 border: 1px solid transparent; /* Space between the outline and the image. */ |
| 1139 bottom: 4px; | 1142 bottom: 4px; |
| 1140 left: 4px; | 1143 left: 4px; |
| 1141 outline: 2px solid transparent; | 1144 outline: 2px solid transparent; |
| 1142 overflow: hidden; | 1145 overflow: hidden; |
| 1143 position: absolute; | 1146 position: absolute; |
| 1144 right: 4px; | 1147 right: 4px; |
| 1145 top: 4px; | 1148 top: 4px; |
| 1146 } | 1149 } |
| 1147 | 1150 |
| 1148 /* Selected and hover state are only visible when zoom transition is over. */ | 1151 /* Selected and hover state are only visible when zoom transition is over. */ |
| 1149 .mosaic[visible='normal'] .mosaic-tile[selected] .img-border { | 1152 .mosaic[visible='normal'] .mosaic-tile[selected] .img-border { |
| 1150 outline-color: rgb(51, 153, 255); | 1153 outline-color: rgb(51, 153, 255); |
| 1151 } | 1154 } |
| 1152 | 1155 |
| 1156 .mosaic[visible='normal'].hover-visible .mosaic-tile:hover { |
| 1157 -webkit-transform: scale(1.05); |
| 1158 } |
| 1159 |
| 1153 .mosaic[visible='normal'].hover-visible | 1160 .mosaic[visible='normal'].hover-visible |
| 1154 .mosaic-tile:hover:not([selected]) .img-border { | 1161 .mosaic-tile:hover:not([selected]) .img-border { |
| 1155 outline-color: rgb(182, 212, 252); | 1162 outline-color: rgb(182, 212, 252); |
| 1156 } | 1163 } |
| 1157 | 1164 |
| 1158 .mosaic-tile .img-wrapper { | 1165 .mosaic-tile .img-wrapper { |
| 1159 bottom: 0; | 1166 bottom: 0; |
| 1160 left: 0; | 1167 left: 0; |
| 1161 position: absolute; | 1168 position: absolute; |
| 1162 right: 0; | 1169 right: 0; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 1179 .gallery:not([mode='slide']) .arrow-box { | 1186 .gallery:not([mode='slide']) .arrow-box { |
| 1180 opacity: 0; | 1187 opacity: 0; |
| 1181 pointer-events: none; | 1188 pointer-events: none; |
| 1182 } | 1189 } |
| 1183 | 1190 |
| 1184 /* Temporary. Remove this along with the delete confirmation dialog | 1191 /* Temporary. Remove this along with the delete confirmation dialog |
| 1185 when Undo delete is implemented. */ | 1192 when Undo delete is implemented. */ |
| 1186 .cr-dialog-shield { | 1193 .cr-dialog-shield { |
| 1187 background-color: black; | 1194 background-color: black; |
| 1188 } | 1195 } |
| OLD | NEW |