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;
|
|
|
|
}
|
|
|
|
|
|
|
|
html {
|
2024-03-19 14:24:26 +00:00
|
|
|
--zoom-level: 100%;
|
2021-10-07 09:26:08 +00:00
|
|
|
zoom: var(--zoom-level);
|
|
|
|
|
2024-04-30 10:36:21 +00:00
|
|
|
&.ios {
|
|
|
|
font-size: var(--zoom-level);
|
|
|
|
}
|
2021-06-15 15:41:53 +00:00
|
|
|
}
|
|
|
|
|
2024-03-19 14:24:26 +00:00
|
|
|
a {
|
|
|
|
color: var(--core-link-color);
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
html[dir=rtl] {
|
|
|
|
--rotate-expandable: rotate(-90deg);
|
|
|
|
}
|
|
|
|
|
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-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 15:23:14 +00:00
|
|
|
|
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
|
|
|
ion-tabs.hide-header ion-header {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2022-03-10 09:00:20 +00:00
|
|
|
ion-footer {
|
|
|
|
background-color: var(--contrast-background);
|
2024-03-19 14:24:26 +00:00
|
|
|
|
2023-12-15 15:11:12 +00:00
|
|
|
> ion-toolbar:only-child {
|
|
|
|
top: 1px;
|
|
|
|
}
|
2022-03-10 09:00:20 +00:00
|
|
|
}
|
|
|
|
|
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"] {
|
2024-02-22 11:31:24 +00:00
|
|
|
text-transform: none;
|
2024-03-14 09:15:47 +00:00
|
|
|
min-height: var(--a11y-sizing-minTargetSize);
|
|
|
|
min-width: var(--a11y-sizing-minTargetSize);
|
2023-12-15 15:11:12 +00:00
|
|
|
|
|
|
|
&.button-large {
|
|
|
|
min-height: 2.8em;
|
|
|
|
min-width: 2.8em
|
|
|
|
}
|
2021-05-06 09:33:10 +00:00
|
|
|
}
|
|
|
|
|
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;
|
2024-05-10 11:31:38 +00:00
|
|
|
opacity: var(--mdl-button-disabled-opacity);
|
2021-06-08 14:12:56 +00:00
|
|
|
pointer-events: none;
|
2021-05-06 09:33:10 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-06-08 14:12:56 +00:00
|
|
|
button[disabled] {
|
|
|
|
cursor: default;
|
2024-05-10 11:31:38 +00:00
|
|
|
opacity: var(--mdl-button-disabled-opacity);
|
2021-06-08 14:12:56 +00:00
|
|
|
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-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
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2024-03-19 14:24:26 +00:00
|
|
|
core-tabs, core-tabs-outlet {
|
|
|
|
swiper-slide {
|
|
|
|
--background: var(--core-tab-background);
|
|
|
|
--color: var(--core-tab-color);
|
|
|
|
--border-color: var(--core-tab-border-color);
|
|
|
|
--color-active: var(--core-tab-color-active);
|
|
|
|
--border-color-active: var(--core-tab-border-color-active);
|
|
|
|
--color-selected: var(--border-color-active);
|
|
|
|
--font-weight-active: var(--core-tab-font-weight-active);
|
|
|
|
}
|
|
|
|
}
|
2021-10-06 11:06:00 +00:00
|
|
|
|
|
|
|
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 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
|
|
|
}
|
|
|
|
|
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);
|
2024-03-14 09:15:47 +00:00
|
|
|
--border-radius: var(--mdl-shape-borderRadius-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
|
|
|
|
2024-04-23 11:31:51 +00:00
|
|
|
ion-item.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
|
|
|
|
2024-04-23 11:31:51 +00:00
|
|
|
&.item-label > ion-label,
|
|
|
|
&.item-label > ion-label > p {
|
2022-02-11 12:58:22 +00:00
|
|
|
--color: var(--color-shade);
|
|
|
|
}
|
2024-04-23 11:31:51 +00:00
|
|
|
|
|
|
|
> ion-icon[slot] {
|
|
|
|
color: var(--color-shade);
|
|
|
|
@include margin-horizontal(null, 16px);
|
|
|
|
}
|
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;
|
|
|
|
}
|
2024-04-23 11:31:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ion-item.item.core-#{$color-name}-item {
|
|
|
|
--color-base: var(--ion-color-#{$color-name});
|
|
|
|
--color-shade: var(--ion-color-#{$color-name}-shade);
|
|
|
|
|
|
|
|
--border-width: 0 0 3px 0;
|
|
|
|
--border-color: var(--color-base);
|
|
|
|
--inner-border-width: 0px;
|
|
|
|
|
|
|
|
> ion-icon[slot] {
|
|
|
|
color: var(--color-base);
|
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;
|
|
|
|
}
|
|
|
|
|
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 {
|
2024-03-14 09:15:47 +00:00
|
|
|
border-radius: var(--mdl-shape-borderRadius-lg);
|
2023-09-29 10:18:26 +00:00
|
|
|
}
|
|
|
|
|
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%;
|
|
|
|
}
|
|
|
|
|
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;
|
2024-03-14 09:15:47 +00:00
|
|
|
border-radius: var(--mdl-shape-borderRadius-lg);
|
2022-02-08 11:06:48 +00:00
|
|
|
}
|
|
|
|
|
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 {
|
2024-03-14 09:15:47 +00:00
|
|
|
font-family: var(--mdl-typography-monospace-font);
|
2021-02-18 08:19:38 +00:00
|
|
|
}
|
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 {
|
2024-03-14 09:15:47 +00:00
|
|
|
min-height: var(--a11y-sizing-minTargetSize);
|
2021-05-06 09:33:10 +00:00
|
|
|
}
|
|
|
|
|
2021-04-21 11:12:32 +00:00
|
|
|
textarea:not([core-auto-rows]) {
|
|
|
|
height: 200px;
|
|
|
|
}
|
2021-04-26 12:14:15 +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
|
|
|
|
2021-06-15 11:23:48 +00:00
|
|
|
// Disabled items.
|
|
|
|
ion-item.item-disabled,
|
2024-05-10 11:31:38 +00:00
|
|
|
ion-item.item-interactive-disabled:not(.item-multiple-inputs) ion-label {
|
|
|
|
opacity: var(--mdl-item-disabled-opacity) !important;
|
2021-06-15 11:23:48 +00:00
|
|
|
}
|
|
|
|
|
2022-03-09 16:56:19 +00:00
|
|
|
ion-item-divider.item,
|
2024-02-22 08:37:06 +00:00
|
|
|
ion-item.item,
|
|
|
|
td {
|
2022-02-10 12:24:18 +00:00
|
|
|
.expandable-status-icon {
|
2024-02-22 08:37:06 +00:00
|
|
|
font-size: 1.125rem;
|
2022-02-10 12:24:18 +00:00
|
|
|
@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.
|
2024-04-23 10:52:34 +00:00
|
|
|
.ion-activatable,
|
|
|
|
.clickable,
|
|
|
|
.ion-focusable.ion-focused,
|
|
|
|
.ion-selectable {
|
|
|
|
@include core-focus-background();
|
2021-05-13 14:39:16 +00:00
|
|
|
}
|
|
|
|
|
2024-04-22 12:37:29 +00:00
|
|
|
:not(.hydrated):not(.native-input):not(.native-textarea) { // Not an ionic component.
|
2024-04-23 10:52:34 +00:00
|
|
|
@include core-focus-outline();
|
2021-05-11 08:04:32 +00:00
|
|
|
}
|
2021-05-19 14:20:43 +00:00
|
|
|
|
2024-02-15 11:41:35 +00:00
|
|
|
ion-input,
|
|
|
|
ion-input input,
|
2024-04-25 13:43:57 +00:00
|
|
|
ion-textarea,
|
|
|
|
core-rich-text-editor {
|
2023-11-21 14:59:08 +00:00
|
|
|
--placeholder-color: var(--ion-placeholder-color);
|
2024-05-10 11:31:38 +00:00
|
|
|
--placeholder-opacity: var(--mdl-placeholder-opacity);
|
2023-11-21 14:59:08 +00:00
|
|
|
}
|
|
|
|
|
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-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
|
|
|
|
|
|
|
|
2024-02-15 11:41:35 +00:00
|
|
|
.core-flex-no-grow {
|
|
|
|
flex-grow: 0;
|
|
|
|
}
|
|
|
|
|
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%;
|
2024-03-05 09:16:29 +00:00
|
|
|
background-image: linear-gradient(to left, rgb(var(--loader-shine) / 5%), rgb(var(--loader-shine) / 30%), rgb(var(--loader-shine) / 60%), rgb(var(--loader-shine) / 30%), rgb(var(--loader-shine) / 5%));
|
2022-03-17 08:51:17 +00:00
|
|
|
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-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
|
|
|
|
2024-03-20 08:27:55 +00:00
|
|
|
.x-scrollable {
|
|
|
|
overflow-x: auto;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2024-02-15 11:41:35 +00:00
|
|
|
// Table App styles
|
|
|
|
table.core-table {
|
|
|
|
border-collapse: collapse;
|
|
|
|
line-height: 20px;
|
|
|
|
width: 98%;
|
|
|
|
margin: 1em auto;
|
|
|
|
color: var(--text-color);
|
|
|
|
|
|
|
|
thead th {
|
|
|
|
vertical-align: bottom;
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 14px;
|
|
|
|
background-color: var(--core-table-header-background);
|
|
|
|
}
|
|
|
|
|
2024-03-11 12:35:33 +00:00
|
|
|
tbody {
|
|
|
|
th {
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
td {
|
|
|
|
font-size: 16px;
|
|
|
|
}
|
2024-02-15 11:41:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
th, td {
|
|
|
|
padding: 8px;
|
|
|
|
white-space: normal;
|
|
|
|
text-align: start;
|
|
|
|
}
|
|
|
|
|
|
|
|
tr {
|
|
|
|
border-bottom: 1px solid var(--core-table-border-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.odd {
|
|
|
|
--cell-background: var(--core-table-odd-cell-background);
|
|
|
|
--cell-hover: var(--core-table-odd-cell-hover);
|
|
|
|
}
|
|
|
|
|
|
|
|
.even {
|
|
|
|
--cell-background: var(--core-table-even-cell-background);
|
|
|
|
--cell-hover: var(--core-table-even-cell-hover);
|
|
|
|
}
|
|
|
|
|
|
|
|
.odd, .even {
|
|
|
|
td, th, th[aria-current="page"] {
|
|
|
|
background-color: var(--cell-background);
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: var(--cell-hover);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-03-11 12:35:33 +00:00
|
|
|
tbody.auto-striped {
|
|
|
|
tr:nth-child(odd) {
|
|
|
|
background-color: var(--core-table-odd-cell-background);
|
2024-02-15 11:41:35 +00:00
|
|
|
|
2024-03-11 12:35:33 +00:00
|
|
|
&:hover {
|
|
|
|
background-color: var(--core-table-even-odd-hover);
|
|
|
|
}
|
2024-02-15 11:41:35 +00:00
|
|
|
}
|
|
|
|
|
2024-03-11 12:35:33 +00:00
|
|
|
tr:nth-child(even) {
|
|
|
|
background-color: var(--core-table-even-cell-background);
|
2024-02-15 11:41:35 +00:00
|
|
|
|
2024-03-11 12:35:33 +00:00
|
|
|
&:hover {
|
|
|
|
background-color: var(--core-table-even-cell-hover);
|
|
|
|
}
|
2024-02-15 11:41:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.ion-no-border {
|
|
|
|
border: 0 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dimmed_text,
|
|
|
|
.hidden {
|
|
|
|
opacity: .7;
|
|
|
|
}
|
|
|
|
}
|