Files
tubestation/browser/components/payments/res/paymentRequest.css
2018-06-13 11:40:11 -07:00

122 lines
2.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/. */
html {
/* Based on global.css styles for top-level XUL windows */
color: -moz-DialogText;
font: message-box;
height: 100%;
}
body {
/* Override font-size from in-content/common.css which is too large */
font-size: inherit;
}
#order-details-overlay,
html {
/* Based on global.css styles for top-level XUL windows */
-moz-appearance: dialog;
background-color: -moz-Dialog;
}
body {
height: 100%;
margin: 0;
overflow: hidden;
}
[hidden] {
display: none !important;
}
#debugging-console {
/* include the default borders in the max-height */
box-sizing: border-box;
float: right;
/* avoid causing the body to scroll */
max-height: 100vh;
/* Float above the other overlays */
position: relative;
z-index: 99;
}
payment-dialog {
box-sizing: border-box;
display: grid;
grid-template-rows: fit-content(10%) auto;
height: 100%;
margin: 0 10%;
padding: 1em;
}
payment-dialog > header {
display: flex;
}
#main-container {
display: flex;
position: relative;
}
#payment-summary {
display: grid;
flex: 1 1 auto;
grid-template-rows: fit-content(10%) auto fit-content(10%);
position: relative;
}
#error-text {
text-align: center;
}
#order-details-overlay {
overflow: auto;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1;
}
payment-dialog > footer {
align-items: baseline;
display: flex;
}
#total {
flex: 1 1 auto;
margin: 5px;
}
#view-all {
flex: 0 1 auto;
}
#total .label {
font-size: 15px;
font-weight: bold;
}
payment-dialog[changes-prevented][completion-state="fail"] #pay,
payment-dialog[changes-prevented][completion-state="unknown"] #pay,
payment-dialog[changes-prevented][completion-state="processing"] #pay,
payment-dialog[changes-prevented][completion-state="success"] #pay {
/* Show the pay button above #disabled-overlay */
position: relative;
z-index: 1;
}
#disabled-overlay {
background: white;
opacity: 0.6;
width: 100%;
height: 100%;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}