publik-base-theme/static/portal-agent/css/agent-portal.scss

328 lines
5.4 KiB
SCSS

$font-color: #3c3c33;
$primary-color: #386ede;
$secondary-color: #00d6eb;
$cell-entry-color: #333;
$cell-entry-border: 1px solid #ccc;
$cell-entry-hover-color: $cell-entry-color;
$cell-entry-hover-background: #eee;
$mobile-limit: 760px;
div#main-content {
overflow-x: visible;
overflow-y: visible;
}
div#page-content.columns {
display: flex;
> div {
box-sizing: border-box;
width: 50%;
padding-right: 1rem;
@media screen and (max-width: $mobile-limit) {
width: auto;
padding: 0;
}
}
@media screen and (max-width: $mobile-limit) {
flex-direction: column;
}
}
div.welcome {
border: 1px solid #e4e4e4;
background: #fcfcfc;
padding: 1ex;
}
div.textcell {
clear: both;
}
#content div.cell.gauge {
width: 270px;
max-width: 32%;
float: left;
}
div.cell {
margin-bottom: 2rem;
}
.empty-cell {
display: none;
}
div.cell.gauge div.bo-block {
position: relative;
}
div.cell.gauge div.bo-block span.counter {
position: absolute;
top: 0.5ex;
right: 0.5ex;
font-size: 200%;
}
div.cell div.loading {
color: #444;
position: relative;
}
@-webkit-keyframes cell-loading-pulse {
to { width: 100%; }
}
@keyframes cell-loading-pulse {
to { width: 100%; }
}
div.ajax-loaded div.loading {
position: absolute;
width: 10%;
right: 0;
}
div.cell div.loading span {
position: relative;
z-index: 10;
padding: 0.5ex;
display: inline-block;
}
div.cell div.loading::after {
content: "";
position: absolute;
z-index: 0;
left: 0;
width: 0px;
background: #eee;
height: 100%;
-webkit-animation: cell-loading-pulse 2s linear infinite alternate;
animation: cell-loading-pulse 2s linear infinite alternate;
}
div.cell div.loading.error-loading {
background: #f44;
}
div.cell div.loading.error-loading::after {
content: none;
}
div.searchcell {
form {
position: relative;
display: flex;
flex-wrap: wrap;
input {
flex: 1 0 auto;
margin-right: 1rem;
}
&::after {
content: "";
display: block;
position: absolute;
bottom: 0;
left: 0;
height: 3px;
background: $primary-color;
width: 0%;
}
&.searching::after {
-webkit-animation: cell-loading-pulse 0.5s linear infinite alternate;
animation: cell-loading-pulse 0.5s linear infinite alternate;
}
}
div.links-list li {
&::before {
font-family: FontAwesome;
display: block;
position: absolute;
font-size: 1.5rem;
left: 0rem;
color: #555;
width: 3rem;
text-align: center;
padding-top: 1rem;
content: "\f0f6"; // file-text-o
}
padding-left: 3rem;
&.hidden {
display: none;
}
}
div.combo-search-results-users div.links-list li::before {
content: "\f007"; // user
}
div.combo-search-results-tracking-code div.links-list li::before {
content: "\f02a"; // barcode
}
div div.links-list li.see-more::before {
content: "\f067"; // plus
}
div.combo-search-results.expanded div.links-list {
li.hidden {
display: block;
}
li.see-more {
&::before {
content: "\f068"; // minus
}
}
}
}
div.links-list {
ul {
padding: 0;
margin: 0;
list-style: none;
position: relative;
z-index: 0;
& > li {
color: $cell-entry-color;
border-bottom: $cell-entry-border;
position: relative;
> h4 { // group titles
margin: 0;
font-size: 110%;
font-weight: normal;
color: $primary-color;
font-weight: bold;
padding: 1rem;
border-bottom: 1px solid $primary-color;
}
> a {
display: block;
padding: 1rem;
border: none;
&:not([href]) {
color: inherit;
}
}
&:hover {
color: $cell-entry-hover-color;
background-color: $cell-entry-hover-background;
}
div {
color: lighten($cell-entry-color, 20%);
}
a + div {
padding-left: 1rem;
margin-top: -0.9rem;
padding-bottom: 0.5rem;
}
}
}
}
div.backofficesubmissioncell div.links-list h4 {
background: url(/static/css/icons/categories.small.386ede.png) 5px center no-repeat;
background-size: 20px;
padding-left: 35px;
}
/* support foldable cells */
div.cell {
&.foldable {
> div > h2:first-child {
padding-right: 1em;
&::after {
font-family: FontAwesome;
content: "\f106"; /* angle-up */
position: absolute;
right: 0;
}
cursor: pointer;
}
}
&.foldable.folded {
> div > h2:first-child {
display: block;
&::after {
content: "\f107"; /* angle-down */
}
}
> div > * {
display: none;
}
}
}
div.card,
div.profile {
.label {
color: lighten($font-color, 10%);
font-size: 95%;
display: block;
margin-top: 0;
margin-bottom: 0.2em;
}
.value {
display: block;
margin-left: 0;
.nodata {
font-style: italic;
}
}
}
.cell-items-pagination {
display: flex;
margin-top: 1em;
justify-content: space-between;
}
.chartngcell .main td {
padding: 0.5em;
}
// wcs card cell, card mode
.wcs-card-cell.card-card {
fx-grid, [class*="fx-grid--"] {
align-items: baseline;
> div {
margin-bottom: 1rem;
}
}
h3 {
margin-top: 0;
margin-bottom: 0;
}
}
@media screen and (min-width: 1586px) {
div#page-content div.cubesbarchart {
width: 49.5%;
margin-right: 0.5%;
float: left;
height: 350px;
}
}
@media print {
div#page-content div.cubesbarchart {
float: none;
}
div.cubesbarchart:nth-child(2n) {
page-break-after: always;
}
}
#calls {
ul, li { margin: 0; padding: 0; list-style: none; }
ul { margin-bottom: 1em; }
li {
margin-bottom: 1ex;
}
.caller {
cursor: pointer;
&:hover {
text-decoration: underline;
}
}
}