547 lines
10 KiB
CSS
547 lines
10 KiB
CSS
/* General Rules and Resets */
|
|
body {
|
|
inline-size: 300px;
|
|
max-inline-size: 300px;
|
|
}
|
|
|
|
html {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: inherit;
|
|
}
|
|
|
|
table {
|
|
border: 0;
|
|
border-spacing: 0;
|
|
inline-size: 100%;
|
|
margin-block-end: 0;
|
|
margin-block-start: 0;
|
|
margin-inline-end: 0;
|
|
margin-inline-start: 0;
|
|
}
|
|
|
|
/* Helper Classes */
|
|
.hide {
|
|
display: none !important;
|
|
}
|
|
|
|
.scrollable {
|
|
inline-size: 100%;
|
|
max-block-size: 400px;
|
|
overflow: auto;
|
|
}
|
|
|
|
/* Color and icon helpers */
|
|
[data-identity-color="blue"] {
|
|
--identity-tab-color: #0996f8;
|
|
--identity-icon-color: #00a7e0;
|
|
}
|
|
|
|
[data-identity-color="turquoise"] {
|
|
--identity-tab-color: #01bdad;
|
|
--identity-icon-color: #01bdad;
|
|
}
|
|
|
|
[data-identity-color="green"] {
|
|
--identity-tab-color: #57bd35;
|
|
--identity-icon-color: #7dc14c;
|
|
}
|
|
|
|
[data-identity-color="yellow"] {
|
|
--identity-tab-color: #ffcb00;
|
|
--identity-icon-color: #ffcb00;
|
|
}
|
|
|
|
[data-identity-color="orange"] {
|
|
--identity-tab-color: #ff9216;
|
|
--identity-icon-color: #ff9216;
|
|
}
|
|
|
|
[data-identity-color="red"] {
|
|
--identity-tab-color: #d92215;
|
|
--identity-icon-color: #d92215;
|
|
}
|
|
|
|
[data-identity-color="pink"] {
|
|
--identity-tab-color: #ea385e;
|
|
--identity-icon-color: #ee5195;
|
|
}
|
|
|
|
[data-identity-color="purple"] {
|
|
--identity-tab-color: #7a2f7a;
|
|
--identity-icon-color: #7a2f7a;
|
|
}
|
|
|
|
[data-identity-icon="fingerprint"] {
|
|
--identity-icon: url("/img/usercontext.svg#fingerprint");
|
|
}
|
|
|
|
[data-identity-icon="briefcase"] {
|
|
--identity-icon: url("/img/usercontext.svg#briefcase");
|
|
}
|
|
|
|
[data-identity-icon="dollar"] {
|
|
--identity-icon: url("/img/usercontext.svg#dollar");
|
|
}
|
|
|
|
[data-identity-icon="cart"] {
|
|
--identity-icon: url("/img/usercontext.svg#cart");
|
|
}
|
|
|
|
[data-identity-icon="circle"] {
|
|
--identity-icon: url("/img/usercontext.svg#circle");
|
|
}
|
|
|
|
/* Buttons */
|
|
.button.primary {
|
|
background-color: #0996f8;
|
|
color: white;
|
|
}
|
|
|
|
.button.primary:hover {
|
|
background-color: #0675d3;
|
|
}
|
|
|
|
.button.secondary:hover {
|
|
background-color: rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
/* Panels keep everything togethert */
|
|
.panel {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
min-block-size: 400px;
|
|
}
|
|
|
|
.panel.onboarding {
|
|
align-items: center;
|
|
block-size: 360px;
|
|
margin-block-end: 16px;
|
|
margin-block-start: 16px;
|
|
margin-inline-end: 16px;
|
|
margin-inline-start: 16px;
|
|
min-block-size: 360px;
|
|
}
|
|
|
|
.panel .columns {
|
|
display: flex;
|
|
flex: 1;
|
|
}
|
|
|
|
.panel-content {
|
|
flex: 1;
|
|
}
|
|
|
|
/* Column panels for edit screens */
|
|
.column-panel-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
inline-size: 268px;
|
|
}
|
|
|
|
.column-panel-content .panel-footer {
|
|
align-items: center;
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
.column-panel-content .button,
|
|
.panel-footer .button {
|
|
align-items: center;
|
|
block-size: 54px;
|
|
display: flex;
|
|
flex: 1;
|
|
justify-content: center;
|
|
}
|
|
|
|
/* Column panels have a special back arrow */
|
|
.panel-back-arrow {
|
|
align-items: center;
|
|
background: #ebebeb;
|
|
box-shadow: inset -2px 0 4px -2px rgba(0, 0, 0, 0.4);
|
|
display: flex;
|
|
flex: 0 0 32px;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
}
|
|
|
|
.panel-back-arrow:hover {
|
|
background: #dedede;
|
|
}
|
|
|
|
.back-arrow-img {
|
|
block-size: 16px;
|
|
inline-size: 16px;
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
/* Onboarding styles */
|
|
.onboarding * {
|
|
text-align: center;
|
|
}
|
|
|
|
.onboarding-img {
|
|
block-size: 132px;
|
|
inline-size: 180px;
|
|
}
|
|
|
|
.onboarding-title {
|
|
color: #43484e;
|
|
font-size: 16px;
|
|
margin-block-end: 0;
|
|
margin-block-start: 0;
|
|
margin-inline-end: 0;
|
|
margin-inline-start: 0;
|
|
max-inline-size: 80%;
|
|
}
|
|
|
|
.onboarding p {
|
|
color: #4a4a4a;
|
|
font-size: 14px;
|
|
margin-block-end: 16px;
|
|
max-inline-size: 84%;
|
|
}
|
|
|
|
.onboarding-button {
|
|
align-items: center;
|
|
background-color: #0996f8;
|
|
border-radius: 3px;
|
|
color: white;
|
|
display: flex;
|
|
flex: 0 0 44px;
|
|
font-size: 14px;
|
|
inline-size: 100%;
|
|
justify-content: center;
|
|
text-decoration: none;
|
|
transition: background-color 75ms;
|
|
}
|
|
|
|
.onboarding-button:hover {
|
|
background-color: #0675d3;
|
|
}
|
|
|
|
/* Pop buttons are the square shaped buttons used to
|
|
manage things like container crud */
|
|
.pop-button {
|
|
align-items: center;
|
|
block-size: 48px;
|
|
display: flex;
|
|
flex: 0 0 48px;
|
|
justify-content: center;
|
|
}
|
|
|
|
.pop-button:hover,
|
|
.panel-footer-secondary:hover {
|
|
background-color: rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.pop-button:active,
|
|
.panel-footer-secondary:active {
|
|
background-color: rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
.pop-button-image {
|
|
block-size: 20px;
|
|
flex: 0 0 20px;
|
|
}
|
|
|
|
.pop-button-image-small {
|
|
block-size: 12px;
|
|
flex: 0 0 12px;
|
|
}
|
|
|
|
/* Panel Header */
|
|
.panel-header {
|
|
align-items: center;
|
|
block-size: 48px;
|
|
border-block-end: 1px solid #ebebeb;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.column-panel-content .panel-header {
|
|
flex: 0 0 48px;
|
|
inline-size: 100%;
|
|
}
|
|
|
|
.panel-header-text {
|
|
color: #4a4a4a;
|
|
flex: 1;
|
|
font-size: 16px;
|
|
font-weight: normal;
|
|
margin-block-end: 0;
|
|
margin-block-start: 0;
|
|
margin-inline-end: 0;
|
|
margin-inline-start: 0;
|
|
padding-block-end: 16px;
|
|
padding-block-start: 16px;
|
|
padding-inline-end: 16px;
|
|
padding-inline-start: 16px;
|
|
}
|
|
|
|
span ~ .panel-header-text {
|
|
padding-block-end: 0;
|
|
padding-block-start: 0;
|
|
padding-inline-end: 0;
|
|
padding-inline-start: 0;
|
|
}
|
|
|
|
/* Rows used when iterating over panels */
|
|
.container-panel-row {
|
|
align-items: center;
|
|
background-color: #fefefe !important;
|
|
block-size: 48px;
|
|
border-block-end: 1px solid #f1f1f1;
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.container-panel-row .container-name {
|
|
max-inline-size: 160px;
|
|
overflow: hidden;
|
|
padding-inline-end: 4px;
|
|
padding-inline-start: 4px;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.edit-containers-panel .userContext-wrapper {
|
|
max-inline-size: 204px;
|
|
}
|
|
|
|
.userContext-wrapper {
|
|
align-items: center;
|
|
display: flex;
|
|
flex: 1 1;
|
|
transition: background-color 75ms;
|
|
}
|
|
|
|
.clickable.userContext-wrapper:hover {
|
|
background: #f2f2f2;
|
|
}
|
|
|
|
.userContext-icon-wrapper {
|
|
block-size: 48px;
|
|
flex: 0 0 48px;
|
|
}
|
|
|
|
/* .userContext-icon is used natively, Bug 1333811 was raised to fix */
|
|
.userContext-icon,
|
|
.usercontext-icon {
|
|
background-image: var(--identity-icon);
|
|
background-position: center center;
|
|
background-repeat: no-repeat;
|
|
background-size: 20px 20px;
|
|
block-size: 48px;
|
|
fill: var(--identity-icon-color);
|
|
filter: url('/img/filters.svg#fill');
|
|
flex: 0 0 48px;
|
|
}
|
|
|
|
.clickable:hover .userContext-icon,
|
|
.clickable:hover .usercontext-icon {
|
|
background-image: url('/img/container-newtab.svg');
|
|
fill: 'gray';
|
|
filter: url('/img/filters.svg#fill');
|
|
}
|
|
|
|
/* Panel Footer */
|
|
.panel-footer {
|
|
align-items: center;
|
|
background: #efefef;
|
|
block-size: 55px;
|
|
border-block-end: 1px solid #d8d8d8;
|
|
color: #000;
|
|
display: flex;
|
|
font-size: 13px;
|
|
inline-size: 100%;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.panel-footer .pop-button {
|
|
block-size: 54px;
|
|
flex: 0 0 54px;
|
|
}
|
|
|
|
.edit-containers-text {
|
|
align-items: center;
|
|
block-size: 54px;
|
|
border-inline-end: solid 1px #d8d8d8;
|
|
display: flex;
|
|
flex: 1;
|
|
justify-content: center;
|
|
}
|
|
|
|
.edit-containers-text a {
|
|
align-items: center;
|
|
block-size: 54px;
|
|
color: #0a0a0a;
|
|
display: flex;
|
|
flex: 1;
|
|
justify-content: center;
|
|
}
|
|
|
|
/* Container info list */
|
|
#container-info-hideorshow {
|
|
margin-block-start: 4px;
|
|
}
|
|
|
|
.container-info-tab-row:not(.clickable) {
|
|
opacity: 0.3;
|
|
}
|
|
|
|
.container-info-has-tabs,
|
|
.container-info-tab-row {
|
|
align-items: center;
|
|
display: flex;
|
|
flex: 0 0 28px;
|
|
font-size: 14px;
|
|
justify-content: flex-start;
|
|
margin-block-end: 0;
|
|
margin-block-start: 0;
|
|
margin-inline-end: 0;
|
|
margin-inline-start: 0;
|
|
padding-inline-end: 16px;
|
|
padding-inline-start: 16px;
|
|
}
|
|
|
|
.container-info-has-tabs img,
|
|
.container-info-tab-row img {
|
|
block-size: 16px;
|
|
flex: 0 0 16px;
|
|
margin-inline-end: 4px;
|
|
}
|
|
|
|
.container-info-tab-row img[src=""] {
|
|
margin-inline-end: 0;
|
|
}
|
|
|
|
.container-info-tab-row td {
|
|
max-inline-size: 200px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.container-info-list {
|
|
border-block-start: 1px solid #ebebeb;
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin-block-start: 4px;
|
|
padding-block-start: 4px;
|
|
}
|
|
|
|
.clickable {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.clickable:hover {
|
|
background-color: #ebebeb;
|
|
}
|
|
|
|
.edit-containers-exit-text {
|
|
align-items: center;
|
|
background: #248aeb;
|
|
block-size: 100%;
|
|
color: #fff;
|
|
display: flex;
|
|
flex: 1;
|
|
justify-content: center;
|
|
}
|
|
|
|
.exit-edit-mode-link::before {
|
|
background: url('/img/container-arrow.svg') no-repeat;
|
|
block-size: 16px;
|
|
content: "";
|
|
display: block;
|
|
filter: grayscale(100%) brightness(5);
|
|
float: left;
|
|
inline-size: 16px;
|
|
margin-inline-end: 5px;
|
|
transform: scaleX(-1);
|
|
}
|
|
|
|
.delete-container-confirm {
|
|
padding-inline-end: 20px;
|
|
padding-inline-start: 20px;
|
|
}
|
|
|
|
.delete-container-confirm-title {
|
|
color: #000;
|
|
font-size: 16px;
|
|
}
|
|
|
|
/* Form info */
|
|
.column-panel-content form {
|
|
flex: 1;
|
|
padding-block-end: 16px;
|
|
padding-block-start: 16px;
|
|
padding-inline-end: 16px;
|
|
padding-inline-start: 16px;
|
|
}
|
|
|
|
.column-panel-content form span {
|
|
align-items: center;
|
|
block-size: 44px;
|
|
display: flex;
|
|
flex: 0 0 25%;
|
|
justify-content: center;
|
|
}
|
|
|
|
.edit-container-panel label {
|
|
background-image: var(--identity-icon);
|
|
background-size: 26px 26px;
|
|
block-size: 34px;
|
|
fill: var(--identity-icon-color);
|
|
filter: url('/img/filters.svg#fill');
|
|
flex: 0 0 34px;
|
|
position: relative;
|
|
}
|
|
|
|
.edit-container-panel label::before {
|
|
opacity: 0 !important;
|
|
}
|
|
|
|
.edit-container-panel [type="radio"]:checked + label {
|
|
outline: 2px solid grey;
|
|
-moz-outline-radius: 50px;
|
|
}
|
|
|
|
.edit-container-panel fieldset {
|
|
background: none;
|
|
border: none;
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
inline-size: 100%;
|
|
margin-block-end: 10px;
|
|
margin-inline-end: 0;
|
|
margin-inline-start: 0;
|
|
padding-block-end: 0;
|
|
padding-block-start: 0;
|
|
padding-inline-end: 0;
|
|
padding-inline-start: 0;
|
|
}
|
|
|
|
.edit-container-panel input[type="text"] {
|
|
block-size: 36px;
|
|
border-radius: 3px;
|
|
font-size: 14px;
|
|
inline-size: 100%;
|
|
padding-block-end: 5px;
|
|
padding-block-start: 5px;
|
|
padding-inline-end: 5px;
|
|
padding-inline-start: 5px;
|
|
}
|
|
|
|
.edit-container-panel legend {
|
|
flex: 1 0;
|
|
font-size: 14px !important;
|
|
padding-block-end: 5px;
|
|
}
|