tfjs/tfjs-backend-webgpu/benchmarks/main.css

236 lines
3.7 KiB
CSS

/* Copyright 2019 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
============================================================================== */
#container {
margin-left: auto;
margin-right: auto;
max-width: 960px;
}
.color {
display: inline-block;
height: 2px;
vertical-align: middle;
width: 20px;
}
.detail-panel {
height: 100%;
left: 0;
opacity: 0;
pointer-events: none;
position: absolute;
top: 0;
transition: opacity 250ms;
}
.detail-panel .contents {
background: rgba(255, 255, 255, 0.8);
padding: 0 7px;
}
.detail-panel .label-wrapper {
white-space: nowrap;
}
.detail-panel .line {
background: black;
height: 100%;
position: absolute;
top: 0;
width: 1px;
}
.edit-time-wrapper {
font-size: 16px;
line-height: 1.75;
}
.edit-time-wrapper .range {
margin: 30px 0 40px 0;
}
.edit-time-wrapper .range > * {
display: inline-block;
}
.edit-time-wrapper input {
font-size: 15px;
letter-spacing: 0.5px;
margin-right: 10px;
padding: 5px;
width: 100px;
}
.graph-container {
margin: 30px auto;
position: relative;
}
.graph-container:hover .detail-panel {
opacity: 1;
}
.instructions span {
font-weight: bold;
letter-spacing: 0.5px;
}
.label {
display: inline-block;
vertical-align: middle;
}
.modal-cancel-button {
margin-right: 15px;
}
.modal-contents {
background: white;
border: solid 1px #ccc;
left: 50%;
padding: 35px;
position: absolute;
top: 50%;
transform: translate3d(-50%, -50%, 0);
}
.modal-contents .controls {
text-align: right;
}
.show-modal + .time-selection-modal {
display: block;
}
.swatch {
display: inline-block;
margin-right: 10px;
}
.test {
margin: 50px auto 80px auto;
}
.time-selection {
margin: 50px 0 20px 0;
}
.time-selection .start-date,
.time-selection .end-date {
font-weight: bold;
letter-spacing: 0.5px;
}
.time-selection-edit-button {
margin-left: 15px;
}
.time-selection-edit-button,
.modal-cancel-button,
.modal-submit-button {
background: steelblue;
border-radius: 3px;
color: white;
cursor: pointer;
display: inline-block;
line-height: 1;
padding: 10px 15px;
text-transform: uppercase;
}
.time-selection-label {
font-size: 18px;
}
.time-selection-label,
.time-selection-edit-button,
.time-selection-label > * {
display: inline-block;
}
.time-selection-modal {
bottom: 0;
display: none;
left: 0;
position: fixed;
right: 0;
top: 0;
}
.time-selection-modal .modal-backdrop {
background: rgba(255, 255, 255, 0.75);
height: 100%;
width: 100%;
}
.x-axis-labels {
position: relative;
white-space: nowrap;
}
.x-label {
font-size: 10px;
position: absolute;
transform: translate3d(12px, 5px, 0) rotate(58deg);
transform-origin: top left;
}
.y-axis-labels {
position: absolute;
right: 100%;
text-align: right;
top: 0;
}
.y-max {
top: 0;
transform: translateY(-50%);
}
.y-max,
.y-min {
font-size: 11px;
position: absolute;
right: 8px;
}
.y-min {
bottom: 0;
transform: translateY(50%);
}
body {
background: #fafafa;
margin: 0;
padding: 20px;
}
h2 {
margin-bottom: 40px;
margin-top: 40px;
}
path {
fill: none;
stroke-width: 2px;
}
svg {
border-bottom: solid 1px #ccc;
border-left: solid 1px #ccc;
overflow: visible;
}