2021-02-03 09:55:01 +00:00
|
|
|
@import "./globals.mixins.ionic.scss";
|
|
|
|
|
2021-02-03 09:30:07 +00:00
|
|
|
// Common styles.
|
|
|
|
.text-left { text-align: left; }
|
|
|
|
.text-right { text-align: right; }
|
|
|
|
.text-center { text-align: center; }
|
|
|
|
.text-justify { text-align: justify; }
|
|
|
|
.clearfix {
|
2021-01-27 16:04:21 +00:00
|
|
|
&:after {
|
2021-02-03 09:30:07 +00:00
|
|
|
content: "";
|
|
|
|
display: table;
|
|
|
|
clear: both;
|
2021-01-27 16:04:21 +00:00
|
|
|
}
|
2021-02-03 09:30:07 +00:00
|
|
|
}
|
|
|
|
.img-responsive {
|
2021-01-27 16:04:21 +00:00
|
|
|
display: block;
|
|
|
|
max-width: 100%;
|
|
|
|
&[height] {
|
2021-02-03 09:30:07 +00:00
|
|
|
height: auto;
|
2021-01-27 16:04:21 +00:00
|
|
|
}
|
2021-02-03 09:30:07 +00:00
|
|
|
}
|
2021-01-27 16:04:21 +00:00
|
|
|
|
2021-02-03 09:30:07 +00:00
|
|
|
.opacity-hide { opacity: 0; }
|
|
|
|
.core-big { font-size: 115%; }
|
|
|
|
.invisible { visibility: hidden; }
|
2021-01-27 16:04:21 +00:00
|
|
|
|
2021-02-03 09:30:07 +00:00
|
|
|
.button-no-uppercase {
|
2021-01-27 16:04:21 +00:00
|
|
|
text-transform: none;
|
2021-02-03 09:30:07 +00:00
|
|
|
}
|
2021-01-27 16:04:21 +00:00
|
|
|
|
2020-11-04 15:16:57 +00:00
|
|
|
// Correctly inherit ion-text-wrap onto labels.
|
|
|
|
ion-item.ion-text-wrap ion-label {
|
|
|
|
white-space: normal !important;
|
|
|
|
}
|
|
|
|
|
2021-02-05 14:08:21 +00:00
|
|
|
// It fixes the click on links where ion-ripple-effect is present.
|
|
|
|
.ion-activatable ion-label,
|
|
|
|
.item-multiple-items ion-label {
|
|
|
|
z-index: 3;
|
|
|
|
pointer-events: none;
|
|
|
|
ion-anchor, ion-button, a, button {
|
|
|
|
pointer-events: visible;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-22 09:17:21 +00:00
|
|
|
|
2020-10-29 10:42:50 +00:00
|
|
|
// Ionic toolbar.
|
2020-10-22 09:17:21 +00:00
|
|
|
ion-toolbar ion-back-button,
|
|
|
|
ion-toolbar .in-toolbar.button-clear {
|
|
|
|
--color: var(--ion-color-primary-contrast);
|
2020-12-14 13:50:37 +00:00
|
|
|
--ion-toolbar-color: var(--ion-color-primary-contrast);
|
2020-10-22 09:17:21 +00:00
|
|
|
}
|
2020-10-28 16:24:51 +00:00
|
|
|
|
2020-11-20 12:59:20 +00:00
|
|
|
ion-toolbar .core-navbar-button-hidden {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
|
2020-10-29 10:42:50 +00:00
|
|
|
// Ionic icon.
|
2020-10-28 16:24:51 +00:00
|
|
|
ion-icon {
|
|
|
|
&.icon-slash::after,
|
|
|
|
&.icon-backslash::after {
|
|
|
|
content: " ";
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
background-color: var(--ion-color-danger);
|
|
|
|
-webkit-mask: url("/assets/fonts/font-awesome/solid/slash.svg") no-repeat 50% 50%;
|
|
|
|
mask: url("/assets/fonts/font-awesome/solid/slash.svg") no-repeat 50% 50%;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.icon-slash::after {
|
|
|
|
-webkit-transform: scale(-1, 1);
|
|
|
|
transform: scale(-1, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.fa-fw {
|
|
|
|
text-align: center;
|
|
|
|
width: 1.25em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-26 11:21:40 +00:00
|
|
|
[dir=rtl] ion-icon.icon-flip-rtl {
|
|
|
|
transform: scaleX(-1);
|
|
|
|
}
|
|
|
|
|
2020-10-29 10:42:50 +00:00
|
|
|
// Ionic alert.
|
|
|
|
ion-alert.core-alert-network-error .alert-head {
|
|
|
|
position: relative;
|
|
|
|
content: " ";
|
|
|
|
background: url("/assets/fonts/font-awesome/solid/wifi.svg") no-repeat 50% 50%;
|
|
|
|
margin: 25px auto;
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
content: " ";
|
|
|
|
position: absolute;
|
|
|
|
top: -20%;
|
|
|
|
right: -15%;
|
|
|
|
width: 50%;
|
|
|
|
height: 50%;
|
|
|
|
background-color: var(--ion-color-danger);
|
|
|
|
-webkit-mask: url("/assets/fonts/font-awesome/solid/exclamation-triangle.svg") no-repeat 50% 50%;
|
|
|
|
mask: url("/assets/fonts/font-awesome/solid/exclamation-triangle.svg") no-repeat 50% 50%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
[dir=rtl] ion-alert.core-alert-network-error .alert-head::after {
|
|
|
|
right: unset;
|
|
|
|
left: -15%;
|
|
|
|
}
|
2020-11-20 10:59:36 +00:00
|
|
|
ion-alert.core-nohead {
|
|
|
|
.alert-head {
|
|
|
|
padding-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
2020-10-29 10:42:50 +00:00
|
|
|
|
|
|
|
// Ionic item divider.
|
|
|
|
ion-item-divider {
|
2020-12-07 16:04:31 +00:00
|
|
|
.item-detail-icon {
|
|
|
|
font-size: 20px;
|
|
|
|
opacity: 0.25;
|
|
|
|
padding-inline-end: 16px;
|
|
|
|
}
|
2020-10-29 10:42:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Ionic list.
|
|
|
|
ion-list.list-md {
|
2020-12-10 10:45:27 +00:00
|
|
|
padding: 0;
|
2020-10-29 10:42:50 +00:00
|
|
|
}
|
2020-10-27 10:44:35 +00:00
|
|
|
|
2020-11-20 10:59:36 +00:00
|
|
|
// Header.
|
|
|
|
ion-tabs.hide-header ion-header {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
ion-toolbar {
|
|
|
|
ion-spinner {
|
|
|
|
margin: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-27 10:44:35 +00:00
|
|
|
// Modals.
|
|
|
|
.core-modal-fullscreen .modal-wrapper {
|
|
|
|
position: absolute;
|
|
|
|
// @todo @include position(0 !important, null, null, 0 !important);
|
|
|
|
display: block;
|
|
|
|
width: 100% !important;
|
|
|
|
height: 100% !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.core-modal-force-on-top {
|
|
|
|
z-index: 100000 !important;
|
|
|
|
}
|
2020-10-27 14:05:11 +00:00
|
|
|
|
2021-02-03 09:55:01 +00:00
|
|
|
@media only screen and (min-height: 400px) and (min-width: 300px) {
|
|
|
|
.core-modal-lateral {
|
|
|
|
// @todo @include core-split-area-end();
|
|
|
|
|
|
|
|
.modal-wrapper {
|
|
|
|
position: absolute;
|
|
|
|
@include position(0 !important, 0 !important, 0 !important, auto);
|
|
|
|
display: block;
|
|
|
|
height: 100% !important;
|
|
|
|
width: auto;
|
|
|
|
min-width: 300px;
|
|
|
|
box-shadow: 0 28px 48px rgba(0, 0, 0, 0.4);
|
|
|
|
}
|
|
|
|
ion-backdrop {
|
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-27 14:05:11 +00:00
|
|
|
// Hidden submit button.
|
|
|
|
.core-submit-hidden-enter {
|
|
|
|
position: absolute;
|
|
|
|
visibility: hidden;
|
|
|
|
left: -1000px;
|
|
|
|
}
|
2020-10-29 12:45:55 +00:00
|
|
|
|
|
|
|
// Note on foot of ion-input.
|
|
|
|
.item .core-input-footnote {
|
|
|
|
width: 100%;
|
|
|
|
font-style: italic;
|
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
font-size: 14px;
|
|
|
|
}
|
2020-11-04 15:16:57 +00:00
|
|
|
|
2021-01-26 17:30:00 +00:00
|
|
|
.core-selected-item {
|
|
|
|
border-inline-start: var(--selected-item-border-width) solid var(--selected-item-color);
|
|
|
|
}
|
|
|
|
|
2020-11-12 08:53:56 +00:00
|
|
|
// Item styles
|
|
|
|
.item.core-selected-item {
|
2021-01-26 17:30:00 +00:00
|
|
|
// TODO: Add safe area to border and RTL
|
2020-11-12 08:53:56 +00:00
|
|
|
--ion-safe-area-left: calc(-1 * var(--selected-item-border-width));
|
|
|
|
}
|
|
|
|
|
2020-11-12 11:10:51 +00:00
|
|
|
.item.item-file {
|
|
|
|
ion-thumbnail {
|
|
|
|
--size: 32px;
|
|
|
|
width: var(--size);
|
|
|
|
height: var(--size);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.item.core-primary-item,
|
|
|
|
.item.core-info-item,
|
|
|
|
.item.core-secondary-item,
|
|
|
|
.item.core-tertiary-item,
|
|
|
|
.item.core-success-item,
|
|
|
|
.item.core-warning-item,
|
|
|
|
.item.core-danger-item {
|
|
|
|
--inner-border-width: 0 0 3px 0;
|
|
|
|
}
|
|
|
|
.item.core-primary-item {
|
|
|
|
--border-color: var(--ion-color-primary);
|
|
|
|
}
|
|
|
|
.item.core-info-item,
|
|
|
|
.item.core-secondary-item {
|
|
|
|
--border-color: var(--ion-color-secondary);
|
|
|
|
}
|
|
|
|
.item.core-tertiary-item {
|
|
|
|
--border-color: var(--ion-color-tertiary);
|
|
|
|
}
|
|
|
|
.item.core-success-item {
|
|
|
|
--border-color: var(--ion-color-success);
|
|
|
|
}
|
|
|
|
.item.core-warning-item {
|
|
|
|
--border-color: var(--ion-color-warning);
|
|
|
|
}
|
|
|
|
.item.core-danger-item {
|
|
|
|
--border-color: var(--ion-color-danger);
|
|
|
|
}
|
2021-01-18 15:16:18 +00:00
|
|
|
.item-dimmed {
|
2021-01-27 16:04:21 +00:00
|
|
|
opacity: 0.7;
|
|
|
|
--background: var(--gray-lighter);
|
2021-01-18 15:16:18 +00:00
|
|
|
}
|
2020-11-12 11:10:51 +00:00
|
|
|
|
2021-01-12 09:38:34 +00:00
|
|
|
// Extra text colors.
|
|
|
|
.text-gray {
|
|
|
|
color: var(--gray-dark);
|
|
|
|
}
|
|
|
|
|
2020-11-12 11:10:51 +00:00
|
|
|
// Card styles
|
|
|
|
|
|
|
|
// Message cards.
|
|
|
|
ion-card.core-primary-card,
|
|
|
|
ion-card.core-info-card,
|
|
|
|
ion-card.core-secondary-card,
|
|
|
|
ion-card.core-tertiary-card,
|
|
|
|
ion-card.core-success-card,
|
|
|
|
ion-card.core-warning-card,
|
|
|
|
ion-card.core-danger-card {
|
|
|
|
border-bottom: 3px solid transparent;
|
2020-12-14 13:50:37 +00:00
|
|
|
ion-item::part(native) {
|
|
|
|
--inner-border-width: 0;
|
|
|
|
}
|
|
|
|
ion-label {
|
|
|
|
white-space: normal !important;
|
|
|
|
}
|
2020-11-12 11:10:51 +00:00
|
|
|
}
|
|
|
|
ion-card.core-primary-card {
|
|
|
|
border-bottom-color: var(--ion-color-primary);
|
2020-12-14 13:50:37 +00:00
|
|
|
ion-icon {
|
|
|
|
color: var(--ion-color-primary);
|
|
|
|
}
|
2020-11-12 11:10:51 +00:00
|
|
|
}
|
|
|
|
ion-card.core-info-card,
|
|
|
|
ion-card.core-secondary-card {
|
|
|
|
border-bottom-color: var(--ion-color-secondary);
|
2020-12-14 13:50:37 +00:00
|
|
|
ion-icon {
|
|
|
|
color: var(--ion-color-secondary);
|
|
|
|
}
|
2020-11-12 11:10:51 +00:00
|
|
|
}
|
|
|
|
ion-card.core-tertiary-card {
|
|
|
|
border-bottom-color: var(--ion-color-tertiary);
|
2020-12-14 13:50:37 +00:00
|
|
|
ion-icon {
|
|
|
|
color: var(--ion-color-tertiary);
|
|
|
|
}
|
2020-11-12 11:10:51 +00:00
|
|
|
}
|
|
|
|
ion-card.core-success-card {
|
|
|
|
border-bottom-color: var(--ion-color-success);
|
2020-12-14 13:50:37 +00:00
|
|
|
ion-icon {
|
|
|
|
color: var(--ion-color-success);
|
|
|
|
}
|
2020-11-12 11:10:51 +00:00
|
|
|
}
|
|
|
|
ion-card.core-warning-card {
|
|
|
|
border-bottom-color: var(--ion-color-warning);
|
2020-12-14 13:50:37 +00:00
|
|
|
ion-icon {
|
|
|
|
color: var(--ion-color-warning);
|
|
|
|
}
|
2020-11-12 11:10:51 +00:00
|
|
|
}
|
|
|
|
ion-card.core-danger-card {
|
|
|
|
border-bottom-color: var(--ion-color-danger);
|
2020-12-14 13:50:37 +00:00
|
|
|
ion-icon {
|
|
|
|
color: var(--ion-color-danger);
|
|
|
|
}
|
2020-11-12 11:10:51 +00:00
|
|
|
}
|
|
|
|
|
2020-11-04 15:16:57 +00:00
|
|
|
// Avatar
|
|
|
|
// -------------------------
|
|
|
|
// Large centered avatar
|
2020-12-04 14:23:00 +00:00
|
|
|
img.large-avatar,
|
|
|
|
.large-avatar img {
|
2020-11-04 15:16:57 +00:00
|
|
|
display: block;
|
2020-12-11 15:08:35 +00:00
|
|
|
margin: 8px auto;
|
2020-12-04 14:23:00 +00:00
|
|
|
width: var(--core-large-avatar-size);
|
|
|
|
height: var(--core-large-avatar-size);
|
|
|
|
max-width: var(--core-large-avatar-size);
|
|
|
|
max-height: var(--core-large-avatar-size);
|
2020-11-04 15:16:57 +00:00
|
|
|
margin-bottom: 10px;
|
|
|
|
border-radius : 50%;
|
|
|
|
padding: 4px;
|
|
|
|
border: 1px solid #ddd;
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
|
2020-12-04 14:23:00 +00:00
|
|
|
ion-avatar.large-avatar {
|
|
|
|
width: var(--core-large-avatar-size);
|
|
|
|
height: var(--core-large-avatar-size);
|
|
|
|
}
|
|
|
|
|
2020-11-04 15:16:57 +00:00
|
|
|
ion-avatar ion-img, ion-avatar img {
|
|
|
|
text-indent: -99999px;
|
2020-11-06 14:34:01 +00:00
|
|
|
background-color: var(--gray-light);
|
2020-11-04 15:16:57 +00:00
|
|
|
}
|
|
|
|
|
2021-01-27 09:34:03 +00:00
|
|
|
// Wait to load before showing the image.
|
|
|
|
img[core-external-content]:not([src]) {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
img[alt] {
|
|
|
|
text-indent: -999999px;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
2020-12-14 13:50:37 +00:00
|
|
|
// Activity modules
|
2021-01-26 17:30:00 +00:00
|
|
|
.core-module-icon {
|
|
|
|
width: auto;
|
|
|
|
max-width: 24px;
|
|
|
|
max-height: 24px;
|
|
|
|
}
|
|
|
|
|
2020-12-14 13:50:37 +00:00
|
|
|
ion-item img.core-module-icon[slot="start"] {
|
|
|
|
margin-top: 12px;
|
|
|
|
margin-bottom: 12px;
|
|
|
|
margin-right: 32px;
|
|
|
|
}
|
2021-01-26 17:30:00 +00:00
|
|
|
|
2020-12-14 13:50:37 +00:00
|
|
|
[dir=rtl] ion-item img.core-module-icon[slot="start"] {
|
|
|
|
margin-right: unset;
|
|
|
|
margin-left: 32px;
|
|
|
|
}
|
|
|
|
|
2021-01-22 16:06:30 +00:00
|
|
|
ion-toolbar ion-title img.core-bar-button-image,
|
|
|
|
ion-toolbar ion-title .core-bar-button-image img {
|
|
|
|
padding: 0;
|
|
|
|
width: var(--core-toolbar-button-image-width);
|
|
|
|
height: var(--core-toolbar-button-image-width);
|
|
|
|
max-width: var(--core-toolbar-button-image-width);
|
|
|
|
border-radius: 50%;
|
|
|
|
}
|
|
|
|
|
2020-11-04 16:37:02 +00:00
|
|
|
// Action sheet.
|
|
|
|
.md ion-action-sheet {
|
|
|
|
.action-sheet-group-cancel {
|
|
|
|
-webkit-filter: drop-shadow(0px 3px 3px rgba(var(--action-sheet-shadow-color)));
|
|
|
|
filter: drop-shadow(0px 3px 3px rgba(var(--action-sheet-shadow-color)));
|
|
|
|
}
|
|
|
|
|
|
|
|
.action-sheet-title {
|
|
|
|
border-bottom: 1px solid var(--title-border-color);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.ios ion-action-sheet {
|
|
|
|
.action-sheet-title {
|
|
|
|
font-size: 16px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-06 14:34:01 +00:00
|
|
|
// Select.
|
2021-02-05 14:08:21 +00:00
|
|
|
ion-select::part(text) {
|
|
|
|
white-space: normal;
|
|
|
|
}
|
|
|
|
|
2020-11-06 14:34:01 +00:00
|
|
|
ion-select.core-button-select,
|
|
|
|
.core-button-select {
|
2021-01-27 16:04:21 +00:00
|
|
|
--background: var(--core-button-select-background);
|
|
|
|
background: var(--background);
|
|
|
|
--color: var(--ion-color-primary);
|
|
|
|
color: var(--color);
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
2020-11-06 14:34:01 +00:00
|
|
|
min-height: 45px;
|
2021-01-27 16:04:21 +00:00
|
|
|
overflow: hidden;
|
2020-12-10 10:45:27 +00:00
|
|
|
margin: 8px;
|
|
|
|
box-shadow: 0 3px 1px -2px rgba(0, 0, 0, .2), 0 2px 2px 0 rgba(0, 0, 0, .14), 0 1px 5px 0 rgba(0, 0, 0, .12);
|
|
|
|
&::part(icon) {
|
|
|
|
margin: 0 8px;
|
|
|
|
}
|
2021-01-27 16:04:21 +00:00
|
|
|
.core-button-select-text {
|
|
|
|
margin-inline-end: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
ion-button.core-button-select {
|
|
|
|
&::part(native) {
|
|
|
|
text-transform: none;
|
|
|
|
font-weight: 400;
|
|
|
|
font-size: 16px;
|
|
|
|
}
|
|
|
|
ion-icon {
|
|
|
|
margin: 0 8px;
|
|
|
|
}
|
|
|
|
.select-icon {
|
|
|
|
width: 19px;
|
|
|
|
height: 19px;
|
|
|
|
position: relative;
|
|
|
|
opacity: 0.33;
|
|
|
|
|
|
|
|
.select-icon-inner {
|
|
|
|
left: 5px;
|
|
|
|
top: 50%;
|
|
|
|
margin-top: -2px;
|
|
|
|
position: absolute;
|
|
|
|
width: 0px;
|
|
|
|
height: 0px;
|
|
|
|
color: currentcolor;
|
|
|
|
pointer-events: none;
|
|
|
|
border-top: 5px solid;
|
|
|
|
border-right: 5px solid transparent;
|
|
|
|
border-left: 5px solid transparent;
|
|
|
|
}
|
|
|
|
}
|
2020-11-06 14:34:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// File uploader.
|
|
|
|
.action-sheet-button input.core-fileuploader-file-handler-input {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
min-width: 100%;
|
|
|
|
opacity: 0;
|
|
|
|
z-index: 100;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2020-11-17 10:00:46 +00:00
|
|
|
|
|
|
|
.core-anchor, core-format-text a {
|
|
|
|
color: -webkit-link;
|
|
|
|
cursor: pointer;
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
2020-12-10 13:43:15 +00:00
|
|
|
|
|
|
|
// Horizontal scrolling elements
|
|
|
|
.core-horizontal-scroll {
|
|
|
|
display: flex;
|
|
|
|
flex-flow: nowrap;
|
|
|
|
overflow-x: scroll;
|
|
|
|
flex-direction: row;
|
|
|
|
}
|
2021-01-18 14:19:30 +00:00
|
|
|
|
2021-01-21 14:00:38 +00:00
|
|
|
// Text formats.
|
|
|
|
// Highlight text.
|
|
|
|
.matchtext {
|
2021-02-03 09:30:07 +00:00
|
|
|
background-color: var(--text-hightlight-background-color);
|
2021-01-21 14:00:38 +00:00
|
|
|
}
|
|
|
|
|
2021-01-18 14:19:30 +00:00
|
|
|
// Text for accessibility, hidden from the view.
|
|
|
|
.accesshide {
|
|
|
|
position: absolute;
|
|
|
|
left: -10000px;
|
|
|
|
font-weight: normal;
|
|
|
|
font-size: 1em;
|
|
|
|
}
|