mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 10:15:41 +00:00
210 lines
3.2 KiB
CSS
210 lines
3.2 KiB
CSS
/* 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/. */
|
|
|
|
#layout-container {
|
|
height: 100%;
|
|
width: 100%;
|
|
overflow: auto;
|
|
min-width: 200px;
|
|
}
|
|
|
|
/**
|
|
* Common styles for shared components
|
|
*/
|
|
|
|
.grid-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1 auto;
|
|
align-items: center;
|
|
min-width: 140px;
|
|
}
|
|
|
|
.grid-container > span {
|
|
font-weight: 600;
|
|
margin-bottom: 5px;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.grid-container > ul {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.grid-container li {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.grid-container input {
|
|
margin: 0 5px;
|
|
}
|
|
|
|
.grid-container label {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
/**
|
|
* Layout Promote Bar
|
|
*/
|
|
|
|
.layout-promote-bar {
|
|
align-items: center;
|
|
background-color: var(--theme-toolbar-background);
|
|
border-bottom: 1px solid var(--theme-splitter-color);
|
|
display: flex;
|
|
font-size: 11px;
|
|
padding: 5px;
|
|
transition: all 0.25s ease;
|
|
width: 100%;
|
|
-moz-user-select: none;
|
|
}
|
|
|
|
.layout-promote-bar:hover {
|
|
background-color: var(--theme-toolbar-hover);
|
|
}
|
|
|
|
.layout-promote-info-icon {
|
|
display: inline-block;
|
|
background-size: 16px;
|
|
width: 16px;
|
|
height: 16px;
|
|
margin: 6px;
|
|
background-image: url("chrome://browser/skin/info.svg");
|
|
}
|
|
|
|
.layout-promote-message {
|
|
flex: 1;
|
|
}
|
|
|
|
.layout-promote-learn-more-link {
|
|
margin-inline-start: 5px;
|
|
}
|
|
|
|
.layout-promote-learn-more-link:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.layout-promote-close-button {
|
|
margin: 6px;
|
|
}
|
|
|
|
.layout-promote-close-button::before {
|
|
background-image: url("chrome://devtools/skin/images/close.svg");
|
|
margin: -6px 0 0 -6px;
|
|
}
|
|
|
|
/**
|
|
* Grid Container
|
|
*/
|
|
|
|
#layout-grid-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin: 5px;
|
|
}
|
|
|
|
/**
|
|
* Grid Content
|
|
*/
|
|
|
|
.grid-content {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
flex: 1;
|
|
margin: 5px 0;
|
|
}
|
|
|
|
.grid-container:first-child {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
/**
|
|
* Grid Outline
|
|
*/
|
|
|
|
.grid-outline {
|
|
margin: 5px 0;
|
|
}
|
|
|
|
.grid-outline svg {
|
|
overflow: visible;
|
|
}
|
|
|
|
.grid-outline-border {
|
|
fill: none;
|
|
stroke: currentColor;
|
|
stroke-width: 0.75;
|
|
vector-effect: non-scaling-stroke;
|
|
}
|
|
|
|
.grid-outline-cell {
|
|
pointer-events: all;
|
|
stroke: currentColor;
|
|
stroke-dasharray: 0.5, 2;
|
|
vector-effect: non-scaling-stroke;
|
|
}
|
|
|
|
.grid-outline-cell:hover {
|
|
opacity: 0.45;
|
|
fill: currentColor;
|
|
}
|
|
|
|
.grid-outline-line {
|
|
opacity: 0;
|
|
stroke-width: 10;
|
|
}
|
|
|
|
.grid-outline-text {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--theme-graphs-full-red);
|
|
}
|
|
|
|
.grid-outline-text-icon {
|
|
background: url("chrome://devtools/skin/images/sad-face.svg");
|
|
margin-inline-end: 5px;
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
/**
|
|
* Container when no grids are present
|
|
*/
|
|
|
|
.layout-no-grids {
|
|
font-style: italic;
|
|
text-align: center;
|
|
padding: 0.5em;
|
|
}
|
|
|
|
/**
|
|
* Grid Item
|
|
*/
|
|
|
|
.grid-color-swatch {
|
|
width: 12px;
|
|
height: 12px;
|
|
margin-left: 5px;
|
|
border: 1px solid var(--theme-highlight-gray);
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.grid-color-value {
|
|
display: none;
|
|
}
|
|
|
|
/**
|
|
* Settings Item
|
|
*/
|
|
|
|
.grid-settings-item label {
|
|
line-height: 16px;
|
|
}
|