blob: bc96e10458b15b820a17b587a22f84f00c844ac9 [file] [log] [blame]
/* 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. */
@import url(omnibox_column_widths.css);
[hidden] {
display: none !important;
}
output-results-group {
display: inline-block;
}
output-results-group:not(:last-child) {
margin-bottom: 30px;
}
output-results-details {
margin-bottom: 15px;
}
.check-mark,
.x-mark {
background-position: center;
background-repeat: no-repeat;
background-size: contain;
font-size: 0;
height: 16px;
width: 16px;
}
.check-mark {
background-image: url(../../../../ui/webui/resources/images/check_circle_green.svg);
}
.x-mark {
background-image: url(../../../../ui/webui/resources/images/cancel_red.svg);
}
html {
height: 100%;
}
body {
--action-color: rgb(66, 133, 244);
--border-color: #ddd;
background-color: #fcfcfc;
box-sizing: border-box;
display: flex;
flex-direction: column;
height: 100%;
margin: 0;
min-width: 900px;
padding: 8px;
}
* {
transition: background-color 300ms;
}
omnibox-output {
--header-color: #555;
}
@media only screen and (min-height: 900px) {
omnibox-output {
flex-grow: 1;
overflow-y: scroll;
}
}
table {
--header-bg-color: #fafafa;
--row-hover-color: #fafafa;
background-color: white;
border: 1px solid var(--border-color);
border-spacing: 0;
font-size: 12px;
table-layout: fixed;
width: 100%;
}
.head tr {
background-color: var(--header-bg-color);
color: var(--header-color);
font-size: 15px;
text-align: left;
}
.body tr {
height: 66px;
}
.body td > * {
display: block;
max-height: 56px;
}
.body td * {
overflow: hidden;
word-break: break-all;
}
.body td:not(:hover) * {
text-overflow: ellipsis;
white-space: nowrap;
}
.body td:hover * {
overflow-y: auto;
}
.body tr td pre.json,
.body tr td pre.json * {
white-space: pre-wrap;
}
.body tr:hover td {
background-color: var(--row-hover-color);
}
td {
padding: 0 5px;
}
th {
padding: 11px 5px 5px;
}
.header-container {
display: block;
overflow: hidden;
padding-bottom: 1px;
padding-top: 1px;
text-overflow: ellipsis;
white-space: nowrap;
}
.header-container span:not(:last-child)::after {
color: #555;
content: ' & ';
}
.filtered-highlighted {
background-color: rgb(208, 240, 255);
}
.filtered-highlighted-nested {
background-color: rgb(208, 255, 208);
}
pre.json .key {
color: purple;
font-weight: bold;
}
pre.json .string {
color: green;
}
pre.json .number {
color: blue;
}
pre.json .boolean {
color: slateblue;
font-weight: bold;
}
pre.json .null {
color: magenta;
font-weight: bold;
}
/* column specific styling */
.cell-provider-and-type .pair-item:first-child {
color: green;
font-weight: bold;
}
.body:not(:first-of-type) td.cell-provider-and-type .pair-item:first-child {
font-size: 0;
}
.pair-container {
align-items: center;
}
.cell-contents-and-description .pair-container,
.cell-fill-and-inline .pair-container {
display: flex;
flex-wrap: wrap;
}
.cell-contents-and-description .pair-container {
margin-inline-end: -15px;
}
.cell-contents-and-description .pair-item {
margin-inline-end: 15px;
}
.cell-contents-and-description img.pair-item {
border-radius: 3px;
height: 28px;
}
.cell-contents-and-description .pair-item.contents {
color: blue;
}
.cell-contents-and-description .pair-item.answer {
color: orange;
}
.cell-fill-and-inline .pair-container {
margin-inline-end: -1px;
}
.cell-fill-and-inline .pair-item {
margin-inline-end: 1px;
}
.cell-fill-and-inline .pair-item:nth-child(2):not(:empty) {
border: 1px solid;
font-weight: bold;
}
.cell-fill-and-inline .overlap-warning {
color: red;
}
.cell-destination-url img {
margin-inline-end: 5px;
vertical-align: middle;
}
.accesskey {
text-decoration: underline;
}
.header-provider-and-type .header-container :first-child {
color: green;
}
.header-contents-and-description .header-container :first-child {
color: blue;
}
.header-fill-and-inline .header-container :nth-child(2) {
border: 1px solid;
}
img:not([src]),
.pair-item:empty:not(img) {
display: none;
}
omnibox-input {
--hover-color: #f5f5f5;
--input-alignment-indentation: 9px;
--row-icon-height: 20px;
--row-height: 26px;
--text-active-color: #fff;
--text-hover-color: #eee;
--text-inactive-color: #f5f5f5;
margin-bottom: 30px;
}
/* :hover, :focus, & :active */
input[type=text]:hover,
select:hover {
background-color: var(--text-hover-color);
}
.checkbox-container:hover,
.button:hover {
background-color: var(--hover-color);
}
input[type=text]:focus,
select:focus,
.button:active {
background-color: var(--text-active-color);
border-color: var(--action-color);
outline: none;
}
.button:active {
transition: background-color 0ms;
}
/* text input */
input[type=text],
select {
background-color: var(--text-inactive-color);
border: 2px solid var(--text-inactive-color);
border-radius: 5px;
}
input[type=text] {
box-sizing: border-box;
padding: 3px 7px;
width: 100%;
}
input[type=text].input-icon-container {
background-position-x: 5px;
background-position-y: center;
background-repeat: no-repeat;
background-size: var(--row-icon-height);
padding-left: 30px;
}
/* text input arrow */
.arrow-container {
--arrow-size: 5px;
display: flex;
font-size: 0;
margin-top: -5px;
}
input:focus + .arrow-container {
visibility: hidden;
}
.arrow-padding {
display: inline-block;
height: 0;
overflow: hidden;
padding-left: 32px;
visibility: hidden;
white-space: pre;
}
.arrow-up {
font-size: 12px;
margin-left: -5px;
vertical-align: top;
}
/* select */
select {
cursor: pointer;
height: var(--row-height);
max-width: 250px;
/* padded so that its text aligns with other elements and its height is the
same as input elements' height */
padding: 2px 0 2px 3px;
width: 100%;
}
/* stylized checkbox */
.checkbox-container,
.button,
.warning-text {
align-items: center;
border-radius: 5px;
display: inline-flex;
min-height: var(--row-height);
padding-inline-end: var(--input-alignment-indentation);
padding-inline-start: var(--input-alignment-indentation);
user-select: none;
}
.checkbox-container,
.button {
cursor: pointer;
}
input[type=checkbox] {
margin-inline-start: 0;
}
/* button */
.button {
color: var(--action-color);
}
/* warning text */
.warning-text {
background-color: red;
color: white;
}
/* icons */
.icon {
background-position: -2px center;
background-size: var(--row-icon-height);
display: inline-block;
height: var(--row-icon-height);
margin-inline-end: 3px;
width: var(--row-icon-height);
}
.search-icon {
background-image: url(../../../../ui/webui/resources/images/icon_search.svg);
}
.reset-icon {
background-image: url(../../../../ui/webui/resources/images/icon_refresh.svg);
}
.copy-icon {
background-image: url(../../../../ui/webui/resources/images/icon_tabs.svg);
}
/* layout */
.top {
background-color: white;
border: 1px solid var(--border-color);
display: flex;
padding: 5px 0;
}
.top-column {
display: flex;
flex-basis: 0;
flex-direction: column;
flex-grow: 1;
overflow: hidden;
padding: 0 15px;
}
input,
select {
font-family: inherit;
font-size: inherit;
}
omnibox-input,
.arrow-padding {
font-size: 14px;
}
.row {
margin-bottom: 3px;
margin-top: 3px;
}
.section-header {
color: gray;
font-size: 12px;
margin-inline-start: var(--input-alignment-indentation);
}
/* drag */
.drag-container * {
pointer-events: none;
}
.drag-container input[type=file] {
display: none;
}
.drag-container.drag-hover {
background: lightblue;
}