/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ .tab-preview-container { --tab-preview-background-color: light-dark(#fff, #42414d); --tab-preview-text-color: light-dark(#15141a, #fbfbfe); --tab-preview-border-color: light-dark(#cfcfd8, #8f8f9d); @media (prefers-contrast) { --tab-preview-background-color: Canvas; --tab-preview-text-color: CanvasText; } } .tab-preview-container { background-color: var(--tab-preview-background-color); color: var(--tab-preview-text-color); border-radius: 9px; display: inline-block; width: 280px; overflow: hidden; line-height: 1.5; border: 1px solid var(--tab-preview-border-color); } .tab-preview-title { max-height: 3em; overflow: hidden; font-weight: 600; } .tab-preview-uri { color: var(--text-color-deemphasized); max-height: 1.5em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .tab-preview-text-container { padding: 8px; } .tab-preview-thumbnail-container { border-top: 1px solid var(--tab-preview-border-color); } .tab-preview-thumbnail-container img, .tab-preview-thumbnail-container canvas { display: block; width: 100%; } @media (max-width: 640px) { .tab-preview-thumbnail-container { display: none; } }