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
|
|
|
|
// -------------------------
|
|
|
|
|
|
|
|
.text-left { text-align: left; }
|
|
|
|
.text-right { text-align: right; }
|
|
|
|
.text-center { text-align: center; }
|
2017-12-18 09:48:04 +00:00
|
|
|
.text-justify { text-align: justify; }
|
2017-12-29 17:05:52 +00:00
|
|
|
.clearfix {
|
|
|
|
&:after {
|
|
|
|
content: "";
|
|
|
|
display: table;
|
|
|
|
clear: both;
|
|
|
|
}
|
|
|
|
}
|
2018-01-31 08:12:59 +00:00
|
|
|
.img-responsive {
|
|
|
|
display: block;
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
2017-11-24 11:31:09 +00:00
|
|
|
|
2018-01-23 12:00:00 +00:00
|
|
|
.opacity-hide { opacity: 0; }
|
|
|
|
.core-big { font-size: 115%; }
|
2018-04-04 07:00:29 +00:00
|
|
|
.invisible { visibility: hidden; }
|
2018-01-23 12:00:00 +00:00
|
|
|
|
2018-06-19 10:29:12 +00:00
|
|
|
.button-no-uppercase {
|
|
|
|
text-transform: none;
|
|
|
|
}
|
|
|
|
|
2018-01-31 08:12:59 +00:00
|
|
|
@include media-breakpoint-up(sm) {
|
2017-12-29 17:05:52 +00:00
|
|
|
.core-center-view .scroll-content {
|
2017-12-18 09:48:04 +00:00
|
|
|
display: flex!important;
|
|
|
|
align-content: center !important;
|
|
|
|
align-items: center !important;
|
|
|
|
> * {
|
|
|
|
margin: 0 auto;
|
|
|
|
max-width: 600px;
|
2017-11-24 11:31:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-02-26 16:41:04 +00:00
|
|
|
@include media-breakpoint-down(sm) {
|
2017-12-29 17:05:52 +00:00
|
|
|
.hidden-phone {
|
|
|
|
display: none !important;
|
2018-02-07 13:15:53 +00:00
|
|
|
opacity: 0 !important;
|
2017-12-29 17:05:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-01-31 08:12:59 +00:00
|
|
|
@include media-breakpoint-up(md) {
|
2017-12-29 17:05:52 +00:00
|
|
|
.hidden-tablet {
|
|
|
|
display: none !important;
|
2018-02-07 13:15:53 +00:00
|
|
|
opacity: 0 !important;
|
2017-12-29 17:05:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-08-03 12:02:39 +00:00
|
|
|
@mixin core-headings() {
|
|
|
|
h1 {
|
|
|
|
font-size: 3rem;
|
|
|
|
}
|
|
|
|
h2 {
|
|
|
|
font-size: 2.8rem;
|
|
|
|
}
|
|
|
|
h3 {
|
|
|
|
font-size: 2.6rem;
|
|
|
|
}
|
|
|
|
h4 {
|
|
|
|
font-size: 2.2rem;
|
|
|
|
}
|
|
|
|
h5 {
|
|
|
|
font-size: 1.8rem;
|
|
|
|
}
|
|
|
|
h6 {
|
|
|
|
font-size: 1.4rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-11-27 10:57:52 +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;
|
2017-12-13 10:04:37 +00:00
|
|
|
margin: 0;
|
2017-11-27 10:57:52 +00:00
|
|
|
}
|
|
|
|
|
2018-01-23 12:00:00 +00:00
|
|
|
.item-dimmed {
|
2018-08-10 13:16:18 +00:00
|
|
|
opacity: 0.71;
|
2018-01-23 12:00:00 +00:00
|
|
|
}
|
|
|
|
|
2018-04-09 11:14:55 +00:00
|
|
|
.item-radio-checked {
|
|
|
|
background-color: $gray-lighter;
|
|
|
|
}
|
|
|
|
|
2018-04-13 13:32:06 +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-12-29 17:05:52 +00:00
|
|
|
.core-oauth-icon, .item.core-oauth-icon, .list .item.core-oauth-icon {
|
2017-12-18 09:48:04 +00:00
|
|
|
min-height: 32px;
|
|
|
|
img, .label {
|
2017-11-27 10:57:52 +00:00
|
|
|
max-height: 32px;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
img {
|
|
|
|
max-width: 32px;
|
|
|
|
}
|
2017-12-18 09:48:04 +00:00
|
|
|
.label {
|
2018-08-29 14:42:12 +00:00
|
|
|
@include margin(null, null, null, 5px);
|
2017-11-27 10:57:52 +00:00
|
|
|
color: $gray-darker;
|
|
|
|
}
|
|
|
|
}
|
2017-11-27 12:10:56 +00:00
|
|
|
|
2017-12-29 17:05:52 +00:00
|
|
|
.core-bold, .core-bold .label {
|
2017-11-27 12:10:56 +00:00
|
|
|
font-weight: bold;
|
|
|
|
}
|
2017-11-29 15:03:47 +00:00
|
|
|
|
2018-01-23 12:00:00 +00:00
|
|
|
.core-module-icon {
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.core-button-spinner {
|
|
|
|
min-height: 44px;
|
|
|
|
min-width: 50px;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
.spinner {
|
|
|
|
margin-top: 8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-12-18 09:48:04 +00:00
|
|
|
// Avatar
|
|
|
|
// -------------------------
|
|
|
|
// Large centered avatar
|
2017-11-30 11:02:49 +00:00
|
|
|
.item-avatar-center {
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
&.item-complex .item-content {
|
|
|
|
text-align: center;
|
2018-08-29 14:42:12 +00:00
|
|
|
@include padding(null, null, null, 49px);
|
2017-11-30 11:02:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
> img:first-child,
|
2018-01-12 15:24:24 +00:00
|
|
|
ion-avatar img,
|
|
|
|
img {
|
2017-11-30 11:02:49 +00:00
|
|
|
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;
|
|
|
|
|
|
|
|
&.avatar-full {
|
|
|
|
border-radius: 2%;
|
|
|
|
border: 0;
|
|
|
|
max-width: 100%;
|
|
|
|
max-height: 160px;
|
|
|
|
width: auto;
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-12-18 09:48:04 +00:00
|
|
|
|
|
|
|
ion-avatar ion-img, ion-avatar img {
|
|
|
|
text-indent: -99999px;
|
|
|
|
background-color: $gray-light;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Form items
|
|
|
|
// -------------------------
|
|
|
|
|
|
|
|
.item .core-input-footnote {
|
|
|
|
width: 100%;
|
|
|
|
padding-top: 10px;
|
|
|
|
padding-bottom: 10px;
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
2018-05-09 12:14:31 +00:00
|
|
|
ion-datetime {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2018-07-31 14:35:48 +00:00
|
|
|
input {
|
|
|
|
@include rtl() {
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-12-12 09:49:13 +00:00
|
|
|
/** Format Text */
|
2018-06-20 07:43:26 +00:00
|
|
|
core-format-text[maxHeight],
|
|
|
|
core-format-text[ng-reflect-max-height] {
|
2017-12-12 09:49:13 +00:00
|
|
|
display: block;
|
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
/* Force display inline */
|
|
|
|
&.inline {
|
|
|
|
display: inline-block;
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
// This is to allow clicks in radio/checkbox content.
|
2017-12-29 17:05:52 +00:00
|
|
|
&.core-text-formatted {
|
2017-12-12 09:49:13 +00:00
|
|
|
cursor: pointer;
|
2018-01-23 12:00:00 +00:00
|
|
|
pointer-events: auto;
|
2017-12-12 09:49:13 +00:00
|
|
|
|
2017-12-29 17:05:52 +00:00
|
|
|
.core-show-more {
|
2017-12-12 09:49:13 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2018-01-12 10:56:18 +00:00
|
|
|
&:not(.core-shortened) {
|
2017-12-12 09:49:13 +00:00
|
|
|
max-height: none !important;
|
|
|
|
}
|
|
|
|
|
2018-01-12 10:56:18 +00:00
|
|
|
&.core-shortened {
|
2017-12-12 09:49:13 +00:00
|
|
|
color: $gray-darker;
|
|
|
|
overflow: hidden;
|
|
|
|
min-height: 50px;
|
|
|
|
|
2018-01-12 10:56:18 +00:00
|
|
|
.core-show-more {
|
2017-12-12 09:49:13 +00:00
|
|
|
color: color($colors, dark);
|
|
|
|
text-align: right;
|
|
|
|
font-size: 14px;
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
2018-07-31 14:35:48 +00:00
|
|
|
@include position(null, 0, 0, null);
|
2017-12-12 09:49:13 +00:00
|
|
|
z-index: 1001;
|
|
|
|
background-color: $white;
|
2018-07-31 14:35:48 +00:00
|
|
|
@include padding(null, null, null, 10px);
|
2017-12-12 09:49:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: '';
|
|
|
|
height: 100%;
|
|
|
|
position: absolute;
|
2018-08-29 14:42:12 +00:00
|
|
|
@include position(null, 0, 0, 0);
|
2017-12-12 09:49:13 +00:00
|
|
|
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-01-23 12:00:00 +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);
|
|
|
|
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: 14px 14px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-20 07:43:26 +00:00
|
|
|
core-format-text[singleLine="true"],
|
|
|
|
core-format-text[ng-reflect-single-line="true"] {
|
2018-02-28 16:02:39 +00:00
|
|
|
cursor: pointer;
|
|
|
|
pointer-events: auto;
|
2018-02-14 16:19:09 +00:00
|
|
|
white-space: nowrap;
|
2018-02-28 16:02:39 +00:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
display: block;
|
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
2018-02-14 16:19:09 +00:00
|
|
|
}
|
|
|
|
|
2018-01-23 12:00:00 +00:00
|
|
|
.core-media-adapt-width {
|
|
|
|
max-width: 100%;
|
2018-07-10 07:35:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
img.core-media-adapt-width {
|
2018-07-04 14:08:49 +00:00
|
|
|
height: auto;
|
2018-01-23 12:00:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
audio.core-media-adapt-width {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.core-adapted-img-container {
|
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
2018-08-06 13:58:25 +00:00
|
|
|
width: 100%;
|
2018-01-23 12:00:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.core-image-viewer-icon {
|
|
|
|
position: absolute;
|
2018-07-31 14:35:48 +00:00
|
|
|
@include position(null, 10px, 10px, null);
|
2018-01-23 12:00:00 +00:00
|
|
|
color: $black;
|
|
|
|
border-radius: 5px;
|
|
|
|
background: rgba(255, 255, 255, .5);
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
|
|
|
max-width: 32px;
|
|
|
|
line-height: 32px;
|
|
|
|
font-size: 24px;
|
|
|
|
ion-icon {
|
|
|
|
font-size: 24px;
|
|
|
|
}
|
2017-12-12 09:49:13 +00:00
|
|
|
}
|
|
|
|
|
2018-06-20 07:43:26 +00:00
|
|
|
core-format-text {
|
2017-12-12 09:49:13 +00:00
|
|
|
audio, video, a, iframe {
|
|
|
|
pointer-events: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Fix lists styles in core-format-text.
|
|
|
|
ul {
|
2018-05-30 09:50:59 +00:00
|
|
|
list-style-type: disc;
|
2017-12-12 09:49:13 +00:00
|
|
|
}
|
|
|
|
ol {
|
2018-05-30 09:50:59 +00:00
|
|
|
list-style-type: decimal;
|
|
|
|
}
|
|
|
|
ul, ol {
|
|
|
|
-webkit-padding-start: 15px;
|
|
|
|
list-style-position: inside;
|
|
|
|
ul {
|
|
|
|
list-style-type: circle;
|
|
|
|
}
|
|
|
|
ol {
|
|
|
|
list-style-type: lower-latin;
|
|
|
|
}
|
|
|
|
ul, ol {
|
|
|
|
list-style-position: inside;
|
2018-07-31 14:35:48 +00:00
|
|
|
@include margin(null, null, null, 15px);
|
2018-05-30 09:50:59 +00:00
|
|
|
}
|
2017-12-12 09:49:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.badge {
|
|
|
|
position: initial !important;
|
|
|
|
}
|
2018-01-02 14:30:50 +00:00
|
|
|
|
2018-01-23 12:00:00 +00:00
|
|
|
.core-disable-media-adapt,
|
|
|
|
.core-disable-media-adapt .core-media-adapt-width {
|
|
|
|
max-width: none !important;
|
|
|
|
max-height: none !important;
|
|
|
|
width: initial !important;
|
|
|
|
height: initial !important;
|
|
|
|
display: inline-block !important;
|
|
|
|
}
|
2018-08-03 12:02:39 +00:00
|
|
|
|
|
|
|
@include core-headings();
|
|
|
|
}
|
|
|
|
|
|
|
|
.item core-format-text {
|
|
|
|
@include core-headings();
|
2017-12-12 09:49:13 +00:00
|
|
|
}
|
|
|
|
|
2018-06-20 07:43:26 +00:00
|
|
|
// Images in ion-card have width 100% and display block. Remove that when the image is in core-format-text.
|
|
|
|
ion-card core-format-text img {
|
2018-07-04 14:08:49 +00:00
|
|
|
width: min-content;
|
2018-06-20 07:43:26 +00:00
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
|
2017-12-12 09:49:13 +00:00
|
|
|
// Message item.
|
|
|
|
.item-message {
|
|
|
|
core-format-text > p:only-child {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
}
|
2017-12-18 12:06:12 +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;
|
|
|
|
}
|
|
|
|
}
|
2017-12-29 17:05:52 +00:00
|
|
|
|
|
|
|
// Ionic fix. Button can occupy all page if not.
|
|
|
|
ion-select {
|
2018-08-09 13:49:06 +00:00
|
|
|
position: relative;
|
2017-12-29 17:05:52 +00:00
|
|
|
}
|
|
|
|
|
2018-04-09 11:14:55 +00:00
|
|
|
ion-col ion-select {
|
2018-08-29 14:42:12 +00:00
|
|
|
@include float(end);
|
2018-04-09 11:14:55 +00:00
|
|
|
max-width: none;
|
|
|
|
width: 100%;
|
|
|
|
.select-text {
|
|
|
|
white-space: normal;
|
|
|
|
text-align: right;
|
|
|
|
}
|
2018-06-11 10:50:08 +00:00
|
|
|
}
|
|
|
|
|
2018-08-09 13:49:06 +00:00
|
|
|
|
2018-08-09 15:57:39 +00:00
|
|
|
:not(.item) > * > * > ion-select,
|
2018-06-11 10:50:08 +00:00
|
|
|
.core-button-select {
|
2018-08-09 13:49:06 +00:00
|
|
|
background-color: white;
|
|
|
|
color: $core-color;
|
|
|
|
white-space: normal;
|
|
|
|
align-self: start;
|
|
|
|
max-width: none;
|
|
|
|
|
|
|
|
&.select-md,
|
|
|
|
&.button-md {
|
|
|
|
background: $card-md-background-color;
|
|
|
|
box-shadow: $card-md-box-shadow;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.select-ios,
|
|
|
|
&.button-ios {
|
|
|
|
background: $card-ios-background-color;
|
|
|
|
box-shadow: $card-ios-box-shadow;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.select-wp,
|
|
|
|
&.button-wp {
|
|
|
|
background: $card-wp-background-color;
|
|
|
|
box-shadow: $card-wp-box-shadow;
|
|
|
|
}
|
|
|
|
|
|
|
|
.select-text {
|
|
|
|
white-space: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
.button-inner {
|
2018-08-09 15:57:39 +00:00
|
|
|
justify-content: start;
|
2018-08-09 13:49:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.select-icon .select-icon-inner {
|
|
|
|
color: $core-color;
|
|
|
|
}
|
|
|
|
|
2018-06-11 10:50:08 +00:00
|
|
|
ion-icon:last-child {
|
2018-07-31 14:35:48 +00:00
|
|
|
@include margin(null, null, null, 5px);
|
2018-08-09 15:57:39 +00:00
|
|
|
text-align: right;
|
|
|
|
flex-grow: 2;
|
2018-04-09 11:14:55 +00:00
|
|
|
}
|
2018-06-11 10:50:08 +00:00
|
|
|
}
|
2018-04-09 11:14:55 +00:00
|
|
|
|
2018-08-09 13:49:06 +00:00
|
|
|
|
|
|
|
|
2018-01-09 07:51:44 +00:00
|
|
|
// File uploader.
|
|
|
|
// -------------------------
|
|
|
|
|
|
|
|
.core-fileuploader-file-handler {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
input {
|
|
|
|
position: absolute;
|
2018-07-31 14:35:48 +00:00
|
|
|
@include position(null, 0, 0, null);
|
2018-01-09 07:51:44 +00:00
|
|
|
min-width: 100%;
|
|
|
|
min-height: 100%;
|
|
|
|
opacity: 0;
|
|
|
|
outline: none;
|
|
|
|
z-index: 100;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
2018-01-23 12:00:00 +00:00
|
|
|
|
2018-04-05 07:21:19 +00:00
|
|
|
// Question.
|
|
|
|
// -------------------------
|
|
|
|
|
|
|
|
.core-question-answer-correct,
|
|
|
|
.core-question-comment {
|
|
|
|
color: $core-question-correct-color;
|
|
|
|
background-color: $core-question-correct-color-bg;
|
|
|
|
|
|
|
|
.label, ion-label.label {
|
|
|
|
color: $core-question-correct-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.core-question-answer-incorrect,
|
|
|
|
.core-question-incorrect {
|
|
|
|
color: $core-question-incorrect-color;
|
|
|
|
background-color: $core-question-incorrect-color-bg;
|
|
|
|
|
|
|
|
.label, ion-label.label {
|
|
|
|
color: $core-question-incorrect-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.core-question-feedback-container {
|
|
|
|
background-color: $core-question-feedback-color-bg;
|
|
|
|
color: $core-question-feedback-color;
|
|
|
|
|
|
|
|
.specificfeedback, .rightanswer, .im-feedback, .feedback, .generalfeedback {
|
|
|
|
margin: 0 0 .5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.core-question-feedback-inline {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.core-question-feedback-padding {
|
2018-07-31 14:35:48 +00:00
|
|
|
@include padding(8px, 35px, 8px, 14px);
|
2018-04-05 07:21:19 +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;
|
|
|
|
}
|
2018-08-16 10:50:57 +00:00
|
|
|
.core-question-answersaved {
|
2018-08-16 15:24:42 +00:00
|
|
|
color: $text-color;
|
2018-08-16 10:50:57 +00:00
|
|
|
background-color: $core-question-saved-color-bg;
|
|
|
|
}
|
2018-04-05 07:21:19 +00:00
|
|
|
|
|
|
|
.core-question-warning {
|
|
|
|
color: $core-question-warning-color;
|
|
|
|
}
|
|
|
|
|
2018-04-09 11:14:55 +00:00
|
|
|
.questioncorrectnessicon,
|
|
|
|
.fa.icon.questioncorrectnessicon {
|
2018-04-05 07:21:19 +00:00
|
|
|
font-size: 20px;
|
|
|
|
}
|
|
|
|
|
2018-01-23 12:00:00 +00:00
|
|
|
// Atto styles
|
|
|
|
// -------------------------
|
|
|
|
.atto_image_preview {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.atto_image_preview_box {
|
|
|
|
max-height: 200px;
|
|
|
|
margin-bottom: 1em;
|
|
|
|
overflow: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.editor_atto_content img {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.atto_image_size {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.atto_image_size input[type=checkbox] {
|
2018-08-29 14:42:12 +00:00
|
|
|
@include margin(null, 1em, null, 1em);
|
2018-01-23 12:00:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.atto_image_size input[type=text] {
|
|
|
|
width: 3em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.atto_image_size label {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.atto_image_button_text-top {
|
|
|
|
vertical-align: text-top;
|
|
|
|
margin: 0 0.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.atto_image_button_middle {
|
|
|
|
vertical-align: middle;
|
|
|
|
margin: 0 0.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.atto_image_button_text-bottom {
|
|
|
|
vertical-align: text-bottom;
|
|
|
|
margin: 0 0.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.atto_image_button_text-top.img-responsive,
|
|
|
|
.atto_image_button_middle.img-responsive,
|
|
|
|
.atto_image_button_text-bottom.img-responsive {
|
|
|
|
/* If the image is display: block then linking the image to URLs won't work. */
|
|
|
|
display: inline-block;
|
|
|
|
max-width: calc(100% - 1em);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*rtl:begin:ignore*/
|
|
|
|
.atto_image_button_left {
|
2018-08-29 14:42:12 +00:00
|
|
|
@include float(start);
|
2018-07-31 14:35:48 +00:00
|
|
|
@include margin(0, 0.5em, 0, 0);
|
2018-01-23 12:00:00 +00:00
|
|
|
max-width: calc(100% - 1em);
|
|
|
|
}
|
|
|
|
|
|
|
|
.atto_image_button_right {
|
2018-08-29 14:42:12 +00:00
|
|
|
@include float(end);
|
2018-07-31 14:35:48 +00:00
|
|
|
@include margin(0, 0, 0, 0.5em);
|
2018-01-23 12:00:00 +00:00
|
|
|
max-width: calc(100% - 1em);
|
|
|
|
}
|
2018-01-24 14:39:05 +00:00
|
|
|
/*rtl:end:ignore*/
|
|
|
|
|
|
|
|
.action-sheet-group {
|
|
|
|
overflow: auto;
|
|
|
|
}
|
|
|
|
.alert-message {
|
|
|
|
overflow-y: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
ion-toast.core-toast-success .toast-wrapper{
|
|
|
|
background: $green-dark;
|
|
|
|
}
|
|
|
|
|
|
|
|
ion-toast.core-toast-alert .toast-wrapper{
|
|
|
|
background: $red-dark;
|
|
|
|
}
|
|
|
|
|
2018-02-14 16:19:09 +00:00
|
|
|
textarea {
|
|
|
|
width: 100%;
|
|
|
|
resize: none;
|
|
|
|
|
|
|
|
&[core-auto-rows] {
|
|
|
|
height: auto;
|
|
|
|
line-height: 18px;
|
|
|
|
padding: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not([core-auto-rows]) {
|
|
|
|
height: 200px;
|
|
|
|
min-height: $core-rte-min-height;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.toolbar .core-bar-button-image {
|
|
|
|
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%;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Footer with auto height.
|
|
|
|
.footer.footer-adjustable {
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
|
2018-03-23 07:38:00 +00:00
|
|
|
.core-circle:before {
|
|
|
|
content: ' \25CF';
|
|
|
|
}
|
|
|
|
|
2018-01-24 14:39:05 +00:00
|
|
|
@each $color-name, $color-base, $color-contrast in get-colors($colors) {
|
2018-03-23 07:38:00 +00:00
|
|
|
// Message cards.
|
2018-01-24 14:39:05 +00:00
|
|
|
.core-#{$color-name}-card {
|
|
|
|
@extend ion-card;
|
|
|
|
border-bottom: 3px solid $color-base;
|
2018-03-09 11:29:11 +00:00
|
|
|
|
|
|
|
&[icon-start] {
|
2018-08-29 14:42:12 +00:00
|
|
|
@include padding(null, null, null, 52px);
|
2018-03-09 11:29:11 +00:00
|
|
|
position: relative;
|
|
|
|
|
|
|
|
ion-icon {
|
|
|
|
color: $color-base;
|
|
|
|
position: absolute;
|
2018-07-31 14:35:48 +00:00
|
|
|
@include position(0, null, null, 16px)
|
2018-03-09 11:29:11 +00:00
|
|
|
height: 100%;
|
|
|
|
font-size: 24px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
}
|
2018-01-24 14:39:05 +00:00
|
|
|
}
|
2018-03-16 12:44:57 +00:00
|
|
|
|
2018-03-23 07:38:00 +00:00
|
|
|
.core-#{$color-name}-item {
|
|
|
|
border-bottom: 3px solid $color-base !important;
|
|
|
|
ion-icon {
|
|
|
|
color: $color-base;
|
|
|
|
}
|
|
|
|
}
|
2018-02-09 09:02:14 +00:00
|
|
|
|
2018-03-14 10:29:22 +00:00
|
|
|
.core-#{$color-name}-circle {
|
|
|
|
margin: 0 4px;
|
|
|
|
}
|
2018-03-23 07:38:00 +00:00
|
|
|
|
2018-02-09 09:02:14 +00:00
|
|
|
.core-#{$color-name}-circle:before {
|
|
|
|
@extend .core-circle:before;
|
|
|
|
color: $color-base;
|
|
|
|
}
|
2018-04-06 12:37:49 +00:00
|
|
|
|
2018-04-25 08:06:04 +00:00
|
|
|
.text-#{$color-name}, p.text-#{$color-name}, .item p.text-#{$color-name}, .card p.text-#{$color-name} {
|
2018-04-09 11:14:55 +00:00
|
|
|
color: $color-base;
|
|
|
|
}
|
2018-02-09 09:02:14 +00:00
|
|
|
}
|
2018-04-04 07:00:29 +00:00
|
|
|
|
|
|
|
.accesshide {
|
|
|
|
position: absolute;
|
2018-08-29 14:42:12 +00:00
|
|
|
@include position(null, null, null, -10000px);
|
2018-04-04 07:00:29 +00:00
|
|
|
font-weight: normal;
|
2018-04-09 11:14:55 +00:00
|
|
|
font-size: 1em;
|
|
|
|
}
|
2018-04-04 07:00:29 +00:00
|
|
|
|
|
|
|
.core-monospaced {
|
|
|
|
font-family: Andale Mono,Monaco,Courier New,DejaVu Sans Mono,monospace;
|
|
|
|
}
|
2018-04-09 11:14:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
.core-white-push-arrow .item-inner{
|
2018-08-16 15:24:42 +00:00
|
|
|
@include push-arrow-color($white);
|
2018-04-09 11:14:55 +00:00
|
|
|
}
|
|
|
|
|
2018-04-11 11:49:59 +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-09 11:14:55 +00:00
|
|
|
[ion-fixed] {
|
|
|
|
width: 100%;
|
2018-04-06 12:37:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.core-modal-fullscreen {
|
|
|
|
.modal-wrapper {
|
|
|
|
position: absolute;
|
2018-07-31 14:35:48 +00:00
|
|
|
@include position(0 !important, null, null, 0 !important);
|
2018-04-06 12:37:49 +00:00
|
|
|
display: block;
|
|
|
|
width: 100% !important;
|
|
|
|
height: 100% !important;
|
|
|
|
}
|
|
|
|
}
|
2018-05-16 06:15:58 +00:00
|
|
|
|
2018-06-11 09:00:41 +00:00
|
|
|
.has-fab .scroll-content{
|
|
|
|
padding-bottom: 56px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.scroll-content ion-fab {
|
|
|
|
position: fixed;
|
|
|
|
margin-bottom: 56px;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-05-16 06:15:58 +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
|
|
|
}
|
|
|
|
|
|
|
|
// Embed video responsive classes.
|
|
|
|
// Taken from https://github.com/twbs/bootstrap/blob/v4-dev/scss/utilities/_embed.scss
|
|
|
|
.embed-responsive {
|
|
|
|
position: relative;
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
padding: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
display: block;
|
|
|
|
content: "";
|
|
|
|
}
|
|
|
|
|
|
|
|
.embed-responsive-item,
|
|
|
|
iframe,
|
|
|
|
embed,
|
|
|
|
object,
|
|
|
|
video {
|
|
|
|
position: absolute;
|
2018-07-31 14:35:48 +00:00
|
|
|
@include position(0, null, 0, 0);
|
2018-06-08 09:12:31 +00:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
iframe iframe {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.embed-responsive-21by9 {
|
|
|
|
&::before {
|
|
|
|
padding-top: percentage(9 / 21);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.embed-responsive-16by9 {
|
|
|
|
&::before {
|
|
|
|
padding-top: percentage(9 / 16);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.embed-responsive-4by3 {
|
|
|
|
&::before {
|
|
|
|
padding-top: percentage(3 / 4);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.embed-responsive-1by1 {
|
|
|
|
&::before {
|
|
|
|
padding-top: percentage(1 / 1);
|
|
|
|
}
|
2018-06-15 08:08:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ion-alert.core-inapp-notification {
|
|
|
|
pointer-events: none;
|
|
|
|
position: fixed;
|
|
|
|
align-items: start;
|
|
|
|
|
|
|
|
ion-backdrop {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.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;
|
|
|
|
}
|
|
|
|
|
|
|
|
.alert-head {
|
|
|
|
padding: 5px 10px;
|
|
|
|
text-align: left;
|
|
|
|
h2 {
|
|
|
|
font-size: 14px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.alert-message {
|
|
|
|
padding: 5px 10px;
|
|
|
|
text-align: left;
|
|
|
|
p {
|
|
|
|
font-size: 14px;
|
|
|
|
margin-top: 5px;
|
|
|
|
margin-bottom: 5px;
|
|
|
|
}
|
|
|
|
}
|
2018-06-21 14:29:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.core-icon-with-badge {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
font-size: 32px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.core-icon-badge {
|
|
|
|
width: auto;
|
|
|
|
height: auto;
|
|
|
|
margin: 0;
|
|
|
|
position: absolute;
|
2018-07-31 14:35:48 +00:00
|
|
|
@include position(-18px, -8px, null, null);
|
2018-06-21 14:29:41 +00:00
|
|
|
color: red;
|
|
|
|
font-size: 16px;
|
|
|
|
}
|
|
|
|
}
|
2018-06-22 08:36:09 +00:00
|
|
|
|
2018-08-29 13:44:19 +00:00
|
|
|
body.keyboard-is-open {
|
|
|
|
.scroll-content, .fixed-content {
|
|
|
|
margin-bottom: 0 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
core-ion-tabs .tabbar {
|
|
|
|
display: none;
|
|
|
|
}
|
2018-07-02 10:37:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.item.item-radio, .item.item-checkbox {
|
2018-08-03 11:24:44 +00:00
|
|
|
// Fix links and videos in ion-radio and ion-checkbox.
|
2018-07-02 10:37:58 +00:00
|
|
|
.input-wrapper {
|
2018-07-09 13:19:52 +00:00
|
|
|
position: relative;
|
2018-07-02 10:37:58 +00:00
|
|
|
z-index: 5;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
2018-08-03 11:24:44 +00:00
|
|
|
|
|
|
|
// Show whole text on options.
|
|
|
|
ion-label {
|
|
|
|
white-space: normal;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.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-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;
|
|
|
|
}
|
2018-08-14 07:26:03 +00:00
|
|
|
|
|
|
|
// Fix modals displayed over action sheet.
|
|
|
|
.disable-scroll ion-modal .ion-page {
|
|
|
|
pointer-events: initial;
|
|
|
|
}
|