2017-10-18 10:20:40 +00:00
|
|
|
// http://ionicframework.com/docs/theming/
|
|
|
|
|
|
|
|
|
|
|
|
// App Global Sass
|
|
|
|
// --------------------------------------------------
|
|
|
|
// Put style rules here that you want to apply globally. These
|
|
|
|
// styles are for the entire app and not just one component.
|
|
|
|
// Additionally, this file can be also used as an entry point
|
|
|
|
// to import other Sass files to be included in the output CSS.
|
|
|
|
//
|
|
|
|
// Shared Sass variables, which can be used to adjust Ionic's
|
|
|
|
// default Sass variables, belong in "theme/variables.scss".
|
|
|
|
//
|
|
|
|
// To declare rules for a specific mode, create a child rule
|
|
|
|
// for the .md, .ios, or .wp mode classes. The mode class is
|
|
|
|
// automatically applied to the <body> element in the app.
|
2017-11-21 15:35:41 +00:00
|
|
|
|
2017-11-24 11:31:09 +00:00
|
|
|
// Alignment
|
|
|
|
// -------------------------
|
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
ion-app.app-root {
|
|
|
|
.text-left { text-align: left; }
|
|
|
|
.text-right { text-align: right; }
|
|
|
|
.text-center { text-align: center; }
|
|
|
|
.text-justify { text-align: justify; }
|
|
|
|
.clearfix {
|
|
|
|
&:after {
|
|
|
|
content: "";
|
|
|
|
display: table;
|
|
|
|
clear: both;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.img-responsive {
|
|
|
|
display: block;
|
|
|
|
max-width: 100%;
|
2019-01-10 10:36:43 +00:00
|
|
|
&[height] {
|
|
|
|
height: auto;
|
|
|
|
}
|
2017-12-29 17:05:52 +00:00
|
|
|
}
|
2018-01-23 12:00:00 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
.opacity-hide { opacity: 0; }
|
|
|
|
.core-big { font-size: 115%; }
|
|
|
|
.invisible { visibility: hidden; }
|
2018-06-19 10:29:12 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
.button-no-uppercase {
|
|
|
|
text-transform: none;
|
|
|
|
}
|
2018-08-30 13:51:45 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
@include media-breakpoint-up(sm) {
|
|
|
|
.core-center-view .scroll-content {
|
|
|
|
display: flex!important;
|
|
|
|
align-content: center !important;
|
|
|
|
align-items: center !important;
|
|
|
|
> * {
|
|
|
|
margin: 0 auto;
|
2019-01-02 12:11:58 +00:00
|
|
|
width: 100%;
|
2018-08-31 08:26:37 +00:00
|
|
|
max-width: 600px;
|
|
|
|
}
|
2017-11-24 11:31:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
@include media-breakpoint-down(sm) {
|
|
|
|
.hidden-phone {
|
|
|
|
display: none !important;
|
|
|
|
opacity: 0 !important;
|
|
|
|
}
|
2017-12-29 17:05:52 +00:00
|
|
|
}
|
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
@include media-breakpoint-up(md) {
|
|
|
|
.hidden-tablet {
|
|
|
|
display: none !important;
|
|
|
|
opacity: 0 !important;
|
|
|
|
}
|
2017-12-29 17:05:52 +00:00
|
|
|
}
|
|
|
|
|
2019-01-24 08:27:05 +00:00
|
|
|
.has-refresher > .scroll-content {
|
|
|
|
border-top: 0 !important;
|
|
|
|
}
|
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
// Define an alternative way to set a heading in an item without using a heading tag.
|
|
|
|
// This is done for accessibility reasons when a heading is semantically incorrect.
|
|
|
|
.item .item-heading {
|
|
|
|
@extend h6;
|
|
|
|
margin: 0;
|
2017-11-27 10:57:52 +00:00
|
|
|
}
|
2018-08-31 08:26:37 +00:00
|
|
|
|
|
|
|
.item-dimmed {
|
|
|
|
opacity: 0.71;
|
2017-11-27 10:57:52 +00:00
|
|
|
}
|
2018-08-31 08:26:37 +00:00
|
|
|
|
2018-09-14 08:38:03 +00:00
|
|
|
// Simulate item[disabled] but keeping pointer-events.
|
|
|
|
.item-disabled {
|
|
|
|
opacity: .4;
|
|
|
|
}
|
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
.item-radio-checked {
|
|
|
|
background-color: $gray-lighter;
|
2017-11-27 10:57:52 +00:00
|
|
|
}
|
2017-11-27 12:10:56 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
// Make no-lines work in any element, not just ion-item and ion-list.
|
|
|
|
.item *[no-lines] .item-inner,
|
|
|
|
*[no-lines] .item .item-inner {
|
|
|
|
border: 0;
|
|
|
|
}
|
2017-11-29 15:03:47 +00:00
|
|
|
|
2019-03-07 14:56:29 +00:00
|
|
|
.core-nav-item-selected, .item.core-nav-item-selected {
|
|
|
|
@include core-selected-item($core-splitview-selected);
|
|
|
|
}
|
|
|
|
|
2019-01-07 10:41:07 +00:00
|
|
|
// Recover borders on items inside cards.
|
|
|
|
.card.with-borders .core-as-item,
|
|
|
|
.core-as-item {
|
|
|
|
@include core-as-items();
|
|
|
|
}
|
|
|
|
|
|
|
|
.card.with-borders .item {
|
|
|
|
@include core-items();
|
|
|
|
}
|
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
.core-oauth-icon, .item.core-oauth-icon, .list .item.core-oauth-icon {
|
|
|
|
min-height: 32px;
|
|
|
|
img, .label {
|
|
|
|
max-height: 32px;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
img {
|
|
|
|
max-width: 32px;
|
|
|
|
}
|
|
|
|
.label {
|
|
|
|
@include margin(null, null, null, 5px);
|
|
|
|
color: $gray-darker;
|
|
|
|
}
|
|
|
|
}
|
2018-01-23 12:00:00 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
.core-bold, .core-bold .label {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2018-01-23 12:00:00 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
.core-module-icon {
|
|
|
|
width: auto;
|
2019-01-28 10:10:33 +00:00
|
|
|
max-width: 24px;
|
|
|
|
max-height: 24px;
|
2018-01-23 12:00:00 +00:00
|
|
|
}
|
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
.core-button-spinner {
|
|
|
|
min-height: 44px;
|
|
|
|
min-width: 50px;
|
2017-11-30 11:02:49 +00:00
|
|
|
text-align: center;
|
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
.spinner {
|
|
|
|
margin-top: 8px;
|
2017-11-30 11:02:49 +00:00
|
|
|
}
|
2018-08-31 08:26:37 +00:00
|
|
|
}
|
2017-11-30 11:02:49 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
// Avatar
|
|
|
|
// -------------------------
|
|
|
|
// Large centered avatar
|
|
|
|
.item-avatar-center {
|
|
|
|
text-align: center;
|
2017-12-18 09:48:04 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
&.item-complex .item-content {
|
|
|
|
text-align: center;
|
|
|
|
@include padding(null, null, null, 49px);
|
|
|
|
}
|
2017-12-18 09:48:04 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
> img:first-child,
|
|
|
|
ion-avatar img,
|
|
|
|
img {
|
|
|
|
display: block;
|
|
|
|
margin: auto;
|
|
|
|
width: 90px;
|
|
|
|
height: 90px;
|
|
|
|
max-width: 90px;
|
|
|
|
max-height: 90px;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
border-radius : 50%;
|
|
|
|
padding: 4px;
|
|
|
|
border: 1px solid #ddd;
|
2018-11-16 13:41:26 +00:00
|
|
|
background-color: white;
|
2018-08-31 08:26:37 +00:00
|
|
|
|
|
|
|
&.avatar-full {
|
|
|
|
border-radius: 2%;
|
|
|
|
border: 0;
|
|
|
|
max-width: 100%;
|
|
|
|
max-height: 160px;
|
|
|
|
width: auto;
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-05-09 12:14:31 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
ion-avatar ion-img, ion-avatar img {
|
|
|
|
text-indent: -99999px;
|
|
|
|
background-color: $gray-light;
|
2018-07-31 14:35:48 +00:00
|
|
|
}
|
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
// Form items
|
|
|
|
// -------------------------
|
2018-07-31 14:35:48 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
.item .core-input-footnote {
|
|
|
|
width: 100%;
|
|
|
|
padding-top: 10px;
|
|
|
|
padding-bottom: 10px;
|
|
|
|
font-style: italic;
|
|
|
|
}
|
2018-07-31 14:35:48 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
ion-datetime {
|
|
|
|
position: relative;
|
|
|
|
}
|
2017-12-12 09:49:13 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
input {
|
2018-11-09 15:42:21 +00:00
|
|
|
@include text-align('start');
|
2018-08-31 08:26:37 +00:00
|
|
|
@include rtl() {
|
|
|
|
text-align: right;
|
|
|
|
}
|
2017-12-12 09:49:13 +00:00
|
|
|
}
|
|
|
|
|
2018-12-10 08:56:52 +00:00
|
|
|
/** Format Text - Show more styles. */
|
|
|
|
/** Styles of elements inside the directive should be placed in format-text.scss */
|
2018-10-03 14:28:15 +00:00
|
|
|
core-format-text {
|
|
|
|
user-select: text;
|
2017-12-12 09:49:13 +00:00
|
|
|
|
2018-12-10 08:56:52 +00:00
|
|
|
&[maxHeight],
|
|
|
|
&[ng-reflect-max-height] {
|
|
|
|
display: block;
|
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
|
|
|
overflow: hidden;
|
2017-12-12 09:49:13 +00:00
|
|
|
|
2018-12-10 08:56:52 +00:00
|
|
|
/* Force display inline */
|
|
|
|
&.inline {
|
|
|
|
display: inline-block;
|
|
|
|
width: auto;
|
2017-12-12 09:49:13 +00:00
|
|
|
}
|
|
|
|
|
2018-12-10 08:56:52 +00:00
|
|
|
// This is to allow clicks in radio/checkbox content.
|
|
|
|
&.core-text-formatted {
|
|
|
|
cursor: pointer;
|
|
|
|
pointer-events: auto;
|
2018-08-31 08:26:37 +00:00
|
|
|
|
|
|
|
.core-show-more {
|
2018-12-10 08:56:52 +00:00
|
|
|
display: none;
|
2018-08-31 08:26:37 +00:00
|
|
|
}
|
|
|
|
|
2018-12-10 08:56:52 +00:00
|
|
|
&:not(.core-shortened) {
|
|
|
|
max-height: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.core-shortened {
|
|
|
|
color: $gray-darker;
|
|
|
|
overflow: hidden;
|
|
|
|
min-height: 50px;
|
|
|
|
|
|
|
|
.core-show-more {
|
|
|
|
color: color($colors, dark);
|
|
|
|
@include text-align('end');
|
|
|
|
font-size: 14px;
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
@include position(null, 0, 0, null);
|
|
|
|
z-index: 1001;
|
|
|
|
background-color: $white;
|
|
|
|
@include padding(null, null, null, 10px);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: '';
|
|
|
|
height: 100%;
|
|
|
|
position: absolute;
|
|
|
|
@include position(null, 0, 0, 0);
|
|
|
|
background: -moz-linear-gradient(top, rgba(255, 255, 255, 0) calc(100% - 50px), white calc(100% - 15px));
|
|
|
|
background: -webkit-gradient(left top, left bottom, color-stop(calc(100% - 50px), rgba(255, 255, 255, 0)), color-stop(calc(100% - 15px), white));
|
|
|
|
background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0) calc(100% - 50px), white calc(100% - 15px));
|
|
|
|
background: -o-linear-gradient(top, rgba(255, 255, 255, 0) calc(100% - 50px), white calc(100% - 15px));
|
|
|
|
background: -ms-linear-gradient(top, rgba(255, 255, 255, 0) calc(100% - 50px), white calc(100% - 15px));
|
|
|
|
background: linear-gradient(to bottom, rgba(255, 255, 255, 0) calc(100% - 50px), white calc(100% - 15px));
|
|
|
|
z-index: 1000;
|
|
|
|
}
|
2018-08-31 08:26:37 +00:00
|
|
|
}
|
2017-12-12 09:49:13 +00:00
|
|
|
}
|
2018-01-23 12:00:00 +00:00
|
|
|
|
2018-12-10 08:56:52 +00:00
|
|
|
&.core-expand-in-fullview {
|
|
|
|
.core-show-more {
|
|
|
|
@include svg-background-image($item-md-detail-push-svg, true);
|
|
|
|
@include padding-horizontal(null, 18px);
|
|
|
|
@include background-position(end, 0, center);
|
2018-01-23 12:00:00 +00:00
|
|
|
|
2018-12-10 08:56:52 +00:00
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: 14px 14px;
|
|
|
|
}
|
2018-08-31 08:26:37 +00:00
|
|
|
}
|
2018-01-23 12:00:00 +00:00
|
|
|
}
|
|
|
|
|
2018-12-10 08:56:52 +00:00
|
|
|
&[singleLine="true"],
|
|
|
|
&[ng-reflect-single-line="true"] {
|
|
|
|
cursor: pointer;
|
|
|
|
pointer-events: auto;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
display: block;
|
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
audio, video, a, iframe {
|
2018-08-31 08:26:37 +00:00
|
|
|
pointer-events: auto;
|
2018-12-10 08:56:52 +00:00
|
|
|
}
|
2018-08-31 08:26:37 +00:00
|
|
|
}
|
2018-02-14 16:19:09 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
.core-media-adapt-width {
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
2018-07-10 07:35:52 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
img.core-media-adapt-width {
|
|
|
|
height: auto;
|
|
|
|
}
|
2018-01-23 12:00:00 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
audio.core-media-adapt-width {
|
|
|
|
width: 100%;
|
|
|
|
}
|
2018-01-23 12:00:00 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
.core-adapted-img-container {
|
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.core-image-viewer-icon {
|
|
|
|
position: absolute;
|
|
|
|
@include position(null, 10px, 10px, null);
|
|
|
|
color: $black;
|
|
|
|
border-radius: 5px;
|
|
|
|
background: rgba(255, 255, 255, .5);
|
|
|
|
text-align: center;
|
2018-01-23 12:00:00 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
|
|
|
max-width: 32px;
|
|
|
|
line-height: 32px;
|
2018-01-23 12:00:00 +00:00
|
|
|
font-size: 24px;
|
2018-08-31 08:26:37 +00:00
|
|
|
ion-icon {
|
|
|
|
font-size: 24px;
|
|
|
|
}
|
2018-01-23 12:00:00 +00:00
|
|
|
}
|
2017-12-12 09:49:13 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
// Media item, ideal for icons.
|
|
|
|
.item-media {
|
|
|
|
min-height: $item-media-height + ($content-padding * 2);
|
|
|
|
> img:first-child {
|
|
|
|
max-width: $item-media-width;
|
|
|
|
max-height: $item-media-height;
|
|
|
|
}
|
2018-08-09 13:49:06 +00:00
|
|
|
}
|
|
|
|
|
2018-09-03 14:02:36 +00:00
|
|
|
.item .item-button[icon-only] {
|
|
|
|
height: 2.8em;
|
|
|
|
font-size: 1.6rem;
|
2018-09-10 10:59:11 +00:00
|
|
|
padding: 8px 11px;
|
|
|
|
margin: 0;
|
2018-09-03 14:02:36 +00:00
|
|
|
}
|
|
|
|
|
2018-10-11 14:03:55 +00:00
|
|
|
ion-col ion-select:not([text-start]) {
|
2018-08-31 08:26:37 +00:00
|
|
|
@include float(end);
|
|
|
|
max-width: none;
|
|
|
|
width: 100%;
|
|
|
|
.select-text {
|
|
|
|
white-space: normal;
|
2018-11-09 10:25:23 +00:00
|
|
|
@include text-align('end');
|
2018-08-31 08:26:37 +00:00
|
|
|
}
|
2018-08-09 13:49:06 +00:00
|
|
|
}
|
|
|
|
|
2018-10-11 14:03:55 +00:00
|
|
|
.item-radio-disabled ion-radio[ng-reflect-value="disabled"]{
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2018-09-04 11:28:13 +00:00
|
|
|
ion-select {
|
2018-10-11 14:03:55 +00:00
|
|
|
position: relative; // Ionic fix. Button can occupy all page if not.
|
2018-09-04 11:28:13 +00:00
|
|
|
color: $core-select-placeholder-color;
|
|
|
|
align-self: start;
|
|
|
|
|
|
|
|
.select-icon .select-icon-inner {
|
|
|
|
color: $core-select-placeholder-color;
|
|
|
|
}
|
2019-01-28 16:42:50 +00:00
|
|
|
|
2019-05-13 10:42:19 +00:00
|
|
|
&.select-disabled .select-icon .select-icon-inner {
|
2019-01-28 16:42:50 +00:00
|
|
|
color: $text-color;
|
|
|
|
}
|
|
|
|
@each $color-name, $color-base, $color-contrast in get-colors($colors) {
|
|
|
|
&.select-md-#{$color-name},
|
|
|
|
&.select-ios-#{$color-name},
|
|
|
|
&.select-wp-#{$color-name} {
|
|
|
|
color: $color-base;
|
|
|
|
|
|
|
|
.select-icon .select-icon-inner {
|
|
|
|
color: $color-base;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-09-04 11:28:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ion-select.core-button-select,
|
2018-08-31 08:26:37 +00:00
|
|
|
.core-button-select {
|
|
|
|
background-color: white;
|
2018-09-04 11:28:13 +00:00
|
|
|
color: $core-select-placeholder-color;
|
2018-08-31 08:26:37 +00:00
|
|
|
white-space: normal;
|
|
|
|
align-self: start;
|
|
|
|
max-width: none;
|
2018-11-09 10:28:01 +00:00
|
|
|
@include text-align('start');
|
2018-08-09 13:49:06 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
&.select-md,
|
|
|
|
&.button-md {
|
|
|
|
background: $card-md-background-color;
|
|
|
|
box-shadow: $card-md-box-shadow;
|
|
|
|
}
|
2018-04-09 11:14:55 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
&.select-ios,
|
|
|
|
&.button-ios {
|
|
|
|
background: $card-ios-background-color;
|
|
|
|
box-shadow: $card-ios-box-shadow;
|
|
|
|
}
|
2018-08-09 13:49:06 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
&.select-wp,
|
|
|
|
&.button-wp {
|
|
|
|
background: $card-wp-background-color;
|
|
|
|
}
|
2018-08-09 13:49:06 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
.select-text {
|
|
|
|
white-space: normal;
|
|
|
|
}
|
2018-01-09 07:51:44 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
.button-inner {
|
|
|
|
justify-content: start;
|
|
|
|
}
|
2018-01-09 07:51:44 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
.select-icon .select-icon-inner {
|
2018-09-04 11:28:13 +00:00
|
|
|
color: $core-select-placeholder-color;
|
2018-01-09 07:51:44 +00:00
|
|
|
}
|
2018-01-23 12:00:00 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
ion-icon:last-child {
|
|
|
|
@include margin(null, null, null, 5px);
|
2018-11-09 10:25:23 +00:00
|
|
|
@include text-align('end');
|
2018-08-31 08:26:37 +00:00
|
|
|
flex-grow: 2;
|
|
|
|
}
|
2018-12-03 12:18:04 +00:00
|
|
|
|
|
|
|
.select-text {
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
2018-08-31 08:26:37 +00:00
|
|
|
}
|
2018-04-05 07:21:19 +00:00
|
|
|
|
2019-01-04 11:50:12 +00:00
|
|
|
.col > .button-block {
|
|
|
|
contain: content;
|
|
|
|
}
|
|
|
|
|
2018-04-05 07:21:19 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
// File uploader.
|
|
|
|
// -------------------------
|
|
|
|
.core-fileuploader-file-handler {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
input {
|
|
|
|
position: absolute;
|
|
|
|
@include position(null, 0, 0, null);
|
|
|
|
min-width: 100%;
|
|
|
|
min-height: 100%;
|
|
|
|
opacity: 0;
|
|
|
|
outline: none;
|
|
|
|
z-index: 100;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2018-04-05 07:21:19 +00:00
|
|
|
}
|
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
// Question.
|
|
|
|
// -------------------------
|
2019-01-28 16:42:50 +00:00
|
|
|
.core-correct-icon {
|
|
|
|
padding: 0 ($content-padding / 2);
|
|
|
|
position: absolute;
|
|
|
|
@include position(null, 0, $content-padding / 2, null);
|
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2018-04-05 07:21:19 +00:00
|
|
|
|
2019-01-31 12:23:21 +00:00
|
|
|
|
|
|
|
.core-question-answer-correct {
|
|
|
|
color: $core-question-correct-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.core-question-answer-incorrect {
|
|
|
|
color: $core-question-incorrect-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
input, select {
|
|
|
|
&.core-question-answer-correct, &.core-question-answer-incorrect {
|
|
|
|
background-color: $gray-lighter;
|
|
|
|
color: $text-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-01-28 16:42:50 +00:00
|
|
|
.core-question-correct,
|
2018-08-31 08:26:37 +00:00
|
|
|
.core-question-comment {
|
|
|
|
color: $core-question-correct-color;
|
|
|
|
background-color: $core-question-correct-color-bg;
|
|
|
|
|
2018-12-11 15:20:13 +00:00
|
|
|
.label, ion-label.label, .select-text, .select-icon .select-icon-inner {
|
2018-08-31 08:26:37 +00:00
|
|
|
color: $core-question-correct-color;
|
|
|
|
}
|
2018-12-11 15:20:13 +00:00
|
|
|
.radio-icon {
|
|
|
|
border-color: $core-question-correct-color;
|
|
|
|
}
|
|
|
|
.radio-inner {
|
|
|
|
background-color: $core-question-correct-color;
|
|
|
|
}
|
2018-04-05 07:21:19 +00:00
|
|
|
}
|
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
.core-question-incorrect {
|
|
|
|
color: $core-question-incorrect-color;
|
|
|
|
background-color: $core-question-incorrect-color-bg;
|
2018-04-05 07:21:19 +00:00
|
|
|
|
2018-12-11 15:20:13 +00:00
|
|
|
.label, ion-label.label, .select-text, .select-icon .select-icon-inner {
|
2018-08-31 08:26:37 +00:00
|
|
|
color: $core-question-incorrect-color;
|
|
|
|
}
|
2018-12-11 15:20:13 +00:00
|
|
|
.radio-icon {
|
|
|
|
border-color: $core-question-incorrect-color;
|
|
|
|
}
|
|
|
|
.radio-inner {
|
|
|
|
background-color: $core-question-incorrect-color;
|
|
|
|
}
|
2018-04-05 07:21:19 +00:00
|
|
|
}
|
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
.core-question-feedback-container {
|
|
|
|
background-color: $core-question-feedback-color-bg;
|
|
|
|
color: $core-question-feedback-color;
|
2018-04-05 07:21:19 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
.specificfeedback, .rightanswer, .im-feedback, .feedback, .generalfeedback {
|
|
|
|
margin: 0 0 .5em;
|
2018-04-05 07:21:19 +00:00
|
|
|
}
|
2018-08-31 08:26:37 +00:00
|
|
|
|
|
|
|
.correctness {
|
|
|
|
display: inline-block;
|
|
|
|
padding: 2px 4px;
|
|
|
|
font-weight: bold;
|
|
|
|
line-height: 14px;
|
|
|
|
color: $white;
|
|
|
|
text-shadow: 0 -1px 0 rgba(0,0,0,0.25);
|
|
|
|
background-color: $gray-dark;
|
|
|
|
-webkit-border-radius: 3px;
|
|
|
|
border-radius: 3px;
|
|
|
|
|
|
|
|
&.incorrect {
|
|
|
|
background-color: $red;
|
|
|
|
}
|
|
|
|
&.correct {
|
|
|
|
background-color: $green;
|
|
|
|
}
|
2018-04-05 07:21:19 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
.core-question-feedback-inline {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
2018-04-05 07:21:19 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
.core-question-feedback-padding {
|
|
|
|
@include padding(8px, 35px, 8px, 14px);
|
|
|
|
}
|
2018-04-05 07:21:19 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
.core-question-correct {
|
|
|
|
background-color: $core-question-state-correct-color;
|
|
|
|
}
|
|
|
|
.core-question-partiallycorrect {
|
|
|
|
background-color: $core-question-state-partial-color;
|
|
|
|
}
|
|
|
|
.core-question-notanswered,
|
|
|
|
.core-question-incorrect {
|
|
|
|
background-color: $core-question-state-incorrect-color;
|
|
|
|
}
|
2019-01-28 16:42:50 +00:00
|
|
|
.core-question-answersaved,
|
|
|
|
.core-question-requiresgrading {
|
2018-08-31 08:26:37 +00:00
|
|
|
color: $text-color;
|
|
|
|
background-color: $core-question-saved-color-bg;
|
|
|
|
}
|
2018-04-05 07:21:19 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
.core-question-warning {
|
|
|
|
color: $core-question-warning-color;
|
|
|
|
}
|
2018-04-05 07:21:19 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
.questioncorrectnessicon,
|
|
|
|
.fa.icon.questioncorrectnessicon {
|
|
|
|
font-size: 20px;
|
|
|
|
}
|
2018-04-05 07:21:19 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
.action-sheet-group {
|
|
|
|
overflow: auto;
|
|
|
|
}
|
|
|
|
.alert-message {
|
|
|
|
overflow-y: auto;
|
|
|
|
}
|
2019-05-07 09:33:15 +00:00
|
|
|
ion-alert.core-nohead {
|
|
|
|
|
|
|
|
&.alert-md .alert-message {
|
|
|
|
padding-top: $alert-md-message-padding-bottom;
|
|
|
|
}
|
|
|
|
&.alert-ios .alert-message {
|
|
|
|
padding-top: $alert-ios-message-padding-bottom;
|
|
|
|
}
|
|
|
|
&.alert-wp .alert-message {
|
|
|
|
padding-top: $alert-wp-message-padding-bottom;
|
|
|
|
}
|
|
|
|
.alert-head {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ion-alert .alert-checkbox-group {
|
|
|
|
border: 0;
|
|
|
|
}
|
2018-01-24 14:39:05 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
ion-toast.core-toast-success .toast-wrapper{
|
|
|
|
background: $green-dark;
|
|
|
|
}
|
2018-01-24 14:39:05 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
ion-toast.core-toast-alert .toast-wrapper{
|
|
|
|
background: $red-dark;
|
|
|
|
}
|
2018-01-24 14:39:05 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
textarea {
|
|
|
|
width: 100%;
|
|
|
|
resize: none;
|
2018-02-14 16:19:09 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
&[core-auto-rows] {
|
|
|
|
height: auto;
|
|
|
|
line-height: 18px;
|
|
|
|
padding: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not([core-auto-rows]) {
|
|
|
|
height: 200px;
|
|
|
|
min-height: $core-rte-min-height;
|
|
|
|
}
|
2018-02-14 16:19:09 +00:00
|
|
|
}
|
|
|
|
|
2018-12-20 09:09:45 +00:00
|
|
|
.toolbar img.core-bar-button-image,
|
|
|
|
.toolbar .core-bar-button-image img {
|
2018-08-31 08:26:37 +00:00
|
|
|
padding: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
max-width: $core-toolbar-button-image-width - 1;
|
|
|
|
max-height: $core-toolbar-button-image-width - 1;
|
|
|
|
border-radius: 50%;
|
2018-02-14 16:19:09 +00:00
|
|
|
}
|
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
// Footer with auto height.
|
|
|
|
.footer.footer-adjustable {
|
|
|
|
height: auto;
|
|
|
|
}
|
2018-02-14 16:19:09 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
.core-circle:before {
|
|
|
|
content: ' \25CF';
|
|
|
|
}
|
2018-02-14 16:19:09 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
@each $color-name, $color-base, $color-contrast in get-colors($colors) {
|
|
|
|
// Message cards.
|
|
|
|
.core-#{$color-name}-card {
|
|
|
|
@extend ion-card;
|
|
|
|
border-bottom: 3px solid $color-base;
|
2018-03-23 07:38:00 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
&[icon-start] {
|
|
|
|
@include padding(null, null, null, 52px);
|
|
|
|
position: relative;
|
2018-03-09 11:29:11 +00:00
|
|
|
|
2019-02-18 14:26:52 +00:00
|
|
|
> ion-icon {
|
2018-08-31 08:26:37 +00:00
|
|
|
color: $color-base;
|
|
|
|
position: absolute;
|
|
|
|
@include position(0, null, null, 16px)
|
|
|
|
height: 100%;
|
|
|
|
font-size: 24px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-03-09 11:29:11 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
.core-#{$color-name}-item {
|
|
|
|
border-bottom: 3px solid $color-base !important;
|
2018-03-09 11:29:11 +00:00
|
|
|
ion-icon {
|
|
|
|
color: $color-base;
|
|
|
|
}
|
|
|
|
}
|
2018-03-16 12:44:57 +00:00
|
|
|
|
2019-02-25 16:12:16 +00:00
|
|
|
.core-#{$color-name}-item.item-input {
|
|
|
|
border-bottom: 0 !important;
|
|
|
|
|
|
|
|
&.item-md .item-inner {
|
|
|
|
@include md-input-highlight($color-base);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.item-ios .item-inner {
|
|
|
|
@include ios-input-highlight($color-base);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.item-wp .item-inner {
|
|
|
|
border-color: $color-base;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-10-24 13:47:45 +00:00
|
|
|
.core-#{$color-name}-selected-item {
|
2018-11-20 10:50:33 +00:00
|
|
|
@include safe-area-border-start(5px, solid, $color-base);
|
|
|
|
|
2018-10-24 13:47:45 +00:00
|
|
|
&.item-md {
|
|
|
|
@include padding(null, null, null, $item-md-padding-start - 5px);
|
|
|
|
}
|
|
|
|
&.item-ios {
|
|
|
|
@include padding(null, null, null, $item-ios-padding-start - 5px);
|
|
|
|
}
|
|
|
|
&.item-wp {
|
|
|
|
@include padding(null, null, null, $item-wp-padding-start - 5px);
|
|
|
|
}
|
2018-11-20 10:50:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.split-pane-main .core-#{$color-name}-selected-item {
|
|
|
|
@include border-start(5px, solid, $color-base);
|
|
|
|
}
|
2018-10-24 13:47:45 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
.core-#{$color-name}-circle {
|
|
|
|
margin: 0 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.core-#{$color-name}-circle:before {
|
|
|
|
@extend .core-circle:before;
|
2018-03-23 07:38:00 +00:00
|
|
|
color: $color-base;
|
|
|
|
}
|
2018-02-09 09:02:14 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
.text-#{$color-name}, p.text-#{$color-name}, .item p.text-#{$color-name}, .card p.text-#{$color-name} {
|
|
|
|
color: $color-base;
|
|
|
|
}
|
2018-03-14 10:29:22 +00:00
|
|
|
}
|
2018-03-23 07:38:00 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
.accesshide {
|
|
|
|
position: absolute;
|
|
|
|
@include position(null, null, null, -10000px);
|
|
|
|
font-weight: normal;
|
|
|
|
font-size: 1em;
|
2018-02-09 09:02:14 +00:00
|
|
|
}
|
2018-04-06 12:37:49 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
.core-monospaced {
|
|
|
|
font-family: Andale Mono,Monaco,Courier New,DejaVu Sans Mono,monospace;
|
2018-04-09 11:14:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
.core-white-push-arrow .item-inner{
|
|
|
|
@include push-arrow-color($white);
|
|
|
|
}
|
2018-04-06 12:37:49 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
// For list where some items have detail icon and some others don't.
|
|
|
|
.core-list-align-detail-right .item .item-inner {
|
|
|
|
@include padding-horizontal(null, 32px);
|
2018-04-06 12:37:49 +00:00
|
|
|
}
|
2018-05-16 06:15:58 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
[ion-fixed] {
|
|
|
|
width: 100%;
|
|
|
|
}
|
2018-06-11 09:00:41 +00:00
|
|
|
|
2019-02-25 16:11:42 +00:00
|
|
|
.core-modal-fullscreen .modal-wrapper {
|
|
|
|
position: absolute;
|
|
|
|
@include position(0 !important, null, null, 0 !important);
|
|
|
|
display: block;
|
|
|
|
width: 100% !important;
|
|
|
|
height: 100% !important;
|
|
|
|
}
|
|
|
|
|
2019-03-07 14:56:29 +00:00
|
|
|
@media only screen and (min-height: 400px) and (min-width: 300px) {
|
|
|
|
.core-modal-lateral {
|
|
|
|
.modal-wrapper {
|
|
|
|
position: absolute;
|
|
|
|
@include position(0 !important, 0 !important, 0 !important, auto);
|
|
|
|
display: block;
|
|
|
|
height: 100% !important;
|
|
|
|
width: auto;
|
|
|
|
min-width: 300px;
|
|
|
|
box-shadow: 0 28px 48px rgba(0, 0, 0, 0.4);
|
|
|
|
}
|
|
|
|
ion-backdrop {
|
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
}
|
2018-08-31 08:26:37 +00:00
|
|
|
}
|
2018-06-11 09:00:41 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
.has-fab .scroll-content{
|
|
|
|
padding-bottom: 56px;
|
|
|
|
}
|
2018-06-11 09:00:41 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
// For some reason, in iOS the pages don't inherit the background-color from ion-app, set it explicitly.
|
|
|
|
.ion-page {
|
|
|
|
background-color: $background-color;
|
2018-06-08 09:12:31 +00:00
|
|
|
}
|
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
// Embed video responsive classes.
|
|
|
|
// Taken from https://github.com/twbs/bootstrap/blob/v4-dev/scss/utilities/_embed.scss
|
|
|
|
.embed-responsive {
|
|
|
|
position: relative;
|
|
|
|
display: block;
|
2018-06-08 09:12:31 +00:00
|
|
|
width: 100%;
|
2018-08-31 08:26:37 +00:00
|
|
|
padding: 0;
|
|
|
|
overflow: hidden;
|
2018-06-08 09:12:31 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
&::before {
|
|
|
|
display: block;
|
|
|
|
content: "";
|
|
|
|
}
|
|
|
|
|
|
|
|
.embed-responsive-item,
|
|
|
|
iframe,
|
|
|
|
embed,
|
|
|
|
object,
|
|
|
|
video {
|
|
|
|
position: absolute;
|
|
|
|
@include position(0, null, 0, 0);
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
iframe iframe {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
2018-06-08 09:12:31 +00:00
|
|
|
}
|
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
.embed-responsive-21by9 {
|
|
|
|
&::before {
|
|
|
|
padding-top: percentage(9 / 21);
|
|
|
|
}
|
2018-06-08 09:12:31 +00:00
|
|
|
}
|
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
.embed-responsive-16by9 {
|
|
|
|
&::before {
|
|
|
|
padding-top: percentage(9 / 16);
|
|
|
|
}
|
2018-06-08 09:12:31 +00:00
|
|
|
}
|
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
.embed-responsive-4by3 {
|
|
|
|
&::before {
|
|
|
|
padding-top: percentage(3 / 4);
|
|
|
|
}
|
2018-06-08 09:12:31 +00:00
|
|
|
}
|
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
.embed-responsive-1by1 {
|
|
|
|
&::before {
|
|
|
|
padding-top: percentage(1 / 1);
|
|
|
|
}
|
2018-06-08 09:12:31 +00:00
|
|
|
}
|
2018-06-15 08:08:02 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
ion-alert.core-inapp-notification {
|
|
|
|
pointer-events: none;
|
|
|
|
position: fixed;
|
|
|
|
align-items: start;
|
2018-06-15 08:08:02 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
ion-backdrop {
|
|
|
|
display: none;
|
|
|
|
}
|
2018-06-15 08:08:02 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
.alert-wrapper {
|
|
|
|
width: $toast-width;
|
|
|
|
max-width: $toast-max-width;
|
|
|
|
box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
|
|
|
|
padding: 2px 0;
|
|
|
|
border-radius: 0;
|
|
|
|
pointer-events: auto;
|
|
|
|
}
|
2018-06-15 08:08:02 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
.alert-head {
|
|
|
|
padding: 5px 10px;
|
2018-11-09 10:25:23 +00:00
|
|
|
@include text-align('start');
|
2018-08-31 08:26:37 +00:00
|
|
|
h2 {
|
|
|
|
font-size: 14px;
|
|
|
|
}
|
2018-06-15 08:08:02 +00:00
|
|
|
}
|
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
.alert-message {
|
|
|
|
padding: 5px 10px;
|
2018-11-09 10:25:23 +00:00
|
|
|
@include text-align('start');
|
2018-08-31 08:26:37 +00:00
|
|
|
p {
|
|
|
|
font-size: 14px;
|
|
|
|
margin-top: 5px;
|
|
|
|
margin-bottom: 5px;
|
|
|
|
}
|
2018-06-15 08:08:02 +00:00
|
|
|
}
|
|
|
|
}
|
2018-06-21 14:29:41 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
.core-icon-with-badge {
|
|
|
|
position: relative;
|
2018-06-21 14:29:41 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
.icon {
|
|
|
|
font-size: 32px;
|
|
|
|
}
|
2018-06-21 14:29:41 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
.core-icon-badge {
|
|
|
|
width: auto;
|
|
|
|
height: auto;
|
|
|
|
margin: 0;
|
|
|
|
position: absolute;
|
|
|
|
@include position(-18px, -8px, null, null);
|
|
|
|
color: red;
|
|
|
|
font-size: 16px;
|
|
|
|
}
|
2018-06-21 14:29:41 +00:00
|
|
|
}
|
2018-06-22 08:36:09 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
.item.item-radio, .item.item-checkbox {
|
|
|
|
// Fix links and videos in ion-radio and ion-checkbox.
|
|
|
|
.input-wrapper {
|
|
|
|
position: relative;
|
|
|
|
z-index: 5;
|
|
|
|
pointer-events: none;
|
2018-08-29 13:44:19 +00:00
|
|
|
}
|
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
// Show whole text on options.
|
|
|
|
ion-label {
|
|
|
|
white-space: normal;
|
2018-08-29 13:44:19 +00:00
|
|
|
}
|
2018-08-31 08:26:37 +00:00
|
|
|
}
|
2018-07-02 10:37:58 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
.core-no-text-wrap {
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
|
|
&.item.item-radio, &.item.item-checkbox {
|
|
|
|
ion-label {
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
}
|
2018-07-02 10:37:58 +00:00
|
|
|
}
|
2018-08-03 11:24:44 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
// Fix modals displayed over action sheet.
|
2018-09-07 11:11:53 +00:00
|
|
|
&.disable-scroll ion-modal .ion-page {
|
2018-08-31 08:26:37 +00:00
|
|
|
pointer-events: initial;
|
2018-08-03 11:24:44 +00:00
|
|
|
}
|
2018-10-11 13:36:27 +00:00
|
|
|
|
|
|
|
.core-iframe-offline-disabled {
|
|
|
|
display: none !important;
|
|
|
|
}
|
2018-11-30 10:31:52 +00:00
|
|
|
|
2018-12-03 12:18:33 +00:00
|
|
|
.core-horizontal-scroll {
|
|
|
|
display: flex;
|
|
|
|
flex-flow: nowrap;
|
|
|
|
overflow-x: scroll;
|
|
|
|
flex-direction: row;
|
|
|
|
}
|
|
|
|
|
2018-11-30 10:31:52 +00:00
|
|
|
ion-content.core-expand-max .scroll-content {
|
|
|
|
overflow-y: hidden;
|
|
|
|
display: flex;
|
|
|
|
flex: 1;
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
core-loading {
|
|
|
|
flex-grow: 1;
|
|
|
|
|
|
|
|
.core-loading-content {
|
|
|
|
position: absolute;
|
|
|
|
@include position(0,0,0,0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ion-list {
|
|
|
|
display: flex;
|
|
|
|
height: 100%;
|
|
|
|
flex-direction: column;
|
|
|
|
> div {
|
|
|
|
overflow-y: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.core-expandable {
|
|
|
|
ion-icon[item-start] + .item-inner {
|
|
|
|
@include margin-horizontal(0px, null);
|
|
|
|
}
|
|
|
|
.icon.fa.fa-caret-right,
|
|
|
|
.icon.fa.fa-caret-down {
|
|
|
|
min-width: 16px;
|
|
|
|
min-height: 1.6rem;
|
|
|
|
font-size: 1.6rem;
|
|
|
|
line-height: 1;
|
|
|
|
}
|
|
|
|
}
|
2018-08-03 11:24:44 +00:00
|
|
|
}
|
|
|
|
|
2018-09-17 10:05:06 +00:00
|
|
|
@each $color-name, $color-base, $color-contrast in get-colors($colors) {
|
|
|
|
// If there is text with a color it should use this color
|
|
|
|
// and override whatever item sets it to
|
|
|
|
.text-#{$color-name} {
|
|
|
|
color: $color-contrast;
|
|
|
|
}
|
2019-01-02 08:09:41 +00:00
|
|
|
|
|
|
|
.item-divider-md-#{$color-name} h2,
|
|
|
|
.item-divider-wp-#{$color-name} h2,
|
|
|
|
.item-divider-ios-#{$color-name} h2 {
|
|
|
|
color: $color-contrast;
|
|
|
|
}
|
2018-09-17 10:05:06 +00:00
|
|
|
}
|
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
[dir="ltr"] body, [dir="rtl"] body {
|
|
|
|
padding-top: constant(safe-area-inset-top); //for iOS 11.2
|
|
|
|
padding-top: env(safe-area-inset-top); //for iOS 11.1
|
|
|
|
}
|
2018-08-03 11:24:44 +00:00
|
|
|
|
2018-08-31 08:26:37 +00:00
|
|
|
body.keyboard-is-open {
|
2018-09-03 11:29:20 +00:00
|
|
|
ion-content:not(.has-footer) {
|
|
|
|
> .scroll-content, > .fixed-content {
|
2018-08-31 08:26:37 +00:00
|
|
|
margin-bottom: 0 !important;
|
2018-09-03 11:29:20 +00:00
|
|
|
}
|
2018-08-31 08:26:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
core-ion-tabs .tabbar {
|
|
|
|
display: none;
|
2018-08-03 11:24:44 +00:00
|
|
|
}
|
2018-07-02 10:37:58 +00:00
|
|
|
}
|
2018-07-10 14:48:52 +00:00
|
|
|
|
2018-12-21 15:59:38 +00:00
|
|
|
.safe-padding-horizontal{
|
|
|
|
@include safe-area-padding-horizontal(0px, 0px);
|
|
|
|
}
|
|
|
|
|
2018-11-20 10:50:33 +00:00
|
|
|
[padding].safe-padding-horizontal,
|
|
|
|
ion-app.ios [padding].safe-padding-horizontal {
|
2018-12-21 15:59:38 +00:00
|
|
|
@include safe-area-padding-horizontal($content-padding, $content-padding);
|
2018-11-20 10:50:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ion-app.ios .split-pane-side,
|
|
|
|
.split-pane-side {
|
|
|
|
.safe-padding-horizontal,
|
|
|
|
[padding].safe-padding-horizontal {
|
|
|
|
@include safe-area-padding-start(0px, $content-padding);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ion-app.ios .split-pane-main,
|
|
|
|
.split-pane-main {
|
|
|
|
.safe-padding-horizontal,
|
|
|
|
[padding].safe-padding-horizontal {
|
|
|
|
@include safe-area-padding-end($content-padding, 0px);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-11-21 09:26:29 +00:00
|
|
|
details summary {
|
|
|
|
pointer-events: auto;
|
|
|
|
}
|
|
|
|
|
2019-02-14 15:14:57 +00:00
|
|
|
.icon.fa-graduation-cap,
|
|
|
|
.item > .icon.fa,
|
|
|
|
.item-inner > .icon.fa {
|
2019-01-09 09:26:36 +00:00
|
|
|
font-size: 21px;
|
|
|
|
width: 21px;
|
|
|
|
line-height: 28px;
|
|
|
|
}
|
|
|
|
|
2018-07-10 14:48:52 +00:00
|
|
|
// Fix iframes in fullscreen mode.
|
|
|
|
//
|
|
|
|
// Ionic sets "contain: strict" to some elements. This enables paint containment,
|
|
|
|
// which changes behaviour of fixed positioned elements and seems to break iframes
|
|
|
|
// in fullscreen mode. See https://www.w3.org/TR/css-contain-1/#containment-paint
|
|
|
|
ion-app,
|
|
|
|
ion-nav,
|
|
|
|
ion-tab,
|
|
|
|
ion-tabs,
|
|
|
|
.app-root,
|
|
|
|
.ion-page,
|
|
|
|
ion-modal,
|
|
|
|
.modal-wrapper,
|
|
|
|
.split-pane {
|
|
|
|
contain: size layout style;
|
|
|
|
}
|
2019-01-15 13:55:31 +00:00
|
|
|
|
2019-04-05 11:17:54 +00:00
|
|
|
// Highlight text.
|
|
|
|
.matchtext {
|
2019-04-26 15:36:27 +00:00
|
|
|
background-color: $core-text-hightlight-background-color;
|
2019-04-05 11:17:54 +00:00
|
|
|
}
|
|
|
|
|
2019-01-15 13:55:31 +00:00
|
|
|
// Styles for desktop apps only.
|
|
|
|
ion-app.platform-desktop {
|
|
|
|
video::-webkit-media-text-track-display {
|
|
|
|
white-space: normal !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.platform-windows {
|
|
|
|
video::-webkit-media-text-track-display {
|
|
|
|
font-size: 0.6em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|