2021-05-13 10:05:43 +00:00
|
|
|
@import "./globals.scss";
|
2021-02-03 09:55:01 +00:00
|
|
|
|
2021-10-07 09:26:08 +00:00
|
|
|
html.force-safe-area-margins {
|
|
|
|
--ion-safe-area-left: 40px;
|
|
|
|
--ion-safe-area-right: 40px;
|
|
|
|
--ion-safe-area-top: 40px;
|
|
|
|
--ion-safe-area-bottom: 40px;
|
|
|
|
}
|
|
|
|
|
|
|
|
// @todo MOBILE-3790 non-standard property, doesn't work everywhere.
|
|
|
|
html {
|
|
|
|
zoom: var(--zoom-level);
|
|
|
|
}
|
|
|
|
|
2021-06-15 15:41:53 +00:00
|
|
|
body {
|
2021-10-07 09:26:08 +00:00
|
|
|
-webkit-text-size-adjust: var(--zoom-level);
|
2021-06-15 15:41:53 +00:00
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|
2021-06-02 10:44:34 +00:00
|
|
|
|
|
|
|
.core-bold {
|
2021-03-04 13:43:23 +00:00
|
|
|
font-weight: bold;
|
2021-06-02 10:44:34 +00:00
|
|
|
}
|
2021-03-04 13:43:23 +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
|
|
|
|
2021-05-13 09:30:01 +00:00
|
|
|
.flex { display: flex; }
|
|
|
|
.inline-block { display: inline-block; }
|
|
|
|
.block { display: block; }
|
|
|
|
|
2021-02-23 11:21:12 +00:00
|
|
|
.flex-row {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
}
|
|
|
|
|
2021-05-05 15:43:40 +00:00
|
|
|
.margin-bottom-sm { margin-bottom: 8px; }
|
|
|
|
.margin-bottom-md { margin-bottom: 12px; }
|
|
|
|
|
|
|
|
.font-bold { font-weight: bold; }
|
|
|
|
.font-italic { font-style: italic; }
|
|
|
|
.font-lg { font-size: 1.7rem; }
|
|
|
|
.font-sm { font-size: 1.2rem; }
|
|
|
|
|
2023-12-12 11:51:59 +00:00
|
|
|
// Item Headings.
|
2021-05-21 07:24:09 +00:00
|
|
|
// Some styles taken from ion-label
|
2023-12-12 11:51:59 +00:00
|
|
|
.item > ion-label,
|
|
|
|
.fake-ion-item > ion-label,
|
|
|
|
ion-item .in-item {
|
|
|
|
p {
|
2021-06-02 10:44:34 +00:00
|
|
|
--color: var(--subdued-text-color);
|
2023-12-12 11:51:59 +00:00
|
|
|
color: var(--color);
|
|
|
|
@include margin(2px, 0);
|
|
|
|
font-size: 0.875rem;
|
2021-06-02 10:44:34 +00:00
|
|
|
}
|
2021-05-21 07:24:09 +00:00
|
|
|
|
2023-12-12 11:51:59 +00:00
|
|
|
.item-heading {
|
2021-05-21 07:24:09 +00:00
|
|
|
@include margin(2px, 0);
|
|
|
|
|
2023-12-12 11:51:59 +00:00
|
|
|
font-size: 1rem;
|
2021-05-21 07:24:09 +00:00
|
|
|
font-weight: normal;
|
|
|
|
|
2023-12-12 11:51:59 +00:00
|
|
|
text-overflow: inherit;
|
|
|
|
overflow: inherit;
|
|
|
|
--color: initial;
|
|
|
|
color: var(--color);
|
2021-05-21 07:24:09 +00:00
|
|
|
|
2023-12-12 11:51:59 +00:00
|
|
|
&.item-heading-secondary {
|
|
|
|
@include margin(2px, 0);
|
2021-05-21 07:24:09 +00:00
|
|
|
|
2023-12-12 11:51:59 +00:00
|
|
|
font-size: var(--text-size);
|
|
|
|
font-weight: normal;
|
|
|
|
line-height: normal;
|
2021-05-21 07:24:09 +00:00
|
|
|
|
2023-12-12 11:51:59 +00:00
|
|
|
--color: var(--subdued-text-color);
|
|
|
|
}
|
2021-05-21 07:24:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-04 15:16:57 +00:00
|
|
|
// Correctly inherit ion-text-wrap onto labels.
|
2023-12-12 11:51:59 +00:00
|
|
|
.item > ion-label,
|
|
|
|
.fake-ion-item {
|
|
|
|
core-format-text,
|
|
|
|
core-format-text > *:not(pre) {
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
2021-06-08 11:16:03 +00:00
|
|
|
}
|
|
|
|
|
2023-12-12 11:51:59 +00:00
|
|
|
.item.ion-text-wrap > ion-label,
|
|
|
|
ion-item > .in-item,
|
|
|
|
.fake-ion-item.ion-text-wrap {
|
|
|
|
core-format-text,
|
|
|
|
core-format-text > *:not(pre) {
|
|
|
|
white-space: normal;
|
|
|
|
overflow: inherit;
|
|
|
|
}
|
2021-06-09 08:28:45 +00:00
|
|
|
}
|
|
|
|
|
2022-02-04 12:33:51 +00:00
|
|
|
.item.ion-text-wrap > ion-label {
|
2020-11-04 15:16:57 +00:00
|
|
|
white-space: normal !important;
|
|
|
|
}
|
|
|
|
|
2023-12-12 15:23:14 +00:00
|
|
|
ion-item .core-input-errors-wrapper {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2022-02-03 14:28:40 +00:00
|
|
|
@each $color-name, $unused in $colors {
|
2021-03-15 17:30:31 +00:00
|
|
|
.text-#{$color-name},
|
|
|
|
p.text-#{$color-name} {
|
2022-02-24 15:44:24 +00:00
|
|
|
color: var(--ion-color-#{$color-name}) !important;
|
2021-03-15 17:30:31 +00:00
|
|
|
}
|
|
|
|
}
|
2020-10-22 09:17:21 +00:00
|
|
|
|
2021-05-27 10:12:15 +00:00
|
|
|
// Ionic toolbar on header.
|
2021-06-16 16:00:21 +00:00
|
|
|
ion-toolbar {
|
|
|
|
--min-height: var(--core-header-toolbar-height);
|
2021-05-20 08:55:02 +00:00
|
|
|
}
|
|
|
|
|
2022-02-16 11:58:54 +00:00
|
|
|
// Header.
|
|
|
|
ion-header {
|
2023-11-20 15:46:29 +00:00
|
|
|
z-index: 12; // To hide swiper-container on scroll.
|
2020-10-28 16:24:51 +00:00
|
|
|
|
2022-02-16 11:58:54 +00:00
|
|
|
ion-toolbar {
|
|
|
|
ion-spinner {
|
|
|
|
margin: 10px;
|
|
|
|
}
|
2021-05-06 08:56:20 +00:00
|
|
|
|
2022-02-16 11:58:54 +00:00
|
|
|
ion-back-button,
|
2022-03-10 09:00:20 +00:00
|
|
|
.in-toolbar.button-clear,
|
|
|
|
.in-toolbar.button-solid,
|
|
|
|
.button.button-clear,
|
|
|
|
.button.button-solid {
|
2022-03-23 15:33:00 +00:00
|
|
|
--color: var(--core-header-buttons-color);
|
2022-03-10 09:00:20 +00:00
|
|
|
--background: var(--core-header-buttons-background);
|
2022-03-23 15:33:00 +00:00
|
|
|
--ion-toolbar-color: var(--core-header-buttons-color);
|
2023-09-26 10:17:34 +00:00
|
|
|
--border-radius: var(--radius-xl);
|
2022-03-23 15:33:00 +00:00
|
|
|
--primary: var(--core-header-buttons-color);
|
2022-02-16 11:58:54 +00:00
|
|
|
}
|
2022-02-23 14:29:11 +00:00
|
|
|
ion-back-button::part(text) {
|
|
|
|
display: none;
|
|
|
|
}
|
2022-02-16 11:58:54 +00:00
|
|
|
|
2023-09-08 12:30:13 +00:00
|
|
|
// Style fake back button like the original ones.
|
|
|
|
ion-button.ion-back-button {
|
|
|
|
width: 48px !important;
|
|
|
|
}
|
|
|
|
|
2022-02-16 11:58:54 +00:00
|
|
|
.button.button-clear.button-has-icon-only,
|
|
|
|
.button.button-solid.button-has-icon-only {
|
|
|
|
width: var(--a11y-min-target-size);
|
|
|
|
height: var(--a11y-min-target-size);
|
|
|
|
ion-icon {
|
|
|
|
font-size: 24px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.core-navbar-button-hidden {
|
|
|
|
display: none !important;
|
|
|
|
}
|
2021-05-27 10:12:15 +00:00
|
|
|
}
|
2021-05-07 08:31:06 +00:00
|
|
|
|
2022-02-16 11:58:54 +00:00
|
|
|
ion-title {
|
|
|
|
@include padding(0, 16px);
|
2021-05-07 08:31:06 +00:00
|
|
|
|
2022-02-16 11:58:54 +00:00
|
|
|
h1, h2, .subheading {
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.filter_mathjaxloader_equation div {
|
|
|
|
display: inline !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
.core-header-logo {
|
|
|
|
max-height: var(--core-mainpage-headerlogo-maxheight);
|
|
|
|
display: var( --core-mainpage-headerlogo-display);
|
|
|
|
}
|
|
|
|
|
|
|
|
.core-header-sitename {
|
|
|
|
display: var(--core-mainpage-sitename-display);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
h1, h2, .subheading {
|
|
|
|
font-size: 20px;
|
|
|
|
font-weight: 500;
|
|
|
|
letter-spacing: .0125em;
|
|
|
|
text-align: start;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
h1 + h2,
|
|
|
|
h1 + .subheading {
|
2022-03-30 12:20:12 +00:00
|
|
|
font-size: var(--text-size);
|
2022-02-16 11:58:54 +00:00
|
|
|
font-weight: 400;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.ios {
|
|
|
|
position: static;
|
|
|
|
width: auto;
|
|
|
|
height: auto;
|
|
|
|
left: auto;
|
|
|
|
right: auto;
|
|
|
|
top: auto;
|
|
|
|
text-align: start;
|
|
|
|
|
|
|
|
h1, h2, .subheading {
|
|
|
|
font-size: 17px;
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
|
|
|
|
h1 + h2,
|
|
|
|
h1 + .subheading {
|
2022-03-30 12:20:12 +00:00
|
|
|
font-size: var(--text-size);
|
2022-02-16 11:58:54 +00:00
|
|
|
font-weight: 400;
|
|
|
|
}
|
|
|
|
}
|
2021-05-27 10:12:15 +00:00
|
|
|
}
|
2020-11-20 12:59:20 +00:00
|
|
|
}
|
|
|
|
|
2022-02-16 11:58:54 +00:00
|
|
|
ion-tabs.hide-header ion-header {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2022-03-10 09:00:20 +00:00
|
|
|
ion-footer {
|
|
|
|
background-color: var(--contrast-background);
|
|
|
|
}
|
|
|
|
|
2020-10-29 10:42:50 +00:00
|
|
|
// Ionic icon.
|
2020-10-28 16:24:51 +00:00
|
|
|
ion-icon {
|
2021-06-01 10:04:01 +00:00
|
|
|
position: relative;
|
|
|
|
|
2020-10-28 16:24:51 +00:00
|
|
|
&.icon-slash::after,
|
|
|
|
&.icon-backslash::after {
|
|
|
|
content: " ";
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
2022-02-03 14:28:40 +00:00
|
|
|
background-color: var(--danger);
|
2020-10-28 16:24:51 +00:00
|
|
|
-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-05-06 09:33:10 +00:00
|
|
|
// Buttons.
|
2021-05-13 09:48:31 +00:00
|
|
|
ion-button,
|
|
|
|
ion-fab-button,
|
|
|
|
button,
|
|
|
|
[role="button"] {
|
2021-05-06 09:33:10 +00:00
|
|
|
min-height: var(--a11y-min-target-size);
|
|
|
|
min-width: var(--a11y-min-target-size);
|
|
|
|
}
|
|
|
|
|
2022-03-04 13:19:47 +00:00
|
|
|
ion-fab-button {
|
|
|
|
--box-shadow: 0 3px 5px -1px rgba(0, 0, 0, .2), 0 6px 10px 0 rgba(0, 0, 0, .14), 0 1px 18px 0 rgba(0, 0, 0, .12);
|
|
|
|
}
|
|
|
|
|
2022-02-02 15:13:10 +00:00
|
|
|
ion-button {
|
|
|
|
margin: 4px 8px;
|
2022-02-17 14:55:10 +00:00
|
|
|
|
2022-02-17 12:22:49 +00:00
|
|
|
ion-spinner[slot=start],
|
|
|
|
img[slot=start] {
|
2022-02-17 14:55:10 +00:00
|
|
|
@include margin-horizontal(-0.3em, 0.3em);
|
|
|
|
}
|
|
|
|
|
2022-02-17 12:22:49 +00:00
|
|
|
ion-spinner[slot=end],
|
|
|
|
img[slot=end] {
|
2022-02-17 14:55:10 +00:00
|
|
|
@include margin-horizontal(-0.3em, 0.3em);
|
|
|
|
}
|
2022-02-17 12:58:10 +00:00
|
|
|
|
|
|
|
ion-spinner[slot] {
|
|
|
|
width: 20px;
|
|
|
|
color: inherit;
|
|
|
|
}
|
2022-02-02 15:13:10 +00:00
|
|
|
}
|
|
|
|
|
2022-02-09 21:43:09 +00:00
|
|
|
ion-button.button-outline {
|
2022-02-02 15:13:10 +00:00
|
|
|
--border-width: var(--core-input-border-width);
|
|
|
|
--border-color: var(--core-input-stroke);
|
|
|
|
--background: var(--core-input-background);
|
2022-03-04 12:01:57 +00:00
|
|
|
--color: var(--core-input-text);
|
|
|
|
--ion-color-primary: var(--core-input-text);
|
2022-11-23 08:46:08 +00:00
|
|
|
&.ios {
|
|
|
|
--color-activated: var(--contrast-background);
|
|
|
|
}
|
2022-02-09 21:43:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ion-button.button-solid {
|
|
|
|
--box-shadow: none;
|
|
|
|
}
|
|
|
|
|
2022-03-17 08:51:17 +00:00
|
|
|
ion-button core-format-text {
|
2022-02-09 21:43:09 +00:00
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
display: block;
|
|
|
|
line-height: 1.2;
|
|
|
|
}
|
|
|
|
|
|
|
|
ion-button > * {
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
|
|
|
ion-button.ion-text-wrap {
|
|
|
|
white-space: normal;
|
2022-03-17 08:51:17 +00:00
|
|
|
core-format-text {
|
2022-02-09 21:43:09 +00:00
|
|
|
white-space: normal;
|
|
|
|
display: contents;
|
|
|
|
}
|
|
|
|
|
|
|
|
& > * {
|
|
|
|
white-space: normal;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ion-button ion-spinner {
|
|
|
|
--color: inherit !important;
|
|
|
|
}
|
|
|
|
|
2022-02-16 10:45:20 +00:00
|
|
|
ion-button.button-has-icon-only {
|
|
|
|
margin: 2px;
|
|
|
|
}
|
|
|
|
|
2022-02-09 21:43:09 +00:00
|
|
|
ion-button:not(.button-has-icon-only):not(.button-small) > ion-icon {
|
|
|
|
min-width: 20px;
|
|
|
|
}
|
|
|
|
|
2022-02-04 12:33:51 +00:00
|
|
|
ion-button.button.button-clear.button-has-icon-only {
|
2023-09-26 10:17:34 +00:00
|
|
|
--border-radius: var(--radius-xl);
|
2022-02-04 12:33:51 +00:00
|
|
|
}
|
|
|
|
|
2022-03-02 15:24:44 +00:00
|
|
|
ion-button.button.button-clear {
|
2022-03-04 12:01:57 +00:00
|
|
|
--color: var(--core-input-text);
|
|
|
|
--ion-color-primary: var(--core-input-text);
|
2022-03-02 15:24:44 +00:00
|
|
|
}
|
|
|
|
|
2022-02-09 21:43:09 +00:00
|
|
|
ion-button.button.button-solid,
|
|
|
|
ion-button.button.button-outline {
|
2022-02-02 15:13:10 +00:00
|
|
|
--border-radius: var(--core-input-radius);
|
2021-06-02 10:44:34 +00:00
|
|
|
}
|
|
|
|
|
2023-09-27 10:20:12 +00:00
|
|
|
ion-button .select-icon {
|
|
|
|
margin: var(--icon-margin);
|
|
|
|
width: 19px;
|
|
|
|
height: 19px;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
.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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-31 10:28:58 +00:00
|
|
|
[role="button"],
|
|
|
|
.clickable {
|
2021-05-06 09:33:10 +00:00
|
|
|
cursor: pointer;
|
|
|
|
|
2021-06-08 14:12:56 +00:00
|
|
|
|
2021-05-06 09:33:10 +00:00
|
|
|
[disabled],
|
|
|
|
[aria-disabled="true"] {
|
2021-06-08 14:12:56 +00:00
|
|
|
cursor: default;
|
|
|
|
opacity: .4;
|
|
|
|
pointer-events: none;
|
2021-05-06 09:33:10 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-06-08 14:12:56 +00:00
|
|
|
button[disabled] {
|
|
|
|
cursor: default;
|
|
|
|
opacity: .4;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
2021-05-10 09:52:41 +00:00
|
|
|
ion-button.core-button-as-link {
|
2021-05-06 09:33:10 +00:00
|
|
|
text-transform: none;
|
|
|
|
text-decoration: underline;
|
2021-05-10 09:52:41 +00:00
|
|
|
font-size: inherit;
|
|
|
|
font-weight: normal;
|
|
|
|
letter-spacing: normal;
|
|
|
|
white-space: break-spaces;
|
2021-05-06 09:33:10 +00:00
|
|
|
}
|
|
|
|
|
2021-05-31 10:28:58 +00:00
|
|
|
button.as-link {
|
|
|
|
display: inline;
|
|
|
|
min-height: auto;
|
|
|
|
min-width: auto;
|
|
|
|
color: var(--core-link-color);
|
|
|
|
background: none;
|
|
|
|
border: 0;
|
|
|
|
line-height: inherit;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
text-align: start;
|
|
|
|
font-size: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-10-29 10:42:50 +00:00
|
|
|
// Ionic alert.
|
2021-02-26 07:41:00 +00:00
|
|
|
ion-alert.core-alert-network-error .alert-head,
|
|
|
|
div.core-iframe-network-error {
|
2020-10-29 10:42:50 +00:00
|
|
|
position: relative;
|
|
|
|
content: " ";
|
|
|
|
background: url("/assets/fonts/font-awesome/solid/wifi.svg") no-repeat 50% 50%;
|
|
|
|
margin: 25px auto;
|
|
|
|
|
2022-11-14 10:23:33 +00:00
|
|
|
h2 {
|
|
|
|
@include sr-only();
|
|
|
|
}
|
|
|
|
|
2020-10-29 10:42:50 +00:00
|
|
|
&::after {
|
|
|
|
content: " ";
|
|
|
|
position: absolute;
|
|
|
|
top: -20%;
|
|
|
|
right: -15%;
|
|
|
|
width: 50%;
|
|
|
|
height: 50%;
|
2022-02-03 14:28:40 +00:00
|
|
|
background-color: var(--danger);
|
2023-05-08 05:50:05 +00:00
|
|
|
-webkit-mask: url("/assets/fonts/font-awesome/solid/triangle-exclamation.svg") no-repeat 50% 50%;
|
|
|
|
mask: url("/assets/fonts/font-awesome/solid/triangle-exclamation.svg") no-repeat 50% 50%;
|
2020-10-29 10:42:50 +00:00
|
|
|
}
|
|
|
|
}
|
2021-06-02 10:44:34 +00:00
|
|
|
|
2021-02-26 07:41:00 +00:00
|
|
|
[dir=rtl] ion-alert.core-alert-network-error .alert-head::after,
|
|
|
|
[dir=rtl] div.core-iframe-network-error::after {
|
2020-10-29 10:42:50 +00:00
|
|
|
right: unset;
|
|
|
|
left: -15%;
|
|
|
|
}
|
2021-06-02 10:44:34 +00:00
|
|
|
|
2023-09-27 10:20:12 +00:00
|
|
|
ion-alert.core-nohead .alert-head,
|
|
|
|
ion-alert .alert-head:empty {
|
|
|
|
padding-bottom: 0;
|
2020-11-20 10:59:36 +00:00
|
|
|
}
|
2020-10-29 10:42:50 +00:00
|
|
|
|
2022-04-08 08:39:14 +00:00
|
|
|
@keyframes scaleFrom0 {
|
|
|
|
from {
|
|
|
|
/* More performant than animating `width` */
|
|
|
|
transform: scaleX(0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ion-alert .alert-button.timed-button{
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
top: 0;
|
|
|
|
background-color: var(--primary-tint);
|
|
|
|
animation: scaleFrom0 10s forwards linear;
|
|
|
|
transform-origin: left;
|
|
|
|
@include rtl() {
|
|
|
|
transform-origin: right;
|
|
|
|
}
|
|
|
|
z-index: -1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-28 10:34:03 +00:00
|
|
|
ion-alert {
|
2023-11-09 15:48:27 +00:00
|
|
|
--border-radius: var(--modal-radius);
|
2022-02-11 11:23:00 +00:00
|
|
|
|
|
|
|
&.md, &.ios {
|
|
|
|
--max-width: 80%;
|
|
|
|
|
|
|
|
@include media-breakpoint-up(md) {
|
|
|
|
--max-width: 384px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-28 10:34:03 +00:00
|
|
|
.alert-wrapper {
|
|
|
|
overflow: auto;
|
|
|
|
border-radius: var(--border-radius) !important;
|
|
|
|
|
2022-02-11 11:23:21 +00:00
|
|
|
button.alert-button.alert-button-role-destructive {
|
|
|
|
color: var(--danger);
|
2022-01-28 10:34:03 +00:00
|
|
|
}
|
2022-02-11 11:23:21 +00:00
|
|
|
|
2022-01-28 10:34:03 +00:00
|
|
|
}
|
2021-05-19 11:48:11 +00:00
|
|
|
|
2022-01-28 10:34:03 +00:00
|
|
|
.alert-message {
|
|
|
|
user-select: text;
|
|
|
|
flex-shrink: 0;
|
|
|
|
}
|
2021-06-02 10:44:34 +00:00
|
|
|
}
|
|
|
|
|
2022-02-17 12:22:49 +00:00
|
|
|
ion-loading {
|
2023-11-09 15:48:27 +00:00
|
|
|
--border-radius: var(--modal-radius);
|
2022-02-17 12:22:49 +00:00
|
|
|
|
|
|
|
.loading-wrapper {
|
|
|
|
border-radius: var(--border-radius) !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-22 22:25:05 +00:00
|
|
|
// Toasts.
|
|
|
|
ion-toast {
|
|
|
|
@include media-breakpoint-down(sm) {
|
|
|
|
&::part(container) {
|
|
|
|
flex-direction: column;
|
2022-04-04 12:34:02 +00:00
|
|
|
}
|
2022-02-22 22:25:05 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-04 08:42:18 +00:00
|
|
|
@each $color-name, $unused in $colors {
|
|
|
|
ion-toast.core-#{$color-name}-toast {
|
|
|
|
--background: var(--ion-color-#{$color-name}-tint);
|
|
|
|
--color: var(--ion-color-#{$color-name}-shade);
|
|
|
|
--button-color: var(--ion-color-#{$color-name}-shade);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-29 10:42:50 +00:00
|
|
|
// Ionic list.
|
2022-02-10 09:50:51 +00:00
|
|
|
ion-list {
|
2022-02-10 12:24:18 +00:00
|
|
|
padding: 0 !important;
|
2020-10-29 10:42:50 +00:00
|
|
|
}
|
2020-10-27 10:44:35 +00:00
|
|
|
|
2021-10-06 11:06:00 +00:00
|
|
|
// Safe areas
|
|
|
|
.safe-area-padding,
|
|
|
|
.safe-area-padding-horizontal {
|
|
|
|
@include padding-horizontal(var(--ion-safe-area-left), var(--ion-safe-area-right));
|
|
|
|
}
|
|
|
|
|
|
|
|
.safe-area-margin,
|
|
|
|
.safe-margin-horizontal {
|
|
|
|
@include margin-horizontal(var(--ion-safe-area-left), var(--ion-safe-area-right));
|
|
|
|
}
|
|
|
|
|
|
|
|
.ion-padding.safe-area-padding-horizontal {
|
|
|
|
@include safe-area-padding-horizontal(16px, 16px);
|
|
|
|
}
|
|
|
|
|
|
|
|
.ion-margin.safe-margin-horizontal {
|
|
|
|
@include safe-area-margin-horizontal(16px, 16px);
|
|
|
|
}
|
|
|
|
|
|
|
|
ion-tabs.placement-side .tabs-inner {
|
|
|
|
--ion-safe-area-left: 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
ion-tabs.placement-bottom .tabs-inner {
|
|
|
|
--ion-safe-area-bottom: 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
core-split-view.menu-and-content {
|
|
|
|
.menu {
|
|
|
|
--ion-safe-area-right: 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.content-outlet {
|
|
|
|
--ion-safe-area-left: 0px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-09-29 07:14:48 +00:00
|
|
|
// Iframe fullscreen manage.
|
|
|
|
// Using router outlet to avoid changing styles on modals.
|
|
|
|
body.core-iframe-fullscreen ion-router-outlet {
|
|
|
|
|
2022-11-23 10:46:39 +00:00
|
|
|
.core-course-header,
|
|
|
|
ion-tab-bar {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
|
2021-09-29 07:14:48 +00:00
|
|
|
ion-tab-bar.mainmenu-tabs {
|
|
|
|
display: none;
|
2021-10-06 11:06:00 +00:00
|
|
|
|
|
|
|
// Restore original safe area.
|
|
|
|
.tabs-inner {
|
|
|
|
@supports (padding-left: constant(safe-area-inset-left)) {
|
|
|
|
--ion-safe-area-left: constant(safe-area-inset-left);
|
|
|
|
}
|
2021-12-09 11:29:01 +00:00
|
|
|
|
2021-10-06 11:06:00 +00:00
|
|
|
@supports (padding-left: env(safe-area-inset-left)) {
|
|
|
|
--ion-safe-area-left: env(safe-area-inset-left);
|
|
|
|
}
|
|
|
|
}
|
2021-09-29 07:14:48 +00:00
|
|
|
}
|
|
|
|
|
2022-03-30 12:13:33 +00:00
|
|
|
.ion-page ion-header {
|
|
|
|
--core-header-toolbar-height: 48px;
|
|
|
|
--core-header-toolbar-color: white;
|
|
|
|
--core-header-toolbar-background: black;
|
|
|
|
--core-header-buttons-background: var(--core-header-toolbar-background);
|
|
|
|
--core-header-buttons-color: var(--core-header-toolbar-color);
|
|
|
|
--core-header-toolbar-border-width: 0px;
|
2021-09-29 07:14:48 +00:00
|
|
|
|
2022-03-30 12:13:33 +00:00
|
|
|
ion-toolbar {
|
|
|
|
h1, ion-back-button {
|
|
|
|
display: none;
|
|
|
|
}
|
2021-09-29 07:14:48 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (orientation: landscape) {
|
|
|
|
// Place ion-header on the side and hide text
|
|
|
|
.ion-page {
|
|
|
|
flex-direction: row-reverse;
|
|
|
|
ion-header {
|
2022-11-23 10:46:39 +00:00
|
|
|
width: calc(var(--core-header-toolbar-height) + var(--ion-safe-area-right));
|
2021-10-06 11:06:00 +00:00
|
|
|
@include safe-area-padding-horizontal(null, 0px);
|
|
|
|
background: var(--core-header-toolbar-background);
|
2021-09-29 07:14:48 +00:00
|
|
|
|
|
|
|
ion-toolbar {
|
2021-10-06 11:06:00 +00:00
|
|
|
padding: 0;
|
2021-09-29 07:14:48 +00:00
|
|
|
height: 100%;
|
2021-10-06 10:40:55 +00:00
|
|
|
--padding-start: 0px;
|
|
|
|
--padding-end: 0px;
|
2021-09-29 07:14:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ion-buttons {
|
|
|
|
flex-direction: column-reverse;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-11-23 10:46:39 +00:00
|
|
|
|
|
|
|
core-tabs-outlet {
|
|
|
|
width: 100%;
|
|
|
|
}
|
2021-09-29 07:14:48 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-27 10:44:35 +00:00
|
|
|
// Modals.
|
2023-11-16 14:22:30 +00:00
|
|
|
.core-modal-fullscreen::part(content) {
|
2020-10-27 10:44:35 +00:00
|
|
|
position: absolute;
|
2021-05-13 10:05:43 +00:00
|
|
|
@include position(0 !important, null, null, 0 !important);
|
2020-10-27 10:44:35 +00:00
|
|
|
display: block;
|
|
|
|
width: 100% !important;
|
|
|
|
height: 100% !important;
|
|
|
|
}
|
|
|
|
|
2021-12-14 14:13:55 +00:00
|
|
|
.core-modal-transparent {
|
|
|
|
|
2023-11-16 14:22:30 +00:00
|
|
|
&::part(backdrop) {
|
2021-12-14 14:13:55 +00:00
|
|
|
backdrop-filter: blur(8px);
|
|
|
|
}
|
|
|
|
|
2023-11-16 14:22:30 +00:00
|
|
|
&::part(content) {
|
2021-12-14 14:13:55 +00:00
|
|
|
backdrop-filter: blur(12px);
|
|
|
|
--background: rgba(10, 10, 10, 0.2);
|
|
|
|
|
|
|
|
ion-content {
|
|
|
|
--background: transparent !important;
|
|
|
|
}
|
|
|
|
position: absolute;
|
|
|
|
@include position(0 !important, null, null, 0 !important);
|
|
|
|
display: block;
|
|
|
|
width: 100% !important;
|
|
|
|
height: 100% !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-27 10:44:35 +00:00
|
|
|
.core-modal-force-on-top {
|
|
|
|
z-index: 100000 !important;
|
|
|
|
}
|
2020-10-27 14:05:11 +00:00
|
|
|
|
2022-03-01 14:38:39 +00:00
|
|
|
.core-modal-lateral {
|
|
|
|
--ion-safe-area-left: 0px;
|
|
|
|
--ion-safe-area-right: 0px;
|
2021-12-21 14:12:17 +00:00
|
|
|
|
2023-11-16 14:22:30 +00:00
|
|
|
&::part(content) {
|
2023-09-15 12:16:48 +00:00
|
|
|
@include margin-horizontal(var(--modal-lateral-margin), null);
|
|
|
|
|
2022-03-01 14:38:39 +00:00
|
|
|
position: absolute;
|
|
|
|
@include position(0 !important, 0 !important, 0 !important, unset !important);
|
|
|
|
display: block;
|
|
|
|
height: 100% !important;
|
|
|
|
width: calc(100% - var(--modal-lateral-margin));
|
|
|
|
max-width: calc(var(--modal-lateral-max-width));
|
|
|
|
box-shadow: 0 28px 48px rgba(0, 0, 0, 0.4);
|
|
|
|
}
|
|
|
|
|
2023-11-16 14:22:30 +00:00
|
|
|
&::part(backdrop) {
|
2022-03-01 14:38:39 +00:00
|
|
|
visibility: visible;
|
2021-02-03 09:55:01 +00:00
|
|
|
}
|
2022-11-24 16:18:38 +00:00
|
|
|
|
|
|
|
.modal-shadow {
|
|
|
|
display: none;
|
|
|
|
}
|
2021-02-03 09:55:01 +00:00
|
|
|
}
|
|
|
|
|
2022-08-30 08:38:32 +00:00
|
|
|
.core-modal-transparent-no-filter {
|
|
|
|
@extend .core-modal-transparent;
|
2023-11-16 14:22:30 +00:00
|
|
|
&::part(backdrop) {
|
2022-08-30 08:38:32 +00:00
|
|
|
backdrop-filter: none;
|
|
|
|
}
|
2023-11-16 14:22:30 +00:00
|
|
|
&::part(content) {
|
2022-08-30 08:38:32 +00:00
|
|
|
backdrop-filter: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-10-22 10:57:59 +00:00
|
|
|
@each $breakpoint, $width in $screen-breakpoints {
|
2022-03-01 14:38:39 +00:00
|
|
|
.core-modal-lateral-#{$breakpoint} {
|
|
|
|
--modal-lateral-max-width: #{$width};
|
2021-10-22 10:57:59 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-07-06 08:14:57 +00:00
|
|
|
.core-password-modal {
|
2023-09-26 10:17:34 +00:00
|
|
|
--border-radius: var(--radius-sm);
|
2023-07-06 08:14:57 +00:00
|
|
|
--min-width: auto;
|
2023-06-28 09:40:52 +00:00
|
|
|
--min-height: 300px;
|
|
|
|
--width: 384px;
|
2023-07-06 08:14:57 +00:00
|
|
|
--height: auto;
|
|
|
|
|
|
|
|
form {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
height: 100%;
|
|
|
|
justify-content: space-between;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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;
|
2022-03-30 12:20:12 +00:00
|
|
|
font-size: var(--text-size);
|
2020-10-29 12:45:55 +00:00
|
|
|
}
|
2020-11-04 15:16:57 +00:00
|
|
|
|
2020-11-12 08:53:56 +00:00
|
|
|
// Item styles
|
2021-06-21 10:16:20 +00:00
|
|
|
[aria-current="page"],
|
|
|
|
.item.item-current {
|
2021-10-06 10:40:55 +00:00
|
|
|
@include safe-area-border-start(var(--selected-item-border-width), solid, var(--selected-item-color));
|
2021-10-06 11:06:00 +00:00
|
|
|
> * {
|
|
|
|
--ion-safe-area-left: 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::part(native) {
|
|
|
|
--ion-safe-area-left: 0px;
|
|
|
|
}
|
2020-11-12 08:53:56 +00:00
|
|
|
}
|
|
|
|
|
2020-11-12 11:10:51 +00:00
|
|
|
.item.item-file {
|
|
|
|
ion-thumbnail {
|
2023-10-11 13:49:17 +00:00
|
|
|
--size: 32px;
|
2020-11-12 11:10:51 +00:00
|
|
|
width: var(--size);
|
|
|
|
height: var(--size);
|
|
|
|
}
|
2022-03-29 12:31:52 +00:00
|
|
|
|
|
|
|
p.item-heading {
|
2022-03-30 12:20:12 +00:00
|
|
|
font-size: var(--text-size);
|
2022-03-29 12:31:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
|
|
|
font-size: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
ion-label {
|
|
|
|
margin-top: 8px;
|
|
|
|
margin-bottom: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
ion-button {
|
|
|
|
--a11y-min-target-size: 40px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.item-directory ion-icon {
|
|
|
|
@include margin-horizontal(0px, 16px);
|
|
|
|
}
|
|
|
|
|
|
|
|
[slot=end] {
|
|
|
|
@include margin-horizontal(16px, null);
|
|
|
|
}
|
2020-11-12 11:10:51 +00:00
|
|
|
}
|
|
|
|
|
2021-01-18 15:16:18 +00:00
|
|
|
.item-dimmed {
|
2021-01-27 16:04:21 +00:00
|
|
|
opacity: 0.7;
|
2022-02-03 14:28:40 +00:00
|
|
|
--background: var(--light);
|
2023-10-06 14:06:45 +00:00
|
|
|
ion-item {
|
|
|
|
--background: var(--light);
|
|
|
|
}
|
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 {
|
2022-01-27 17:03:02 +00:00
|
|
|
color: var(--gray-500);
|
2021-01-12 09:38:34 +00:00
|
|
|
}
|
|
|
|
|
2020-11-12 11:10:51 +00:00
|
|
|
// Card styles
|
2022-02-03 14:28:40 +00:00
|
|
|
@each $color-name, $unused in $colors {
|
2021-02-23 07:53:24 +00:00
|
|
|
|
|
|
|
// Message cards.
|
|
|
|
ion-card.core-#{$color-name}-card {
|
2022-02-11 12:58:22 +00:00
|
|
|
--color-tint: var(--ion-color-#{$color-name}-tint);
|
|
|
|
--color-shade: var(--ion-color-#{$color-name}-shade);
|
|
|
|
--border-width: 0;
|
2021-06-16 16:00:21 +00:00
|
|
|
|
2022-02-11 12:58:22 +00:00
|
|
|
--border-color: var(--color-tint);
|
2023-09-26 10:17:34 +00:00
|
|
|
--border-radius: var(--radius-sm);
|
2022-02-11 12:58:22 +00:00
|
|
|
--background: var(--color-tint);
|
|
|
|
--color: var(--color-shade);
|
2021-02-23 07:53:24 +00:00
|
|
|
|
2021-08-06 09:34:50 +00:00
|
|
|
ion-item {
|
2022-02-11 12:58:22 +00:00
|
|
|
--background: var(--color-tint);
|
|
|
|
--color: var(--color-shade);
|
2021-10-06 10:40:55 +00:00
|
|
|
--inner-border-width: 0px;
|
2022-02-11 12:58:22 +00:00
|
|
|
--border-width: 0px;
|
2022-03-30 12:20:12 +00:00
|
|
|
font-size: var(--text-size);
|
2022-02-11 12:58:22 +00:00
|
|
|
|
|
|
|
ion-label, ion-label > p {
|
|
|
|
--color: var(--color-shade);
|
|
|
|
}
|
2021-02-23 07:53:24 +00:00
|
|
|
}
|
2022-02-11 12:58:22 +00:00
|
|
|
|
2021-02-23 07:53:24 +00:00
|
|
|
ion-label {
|
|
|
|
white-space: normal !important;
|
|
|
|
}
|
2022-03-09 16:56:19 +00:00
|
|
|
ion-item > ion-icon[slot] {
|
2022-02-11 12:58:22 +00:00
|
|
|
color: var(--color-shade);
|
|
|
|
@include margin-horizontal(null, 16px);
|
2021-02-23 07:53:24 +00:00
|
|
|
}
|
2020-12-14 13:50:37 +00:00
|
|
|
}
|
2021-02-23 07:53:24 +00:00
|
|
|
|
|
|
|
.item.core-#{$color-name}-item {
|
2021-06-16 16:00:21 +00:00
|
|
|
--color-base: var(--ion-color-#{$color-name});
|
2022-02-11 12:58:22 +00:00
|
|
|
--color-shade: var(--ion-color-#{$color-name}-shade);
|
2021-06-16 16:00:21 +00:00
|
|
|
|
2021-08-06 09:34:50 +00:00
|
|
|
--border-width: 0 0 3px 0;
|
|
|
|
--border-color: var(--color-base);
|
2021-10-06 10:40:55 +00:00
|
|
|
--inner-border-width: 0px;
|
2022-03-09 16:56:19 +00:00
|
|
|
> ion-icon[slot] {
|
2021-06-16 16:00:21 +00:00
|
|
|
color: var(--color-base);
|
2021-02-23 07:53:24 +00:00
|
|
|
}
|
2020-12-14 13:50:37 +00:00
|
|
|
}
|
2021-04-23 11:24:48 +00:00
|
|
|
|
2022-04-20 11:11:50 +00:00
|
|
|
.core-iframe-fullscreen ion-card.core-#{$color-name}-card,
|
|
|
|
.core-iframe-fullscreen .item.core-#{$color-name}-item {
|
|
|
|
opacity: 0 !important;
|
|
|
|
height: 0 !important;
|
|
|
|
}
|
|
|
|
|
2021-04-23 11:24:48 +00:00
|
|
|
ion-icon.ion-color-#{$color-name} {
|
2021-06-16 16:00:21 +00:00
|
|
|
--ion-color-base: var(--ion-color-#{$color-name});
|
|
|
|
color: var(--ion-color-base);
|
2021-04-23 11:24:48 +00:00
|
|
|
}
|
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);
|
2023-07-06 08:14:57 +00:00
|
|
|
border-radius: 50%;
|
2020-11-04 15:16:57 +00:00
|
|
|
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;
|
2022-01-27 17:03:02 +00:00
|
|
|
background-color: var(--gray-200);
|
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;
|
|
|
|
}
|
|
|
|
|
2022-01-27 17:02:34 +00:00
|
|
|
ion-card {
|
2023-02-01 10:52:14 +00:00
|
|
|
box-shadow: var(--box-shadow);
|
|
|
|
margin: var(--ion-card-vertical-margin) var(--ion-card-horizontal-margin);
|
2022-01-27 17:02:34 +00:00
|
|
|
border-width: var(--border-width);
|
|
|
|
border-style: var(--border-style);
|
|
|
|
border-color: var(--border-color);
|
|
|
|
border-radius: var(--border-radius);
|
2023-02-01 10:52:14 +00:00
|
|
|
|
|
|
|
&::part(native) {
|
|
|
|
--border-width: 0;
|
|
|
|
}
|
2022-01-27 17:02:34 +00:00
|
|
|
|
|
|
|
ion-item:only-child {
|
|
|
|
--inner-border-width: 0px;
|
|
|
|
}
|
2022-04-06 09:17:36 +00:00
|
|
|
|
|
|
|
ion-card-title {
|
|
|
|
font-size: 20px;
|
|
|
|
}
|
2021-09-09 14:39:59 +00:00
|
|
|
}
|
|
|
|
|
2021-05-28 14:30:09 +00:00
|
|
|
.core-course-module-handler:not(.addon-mod-label-handler) .item-heading .filter_mathjaxloader_equation div {
|
2021-05-27 14:10:43 +00:00
|
|
|
display: inline !important;
|
|
|
|
}
|
|
|
|
|
2023-09-29 10:18:26 +00:00
|
|
|
.section-summary core-format-text img {
|
|
|
|
border-radius: var(--radius-lg);
|
|
|
|
}
|
|
|
|
|
2022-02-09 12:41:20 +00:00
|
|
|
ion-list.core-course-module-list-wrapper,
|
2022-02-10 10:42:44 +00:00
|
|
|
.list-item-limited-width,
|
2022-03-25 09:16:12 +00:00
|
|
|
.core-course-module-list-wrapper,
|
|
|
|
ion-content.limited-width > :not([slot]) {
|
2022-03-01 09:03:23 +00:00
|
|
|
max-width: var(--list-item-max-width);
|
2022-02-24 15:44:24 +00:00
|
|
|
margin-left: auto !important;
|
|
|
|
margin-right: auto !important;
|
2022-02-09 12:41:20 +00:00
|
|
|
}
|
|
|
|
|
2022-03-25 09:16:12 +00:00
|
|
|
ion-content.limited-width > :not([slot]) {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2022-03-31 09:56:44 +00:00
|
|
|
min-height: 100%;
|
2022-03-25 09:16:12 +00:00
|
|
|
}
|
|
|
|
|
2023-12-13 13:55:19 +00:00
|
|
|
.limited-width > core-loading:not([slot]),
|
|
|
|
.menu > core-loading:not([slot]) {
|
|
|
|
&.core-loading-loaded {
|
|
|
|
--contents-display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
min-height: 100%;
|
|
|
|
}
|
|
|
|
|
2021-05-20 08:55:02 +00:00
|
|
|
ion-toolbar h1 img.core-bar-button-image,
|
|
|
|
ion-toolbar h1 .core-bar-button-image img {
|
2021-10-21 13:06:45 +00:00
|
|
|
padding: 4px;
|
2023-10-25 14:36:52 +00:00
|
|
|
--userpicture-padding: 4px;
|
2021-05-07 08:31:06 +00:00
|
|
|
width: var(--core-header-toolbar-button-image-size);
|
|
|
|
height: var(--core-header-toolbar-button-image-size);
|
|
|
|
max-width: var(--core-header-toolbar-button-image-size);
|
|
|
|
max-height: var(--core-header-toolbar-button-image-size);
|
2021-01-22 16:06:30 +00:00
|
|
|
border-radius: 50%;
|
2021-10-21 13:06:45 +00:00
|
|
|
display: block;
|
2021-01-22 16:06:30 +00:00
|
|
|
}
|
|
|
|
|
2020-11-04 16:37:02 +00:00
|
|
|
// Action sheet.
|
2022-03-10 12:58:14 +00:00
|
|
|
ion-action-sheet.md {
|
2020-11-04 16:37:02 +00:00
|
|
|
.action-sheet-title {
|
2022-03-10 12:58:14 +00:00
|
|
|
@include padding(4px, null, 4px, 16px);
|
|
|
|
font-size: 12px;
|
|
|
|
min-height: auto;
|
|
|
|
color: var(--medium);
|
|
|
|
line-height: 2em;
|
|
|
|
font-weight: normal;
|
2020-11-04 16:37:02 +00:00
|
|
|
}
|
|
|
|
|
2022-03-10 12:58:14 +00:00
|
|
|
.action-sheet-group:first-child {
|
2023-09-26 10:17:34 +00:00
|
|
|
border-radius: var(--radius-lg) var(--radius-lg) 0 0;
|
2020-11-04 16:37:02 +00:00
|
|
|
}
|
2021-07-01 10:17:26 +00:00
|
|
|
|
2022-03-10 12:58:14 +00:00
|
|
|
.action-sheet-group-cancel {
|
|
|
|
box-shadow: var(--drop-shadow-top, none);
|
2021-07-01 10:17:26 +00:00
|
|
|
}
|
2020-11-04 16:37:02 +00:00
|
|
|
}
|
|
|
|
|
2021-06-02 10:44:34 +00:00
|
|
|
// Radio.
|
2021-06-09 11:43:03 +00:00
|
|
|
ion-radio,
|
2022-03-29 09:34:49 +00:00
|
|
|
input[type=radio],
|
|
|
|
.select-alert.ios .alert-radio-icon {
|
2021-06-21 10:16:20 +00:00
|
|
|
--color: var(--text-color);
|
2021-06-02 10:44:34 +00:00
|
|
|
--color-checked: var(--color);
|
2021-06-09 11:43:03 +00:00
|
|
|
--border-radius: 50%;
|
|
|
|
--border-width: 2px;
|
|
|
|
--outer-border-width: 2px;
|
|
|
|
--border-style: solid;
|
|
|
|
--inner-border-radius: 50%;
|
|
|
|
--size: 20px;
|
2021-06-02 10:44:34 +00:00
|
|
|
}
|
|
|
|
|
2021-06-09 11:43:03 +00:00
|
|
|
.ios ion-radio,
|
2022-03-29 09:34:49 +00:00
|
|
|
.ios input[type=radio],
|
|
|
|
.select-alert.ios .alert-radio-icon {
|
2021-06-09 09:19:58 +00:00
|
|
|
--border-width: 1px;
|
2021-06-09 11:43:03 +00:00
|
|
|
--outer-border-width: 1px;
|
|
|
|
}
|
2021-06-09 09:19:58 +00:00
|
|
|
|
2021-06-09 11:43:03 +00:00
|
|
|
.ios ion-radio {
|
|
|
|
width: var(--size);
|
|
|
|
height: var(--size);
|
2021-06-09 09:19:58 +00:00
|
|
|
|
|
|
|
&::part(container) {
|
|
|
|
margin: 0px;
|
|
|
|
border-radius: var(--border-radius);
|
2021-06-09 11:43:03 +00:00
|
|
|
border-width: var(--outer-border-width);
|
2021-06-09 09:19:58 +00:00
|
|
|
border-style: var(--border-style);
|
|
|
|
border-color: var(--color);
|
|
|
|
}
|
|
|
|
|
|
|
|
&::part(mark) {
|
|
|
|
border-radius: var(--inner-border-radius);
|
2021-06-09 11:43:03 +00:00
|
|
|
width: calc(50% + var(--outer-border-width));
|
|
|
|
height: calc(50% + var(--outer-border-width));
|
2021-06-09 09:19:58 +00:00
|
|
|
transform: scale3d(0, 0, 0);
|
|
|
|
transition: transform 280ms cubic-bezier(.4, 0, .2, 1);
|
|
|
|
background: var(--contrast-background);
|
|
|
|
border: 0 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.radio-checked {
|
|
|
|
&::part(container) {
|
2022-03-29 09:34:49 +00:00
|
|
|
border-color: var(--color);
|
|
|
|
background: var(--color);
|
2021-06-09 09:19:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&::part(mark) {
|
|
|
|
transform: scale3d(1, 1, 1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-29 09:34:49 +00:00
|
|
|
.select-alert.ios {
|
|
|
|
.alert-radio-icon {
|
|
|
|
height: var(--size);
|
|
|
|
width: var(--size);
|
|
|
|
min-width: var(--size);
|
|
|
|
border-radius: var(--border-radius);
|
|
|
|
border-width: var(--outer-border-width);
|
|
|
|
border-style: var(--border-style);
|
|
|
|
border-color: var(--color);
|
|
|
|
@include margin(10px, 8px, 10px, 8px);
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
.alert-radio-inner {
|
|
|
|
top: auto;
|
|
|
|
left: auto;
|
|
|
|
position: static;
|
|
|
|
border-radius: var(--inner-border-radius);
|
|
|
|
width: calc(50% + var(--outer-border-width));
|
|
|
|
height: calc(50% + var(--outer-border-width));
|
|
|
|
transform: scale3d(0, 0, 0);
|
|
|
|
transition: transform 280ms cubic-bezier(.4, 0, .2, 1);
|
|
|
|
background: var(--contrast-background);
|
|
|
|
border: 0 !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
button[aria-checked=true] .alert-radio-icon {
|
|
|
|
border-color: var(--color-checked);
|
|
|
|
background: var(--color-checked);
|
|
|
|
|
|
|
|
.alert-radio-inner {
|
|
|
|
transform: scale3d(1, 1, 1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-06-02 10:44:34 +00:00
|
|
|
// Checkbox.
|
2021-06-09 11:43:03 +00:00
|
|
|
ion-checkbox,
|
|
|
|
input[type=checkbox] {
|
2021-06-02 10:44:34 +00:00
|
|
|
--border-radius: 2px;
|
2021-06-21 10:16:20 +00:00
|
|
|
--border-color-checked: var(--text-color);
|
2023-11-16 14:22:30 +00:00
|
|
|
--checkbox-background-checked: var(--text-color);
|
2021-06-02 10:44:34 +00:00
|
|
|
--checkmark-color: var(--contrast-background);
|
2021-06-09 11:43:03 +00:00
|
|
|
--border-width: 2px;
|
|
|
|
--outer-border-width: 2px;
|
|
|
|
--border-style: solid;
|
|
|
|
--size: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ios input[type=checkbox] {
|
|
|
|
--outer-border-width: 1px;
|
2021-06-02 10:44:34 +00:00
|
|
|
}
|
|
|
|
|
2022-03-29 09:34:49 +00:00
|
|
|
.select-alert.ios .alert-checkbox-icon {
|
|
|
|
border-radius: 2px;
|
|
|
|
}
|
|
|
|
|
2020-11-06 14:34:01 +00:00
|
|
|
// Select.
|
2023-12-12 11:51:59 +00:00
|
|
|
ion-select {
|
|
|
|
&::part(text) {
|
|
|
|
white-space: normal;
|
|
|
|
}
|
|
|
|
&::part(icon) {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
&::part(label) {
|
|
|
|
max-width: none;
|
|
|
|
}
|
2021-05-28 14:37:33 +00:00
|
|
|
}
|
|
|
|
|
2022-04-01 08:25:34 +00:00
|
|
|
ion-select-popover {
|
|
|
|
ion-item.core-select-option-border-bottom {
|
|
|
|
border-bottom: 1px solid var(--stroke);
|
|
|
|
}
|
|
|
|
|
|
|
|
ion-item.core-select-option-title {
|
|
|
|
cursor: pointer;
|
|
|
|
ion-radio {
|
|
|
|
display: none;
|
|
|
|
}
|
2021-11-02 10:07:28 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-08 11:06:48 +00:00
|
|
|
ion-badge {
|
|
|
|
line-height: 1.1;
|
2022-03-03 16:33:22 +00:00
|
|
|
padding: 2px 8px;
|
2023-09-26 10:17:34 +00:00
|
|
|
border-radius: var(--radius-lg);
|
2022-02-08 11:06:48 +00:00
|
|
|
}
|
|
|
|
|
2022-02-09 21:43:09 +00:00
|
|
|
ion-chip,
|
2023-09-27 10:20:12 +00:00
|
|
|
ion-button.button.chip {
|
2022-01-28 08:16:42 +00:00
|
|
|
line-height: 1.1;
|
2022-02-04 12:33:51 +00:00
|
|
|
font-size: 12px;
|
2022-02-08 11:06:48 +00:00
|
|
|
min-height: 24px;
|
2022-02-09 21:43:09 +00:00
|
|
|
text-transform: none;
|
|
|
|
margin: 4px;
|
|
|
|
font-weight: normal;
|
2022-02-04 12:33:51 +00:00
|
|
|
|
|
|
|
ion-icon {
|
|
|
|
font-size: 16px;
|
2022-02-08 11:06:48 +00:00
|
|
|
min-width: 16px;
|
2022-04-08 11:27:13 +00:00
|
|
|
@include margin(0, 8px, 0, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
ion-label {
|
|
|
|
white-space: normal !important;
|
2022-04-06 09:04:35 +00:00
|
|
|
}
|
2022-04-08 11:27:13 +00:00
|
|
|
}
|
2022-04-06 09:04:35 +00:00
|
|
|
|
2023-09-27 10:20:12 +00:00
|
|
|
ion-button.button.chip {
|
|
|
|
--border-radius: var(--radius-md);
|
|
|
|
min-height: 32px;
|
|
|
|
font-size: 14px;
|
|
|
|
|
2022-04-06 09:04:35 +00:00
|
|
|
ion-icon[slot=start] {
|
2022-02-04 12:33:51 +00:00
|
|
|
@include margin(0, 8px, 0, 0);
|
|
|
|
}
|
2022-02-03 16:08:53 +00:00
|
|
|
|
2022-04-06 09:04:35 +00:00
|
|
|
ion-icon[slot=end] {
|
|
|
|
@include margin(0, 0, 0, 8px);
|
|
|
|
}
|
2022-02-09 21:43:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ion-chip {
|
|
|
|
padding: 4px 8px;
|
|
|
|
height: auto;
|
|
|
|
|
2022-07-18 12:07:05 +00:00
|
|
|
// Chips are not currently clickable, only if specified explicitly.
|
|
|
|
&.ion-activatable:not(.clickable) {
|
2022-02-23 09:29:11 +00:00
|
|
|
cursor: auto;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
2022-07-18 12:07:05 +00:00
|
|
|
&.clickable {
|
|
|
|
cursor: pointer;
|
|
|
|
pointer-events: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.fab-chip {
|
|
|
|
padding: 8px 12px;
|
|
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, .4);
|
|
|
|
}
|
2022-02-23 09:29:11 +00:00
|
|
|
|
2022-02-03 16:08:53 +00:00
|
|
|
&.ion-color {
|
|
|
|
background: var(--ion-color-tint);
|
2022-02-03 16:36:12 +00:00
|
|
|
&.chip-outline {
|
|
|
|
background-color: transparent;
|
|
|
|
border-color: var(--ion-color-base);
|
|
|
|
color: var(--ion-color-base);
|
|
|
|
}
|
2022-07-18 12:07:05 +00:00
|
|
|
&.fab-chip {
|
|
|
|
background: var(--ion-color);
|
|
|
|
color: var(--ion-color-contrast);
|
|
|
|
}
|
2022-03-18 08:18:52 +00:00
|
|
|
|
|
|
|
&.ion-color-light,
|
|
|
|
&.ion-color-medium,
|
|
|
|
&.ion-color-dark,
|
|
|
|
&.ion-color-secondary {
|
|
|
|
color: var(--gray-900);
|
|
|
|
&.chip-outline {
|
|
|
|
color: var(--text-color);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-03-29 14:55:51 +00:00
|
|
|
|
|
|
|
&:not(.ion-color) ion-icon {
|
|
|
|
color: var(--text-color);
|
|
|
|
}
|
2022-01-28 08:16:42 +00:00
|
|
|
}
|
|
|
|
|
2021-05-27 14:10:43 +00:00
|
|
|
ion-searchbar {
|
2022-03-31 14:54:06 +00:00
|
|
|
height: var(--height) !important;
|
2023-10-05 10:47:31 +00:00
|
|
|
--border-radius: var(--radius-xs);
|
2022-03-31 14:54:06 +00:00
|
|
|
|
|
|
|
.searchbar-input-container {
|
|
|
|
color: var(--color) !important;
|
|
|
|
height: var(--height) !important;
|
2021-05-27 14:10:43 +00:00
|
|
|
}
|
2022-03-31 14:54:06 +00:00
|
|
|
|
|
|
|
.searchbar-input {
|
2023-10-05 10:47:31 +00:00
|
|
|
--border-radius: var(--radius-xs);
|
|
|
|
|
2022-03-31 14:54:06 +00:00
|
|
|
height: var(--height) !important;
|
|
|
|
border: 1px solid var(--border-color) !important;
|
|
|
|
box-shadow: none !important;
|
|
|
|
border-radius: var(--border-radius) !important;
|
|
|
|
background: var(--background) !important;
|
|
|
|
@include padding-horizontal(var(--height) !important);
|
2022-02-16 11:15:14 +00:00
|
|
|
}
|
|
|
|
|
2022-03-31 14:54:06 +00:00
|
|
|
.searchbar-search-icon {
|
|
|
|
@include position(null, null, null, calc(var(--height) / 4) !important);
|
2021-05-27 14:10:43 +00:00
|
|
|
}
|
2022-02-16 11:58:54 +00:00
|
|
|
|
2022-03-31 14:54:06 +00:00
|
|
|
button {
|
|
|
|
@include position(null, 0 !important, null, null);
|
2022-02-16 11:58:54 +00:00
|
|
|
}
|
2021-05-27 14:10:43 +00:00
|
|
|
}
|
|
|
|
|
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 {
|
2021-05-07 08:31:06 +00:00
|
|
|
color: var(--core-link-color);
|
2020-11-17 10:00:46 +00:00
|
|
|
cursor: pointer;
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
2020-12-10 13:43:15 +00:00
|
|
|
|
2021-05-13 10:05:43 +00:00
|
|
|
core-block ion-item-divider .core-button-spinner {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
@include margin-horizontal(10px);
|
|
|
|
|
|
|
|
ion-badge.core-course-download-courses-progress {
|
|
|
|
@include margin(null, 12px, null, null);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-10 13:43:15 +00:00
|
|
|
// Horizontal scrolling elements
|
|
|
|
.core-horizontal-scroll {
|
2021-10-06 11:06:00 +00:00
|
|
|
display: block;
|
2020-12-10 13:43:15 +00:00
|
|
|
overflow-x: scroll;
|
2021-10-06 11:06:00 +00:00
|
|
|
.safe-area-pseudo-padding-start {
|
|
|
|
@include padding-horizontal(var(--ion-safe-area-left), 0px);
|
|
|
|
}
|
|
|
|
.safe-area-pseudo-padding-end {
|
|
|
|
@include padding-horizontal(0px, var(--ion-safe-area-right));
|
|
|
|
}
|
2020-12-10 13:43:15 +00:00
|
|
|
}
|
2021-01-18 14:19:30 +00:00
|
|
|
|
2021-01-21 14:00:38 +00:00
|
|
|
// Text formats.
|
|
|
|
// Highlight text.
|
2021-11-17 10:46:37 +00:00
|
|
|
mark, .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-02-18 08:19:38 +00:00
|
|
|
// Monospaced font.
|
|
|
|
.core-monospaced {
|
|
|
|
font-family: Andale Mono,Monaco,Courier New,DejaVu Sans Mono,monospace;
|
|
|
|
}
|
2021-02-26 07:41:00 +00:00
|
|
|
|
|
|
|
.core-iframe-offline-disabled {
|
|
|
|
display: none !important;
|
|
|
|
}
|
2021-03-09 12:25:27 +00:00
|
|
|
|
|
|
|
.core-scanning-qr {
|
2023-11-16 14:22:30 +00:00
|
|
|
.ion-page, ion-modal::part(content) {
|
2021-03-09 12:25:27 +00:00
|
|
|
background-color: transparent !important;
|
|
|
|
--background: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
ion-content, ion-backdrop, ion-modal:not(.core-modal-fullscreen), ion-tabs {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
}
|
2021-03-15 17:30:31 +00:00
|
|
|
|
|
|
|
// Hide virtual utilities.
|
|
|
|
.core-browser-copy-area {
|
|
|
|
display: none;
|
|
|
|
}
|
2021-03-24 13:31:08 +00:00
|
|
|
|
|
|
|
// Different levels of padding.
|
|
|
|
@for $i from 0 through 15 {
|
|
|
|
.core-padding-#{$i} {
|
|
|
|
@include padding(null, null, null, 15px * $i + 16px);
|
|
|
|
}
|
|
|
|
}
|
2021-04-21 11:12:32 +00:00
|
|
|
|
2021-06-09 08:28:45 +00:00
|
|
|
details summary {
|
|
|
|
pointer-events: auto;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2021-05-06 09:33:10 +00:00
|
|
|
textarea {
|
|
|
|
min-height: var(--a11y-min-target-size);
|
|
|
|
}
|
|
|
|
|
2021-04-21 11:12:32 +00:00
|
|
|
textarea:not([core-auto-rows]) {
|
|
|
|
height: 200px;
|
|
|
|
}
|
2021-04-26 12:14:15 +00:00
|
|
|
|
2021-06-14 13:42:38 +00:00
|
|
|
ion-back-button.md::part(text) {
|
|
|
|
display: none;
|
2021-04-26 12:14:15 +00:00
|
|
|
}
|
2021-04-27 13:21:09 +00:00
|
|
|
|
2021-11-30 12:12:50 +00:00
|
|
|
// Hide close button because when present is read on voice over.
|
2021-11-19 12:20:00 +00:00
|
|
|
ion-fab[core-fab] {
|
|
|
|
ion-fab-button::part(close-icon) {
|
|
|
|
display: none;
|
|
|
|
}
|
2021-12-09 11:29:01 +00:00
|
|
|
}
|
2021-11-30 12:12:50 +00:00
|
|
|
|
2023-09-15 08:51:28 +00:00
|
|
|
// The following 4 selectors can probably be removed after Ionic migration to 7+
|
|
|
|
ion-fab.fab-horizontal-start {
|
|
|
|
left: calc(10px + var(--ion-safe-area-right, 0px));
|
|
|
|
}
|
|
|
|
|
|
|
|
[dir=rtl] ion-fab.fab-horizontal-start {
|
|
|
|
right: calc(10px + var(--ion-safe-area-right, 0px));
|
|
|
|
left: unset
|
|
|
|
}
|
|
|
|
|
|
|
|
ion-fab.fab-horizontal-end {
|
|
|
|
right: calc(10px + var(--ion-safe-area-right, 0px));
|
|
|
|
}
|
|
|
|
|
|
|
|
[dir=rtl] ion-fab.fab-horizontal-end {
|
|
|
|
left: calc(10px + var(--ion-safe-area-right, 0px));
|
|
|
|
right: unset
|
|
|
|
}
|
|
|
|
|
2022-02-24 13:27:39 +00:00
|
|
|
ion-content.has-collapsible-footer ion-fab {
|
2022-03-04 13:33:19 +00:00
|
|
|
bottom: calc(var(--core-collapsible-footer-height, 0px) + 10px);
|
2021-11-30 12:12:50 +00:00
|
|
|
@include core-transition(all, 200ms);
|
2021-04-27 13:21:09 +00:00
|
|
|
}
|
2021-04-27 11:14:31 +00:00
|
|
|
|
2021-05-03 07:16:09 +00:00
|
|
|
.core-media-adapt-width {
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
img.core-media-adapt-width {
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
audio.core-media-adapt-width {
|
|
|
|
width: 100%;
|
|
|
|
}
|
2021-05-11 08:04:32 +00:00
|
|
|
|
2022-02-09 21:29:21 +00:00
|
|
|
ion-item {
|
2023-12-12 11:51:59 +00:00
|
|
|
// font-size: var(--text-size);
|
2022-02-09 21:29:21 +00:00
|
|
|
--inner-border-width: 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
ion-item.item-lines-full {
|
|
|
|
--inner-border-width: 0px;
|
|
|
|
--border-width: 0 0 1px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
ion-item.item-lines-inset {
|
2023-12-12 11:51:59 +00:00
|
|
|
--inner-border-width: 0 0 1px 0;
|
2022-02-09 21:29:21 +00:00
|
|
|
--border-width: 0px;
|
|
|
|
}
|
|
|
|
|
2022-02-23 14:24:04 +00:00
|
|
|
ion-item.item-input.ios {
|
|
|
|
--inner-border-width: 0 0 1px 0;
|
|
|
|
}
|
|
|
|
|
2021-06-14 11:54:53 +00:00
|
|
|
// Fake item.
|
|
|
|
div.fake-ion-item {
|
|
|
|
position: relative;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
outline: none;
|
|
|
|
color: var(--ion-text-color);
|
|
|
|
background: var(--ion-item-background);
|
|
|
|
text-align: initial;
|
|
|
|
text-decoration: none;
|
|
|
|
overflow: hidden;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
html.md div.fake-ion-item {
|
|
|
|
font-size: 16px;
|
|
|
|
font-weight: normal;
|
|
|
|
text-transform: none;
|
|
|
|
@include padding(null, 16px, null, 16px);
|
|
|
|
@include margin(11px, null, 10px, null);
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
@include margin(0, 0, 2px);
|
|
|
|
font-size: 24px;
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
@include margin(2px, 0);
|
|
|
|
font-size: 16px;
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
h3,
|
|
|
|
h4,
|
|
|
|
h5,
|
|
|
|
h6 {
|
|
|
|
@include margin(2px, 0);
|
|
|
|
|
2022-03-30 12:20:12 +00:00
|
|
|
font-size: var(--text-size);
|
2021-06-14 11:54:53 +00:00
|
|
|
font-weight: normal;
|
|
|
|
|
|
|
|
line-height: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
|
|
|
@include margin(0, 0, 2px);
|
2022-03-30 12:20:12 +00:00
|
|
|
font-size: var(--text-size);
|
2021-06-14 11:54:53 +00:00
|
|
|
line-height: 20px;
|
|
|
|
text-overflow: inherit;
|
|
|
|
overflow: inherit;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
html.ios div.fake-ion-item {
|
2022-03-30 12:20:12 +00:00
|
|
|
font-size: var(--text-size);
|
2021-06-14 11:54:53 +00:00
|
|
|
@include padding(null, 10px, null, 20px);
|
|
|
|
@include margin(10px, 8px, 10px, null);
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
@include margin(3px, 0, 2px);
|
|
|
|
font-size: 22px;
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
@include margin(0, 0, 2px);
|
|
|
|
font-size: 17px;
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
h3,
|
|
|
|
h4,
|
|
|
|
h5,
|
|
|
|
h6 {
|
|
|
|
@include margin(0, 0, 3px);
|
2022-03-30 12:20:12 +00:00
|
|
|
font-size: var(--text-size);
|
2021-06-14 11:54:53 +00:00
|
|
|
font-weight: normal;
|
|
|
|
line-height: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
|
|
|
@include margin(0, 0, 2px 0);
|
2022-03-30 12:20:12 +00:00
|
|
|
font-size: var(--text-size);
|
2021-06-14 11:54:53 +00:00
|
|
|
line-height: normal;
|
|
|
|
text-overflow: inherit;
|
|
|
|
overflow: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2021-06-15 11:23:48 +00:00
|
|
|
// Disabled items.
|
|
|
|
ion-item.item-disabled,
|
|
|
|
ion-item.item-interactive-disabled:not(.item-multiple-inputs) ion-label,
|
|
|
|
ion-datetime.datetime-disabled {
|
|
|
|
opacity: .8 !important;
|
|
|
|
}
|
|
|
|
|
2022-12-01 12:52:01 +00:00
|
|
|
// Hide details on items to align badges.
|
|
|
|
ion-item.hide-detail {
|
|
|
|
--detail-icon-opacity: 0;
|
|
|
|
}
|
|
|
|
|
2021-05-18 15:11:00 +00:00
|
|
|
// Make links clickable when inside radio or checkbox items. Style part.
|
2021-06-04 13:56:57 +00:00
|
|
|
@media (hover: hover) {
|
2022-03-18 15:20:56 +00:00
|
|
|
ion-item.item-multiple-inputs:not(.item-rte):hover::part(native) {
|
2021-05-18 15:11:00 +00:00
|
|
|
color: var(--color-hover);
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
background: var(--background-hover);
|
|
|
|
opacity: var(--background-hover-opacity);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ion-item.ion-color.item-multiple-inputs:hover::part(native) {
|
|
|
|
color: #{current-color(contrast)};
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
background: #{current-color(contrast)};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-31 10:28:58 +00:00
|
|
|
|
|
|
|
// It fixes the click on links where ion-ripple-effect is present.
|
2021-05-18 15:11:00 +00:00
|
|
|
// Make links clickable when inside radio or checkbox items. Pointer and cursor part.
|
2022-03-18 15:20:56 +00:00
|
|
|
ion-item.item-multiple-inputs:not(.only-links):not(.item-rte),
|
2021-05-31 10:28:58 +00:00
|
|
|
ion-item.ion-activatable:not(.only-links) {
|
2021-05-18 15:11:00 +00:00
|
|
|
cursor: pointer;
|
|
|
|
ion-label {
|
|
|
|
z-index: 3;
|
|
|
|
pointer-events: none;
|
|
|
|
|
|
|
|
ion-anchor, a,
|
|
|
|
ion-button, button,
|
2022-12-15 10:02:43 +00:00
|
|
|
ion-item.ion-focusable,
|
2021-08-06 09:28:06 +00:00
|
|
|
audio, video, select, input, iframe {
|
2021-05-18 15:11:00 +00:00
|
|
|
pointer-events: visible;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ion-checkbox, ion-datetime, ion-radio, ion-select{
|
|
|
|
position: static;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-31 10:28:58 +00:00
|
|
|
ion-item.item-multiple-inputs.only-links {
|
|
|
|
a {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-10-22 10:24:05 +00:00
|
|
|
a {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2021-05-19 11:04:53 +00:00
|
|
|
// Case with ion-input + ion-select inside.
|
|
|
|
ion-item.item-input.item-multiple-inputs {
|
|
|
|
.flex-row {
|
|
|
|
width: 100%;
|
|
|
|
ion-select {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-09 16:49:24 +00:00
|
|
|
ion-item-divider.item,
|
|
|
|
ion-item.item.divider {
|
2022-02-09 12:41:20 +00:00
|
|
|
min-height: var(--min-height);
|
2022-02-09 16:49:24 +00:00
|
|
|
border-bottom-width: var(--item-divider-border-width);
|
|
|
|
--border-width: var(--item-divider-border-width);
|
|
|
|
--inner-border-width: 0 0 var(--item-divider-border-width) 0;
|
|
|
|
|
2022-02-10 10:42:44 +00:00
|
|
|
ion-label h2,
|
|
|
|
ion-label p.item-heading {
|
2022-02-09 12:41:20 +00:00
|
|
|
font-size: var(--item-divider-font-size);
|
2022-02-10 10:42:44 +00:00
|
|
|
font-weight: 500;
|
|
|
|
line-height: 1.5;
|
|
|
|
}
|
|
|
|
ion-label h2.big {
|
|
|
|
font-size: var(--item-divider-font-size-big);
|
2022-02-09 12:41:20 +00:00
|
|
|
}
|
2022-03-09 16:56:19 +00:00
|
|
|
}
|
2022-02-10 12:24:18 +00:00
|
|
|
|
2022-03-09 16:56:19 +00:00
|
|
|
ion-item-divider.item,
|
|
|
|
ion-item.item {
|
2022-02-10 12:24:18 +00:00
|
|
|
.expandable-status-icon {
|
|
|
|
font-size: 18px;
|
|
|
|
@include core-transition(transform, 200ms);
|
|
|
|
@include margin-horizontal(null, 16px);
|
|
|
|
|
|
|
|
&.expandable-status-icon-expanded {
|
|
|
|
transform: var(--rotate-expandable);
|
|
|
|
}
|
|
|
|
}
|
2021-10-06 10:40:55 +00:00
|
|
|
}
|
|
|
|
|
2021-05-13 14:39:16 +00:00
|
|
|
// Change default outline.
|
|
|
|
:focus-visible {
|
|
|
|
@include core-focus-style();
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
2023-11-21 14:59:08 +00:00
|
|
|
// Focus highlight for accessibility.
|
|
|
|
.ion-focused:not(.item-multiple-inputs):not(:focus),
|
|
|
|
ion-input.has-focus,
|
|
|
|
ion-card:focus {
|
|
|
|
@include core-focus();
|
|
|
|
|
|
|
|
:focus-visible,
|
|
|
|
.clickable:focus {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.ion-focused.item-multiple-inputs {
|
|
|
|
ion-toggle:focus-within,
|
|
|
|
ion-select:focus-within,
|
|
|
|
ion-checkbox:focus-within,
|
|
|
|
ion-radio:focus-within {
|
|
|
|
@include core-focus();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Treat cases where there's a focusable element inside an item, like a button.
|
|
|
|
ion-item.item-input:not(.item-multiple-inputs):not(:focus),
|
|
|
|
ion-item.item-has-focus:not(.item-multiple-inputs):not(:focus),
|
|
|
|
ion-item.item-input ion-input.has-focus {
|
|
|
|
position: relative;
|
|
|
|
&::after {
|
|
|
|
box-shadow: revert;
|
|
|
|
opacity: revert;
|
|
|
|
z-index: revert;
|
|
|
|
}
|
|
|
|
.item-highlight, .item-inner-highlight {
|
|
|
|
position: unset;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-02-01 10:06:13 +00:00
|
|
|
textarea, button, select, input, a, .clickable {
|
2021-05-13 14:39:16 +00:00
|
|
|
&:focus {
|
|
|
|
@include core-focus-style();
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-14 12:14:52 +00:00
|
|
|
ion-loading:focus-visible,
|
|
|
|
ion-alert:focus-visible,
|
|
|
|
ion-popover:focus-visible,
|
|
|
|
ion-modal:focus-visible {
|
|
|
|
box-shadow: none;
|
2023-02-24 10:32:36 +00:00
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
|
2021-05-19 14:20:43 +00:00
|
|
|
ion-input .native-input {
|
2021-05-13 14:39:16 +00:00
|
|
|
&:focus, &:focus-visible {
|
|
|
|
box-shadow: none;
|
|
|
|
outline: none;
|
|
|
|
}
|
2021-05-11 08:04:32 +00:00
|
|
|
}
|
2021-05-19 14:20:43 +00:00
|
|
|
|
2023-11-21 14:59:08 +00:00
|
|
|
input {
|
|
|
|
--placeholder-color: var(--ion-placeholder-color);
|
|
|
|
--placeholder-opacity: .85;
|
|
|
|
}
|
|
|
|
|
2021-05-20 13:30:58 +00:00
|
|
|
// Disable scroll on parent ion contents to enabled PTR on the ones inside the splitview. See split-view component for more info.
|
|
|
|
ion-content.disable-scroll-y::part(scroll) {
|
|
|
|
touch-action: auto;
|
|
|
|
overflow-y: hidden;
|
|
|
|
overscroll-behavior-y: auto;
|
|
|
|
z-index: auto;
|
|
|
|
will-change: auto;
|
|
|
|
}
|
2021-05-26 12:58:37 +00:00
|
|
|
|
|
|
|
iframe {
|
2022-03-31 09:56:44 +00:00
|
|
|
flex-grow: 1;
|
2021-05-26 12:58:37 +00:00
|
|
|
border: 0;
|
|
|
|
display: block;
|
|
|
|
max-width: 100%;
|
|
|
|
background-color: var(--ion-background-color);
|
|
|
|
}
|
2021-11-04 15:02:51 +00:00
|
|
|
|
|
|
|
@if ($core-login-hide-need-help) {
|
|
|
|
.core-login-need-help {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
}
|
2021-11-08 15:19:08 +00:00
|
|
|
|
|
|
|
ion-grid.core-no-grid > ion-row {
|
|
|
|
display: block;
|
2021-11-19 12:20:00 +00:00
|
|
|
}
|
|
|
|
|
2022-01-24 10:19:34 +00:00
|
|
|
.core-underheader {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
|
2022-03-24 11:58:55 +00:00
|
|
|
.core-footer-shadow [collapsible-footer] {
|
2022-03-14 12:09:41 +00:00
|
|
|
box-shadow: var(--drop-shadow-top, none);
|
2023-11-14 10:56:13 +00:00
|
|
|
clip-path: inset(-8px 0px 0px 0px); // Only show shadow at top.
|
2022-03-24 11:58:55 +00:00
|
|
|
}
|
|
|
|
[collapsible-footer] {
|
|
|
|
transition: box-shadow 0.5s;
|
2022-03-14 12:09:41 +00:00
|
|
|
width: 100%;
|
|
|
|
bottom: 0;
|
|
|
|
z-index: 3;
|
|
|
|
display: block;
|
|
|
|
background-color: var(--core-collapsible-footer-background);
|
2022-02-24 13:27:39 +00:00
|
|
|
|
2022-02-24 15:44:24 +00:00
|
|
|
.ion-margin {
|
|
|
|
margin-top: 8px;
|
|
|
|
margin-bottom: 8px;
|
|
|
|
}
|
|
|
|
|
2022-03-14 12:09:41 +00:00
|
|
|
&.is-active {
|
|
|
|
height: var(--core-collapsible-footer-height, auto);
|
|
|
|
@include core-transition(all, 200ms);
|
|
|
|
|
|
|
|
&.footer-collapsed {
|
|
|
|
--core-collapsible-footer-height: 0;
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
&.has-module-nav.footer-collapsed {
|
|
|
|
--core-collapsible-footer-height: auto;
|
|
|
|
opacity: 1;
|
|
|
|
core-course-module-navigation {
|
|
|
|
height: 0;
|
|
|
|
opacity: 0;
|
|
|
|
@include core-transition(all, 200ms);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
&.footer-expanded {
|
|
|
|
--core-collapsible-footer-height: auto;
|
|
|
|
}
|
2022-03-25 13:48:56 +00:00
|
|
|
}
|
|
|
|
}
|
2022-03-14 12:09:41 +00:00
|
|
|
|
2022-03-25 13:48:56 +00:00
|
|
|
.keyboard-is-open ion-content {
|
|
|
|
--core-collapsible-footer-height: 0px !important;
|
|
|
|
[collapsible-footer] {
|
|
|
|
height: 0;
|
2022-03-14 12:09:41 +00:00
|
|
|
}
|
2022-02-24 13:27:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.core-iframe-fullscreen [collapsible-footer] {
|
|
|
|
opacity: 0 !important;
|
|
|
|
height: 0 !important;
|
|
|
|
}
|
|
|
|
|
2022-02-28 09:15:53 +00:00
|
|
|
@include media-breakpoint-up(md) {
|
2022-11-25 10:19:04 +00:00
|
|
|
.adaptable-buttons-row,
|
|
|
|
.adaptable-buttons-row-reverse {
|
2022-02-28 09:15:53 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
ion-button {
|
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
}
|
2022-11-25 10:19:04 +00:00
|
|
|
|
|
|
|
// Buttons will be in reverse order when horizontal.
|
|
|
|
.adaptable-buttons-row-reverse {
|
|
|
|
flex-direction: row-reverse;
|
|
|
|
}
|
2022-02-28 09:15:53 +00:00
|
|
|
}
|
|
|
|
|
2022-02-17 14:55:10 +00:00
|
|
|
ion-header.no-title {
|
|
|
|
--core-header-toolbar-border-width: 0;
|
|
|
|
--core-header-toolbar-background: transparent;
|
2022-03-09 16:56:19 +00:00
|
|
|
--core-header-shadow: none !important;
|
2022-03-30 12:13:33 +00:00
|
|
|
--core-header-buttons-background: var(--ion-background-color);
|
|
|
|
--core-header-buttons-color: var(--text-color);
|
2022-02-17 14:55:10 +00:00
|
|
|
}
|
|
|
|
|
2022-02-21 14:44:34 +00:00
|
|
|
// To make core-swipe-slides fill the remaining height.
|
|
|
|
.core-swipe-slides-container {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2022-02-24 09:42:12 +00:00
|
|
|
flex-grow: 1;
|
|
|
|
min-height: 100%;
|
2022-02-21 14:44:34 +00:00
|
|
|
|
|
|
|
core-swipe-slides {
|
2022-02-24 09:42:12 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2022-02-21 14:44:34 +00:00
|
|
|
flex-grow: 1;
|
2022-02-24 09:42:12 +00:00
|
|
|
|
2023-11-20 15:46:29 +00:00
|
|
|
swiper-container {
|
2022-02-24 09:42:12 +00:00
|
|
|
flex-grow: 1;
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
2022-02-21 14:44:34 +00:00
|
|
|
}
|
2023-11-20 15:46:29 +00:00
|
|
|
}
|
2022-02-24 09:42:12 +00:00
|
|
|
|
2023-11-20 15:46:29 +00:00
|
|
|
swiper-container {
|
|
|
|
--swiper-theme-color: var(--ion-color-primary, #3880ff);
|
|
|
|
--swiper-pagination-bullet-inactive-color: var(--ion-color-step-200, #cccccc);
|
|
|
|
--swiper-pagination-color: var(--swiper-theme-color);
|
|
|
|
--swiper-pagination-progressbar-bg-color: rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.25);
|
|
|
|
--swiper-scrollbar-bg-color: rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.1);
|
|
|
|
--swiper-scrollbar-drag-bg-color: rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.5);
|
|
|
|
width: 100%;
|
|
|
|
max-width: 100%;
|
|
|
|
max-height: 100vh;
|
|
|
|
// CSS Grid/Flexbox bug size workaround
|
|
|
|
// @see https://github.com/kenwheeler/slick/issues/982
|
|
|
|
// @see https://github.com/nolimits4web/swiper/issues/3599
|
|
|
|
min-height: 0;
|
|
|
|
min-width: 0;
|
|
|
|
|
|
|
|
swiper-slide {
|
|
|
|
display: flex;
|
|
|
|
position: relative;
|
2022-02-24 09:42:12 +00:00
|
|
|
|
2023-11-20 15:46:29 +00:00
|
|
|
flex-direction: column;
|
|
|
|
flex-shrink: 0;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
|
|
|
text-align: center;
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
img {
|
|
|
|
width: auto;
|
|
|
|
max-width: 100%;
|
|
|
|
height: auto;
|
|
|
|
max-height: 100%;
|
|
|
|
}
|
|
|
|
}
|
2022-02-21 14:44:34 +00:00
|
|
|
}
|
2022-02-25 15:39:08 +00:00
|
|
|
|
2022-03-23 16:33:20 +00:00
|
|
|
.has-spacer,
|
|
|
|
.core-flex-fill {
|
2022-02-25 15:39:08 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
min-height: 100%;
|
|
|
|
flex-grow: 1;
|
|
|
|
|
|
|
|
.spacer-top {
|
|
|
|
flex-grow: 1;
|
|
|
|
align-content: flex-end;
|
|
|
|
}
|
|
|
|
.spacer {
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
}
|
2022-03-17 08:51:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
// Loader animation.
|
|
|
|
.core-loading {
|
|
|
|
position: relative;
|
|
|
|
background-color: var(--loader-background-color);
|
|
|
|
color: transparent; // Hide contents.
|
|
|
|
overflow: hidden;
|
|
|
|
display: var(--loader-display);
|
|
|
|
border-radius: var(--loader-radius);
|
|
|
|
@include core-transition(all, 200ms);
|
|
|
|
min-height: 8px;
|
|
|
|
min-width: 50px;
|
|
|
|
|
|
|
|
// Hide contents.
|
|
|
|
> * {
|
|
|
|
opacity: 0;
|
|
|
|
@include core-transition(opacity, 200ms);
|
|
|
|
}
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
left: -45%;
|
|
|
|
height: 100%;
|
|
|
|
width: 45%;
|
|
|
|
background-image: linear-gradient(to left, rgba(var(--loader-shine), .05), rgba(var(--loader-shine), .3), rgba(var(--loader-shine), .6), rgba(var(--loader-shine), .3), rgba(var(--loader-shine), .05));
|
|
|
|
animation: loading 1s infinite;
|
|
|
|
display: block;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
2022-05-24 09:02:30 +00:00
|
|
|
|
|
|
|
// Fix subtitles wider than video.
|
|
|
|
video::-webkit-media-text-track-display {
|
|
|
|
white-space: normal !important;
|
|
|
|
}
|
2022-07-18 12:07:05 +00:00
|
|
|
|
2023-09-27 10:20:12 +00:00
|
|
|
ion-modal {
|
2023-10-05 10:16:06 +00:00
|
|
|
&.show-modal {
|
|
|
|
@media only screen and (min-width: 768px) and (min-height: 600px) {
|
|
|
|
--border-radius: var(--modal-radius);
|
|
|
|
}
|
2023-09-27 10:20:12 +00:00
|
|
|
}
|
2023-11-09 15:48:27 +00:00
|
|
|
&.ion-datetime-button-overlay {
|
|
|
|
--border-radius: var(--modal-radius);
|
|
|
|
}
|
2022-07-18 12:07:05 +00:00
|
|
|
|
2023-09-27 10:20:12 +00:00
|
|
|
&.core-modal-lateral,
|
|
|
|
&.core-modal-fullscreen {
|
2023-10-05 10:16:06 +00:00
|
|
|
--border-radius: 0px;
|
2023-09-27 10:20:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.core-modal-no-background {
|
|
|
|
--background: transparent;
|
|
|
|
--box-shadow: none !important;
|
|
|
|
pointer-events: none;
|
|
|
|
|
2023-11-16 14:22:30 +00:00
|
|
|
&::part(backdrop) {
|
2023-09-27 10:20:12 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ion-popover {
|
2023-11-16 14:22:30 +00:00
|
|
|
&::part(content) {
|
2023-09-27 10:20:12 +00:00
|
|
|
border-radius: var(--modal-radius);
|
|
|
|
}
|
|
|
|
&.md {
|
|
|
|
margin-top: 2px;
|
|
|
|
margin-bottom: 2px;
|
2023-10-17 14:21:59 +00:00
|
|
|
|
|
|
|
// Never show backdrop on popovers on Android
|
|
|
|
// @todo Apply box shadow on ios and make it transparent too. The main problem is the box arrow.
|
2023-11-16 14:22:30 +00:00
|
|
|
&::part(backdrop) {
|
2023-10-17 14:21:59 +00:00
|
|
|
background: transparent;
|
|
|
|
}
|
2023-10-05 10:46:54 +00:00
|
|
|
}
|
2022-07-18 12:07:05 +00:00
|
|
|
}
|
2023-06-08 11:04:53 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* This is to solve popver issue in chrome 114
|
|
|
|
* For more info see: https://github.com/ionic-team/ionic-framework/issues/27599
|
|
|
|
*/
|
|
|
|
[popover].popover-viewport {
|
|
|
|
display: initial;
|
|
|
|
position: initial;
|
|
|
|
margin: initial;
|
|
|
|
border: initial;
|
|
|
|
background: initial;
|
|
|
|
padding: initial;
|
|
|
|
width: initial;
|
|
|
|
height: initial;
|
|
|
|
overflow: initial;
|
|
|
|
inset: initial;
|
|
|
|
color: initial;
|
|
|
|
}
|
2023-11-17 10:08:26 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* https://github.com/ionic-team/ionic-framework/blob/6ffbdbb3b2b69290cf25753d535bc7483bd7c6e8/BREAKING.md#css-utilities
|
|
|
|
*/
|
|
|
|
[hidden] {
|
|
|
|
display: none !important;
|
|
|
|
}
|
2023-11-09 15:48:27 +00:00
|
|
|
|
|
|
|
// Ion Datetime
|
|
|
|
ion-item.item-label-stacked ion-datetime-button {
|
|
|
|
margin-top: 8px;
|
|
|
|
margin-bottom: 8px;
|
|
|
|
align-self: self-end;
|
|
|
|
}
|
2023-12-12 11:51:59 +00:00
|
|
|
|
|
|
|
// Development styles. Most of them temporary.
|
|
|
|
html.development {
|
|
|
|
ion-checkbox.legacy-checkbox,
|
|
|
|
ion-radio.legacy-radio,
|
|
|
|
ion-select.legacy-select,
|
|
|
|
ion-toggle.legacy-toggle,
|
|
|
|
ion-textarea.legacy-textarea,
|
|
|
|
ion-input.legacy-input {
|
|
|
|
background: red !important;
|
|
|
|
}
|
|
|
|
}
|