| /* Copyright 2018 The Chromium Authors. All rights reserved. |
| * Use of this source code is governed by a BSD-style license that can be |
| * found in the LICENSE file. */ |
| |
| :root { |
| color: #333; |
| font-family: 'Google Sans', Roboto, sans-serif; |
| font-size: 13px; |
| font-weight: 400; /* roboto-regular */ |
| } |
| |
| body { |
| margin: 0; |
| padding: 0; |
| } |
| |
| #recommend-apps-container { |
| max-height: 300px; |
| overflow: auto; |
| padding: 8px 64px 0; |
| width: 640px; |
| } |
| |
| .shadow { |
| height: 10px; |
| margin-top: -10px; |
| } |
| |
| #scroll-top.shadow { |
| box-shadow: 0 5px 6px -3px rgba(33, 33, 36, 0.06); |
| } |
| |
| #scroll-bottom.shadow { |
| box-shadow: inset 0 -5px 6px -3px rgba(33, 33, 36, 0.06); |
| } |
| |
| #recommend-apps-container .item { |
| float: left; |
| position: relative; |
| user-select: none; |
| } |
| |
| #recommend-apps-container .item:not(:nth-child(3n)) { |
| margin-right: 32px; |
| } |
| |
| #recommend-apps-container .item:nth-child(3n+1) { |
| clear: left; |
| } |
| |
| #recommend-apps-container .item:not(:nth-last-child(-n+3)) { |
| margin-bottom: 22px; |
| } |
| |
| #recommend-apps-container .item:nth-last-child(-n+3) { |
| margin-bottom: 5px; |
| } |
| |
| #recommend-apps-container .item .image-picker { |
| background: url(images/ic_checkmark.svg) no-repeat; |
| display: none; |
| height: 24px; |
| left: 176px; /* TODO(rsgingerrs): left is not rtl-language friendly. */ |
| position: absolute; |
| top: -8px; |
| width: 24px; |
| z-index: 2; |
| } |
| |
| #recommend-apps-container .item.checked .image-picker { |
| display: block; |
| } |
| |
| #recommend-apps-container .item .chip { |
| border-radius: 4px; |
| box-shadow: |
| 1px 1px 4px rgba(60, 64, 67, 0.30), |
| 1px 2px 4px 1px rgba(60, 64, 67, 0.15); |
| height: 60px; |
| position: relative; |
| width: 192px; |
| --x: 0; |
| --y: 0; |
| } |
| |
| #recommend-apps-container .item .chip .chip-content-container { |
| height: 100%; |
| overflow: hidden; |
| position: relative; |
| width: 100%; |
| } |
| |
| #recommend-apps-container .item .chip:focus, |
| #recommend-apps-container .item .chip .chip-content-container:focus { |
| outline: none; |
| } |
| |
| #recommend-apps-container .item .chip:focus > .chip-content-container { |
| outline: 2px solid rgba(26, 115, 232, 0.5); |
| } |
| |
| @keyframes ripple { |
| 30% { |
| transform: scale(7); |
| } |
| 100% { |
| opacity: 0; |
| } |
| } |
| |
| #recommend-apps-container .item .chip .chip-content-container .ripple { |
| animation: ripple 1s forwards; |
| background: rgba(32, 33, 36, 0.14); |
| border-radius: 50%; |
| height: 100px; |
| left: calc(var(--x) * 1px); |
| position: absolute; |
| top: calc(var(--y) * 1px); |
| transform: translate(-50%, -50%); |
| width: 100px; |
| } |
| |
| #recommend-apps-container .item .chip:active { |
| box-shadow: |
| 0 1px 2px 0 rgba(60, 64, 67, 0.30), |
| 0 3px 6px 2px rgba(60, 64, 67, 0.15); |
| } |
| |
| img.app-icon { |
| height: 40px; |
| margin: 10px 8px 10px 10px; |
| vertical-align: middle; |
| width: 40px; |
| } |
| |
| span.app-title { |
| color: rgb(32, 33, 36); |
| display: inline-block; |
| font-size: 13px; |
| line-height: 20px; |
| max-width: 120px; |
| overflow: hidden; |
| text-overflow: ellipsis; |
| vertical-align: middle; |
| white-space: nowrap; |
| } |