Files
firefox/toolkit/content/aboutTelemetry.css
T
flyingrub 46cbf29094 Bug 1382331 - Redesign histograms in about:telemetry r=chutten
Divide the current height by two to improve the readability.
Change the colors so that they match the firefox color palette.
Also prevent the label of histogram's bar to overlap.

MozReview-Commit-ID: 5FLgFXk94ng
2017-07-19 21:28:07 +02:00

403 lines
6.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/. */
@import url("chrome://global/skin/in-content/common.css");
html {
height: 100%;
}
body {
display: flex;
align-items: stretch;
height: 100%;
}
#categories {
min-width: 250px;
padding-top: 0px;
overflow-y: auto;
}
#category-raw {
border-top: 1px solid var(--in-content-header-border-color);
box-sizing: border-box;
background-color: inherit;
min-width: inherit;
position: absolute;
bottom: 0;
left: 0;
}
#category-raw.selected {
background-color: var(--in-content-category-background-active);
}
.heading {
display: flex;
flex-direction: column;
font-size: 18px;
color: var(--in-content-category-text);
pointer-events: none;
padding: 12px 21px 15px 21px;
border-bottom: 1px solid var(--in-content-header-border-color);
}
.header {
display: flex;
}
.header select {
margin-left: 4px;
}
#sectionTitle {
flex-grow: 1;
}
.heading > h3 {
margin: 0;
padding-bottom: 12px;
}
#ping-type {
align-self: center;
pointer-events: all;
cursor: pointer;
}
#older-ping, #newer-ping, #ping-date {
pointer-events: all;
-moz-user-select: none;
cursor: pointer;
text-align: center;
}
.controls {
display: flex;
justify-content: space-between;
}
.category:not(.has-data) {
display: none;
}
.category {
cursor: pointer;
display: flex;
flex-direction: column;
min-height: 42px;
}
.category-name {
padding: 9px 0px;
vertical-align: middle;
}
.category.has-subsection {
padding-inline-start: 0px;
}
.category.has-subsection > span {
padding-inline-start: 11px;
}
.category.has-subsection.selected {
border-inline-start: none;
}
.category-subsection {
padding: 9px 0px;
padding-inline-start: 30px;
display: none;
-moz-user-select: none;
}
.category-subsection::first-letter {
text-transform: uppercase;
}
.category.selected > .category-subsection {
display: block;
}
.category-subsection.selected {
padding-inline-start: 26px;
border-inline-start: solid 4px var(--in-content-border-highlight);
}
.category-name {
pointer-events: none;
}
.main-content {
width: 100%;
font-size: 18px;
line-height:1.6;
z-index: 1;
position: relative;
}
#page-description {
border: 1px solid threedshadow;
margin: 0px;
padding: 10px;
line-height: 1.2;
}
#settings {
border: 1px solid lightgrey;
padding: 5px;
}
.change-data-choices-link {
border-bottom-width: 2px;
border-bottom-style: solid;
}
.change-data-choices-link:hover {
text-decoration: none;
}
#ping-explanation > span {
cursor: pointer;
border-bottom-width: 2px;
border-bottom-style: solid;
}
#ping-explanation > span:hover {
color: var(--in-content-page-color);
border-bottom-width: 2px;
border-bottom-style: solid;
}
#ping-picker.hidden {
display: none;
}
#ping-picker {
position: absolute;
z-index: 2;
top: 40px;
right: 40px;
border-radius: 2px;
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.25);
display: flex;
padding: 24px;
flex-direction: column;
background-color: white;
border: 1px solid var(--in-content-header-border-color);
margin: 12px 0px;
}
#ping-picker .title {
margin: 4px 0px;
}
#ping-source-picker {
margin-left: 5px;
margin-bottom: 10px;
}
.data-section:not(.has-data),
.data-subsection:not(.has-subdata) {
color: gray;
}
.section-name {
font-size: x-large;
display: inline;
}
.has-data .section-name {
cursor: pointer;
}
.data,
.subdata {
margin: 15px;
display: none;
}
.has-data.expanded .data,
.has-subdata.expanded .subdata {
display: block;
}
.stack-title {
font-size: medium;
font-weight: bold;
text-decoration: underline;
}
#histograms, #thread-hang-stats>div {
overflow: hidden;
}
.histogram {
float: left;
white-space: nowrap;
padding: 10px;
position: relative; /* required for position:absolute of the contained .copy-node */
padding: 12px 20px 12px 20px;
border: 1px solid var(--in-content-box-border-color);
border-radius: 2px;
margin-bottom: 24px;
margin-right: 24px;
min-height: 284px;
}
body[dir="rtl"] .histogram {
float: right;
}
.histogram-title {
text-overflow: ellipsis;
width: 100%;
white-space: nowrap;
overflow: hidden;
}
.keyed-histogram {
white-space: nowrap;
padding: 15px;
position: relative; /* required for position:absolute of the contained .copy-node */
overflow: hidden;
}
.keyed-histogram-title {
text-overflow: ellipsis;
width: 100%;
margin: 10px;
font-weight: bold;
font-size: 120%;
white-space: nowrap;
}
.bar {
width: 2em;
margin: 2px;
text-align: center;
float: left;
font-family: monospace;
}
body[dir="rtl"] .bar {
float: right;
}
.bar-inner {
background-color: #0095DD;
border: 1px solid #00539F;
border-radius: 2px;
}
.bar:nth-child(even) .long-label {
margin-bottom: 1em;
}
th, td, table {
text-align: start;
border-collapse: collapse;
}
table {
width: 100%;
font-size: 15px;
}
td {
padding-bottom: 0.25em;
border-bottom: 1px solid var(--in-content-box-border-color);
}
tr:not(:first-child):hover {
background-color: rgba(0, 0, 0, 0.05);
}
th {
font-size: larger;
font-weight: bold;
white-space: nowrap;
padding-bottom: 0.5em;
}
body[dir="rtl"] th {
text-align: right;
}
caption {
font-weight: bold;
white-space: nowrap;
text-align: left;
font-size: large;
}
body[dir="rtl"] caption {
text-align: right;
}
.copy-node {
visibility: hidden;
position: absolute;
bottom: 1px;
right: 1px;
}
body[dir="rtl"] .copy-node {
left: 1px;
}
.histogram:hover .copy-node {
visibility: visible;
}
.statebox {
display: none;
}
.filter-ui {
padding-inline-start: 10em;
display: none;
}
.has-data.expanded .filter-ui {
display: inline;
}
.processes-ui {
display: none;
}
.has-data.expanded .processes-ui {
display: initial;
}
.filter-blocked {
display: none;
}
#raw-ping-data-section {
width: 100%;
height: 100%;
}
#raw-ping-data {
margin: 0px;
font-size: 15px;
}
#hide-raw-ping {
float: right;
cursor: pointer;
font-size: 20px;
background-color:#d8d8d8;
padding: 5px 10px;
}
caption {
font-size: larger;
margin: 5px 0;
}