CSS样式  |  66行  |  1.21 KB

/* Copyright (c) 2012 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.
 */

.overlay-root * {
  -webkit-user-select: none;
  box-sizing: border-box;
}

.overlay-root {
  -webkit-flex-flow: row;
  -webkit-justify-content: center;
  -webkit-user-select: none;
  background: rgba(0, 0, 0, 0.8);
  display: -webkit-flex;
  font-family: sans-serif;
  height: 100%;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.overlay-root:not([visible]) {
  display: none;
}

.overlay-root > .content-host {
  -webkit-flex-flow: column;
  -webkit-justify-content: center;
  -webkit-user-select: auto;
  display: -webkit-flex;
}

.overlay * {
  -webkit-user-select: auto;
}

.overlay-root > .content-host > * {
  background: rgb(255, 255, 255);
}

.overlay-root > .content-host .tool-bar {
  cursor: pointer;
  display: -webkit-flex;
  height: 24px;
  padding: 1px;
}

.overlay-root > .content-host .tool-bar .exit-button {
  background-color: rgba(0,0,0, 0.8);
  border: 1px solid white;
  color: white;
  height:  100%;
  padding-left: 4px;
  width:  19px;
}

.overlay {
  max-height: 500px;
  overflow: auto;
  padding: 8px;
}