/* * Copyright (C) 2017 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF * THE POSSIBILITY OF SUCH DAMAGE. */ .content-view.canvas-overview { justify-content: center; align-items: flex-start; background-color: hsl(0, 0%, 90%); } .content-view.canvas-overview .content-view.canvas { flex-grow: 0; margin: 10px; width: 400px; background-color: white; border: solid 1px var(--border-color); } .content-view.canvas-overview .content-view.canvas.selected:not(.is-recording) { border-color: var(--selected-background-color); } .content-view.canvas-overview .content-view.canvas > :matches(header, footer) { display: flex; flex-direction: row; flex-shrink: 0; justify-content: space-between; align-items: center; padding: 0 6px; height: var(--navigation-bar-height); } .content-view.canvas-overview .content-view.canvas > header { font-size: 14px; } .content-view.canvas-overview .content-view.canvas.is-recording > header { background-color: red; } .content-view.canvas-overview .content-view.canvas > header > .titles, .content-view.canvas-overview .content-view.canvas > footer > .size { white-space: nowrap; } .content-view.canvas-overview .content-view.canvas > header > .titles > .title { color: var(--text-color-gray-dark); } .content-view.canvas-overview .content-view.canvas > header > .titles > .subtitle, .content-view.canvas-overview .content-view.canvas > footer .memory-cost { color: var(--text-color-gray-medium); } .content-view.canvas-overview .content-view.canvas > header .subtitle::before { content: " \2014 "; } .content-view.canvas-overview .content-view.canvas.is-recording > header > .titles > .title { color: white; } .content-view.canvas-overview .content-view.canvas.is-recording > header > .titles > .subtitle { color: var(--selected-secondary-text-color); } .content-view.canvas-overview .content-view.canvas.is-recording > header > .navigation-bar > .item { filter: brightness(0) invert(); } .content-view.canvas-overview .content-view.canvas > header > .navigation-bar { align-items: initial; border: none; } .content-view.canvas-overview .content-view.canvas:not(:hover, .is-recording) > header > .navigation-bar { visibility: hidden; } .content-view.canvas-overview .content-view.canvas:not(.is-recording) > header > .navigation-bar > .item.record-start-stop.disabled { filter: grayscale(); opacity: 0.5; } .content-view.canvas-overview .content-view.canvas:not(.is-recording) > header > .navigation-bar > .item.record-start-stop { /* Workaround for background image clipping issue on non-retina machines. See http://webkit.org/b/147346. */ filter: brightness(100%); } .content-view.canvas-overview .content-view.canvas:not(.is-recording) > header > .navigation-bar > .item.record-start-stop:not(.disabled):hover { filter: brightness(95%); } .content-view.canvas-overview .content-view.canvas:not(.is-recording) > header > .navigation-bar > .item.record-start-stop:not(.disabled):active { filter: brightness(80%); } .content-view.canvas-overview .content-view.canvas > .preview { height: 280px; } .content-view.canvas-overview .content-view.canvas > .preview > img { border-radius: 4px; box-shadow: 1px 2px 6px rgba(0, 0, 0, 0.58); } .content-view.canvas-overview .content-view.canvas > .preview > .message-text-view { position: static; } .content-view.canvas-overview .content-view.canvas > footer { /* FIXME: this can be removed once is complete.*/ justify-content: flex-end; } .content-view.canvas-overview .content-view.canvas > footer .memory-cost { -webkit-padding-start: 4px; }