/* 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. */
/** Body modifier class, indicates when options should be visible. */
.show-options {
grid-template-columns: auto 256px;
}
.show-options .options {
visibility: visible;
}
.show-options .settings {
fill: #1a73e8;
}
/** Black overlay shown on smaller screens when options is visible. */
.scrim {
z-index: 5; /* Side panel layer */
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 256px;
background: #00000050;
}
/** Options side panel */
.options {
z-index: 5; /* Side panel layer */
grid-area: options;
padding: 0 16px;
overflow-y: auto;
position: fixed;
right: 0;
top: 0;
bottom: 0;
width: 224px;
background: #fffffff5;
box-shadow: 0 1px 2px #3c40434d, 0 2px 6px 2px #3c404326;
}
fieldset {
border: 0;
padding: 0;
margin: 1em 0;
}
.options fieldset:first-of-type {
margin-top: 1em;
}
legend {
margin: 1em 0;
padding: 0;
}
/** Toolbar */
.form-bar {
display: flex;
justify-content: flex-end;
height: 64px;
align-items: center;
}
/** Buttons */
.icon-button,
.text-button {
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
background: transparent;
border: 0;
}
.icon-button {
height: 40px;
width: 40px;
border-radius: 50%;
}
.icon-button:hover {
background: #0000001f;
}
.text-button {
padding: 0 8px;
height: 36px;
border-radius: 4px;
color: #1a73e8;
font-family: 'Google Sans', Arial, sans-serif;
font-weight: 500;
font-size: 14px;
}
.text-button:hover {
background: #d2e3fc80;
}
.text-button:hover:focus {
background: #d2e3fc;
}
.text-button:focus,
.text-button:active {
background: #d2e3fce6;
}
.text-button.with-icon {
display: flex;
align-items: center;
padding: 0 16px 0 12px;
margin: 0 8px;
}
.filled-button {
background: #1a73e8;
color: white;
}
.filled-button:hover {
background: #287ae6;
box-shadow: 0 1px 2px #3c40434d, 0 1px 3px 1px #3c404326;
}
input:focus + label.filled-button:hover {
background: #5d9cee;
}
input:focus + label.filled-button {
background: #5094ed;
outline: #2e3436 dotted 1px;
outline: -webkit-focus-ring-color auto 5px;
}
.filled-button:active,
input:focus + label.filled-button:active {
background: #1a73e8;
box-shadow: 0 1px 2px #3c40434d, 0 2px 6px 2px #3c404326;
}
/** or