MOBILE-2567 ux: Fix RTL css ranking

main
Pau Ferrer Ocaña 2018-08-31 10:26:37 +02:00
parent 4697ce7c59
commit 16e565626e
84 changed files with 1266 additions and 1296 deletions

View File

@ -1,3 +0,0 @@
page-addon-calendar-event {
}

View File

@ -1,3 +0,0 @@
page-addon-calendar-list {
}

View File

@ -1,3 +0,0 @@
page-addon-calendar-settings {
}

View File

@ -1,4 +1,4 @@
addon-messages-discussions { ion-app.app-root addon-messages-discussions {
h2 { h2 {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;

View File

@ -1,4 +1,4 @@
addon-messages-discussions { ion-app.app-root addon-messages-discussions {
h2 { h2 {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
@ -7,6 +7,7 @@ addon-messages-discussions {
margin: 0; margin: 0;
align-self: flex-end; align-self: flex-end;
display: inline-flex; display: inline-flex;
font-size: initial;
} }
} }
} }

View File

@ -4,8 +4,7 @@ $item-message-note-text: $gray-dark !default;
$item-message-note-font-size: 75% !default; $item-message-note-font-size: 75% !default;
$item-message-mine-bg: $blue-light !default; $item-message-mine-bg: $blue-light !default;
ion-app.app-root page-addon-messages-discussion {
page-addon-messages-discussion {
.addon-messages-discussion-container { .addon-messages-discussion-container {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -99,8 +98,13 @@ page-addon-messages-discussion {
} }
.addon-message .item-content, .addon-message .item-content,
.addon-message-mine .item-content{ .addon-message-mine .item-content {
background-color: transparent; background-color: transparent;
padding: 0; padding: 0;
} }
} }
ion-app.app-root.ios page-addon-messages-discussion ion-footer .toolbar:last-child {
padding-bottom: 4px;
min-height: 0;
}

View File

@ -1,4 +1,4 @@
page-addon-messages-settings { ion-app.app-root page-addon-messages-settings {
.list-header { .list-header {
margin-bottom: 0; margin-bottom: 0;
border-top: 0; border-top: 0;

View File

@ -1,4 +1,4 @@
addon-mod-assign-submission { ion-app.app-root addon-mod-assign-submission {
div.latesubmission, div.latesubmission,
div.overdue { div.overdue {
// @extend .core-danger-item; // @extend .core-danger-item;

View File

@ -1,4 +1,4 @@
page-addon-mod-chat-chat { ion-app.app-root page-addon-mod-chat-chat {
.addon-mod-chat-notice { .addon-mod-chat-notice {
margin-top: 10px; margin-top: 10px;
margin-bottom: 10px; margin-bottom: 10px;

View File

@ -1,4 +1,4 @@
page-addon-mod-chat-users { ion-app.app-root page-addon-mod-chat-users {
.addon-mod-chat-user ion-label { .addon-mod-chat-user ion-label {
margin-bottom: 0; margin-bottom: 0;
} }

View File

@ -1,4 +1,4 @@
page-addon-mod-feedback-form { ion-app.app-root page-addon-mod-feedback-form {
.addon-mod_feedback-form-content { .addon-mod_feedback-form-content {
align-self: self-start; align-self: self-start;
width: 100%; width: 100%;

View File

@ -1,4 +1,4 @@
addon-mod-folder-index { ion-app.app-root addon-mod-folder-index {
.item-media > img:first-child { .item-media > img:first-child {
width: 24px; width: 24px;
height: 24px; height: 24px;

View File

@ -1,4 +1,4 @@
addon-mod-forum-index { ion-app.app-root addon-mod-forum-index {
.addon-forum-discussion-selected { .addon-forum-discussion-selected {
border-top: 5px solid $core-splitview-selected; border-top: 5px solid $core-splitview-selected;
} }

View File

@ -1,4 +1,4 @@
addon-mod-imscp-index { ion-app.app-root addon-mod-imscp-index {
.addon-mod-imscp-container { .addon-mod-imscp-container {
position: absolute; position: absolute;
width: 100%; width: 100%;

View File

@ -1,2 +0,0 @@
addon-mod-lesson-index {
}

View File

@ -1,4 +1,4 @@
page-addon-mod-lesson-menu-modal { ion-app.app-root page-addon-mod-lesson-menu-modal {
.addon-mod_lesson-selected, .item.addon-mod_lesson-selected { .addon-mod_lesson-selected, .item.addon-mod_lesson-selected {
background: $blue-light; background: $blue-light;
} }

View File

@ -1,4 +1,4 @@
page-addon-mod-lesson-player { ion-app.app-root page-addon-mod-lesson-player {
.addon-mod_lesson-slideshow { .addon-mod_lesson-slideshow {
max-width: 100%; max-width: 100%;
max-height: 100%; max-height: 100%;

View File

@ -1,4 +1,4 @@
page-addon-mod-lesson-user-retake { ion-app.app-root page-addon-mod-lesson-user-retake {
.addon-mod_lesson-highlight { .addon-mod_lesson-highlight {
background: $blue-light; background: $blue-light;
.label, .label p { .label, .label p {

View File

@ -1,4 +1,4 @@
addon-mod-quiz-connection-error { ion-app.app-root addon-mod-quiz-connection-error {
background-color: $red-light; background-color: $red-light;
.item { .item {

View File

@ -1,4 +1,4 @@
addon-mod-quiz-index { ion-app.app-root addon-mod-quiz-index {
.addon-mod_quiz-table { .addon-mod_quiz-table {
.addon-mod_quiz-table-header .item-inner { .addon-mod_quiz-table-header .item-inner {

View File

@ -1,4 +1,4 @@
page-addon-mod-quiz-navigation-modal { ion-app.app-root page-addon-mod-quiz-navigation-modal {
.addon-mod_quiz-selected, .item.addon-mod_quiz-selected { .addon-mod_quiz-selected, .item.addon-mod_quiz-selected {
@include border-start(5px, solid, $core-splitview-selected); @include border-start(5px, solid, $core-splitview-selected);
font-weight: bold; font-weight: bold;

View File

@ -1,4 +1,4 @@
page-addon-mod-quiz-player { ion-app.app-root page-addon-mod-quiz-player {
.toolbar { .toolbar {
padding-top: 0; padding-top: 0;
padding-bottom: 0; padding-bottom: 0;

View File

@ -1,4 +1,4 @@
page-addon-mod-quiz-review { ion-app.app-root page-addon-mod-quiz-review {
.item-radio-disabled, .item-radio-disabled,
.item-checkbox-disabled, .item-checkbox-disabled,
.text-input[disabled] { .text-input[disabled] {

View File

@ -1,4 +1,4 @@
addon-mod-scorm-index { ion-app.app-root addon-mod-scorm-index {
.addon-mod_scorm-toc { .addon-mod_scorm-toc {
img { img {

View File

@ -1,3 +0,0 @@
addon-mod-scorm-toc-popover {
}

View File

@ -1,4 +1,4 @@
addon-mod-survey-index { ion-app.app-root addon-mod-survey-index {
.label, .label[stacked] { .label, .label[stacked] {
font-size: initial; font-size: initial;

View File

@ -4,7 +4,7 @@ $addon-mod-wiki-toc-title-color: $gray-darker !default;
$addon-mod-wiki-toc-border-color: $gray-dark !default; $addon-mod-wiki-toc-border-color: $gray-dark !default;
$addon-mod-wiki-toc-background-color: $gray-light !default; $addon-mod-wiki-toc-background-color: $gray-light !default;
addon-mod-wiki-index { ion-app.app-root addon-mod-wiki-index {
background-color: $white; background-color: $white;
.core-tabs-content-container, .core-tabs-content-container,

View File

@ -1,4 +1,4 @@
addon-mod-wiki-subwiki-picker { ion-app.app-root addon-mod-wiki-subwiki-picker {
$core-subwiki-selected: $core-color !default; $core-subwiki-selected: $core-color !default;

View File

@ -1,4 +1,4 @@
page-addon-mod-wiki-edit { ion-app.app-root page-addon-mod-wiki-edit {
.addon-mod_wiki-wrongversionlock .label { .addon-mod_wiki-wrongversionlock .label {
margin: 0; margin: 0;
} }

View File

@ -1,4 +1,4 @@
addon-mod-workshop-assessment { ion-app.app-root addon-mod-workshop-assessment {
.item-md.item-block .item-inner { .item-md.item-block .item-inner {
border-bottom: 1px solid $list-md-border-color; border-bottom: 1px solid $list-md-border-color;
} }
@ -16,7 +16,7 @@ addon-mod-workshop-assessment {
} }
} }
.card.with-borders addon-mod-workshop-assessment { ion-app.app-root .card.with-borders addon-mod-workshop-assessment {
.item-md.item-block .item-inner { .item-md.item-block .item-inner {
border-bottom: 1px solid $list-md-border-color; border-bottom: 1px solid $list-md-border-color;
} }

View File

@ -1,4 +1,4 @@
addon-mod-workshop-submission { ion-app.app-root addon-mod-workshop-submission {
.item-md.item-block .item-inner { .item-md.item-block .item-inner {
border-bottom: 1px solid $list-md-border-color; border-bottom: 1px solid $list-md-border-color;
} }
@ -16,7 +16,7 @@ addon-mod-workshop-submission {
} }
} }
.card.with-borders addon-mod-workshop-submission { ion-app.app-root .card.with-borders addon-mod-workshop-submission {
.item-md.item-block .item-inner { .item-md.item-block .item-inner {
border-bottom: 1px solid $list-md-border-color; border-bottom: 1px solid $list-md-border-color;
} }

View File

@ -1,4 +1,4 @@
page-addon-mod-workshop-phase-info { ion-app.app-root page-addon-mod-workshop-phase-info {
.core-workshop-phase-selected { .core-workshop-phase-selected {
background-color: $white; background-color: $white;
@include border-start(5px, solid, $core-splitview-selected); @include border-start(5px, solid, $core-splitview-selected);

View File

@ -1,4 +1,4 @@
page-addon-notifications-settings { ion-app.app-root page-addon-notifications-settings {
.list-header { .list-header {
margin-bottom: 0; margin-bottom: 0;
border-top: 0; border-top: 0;

View File

@ -1,28 +1,29 @@
ion-app.app-root.ios {
.button-ios { .button-ios {
min-height: $button-ios-height min-height: $button-ios-height
} }
// Light buttons color. // Light buttons color.
.button-ios-light { .button-ios-light {
color: color($colors, primary, base); color: color($colors, primary, base);
} }
.col[align-self-stretch] .card-ios { .col[align-self-stretch] .card-ios {
height: calc(100% - #{($card-ios-margin-end + $card-ios-margin-start)}); height: calc(100% - #{($card-ios-margin-end + $card-ios-margin-start)});
} }
.bar-buttons core-context-menu .button-clear-ios { .bar-buttons core-context-menu .button-clear-ios {
color: $toolbar-ios-button-color; color: $toolbar-ios-button-color;
} }
.item-ios ion-spinner[item-start], .item-ios ion-spinner[item-start],
.item-ios ion-spinner[item-end] { .item-ios ion-spinner[item-end] {
@include margin($item-ios-padding-icon-top, null, $item-ios-padding-icon-bottom, 0); @include margin($item-ios-padding-icon-top, null, $item-ios-padding-icon-bottom, 0);
} }
@each $color-name, $color-base, $color-contrast in get-colors($colors-ios) {
.ios .core-#{$color-name}-card { @each $color-name, $color-base, $color-contrast in get-colors($colors-ios) {
.core-#{$color-name}-card {
@extend .card-ios ; @extend .card-ios ;
@extend .card-content-ios; @extend .card-content-ios;
@ -34,28 +35,33 @@
} }
} }
} }
} }
.ios .core-avoid-header ion-content { .core-avoid-header ion-content {
top: $navbar-ios-height; top: $navbar-ios-height;
height: calc(100% - #{($navbar-ios-height)}); height: calc(100% - #{($navbar-ios-height)});
} }
.platform-cordova.ios .core-avoid-header ion-content.statusbar-padding, &.platform-cordova .core-avoid-header ion-content.statusbar-padding,
.platform-cordova.ios .core-avoid-header .menu-inner > ion-content { &.platform-cordova .core-avoid-header .menu-inner > ion-content {
top: $navbar-ios-height + $cordova-ios-statusbar-padding;
height: calc(100% - #{($navbar-ios-height + $cordova-ios-statusbar-padding)}); height: calc(100% - #{($navbar-ios-height + $cordova-ios-statusbar-padding)});
} height: calc(100% - #{($navbar-ios-height)} - constant(safe-area-inset-top));
height: calc(100% - #{($navbar-ios-height)} - env(safe-area-inset-top));
.platform-cordova.ios .core-avoid-header .core-avoid-header .menu-inner > ion-content, top: calc(#{$navbar-ios-height + $cordova-ios-statusbar-padding});
.platform-cordova.ios core-tab core-split-view .core-avoid-header .menu-inner > ion-content { top: calc(#{$navbar-ios-height} + constant(safe-area-inset-top));
top: calc(#{$navbar-ios-height} + env(safe-area-inset-top));
}
&.platform-cordova .core-avoid-header .core-avoid-header .menu-inner > ion-content,
core-tab core-split-view .core-avoid-header .menu-inner > ion-content {
top: 0; top: 0;
height: 100%; height: 100%;
} }
// Highlights inside the input element. // Highlights inside the input element.
@if ($core-text-input-ios-show-highlight) { @if ($core-text-input-ios-show-highlight) {
.card-ios, .list-ios { .card-ios, .list-ios {
// In order to get a 2px border we need to add an inset // In order to get a 2px border we need to add an inset
// box-shadow 1px (this is to avoid the div resizing) // box-shadow 1px (this is to avoid the div resizing)
@ -116,19 +122,20 @@
@include ios-input-highlight($text-input-ios-highlight-color-invalid); @include ios-input-highlight($text-input-ios-highlight-color-invalid);
} }
} }
} }
// Different levels of padding. // Different levels of padding.
@for $i from 0 through 15 { @for $i from 0 through 15 {
.ios .core-padding-#{$i} { .core-padding-#{$i} {
@include padding(null, null, null, 15px * $i + $item-ios-padding-start); @include padding(null, null, null, 15px * $i + $item-ios-padding-start);
} }
} }
// Recover borders on items inside cards. // Recover borders on items inside cards.
.card-ios.with-borders .item-ios.item-block .item-inner { .card-ios.with-borders .item-ios.item-block .item-inner {
border-bottom: $hairlines-width solid $list-ios-border-color; border-bottom: $hairlines-width solid $list-ios-border-color;
} }
.card-ios.with-borders .item-ios:last-child .item-inner { .card-ios.with-borders .item-ios:last-child .item-inner {
border-bottom: 0; border-bottom: 0;
}
} }

View File

@ -1,28 +1,28 @@
ion-app.app-root.md {
.button-md { .button-md {
min-height: $button-md-height; min-height: $button-md-height;
} }
// Light buttons color. // Light buttons color.
.button-md-light { .button-md-light {
color: color($colors, primary, base); color: color($colors, primary, base);
} }
.col[align-self-stretch] .card-md { .col[align-self-stretch] .card-md {
height: calc(100% - #{($card-md-margin-end + $card-md-margin-start)}); height: calc(100% - #{($card-md-margin-end + $card-md-margin-start)});
} }
.bar-buttons core-context-menu .button-clear-md { .bar-buttons core-context-menu .button-clear-md {
color: $toolbar-md-button-color; color: $toolbar-md-button-color;
} }
.item-md ion-spinner[item-start] + .item-inner, .item-md ion-spinner[item-start] + .item-inner,
.item-md ion-spinner[item-start] + .item-input { .item-md ion-spinner[item-start] + .item-input {
@include margin-horizontal($item-md-padding-start + ($item-md-padding-start / 2) - 1, null); @include margin-horizontal($item-md-padding-start + ($item-md-padding-start / 2) - 1, null);
} }
@each $color-name, $color-base, $color-contrast in get-colors($colors-md) { @each $color-name, $color-base, $color-contrast in get-colors($colors-md) {
.md .core-#{$color-name}-card { .core-#{$color-name}-card {
@extend .card-md; @extend .card-md;
@extend .card-content-md; @extend .card-content-md;
@ -34,15 +34,15 @@
} }
} }
} }
} }
.md .core-avoid-header ion-content { .core-avoid-header ion-content {
top: $navbar-md-height; top: $navbar-md-height;
height: calc(100% - #{($navbar-md-height)}); height: calc(100% - #{($navbar-md-height)});
} }
// Highlights inside the input element. // Highlights inside the input element.
@if ($core-text-input-md-show-highlight) { @if ($core-text-input-md-show-highlight) {
.card-md, .list-md { .card-md, .list-md {
// In order to get a 2px border we need to add an inset // In order to get a 2px border we need to add an inset
// box-shadow 1px (this is to avoid the div resizing) // box-shadow 1px (this is to avoid the div resizing)
@ -104,20 +104,20 @@
@include md-input-highlight($text-input-md-highlight-color-invalid); @include md-input-highlight($text-input-md-highlight-color-invalid);
} }
} }
} }
// Different levels of padding. // Different levels of padding.
@for $i from 0 through 15 { @for $i from 0 through 15 {
.md .core-padding-#{$i} { .core-padding-#{$i} {
@include padding(null, null, null, 15px * $i + $item-md-padding-start); @include padding(null, null, null, 15px * $i + $item-md-padding-start);
} }
} }
// Recover borders on items inside cards.
// Recover borders on items inside cards. .card-md.with-borders .item-md.item-block .item-inner {
.card-md.with-borders .item-md.item-block .item-inner {
border-bottom: 1px solid $list-md-border-color; border-bottom: 1px solid $list-md-border-color;
} }
.card-md.with-borders .item-md:last-child .item-inner { .card-md.with-borders .item-md:last-child .item-inner {
border-bottom: 0; border-bottom: 0;
}
} }

View File

@ -18,36 +18,32 @@
// Alignment // Alignment
// ------------------------- // -------------------------
.text-left { text-align: left; } ion-app.app-root {
.text-right { text-align: right; } .text-left { text-align: left; }
.text-center { text-align: center; } .text-right { text-align: right; }
.text-justify { text-align: justify; } .text-center { text-align: center; }
.clearfix { .text-justify { text-align: justify; }
.clearfix {
&:after { &:after {
content: ""; content: "";
display: table; display: table;
clear: both; clear: both;
} }
} }
.img-responsive { .img-responsive {
display: block; display: block;
max-width: 100%; max-width: 100%;
} }
.opacity-hide { opacity: 0; } .opacity-hide { opacity: 0; }
.core-big { font-size: 115%; } .core-big { font-size: 115%; }
.invisible { visibility: hidden; } .invisible { visibility: hidden; }
.button-no-uppercase { .button-no-uppercase {
text-transform: none; text-transform: none;
} }
[dir="ltr"] body, [dir="rtl"] body { @include media-breakpoint-up(sm) {
padding-top: constant(safe-area-inset-top); //for iOS 11.2
padding-top: env(safe-area-inset-top); //for iOS 11.1
}
@include media-breakpoint-up(sm) {
.core-center-view .scroll-content { .core-center-view .scroll-content {
display: flex!important; display: flex!important;
align-content: center !important; align-content: center !important;
@ -57,23 +53,23 @@
max-width: 600px; max-width: 600px;
} }
} }
} }
@include media-breakpoint-down(sm) { @include media-breakpoint-down(sm) {
.hidden-phone { .hidden-phone {
display: none !important; display: none !important;
opacity: 0 !important; opacity: 0 !important;
} }
} }
@include media-breakpoint-up(md) { @include media-breakpoint-up(md) {
.hidden-tablet { .hidden-tablet {
display: none !important; display: none !important;
opacity: 0 !important; opacity: 0 !important;
} }
} }
@mixin core-headings() { @mixin core-headings() {
h1 { h1 {
font-size: 3rem; font-size: 3rem;
} }
@ -92,32 +88,30 @@
h6 { h6 {
font-size: 1.4rem; font-size: 1.4rem;
} }
} }
// 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.
// Define an alternative way to set a heading in an item without using a heading tag. .item .item-heading {
// This is done for accessibility reasons when a heading is semantically incorrect.
.item .item-heading {
@extend h6; @extend h6;
margin: 0; margin: 0;
} }
.item-dimmed { .item-dimmed {
opacity: 0.71; opacity: 0.71;
} }
.item-radio-checked { .item-radio-checked {
background-color: $gray-lighter; background-color: $gray-lighter;
} }
// Make no-lines work in any element, not just ion-item and ion-list. // Make no-lines work in any element, not just ion-item and ion-list.
.item *[no-lines] .item-inner, .item *[no-lines] .item-inner,
*[no-lines] .item .item-inner { *[no-lines] .item .item-inner {
border: 0; border: 0;
} }
.core-oauth-icon, .item.core-oauth-icon, .list .item.core-oauth-icon { .core-oauth-icon, .item.core-oauth-icon, .list .item.core-oauth-icon {
min-height: 32px; min-height: 32px;
img, .label { img, .label {
max-height: 32px; max-height: 32px;
@ -130,17 +124,17 @@
@include margin(null, null, null, 5px); @include margin(null, null, null, 5px);
color: $gray-darker; color: $gray-darker;
} }
} }
.core-bold, .core-bold .label { .core-bold, .core-bold .label {
font-weight: bold; font-weight: bold;
} }
.core-module-icon { .core-module-icon {
width: auto; width: auto;
} }
.core-button-spinner { .core-button-spinner {
min-height: 44px; min-height: 44px;
min-width: 50px; min-width: 50px;
text-align: center; text-align: center;
@ -148,12 +142,12 @@
.spinner { .spinner {
margin-top: 8px; margin-top: 8px;
} }
} }
// Avatar // Avatar
// ------------------------- // -------------------------
// Large centered avatar // Large centered avatar
.item-avatar-center { .item-avatar-center {
text-align: center; text-align: center;
&.item-complex .item-content { &.item-complex .item-content {
@ -184,38 +178,38 @@
height: auto; height: auto;
} }
} }
} }
ion-avatar ion-img, ion-avatar img { ion-avatar ion-img, ion-avatar img {
text-indent: -99999px; text-indent: -99999px;
background-color: $gray-light; background-color: $gray-light;
} }
// Form items // Form items
// ------------------------- // -------------------------
.item .core-input-footnote { .item .core-input-footnote {
width: 100%; width: 100%;
padding-top: 10px; padding-top: 10px;
padding-bottom: 10px; padding-bottom: 10px;
font-style: italic; font-style: italic;
} }
ion-datetime { ion-datetime {
position: relative; position: relative;
} }
input { input {
@include rtl() { @include rtl() {
text-align: right; text-align: right;
} }
} }
/** Format Text */ /** Format Text */
core-format-text[maxHeight], core-format-text[maxHeight],
core-format-text[ng-reflect-max-height] { core-format-text[ng-reflect-max-height] {
display: block; display: block;
position: relative; position: relative;
width: 100%; width: 100%;
@ -283,10 +277,10 @@ core-format-text[ng-reflect-max-height] {
background-size: 14px 14px; background-size: 14px 14px;
} }
} }
} }
core-format-text[singleLine="true"], core-format-text[singleLine="true"],
core-format-text[ng-reflect-single-line="true"] { core-format-text[ng-reflect-single-line="true"] {
cursor: pointer; cursor: pointer;
pointer-events: auto; pointer-events: auto;
white-space: nowrap; white-space: nowrap;
@ -295,27 +289,27 @@ core-format-text[ng-reflect-single-line="true"] {
display: block; display: block;
position: relative; position: relative;
width: 100%; width: 100%;
} }
.core-media-adapt-width { .core-media-adapt-width {
max-width: 100%; max-width: 100%;
} }
img.core-media-adapt-width { img.core-media-adapt-width {
height: auto; height: auto;
} }
audio.core-media-adapt-width { audio.core-media-adapt-width {
width: 100%; width: 100%;
} }
.core-adapted-img-container { .core-adapted-img-container {
position: relative; position: relative;
display: inline-block; display: inline-block;
width: 100%; width: 100%;
} }
.core-image-viewer-icon { .core-image-viewer-icon {
position: absolute; position: absolute;
@include position(null, 10px, 10px, null); @include position(null, 10px, 10px, null);
color: $black; color: $black;
@ -331,9 +325,9 @@ audio.core-media-adapt-width {
ion-icon { ion-icon {
font-size: 24px; font-size: 24px;
} }
} }
core-format-text { core-format-text {
audio, video, a, iframe { audio, video, a, iframe {
pointer-events: auto; pointer-events: auto;
} }
@ -374,40 +368,40 @@ core-format-text {
} }
@include core-headings(); @include core-headings();
} }
.item core-format-text { .item core-format-text {
@include core-headings(); @include core-headings();
} }
// Images in ion-card have width 100% and display block. Remove that when the image is in core-format-text. // 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 { ion-card core-format-text img {
width: min-content; width: min-content;
display: inline; display: inline;
} }
// Message item. // Message item.
.item-message { .item-message {
core-format-text > p:only-child { core-format-text > p:only-child {
display: inline; display: inline;
} }
} }
// Media item, ideal for icons. // Media item, ideal for icons.
.item-media { .item-media {
min-height: $item-media-height + ($content-padding * 2); min-height: $item-media-height + ($content-padding * 2);
> img:first-child { > img:first-child {
max-width: $item-media-width; max-width: $item-media-width;
max-height: $item-media-height; max-height: $item-media-height;
} }
} }
// Ionic fix. Button can occupy all page if not. // Ionic fix. Button can occupy all page if not.
ion-select { ion-select {
position: relative; position: relative;
} }
ion-col ion-select { ion-col ion-select {
@include float(end); @include float(end);
max-width: none; max-width: none;
width: 100%; width: 100%;
@ -415,11 +409,10 @@ ion-col ion-select {
white-space: normal; white-space: normal;
text-align: right; text-align: right;
} }
} }
:not(.item) > * > * > ion-select,
:not(.item) > * > * > ion-select, .core-button-select {
.core-button-select {
background-color: white; background-color: white;
color: $core-color; color: $core-color;
white-space: normal; white-space: normal;
@ -461,14 +454,13 @@ ion-col ion-select {
text-align: right; text-align: right;
flex-grow: 2; flex-grow: 2;
} }
} }
// File uploader. // File uploader.
// ------------------------- // -------------------------
.core-fileuploader-file-handler {
.core-fileuploader-file-handler {
position: relative; position: relative;
input { input {
@ -481,32 +473,32 @@ ion-col ion-select {
z-index: 100; z-index: 100;
cursor: pointer; cursor: pointer;
} }
} }
// Question. // Question.
// ------------------------- // -------------------------
.core-question-answer-correct, .core-question-answer-correct,
.core-question-comment { .core-question-comment {
color: $core-question-correct-color; color: $core-question-correct-color;
background-color: $core-question-correct-color-bg; background-color: $core-question-correct-color-bg;
.label, ion-label.label { .label, ion-label.label {
color: $core-question-correct-color; color: $core-question-correct-color;
} }
} }
.core-question-answer-incorrect, .core-question-answer-incorrect,
.core-question-incorrect { .core-question-incorrect {
color: $core-question-incorrect-color; color: $core-question-incorrect-color;
background-color: $core-question-incorrect-color-bg; background-color: $core-question-incorrect-color-bg;
.label, ion-label.label { .label, ion-label.label {
color: $core-question-incorrect-color; color: $core-question-incorrect-color;
} }
} }
.core-question-feedback-container { .core-question-feedback-container {
background-color: $core-question-feedback-color-bg; background-color: $core-question-feedback-color-bg;
color: $core-question-feedback-color; color: $core-question-feedback-color;
@ -532,128 +524,128 @@ ion-col ion-select {
background-color: $green; background-color: $green;
} }
} }
} }
.core-question-feedback-inline { .core-question-feedback-inline {
display: inline-block; display: inline-block;
} }
.core-question-feedback-padding { .core-question-feedback-padding {
@include padding(8px, 35px, 8px, 14px); @include padding(8px, 35px, 8px, 14px);
} }
.core-question-correct { .core-question-correct {
background-color: $core-question-state-correct-color; background-color: $core-question-state-correct-color;
} }
.core-question-partiallycorrect { .core-question-partiallycorrect {
background-color: $core-question-state-partial-color; background-color: $core-question-state-partial-color;
} }
.core-question-notanswered, .core-question-notanswered,
.core-question-incorrect { .core-question-incorrect {
background-color: $core-question-state-incorrect-color; background-color: $core-question-state-incorrect-color;
} }
.core-question-answersaved { .core-question-answersaved {
color: $text-color; color: $text-color;
background-color: $core-question-saved-color-bg; background-color: $core-question-saved-color-bg;
} }
.core-question-warning { .core-question-warning {
color: $core-question-warning-color; color: $core-question-warning-color;
} }
.questioncorrectnessicon, .questioncorrectnessicon,
.fa.icon.questioncorrectnessicon { .fa.icon.questioncorrectnessicon {
font-size: 20px; font-size: 20px;
} }
// Atto styles // Atto styles
// ------------------------- // -------------------------
.atto_image_preview { .atto_image_preview {
width: 100%; width: 100%;
height: 100%; height: 100%;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
} }
.atto_image_preview_box { .atto_image_preview_box {
max-height: 200px; max-height: 200px;
margin-bottom: 1em; margin-bottom: 1em;
overflow: auto; overflow: auto;
} }
.editor_atto_content img { .editor_atto_content img {
cursor: pointer; cursor: pointer;
} }
.atto_image_size { .atto_image_size {
display: inline-block; display: inline-block;
} }
.atto_image_size input[type=checkbox] { .atto_image_size input[type=checkbox] {
@include margin(null, 1em, null, 1em); @include margin(null, 1em, null, 1em);
} }
.atto_image_size input[type=text] { .atto_image_size input[type=text] {
width: 3em; width: 3em;
} }
.atto_image_size label { .atto_image_size label {
display: inline-block; display: inline-block;
} }
.atto_image_button_text-top { .atto_image_button_text-top {
vertical-align: text-top; vertical-align: text-top;
margin: 0 0.5em; margin: 0 0.5em;
} }
.atto_image_button_middle { .atto_image_button_middle {
vertical-align: middle; vertical-align: middle;
margin: 0 0.5em; margin: 0 0.5em;
} }
.atto_image_button_text-bottom { .atto_image_button_text-bottom {
vertical-align: text-bottom; vertical-align: text-bottom;
margin: 0 0.5em; margin: 0 0.5em;
} }
.atto_image_button_text-top.img-responsive, .atto_image_button_text-top.img-responsive,
.atto_image_button_middle.img-responsive, .atto_image_button_middle.img-responsive,
.atto_image_button_text-bottom.img-responsive { .atto_image_button_text-bottom.img-responsive {
/* If the image is display: block then linking the image to URLs won't work. */ /* If the image is display: block then linking the image to URLs won't work. */
display: inline-block; display: inline-block;
max-width: calc(100% - 1em); max-width: calc(100% - 1em);
} }
/*rtl:begin:ignore*/ /*rtl:begin:ignore*/
.atto_image_button_left { .atto_image_button_left {
@include float(start); @include float(start);
@include margin(0, 0.5em, 0, 0); @include margin(0, 0.5em, 0, 0);
max-width: calc(100% - 1em); max-width: calc(100% - 1em);
} }
.atto_image_button_right { .atto_image_button_right {
@include float(end); @include float(end);
@include margin(0, 0, 0, 0.5em); @include margin(0, 0, 0, 0.5em);
max-width: calc(100% - 1em); max-width: calc(100% - 1em);
} }
/*rtl:end:ignore*/ /*rtl:end:ignore*/
.action-sheet-group { .action-sheet-group {
overflow: auto; overflow: auto;
} }
.alert-message { .alert-message {
overflow-y: auto; overflow-y: auto;
} }
ion-toast.core-toast-success .toast-wrapper{ ion-toast.core-toast-success .toast-wrapper{
background: $green-dark; background: $green-dark;
} }
ion-toast.core-toast-alert .toast-wrapper{ ion-toast.core-toast-alert .toast-wrapper{
background: $red-dark; background: $red-dark;
} }
textarea { textarea {
width: 100%; width: 100%;
resize: none; resize: none;
@ -667,27 +659,27 @@ textarea {
height: 200px; height: 200px;
min-height: $core-rte-min-height; min-height: $core-rte-min-height;
} }
} }
.toolbar .core-bar-button-image { .toolbar .core-bar-button-image {
padding: 0; padding: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
max-width: $core-toolbar-button-image-width - 1; max-width: $core-toolbar-button-image-width - 1;
max-height: $core-toolbar-button-image-width - 1; max-height: $core-toolbar-button-image-width - 1;
border-radius: 50%; border-radius: 50%;
} }
// Footer with auto height. // Footer with auto height.
.footer.footer-adjustable { .footer.footer-adjustable {
height: auto; height: auto;
} }
.core-circle:before { .core-circle:before {
content: ' \25CF'; content: ' \25CF';
} }
@each $color-name, $color-base, $color-contrast in get-colors($colors) { @each $color-name, $color-base, $color-contrast in get-colors($colors) {
// Message cards. // Message cards.
.core-#{$color-name}-card { .core-#{$color-name}-card {
@extend ion-card; @extend ion-card;
@ -728,34 +720,34 @@ textarea {
.text-#{$color-name}, p.text-#{$color-name}, .item p.text-#{$color-name}, .card p.text-#{$color-name} { .text-#{$color-name}, p.text-#{$color-name}, .item p.text-#{$color-name}, .card p.text-#{$color-name} {
color: $color-base; color: $color-base;
} }
} }
.accesshide { .accesshide {
position: absolute; position: absolute;
@include position(null, null, null, -10000px); @include position(null, null, null, -10000px);
font-weight: normal; font-weight: normal;
font-size: 1em; font-size: 1em;
} }
.core-monospaced { .core-monospaced {
font-family: Andale Mono,Monaco,Courier New,DejaVu Sans Mono,monospace; font-family: Andale Mono,Monaco,Courier New,DejaVu Sans Mono,monospace;
} }
.core-white-push-arrow .item-inner{ .core-white-push-arrow .item-inner{
@include push-arrow-color($white); @include push-arrow-color($white);
} }
// For list where some items have detail icon and some others don't. // For list where some items have detail icon and some others don't.
.core-list-align-detail-right .item .item-inner { .core-list-align-detail-right .item .item-inner {
@include padding-horizontal(null, 32px); @include padding-horizontal(null, 32px);
} }
[ion-fixed] { [ion-fixed] {
width: 100%; width: 100%;
} }
.core-modal-fullscreen { .core-modal-fullscreen {
.modal-wrapper { .modal-wrapper {
position: absolute; position: absolute;
@include position(0 !important, null, null, 0 !important); @include position(0 !important, null, null, 0 !important);
@ -763,26 +755,26 @@ textarea {
width: 100% !important; width: 100% !important;
height: 100% !important; height: 100% !important;
} }
} }
.has-fab .scroll-content{ .has-fab .scroll-content{
padding-bottom: 56px; padding-bottom: 56px;
} }
.scroll-content ion-fab { .scroll-content ion-fab {
position: fixed; position: fixed;
margin-bottom: 56px; margin-bottom: 56px;
} }
// For some reason, in iOS the pages don't inherit the background-color from ion-app, set it explicitly. // For some reason, in iOS the pages don't inherit the background-color from ion-app, set it explicitly.
.ion-page { .ion-page {
background-color: $background-color; background-color: $background-color;
} }
// Embed video responsive classes. // Embed video responsive classes.
// Taken from https://github.com/twbs/bootstrap/blob/v4-dev/scss/utilities/_embed.scss // Taken from https://github.com/twbs/bootstrap/blob/v4-dev/scss/utilities/_embed.scss
.embed-responsive { .embed-responsive {
position: relative; position: relative;
display: block; display: block;
width: 100%; width: 100%;
@ -810,33 +802,33 @@ textarea {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
} }
.embed-responsive-21by9 { .embed-responsive-21by9 {
&::before { &::before {
padding-top: percentage(9 / 21); padding-top: percentage(9 / 21);
} }
} }
.embed-responsive-16by9 { .embed-responsive-16by9 {
&::before { &::before {
padding-top: percentage(9 / 16); padding-top: percentage(9 / 16);
} }
} }
.embed-responsive-4by3 { .embed-responsive-4by3 {
&::before { &::before {
padding-top: percentage(3 / 4); padding-top: percentage(3 / 4);
} }
} }
.embed-responsive-1by1 { .embed-responsive-1by1 {
&::before { &::before {
padding-top: percentage(1 / 1); padding-top: percentage(1 / 1);
} }
} }
ion-alert.core-inapp-notification { ion-alert.core-inapp-notification {
pointer-events: none; pointer-events: none;
position: fixed; position: fixed;
align-items: start; align-items: start;
@ -871,9 +863,9 @@ ion-alert.core-inapp-notification {
margin-bottom: 5px; margin-bottom: 5px;
} }
} }
} }
.core-icon-with-badge { .core-icon-with-badge {
position: relative; position: relative;
.icon { .icon {
@ -889,19 +881,9 @@ ion-alert.core-inapp-notification {
color: red; color: red;
font-size: 16px; font-size: 16px;
} }
}
body.keyboard-is-open {
.scroll-content, .fixed-content {
margin-bottom: 0 !important;
} }
core-ion-tabs .tabbar { .item.item-radio, .item.item-checkbox {
display: none;
}
}
.item.item-radio, .item.item-checkbox {
// Fix links and videos in ion-radio and ion-checkbox. // Fix links and videos in ion-radio and ion-checkbox.
.input-wrapper { .input-wrapper {
position: relative; position: relative;
@ -913,9 +895,9 @@ body.keyboard-is-open {
ion-label { ion-label {
white-space: normal; white-space: normal;
} }
} }
.core-no-text-wrap { .core-no-text-wrap {
white-space: nowrap; white-space: nowrap;
&.item.item-radio, &.item.item-checkbox { &.item.item-radio, &.item.item-checkbox {
@ -923,6 +905,27 @@ body.keyboard-is-open {
white-space: nowrap; white-space: nowrap;
} }
} }
}
// Fix modals displayed over action sheet.
.disable-scroll ion-modal .ion-page {
pointer-events: initial;
}
}
[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
}
body.keyboard-is-open {
.scroll-content, .fixed-content {
margin-bottom: 0 !important;
}
core-ion-tabs .tabbar {
display: none;
}
} }
// Fix iframes in fullscreen mode. // Fix iframes in fullscreen mode.
@ -941,8 +944,3 @@ ion-modal,
.split-pane { .split-pane {
contain: size layout style; contain: size layout style;
} }
// Fix modals displayed over action sheet.
.disable-scroll ion-modal .ion-page {
pointer-events: initial;
}

View File

@ -1,28 +1,28 @@
ion-app.app-root.wp {
.button-wp { .button-wp {
min-height: $button-wp-height; min-height: $button-wp-height;
} }
// Light buttons color. // Light buttons color.
.button-wp-light { .button-wp-light {
color: color($colors, primary, base); color: color($colors, primary, base);
} }
.col[align-self-stretch] .card-wp { .col[align-self-stretch] .card-wp {
height: calc(100% - #{($card-wp-margin-end + $card-wp-margin-start)}); height: calc(100% - #{($card-wp-margin-end + $card-wp-margin-start)});
} }
.bar-buttons core-context-menu .button-clear-wp { .bar-buttons core-context-menu .button-clear-wp {
color: $toolbar-wp-button-color; color: $toolbar-wp-button-color;
} }
.item-wp ion-spinner[item-start] + .item-inner, .item-wp ion-spinner[item-start] + .item-inner,
.item-wp ion-spinner[item-start] + .item-input { .item-wp ion-spinner[item-start] + .item-input {
@include margin-horizontal(($item-wp-padding-start / 2), null); @include margin-horizontal(($item-wp-padding-start / 2), null);
} }
@each $color-name, $color-base, $color-contrast in get-colors($colors-wp) { @each $color-name, $color-base, $color-contrast in get-colors($colors-wp) {
.wp .core-#{$color-name}-card { .core-#{$color-name}-card {
@extend .card-wp ; @extend .card-wp ;
@extend .card-content-wp; @extend .card-content-wp;
@ -34,24 +34,25 @@
} }
} }
} }
} }
.wp .core-avoid-header ion-content { .core-avoid-header ion-content {
top: $navbar-wp-height; top: $navbar-wp-height;
height: calc(100% - #{($navbar-wp-height)}); height: calc(100% - #{($navbar-wp-height)});
} }
// Different levels of padding. // Different levels of padding.
@for $i from 0 through 15 { @for $i from 0 through 15 {
.wp .core-padding-#{$i} { .core-padding-#{$i} {
@include padding(null, null, null, 15px * $i + $item-wp-padding-start); @include padding(null, null, null, 15px * $i + $item-wp-padding-start);
} }
} }
// Recover borders on items inside cards. // Recover borders on items inside cards.
.card-wp.with-borders .item-wp.item-block .item-inner { .card-wp.with-borders .item-wp.item-block .item-inner {
border-bottom: 1px solid $list-wp-border-color; border-bottom: 1px solid $list-wp-border-color;
} }
.card-wp.with-borders .item-wp:last-child .item-inner { .card-wp.with-borders .item-wp:last-child .item-inner {
border-bottom: 0; border-bottom: 0;
}
} }

View File

@ -1,4 +1,4 @@
core-chart { ion-app.app-root core-chart {
display: block; display: block;
canvas { canvas {

View File

@ -1,4 +1,4 @@
core-context-menu-popover { ion-app.app-root core-context-menu-popover {
.item-md ion-icon[item-start] + .item-inner, .item-md ion-icon[item-start] + .item-inner,
.item-md ion-icon[item-start] + .item-input { .item-md ion-icon[item-start] + .item-input {
@include margin-horizontal(5px, null); @include margin-horizontal(5px, null);

View File

@ -1,4 +1,4 @@
core-empty-box { ion-app.app-root core-empty-box {
.core-empty-box { .core-empty-box {
position: absolute; position: absolute;
@include position(0, 0, 0, 0); @include position(0, 0, 0, 0);

View File

@ -1,11 +1,13 @@
.card-md core-file + core-file > .item-md.item-block > .item-inner { ion-app.app-root {
.card-md core-file + core-file > .item-md.item-block > .item-inner {
border-top: 1px solid $list-md-border-color; border-top: 1px solid $list-md-border-color;
} }
.card-ios core-file + core-file > .item-ios.item-block > .item-inner { .card-ios core-file + core-file > .item-ios.item-block > .item-inner {
border-top: $hairlines-width solid $list-ios-border-color; border-top: $hairlines-width solid $list-ios-border-color;
} }
.card-wp core-file + core-file > .item-wp.item-block > .item-inner { .card-wp core-file + core-file > .item-wp.item-block > .item-inner {
border-top: 1px solid $list-wp-border-color; border-top: 1px solid $list-wp-border-color;
}
} }

View File

@ -1,4 +1,4 @@
core-iframe { ion-app.app-root core-iframe {
> div { > div {
height: 100%; height: 100%;
} }

View File

@ -1,4 +1,4 @@
core-input-errors { ion-app.app-root core-input-errors {
width: 100%; width: 100%;
.core-input-error-container { .core-input-error-container {

View File

@ -1,4 +1,4 @@
core-ion-tabs { ion-app.app-root core-ion-tabs {
.tabbar { .tabbar {
z-index: 101; // For some reason, the regular z-index isn't enough with our tabs, use a higher one. z-index: 101; // For some reason, the regular z-index isn't enough with our tabs, use a higher one.
@ -20,15 +20,15 @@ core-ion-tabs {
} }
} }
.ios core-ion-tabs .core-ion-tabs-loading { ion-app.app-root.ios core-ion-tabs .core-ion-tabs-loading {
min-height: $tabs-ios-tab-min-height; min-height: $tabs-ios-tab-min-height;
} }
.md core-ion-tabs .core-ion-tabs-loading { ion-app.app-root.md core-ion-tabs .core-ion-tabs-loading {
min-height: $tabs-md-tab-min-height; min-height: $tabs-md-tab-min-height;
} }
.wp core-ion-tabs .core-ion-tabs-loading { ion-app.app-root.wp core-ion-tabs .core-ion-tabs-loading {
min-height: $tabs-wp-tab-min-height; min-height: $tabs-wp-tab-min-height;
} }
@ -82,14 +82,14 @@ core-ion-tab.show-tab {
} }
.ios { ion-app.app-root.ios {
@include core-ion-tabs-statusbar-padding($toolbar-ios-height, $toolbar-ios-padding, $content-ios-padding, $cordova-ios-statusbar-padding, $cordova-ios-statusbar-padding-modal-max-width, true); @include core-ion-tabs-statusbar-padding($toolbar-ios-height, $toolbar-ios-padding, $content-ios-padding, $cordova-ios-statusbar-padding, $cordova-ios-statusbar-padding-modal-max-width, true);
} }
.md { ion-app.app-root.md {
@include core-ion-tabs-statusbar-padding($toolbar-md-height, $toolbar-md-padding, $content-md-padding, $cordova-md-statusbar-padding, $cordova-md-statusbar-padding-modal-max-width); @include core-ion-tabs-statusbar-padding($toolbar-md-height, $toolbar-md-padding, $content-md-padding, $cordova-md-statusbar-padding, $cordova-md-statusbar-padding-modal-max-width);
} }
.wp { ion-app.app-root.wp {
@include core-ion-tabs-statusbar-padding($toolbar-wp-height, $toolbar-wp-padding, $content-wp-padding, $cordova-wp-statusbar-padding, $cordova-wp-statusbar-padding-modal-max-width); @include core-ion-tabs-statusbar-padding($toolbar-wp-height, $toolbar-wp-padding, $content-wp-padding, $cordova-wp-statusbar-padding, $cordova-wp-statusbar-padding-modal-max-width);
} }

View File

@ -1,4 +1,5 @@
core-loading { ion-app.app-root {
core-loading {
@include core-transition(height, 200ms); @include core-transition(height, 200ms);
.core-loading-container { .core-loading-container {
@ -16,18 +17,18 @@ core-loading {
&.core-loading-noheight .core-loading-content { &.core-loading-noheight .core-loading-content {
height: auto; height: auto;
} }
} }
.scroll-content > core-loading, .scroll-content > core-loading,
ion-content > .scroll-content > core-loading, ion-content > .scroll-content > core-loading,
.core-loading-center { .core-loading-center {
position: static !important; position: static !important;
} }
.scroll-content > core-loading, .scroll-content > core-loading,
ion-content > .scroll-content > core-loading, ion-content > .scroll-content > core-loading,
.core-loading-center, .core-loading-center,
core-loading.core-loading-loaded { core-loading.core-loading-loaded {
position: relative; position: relative;
> .core-loading-container { > .core-loading-container {
@ -47,4 +48,5 @@ core-loading.core-loading-loaded {
vertical-align: middle; vertical-align: middle;
} }
} }
}
} }

View File

@ -1,4 +1,4 @@
.core-input-required-asterisk, .icon.core-input-required-asterisk { ion-app.app-root .core-input-required-asterisk, ion-app.app-root .icon.core-input-required-asterisk {
color: $red !important; color: $red !important;
font-size: 8px; font-size: 8px;
@include padding(null, null, null, 4px); @include padding(null, null, null, 4px);

View File

@ -1,3 +1,4 @@
core-navbar-buttons, .core-navbar-button-hidden { ion-app.app-root core-navbar-buttons,
ion-app.app-root .core-navbar-button-hidden {
display: none !important; display: none !important;
} }

View File

@ -1,6 +1,6 @@
$core-progress-bar-height: 5px !default; $core-progress-bar-height: 5px !default;
core-progress-bar { ion-app.app-root core-progress-bar {
@include padding(null, 55px, null, null); @include padding(null, 55px, null, null);
position: relative; position: relative;
display: block; display: block;

View File

@ -1,4 +1,4 @@
core-rich-text-editor { ion-app.app-root core-rich-text-editor {
height: 40vh; height: 40vh;
overflow: hidden; overflow: hidden;
min-height: 200px; /* Just in case vh is not supported */ min-height: 200px; /* Just in case vh is not supported */
@ -121,6 +121,6 @@ core-rich-text-editor {
} }
.keyboard-is-open core-rich-text-editor { body.keyboard-is-open ion-app.app-root core-rich-text-editor {
min-height: 200px; min-height: 200px;
} }

View File

@ -1,4 +1,4 @@
core-search-box { ion-app.app-root core-search-box {
.button.item-button[icon-only] { .button.item-button[icon-only] {
margin: 0; margin: 0;
padding: ($content-padding / 2) $content-padding; padding: ($content-padding / 2) $content-padding;

View File

@ -1,7 +1,7 @@
$core-send-message-input-background: $gray; $core-send-message-input-background: $gray;
$core-send-message-input-color: $black; $core-send-message-input-color: $black;
core-send-message-form { ion-app.app-root core-send-message-form {
background: $white; background: $white;
form { form {

View File

@ -1,4 +1,4 @@
core-show-password { ion-app.app-root core-show-password {
padding: 0px; padding: 0px;
width: 100%; width: 100%;
position: relative; position: relative;
@ -22,13 +22,13 @@ core-show-password {
} }
} }
.md { ion-app.app-root.md {
.item-label-stacked core-show-password .button[icon-only] { .item-label-stacked core-show-password .button[icon-only] {
bottom: 0; bottom: 0;
} }
} }
.ios { ion-app.app-root.ios {
.item-label-stacked core-show-password .button[icon-only] { .item-label-stacked core-show-password .button[icon-only] {
bottom: -5px; bottom: -5px;
} }
@ -37,7 +37,7 @@ core-show-password {
} }
} }
.wp { ion-app.app-root.wp {
.item-label-stacked core-show-password .button[icon-only] { .item-label-stacked core-show-password .button[icon-only] {
bottom: 7px; bottom: 7px;
} }

View File

@ -1,4 +1,4 @@
.core-tabs-bar { ion-app.app-root .core-tabs-bar {
@include position(null, null, null, 0); @include position(null, null, null, 0);
position: relative; position: relative;
z-index: $z-index-toolbar; z-index: $z-index-toolbar;
@ -49,7 +49,7 @@
} }
} }
.md .core-tabs-bar a.tab-slide { ion-app.app-root.md .core-tabs-bar a.tab-slide {
// @extend .tabs-md .tab-button; // @extend .tabs-md .tab-button;
min-height: $tabs-md-tab-min-height; min-height: $tabs-md-tab-min-height;
@ -57,7 +57,7 @@
color: $tabs-md-tab-text-color; color: $tabs-md-tab-text-color;
} }
.ios .core-tabs-bar a.tab-slide { ion-app.app-root.ios .core-tabs-bar a.tab-slide {
// @extend .tabs-ios .tab-button; // @extend .tabs-ios .tab-button;
max-width: $tabs-ios-tab-max-width; max-width: $tabs-ios-tab-max-width;
min-height: $tabs-ios-tab-min-height; min-height: $tabs-ios-tab-min-height;
@ -67,11 +67,7 @@
color: $tabs-ios-tab-text-color; color: $tabs-ios-tab-text-color;
} }
.ios .tabs:not(.tabs-ios[tabsPlacement=top]) .tabbar { ion-app.app-root.wp .core-tabs-bar a.tab-slide {
padding-bottom: 0;
}
.wp .core-tabs-bar a.tab-slide {
//@extend .tabs-wp .tab-button; //@extend .tabs-wp .tab-button;
@include border-radius(0); @include border-radius(0);
@ -84,7 +80,7 @@
box-shadow: none; box-shadow: none;
} }
core-tabs { ion-app.app-root core-tabs {
.core-tabs-content-container { .core-tabs-content-container {
height: 100%; height: 100%;
@ -129,11 +125,11 @@ core-tabs {
} }
} }
:not(.has-refresher) > .scroll-content.no-scroll { ion-app.app-root :not(.has-refresher) > .scroll-content.no-scroll {
overflow: hidden !important; overflow: hidden !important;
} }
.ios .core-tabs-bar { ion-app.app-root.ios .core-tabs-bar {
-webkit-box-pack: center; -webkit-box-pack: center;
-webkit-justify-content: center; -webkit-justify-content: center;
-ms-flex-pack: center; -ms-flex-pack: center;
@ -143,11 +139,11 @@ core-tabs {
} }
} }
.md .core-tabs-bar::after { ion-app.app-root.md .core-tabs-bar::after {
@extend .header-md::after; @extend .header-md::after;
} }
.ios, .md, .wp { ion-app.app-root.ios, ion-app.app-root.md, ion-app.app-root.wp {
.core-avoid-header ion-content core-tabs core-tab ion-content { .core-avoid-header ion-content core-tabs core-tab ion-content {
top: 0 !important; top: 0 !important;
height: 100% !important; height: 100% !important;

View File

@ -1,4 +1,4 @@
core-timer { ion-app.app-root core-timer {
.item.item-block .item-inner { .item.item-block .item-inner {
border: 0; border: 0;
} }

View File

@ -1,10 +1,10 @@
ion-badge.core-course-download-section-progress { ion-app.app-root ion-badge.core-course-download-section-progress {
display: block; display: block;
@include float(start); @include float(start);
@include margin(12px, 12px, null, 12px); @include margin(12px, 12px, null, 12px);
} }
core-course-format { ion-app.app-root core-course-format {
.core-format-progress-list { .core-format-progress-list {
margin-bottom: 0; margin-bottom: 0;

View File

@ -1,4 +1,4 @@
core-course-module-completion a { ion-app.app-root core-course-module-completion a {
img { img {
padding: 5px; padding: 5px;
width: 30px; width: 30px;

View File

@ -1,4 +1,4 @@
core-course-module { ion-app.app-root core-course-module {
background: white; background: white;
display: block; display: block;
@ -51,7 +51,7 @@ core-course-module {
} }
} }
.md core-course-module { ion-app.app-root.md core-course-module {
.core-module-description { .core-module-description {
@include padding(null, $label-md-margin-end, null, null); @include padding(null, $label-md-margin-end, null, null);
margin-bottom: $label-md-margin-bottom; margin-bottom: $label-md-margin-bottom;
@ -81,7 +81,7 @@ core-course-module {
} }
} }
.ios core-course-module { ion-app.app-root.ios core-course-module {
.core-module-description { .core-module-description {
@include padding(null, $label-ios-margin-end, null, null); @include padding(null, $label-ios-margin-end, null, null);
margin-bottom: $label-md-margin-bottom; margin-bottom: $label-md-margin-bottom;
@ -106,7 +106,7 @@ core-course-module {
} }
} }
.wp core-course-module { ion-app.app-root.wp core-course-module {
.core-module-description { .core-module-description {
@include padding(null, $item-wp-padding-end / 2, null, null); @include padding(null, $item-wp-padding-end / 2, null, null);
margin-bottom: $label-md-margin-bottom; margin-bottom: $label-md-margin-bottom;

View File

@ -1,3 +0,0 @@
page-core-course-section {
}

View File

@ -1,4 +1,4 @@
core-courses-course-list-item { ion-app.app-root core-courses-course-list-item {
.core-course-enrollment-img { .core-course-enrollment-img {
max-width: 16px; max-width: 16px;
max-height: 16px; max-height: 16px;

View File

@ -1,4 +1,4 @@
core-courses-course-progress { ion-app.app-root core-courses-course-progress {
ion-card.card { ion-card.card {
display: flex; display: flex;
flex-direction: column; flex-direction: column;

View File

@ -1,4 +1,4 @@
core-courses-course-progress { ion-app.app-root core-courses-course-progress {
.core-course-module-handler.item-md.item-block .item-inner { .core-course-module-handler.item-md.item-block .item-inner {
border-bottom: 1px solid $list-md-border-color; border-bottom: 1px solid $list-md-border-color;

View File

@ -1,4 +1,4 @@
page-core-courses-course-preview { ion-app.app-root page-core-courses-course-preview {
.core-course-thumb { .core-course-thumb {
height: 150px; height: 150px;
width: 100%; width: 100%;

View File

@ -1,3 +0,0 @@
page-core-courses-my-courses {
}

View File

@ -1,4 +1,4 @@
page-core-courses-my-overview { ion-app.app-root page-core-courses-my-overview {
ion-badge.core-course-download-courses-progress { ion-badge.core-course-download-courses-progress {
display: block; display: block;
@include float(start); @include float(start);

View File

@ -1,3 +0,0 @@
page-core-courses-search {
}

View File

@ -1,4 +1,4 @@
page-core-emulator-capture-media { ion-app.app-root page-core-emulator-capture-media {
ion-content { ion-content {
.core-av-wrapper { .core-av-wrapper {
position: absolute; position: absolute;

View File

@ -1,4 +1,4 @@
core-grades-course { ion-app.app-root core-grades-course {
.core-grades-table { .core-grades-table {
border-collapse: collapse; border-collapse: collapse;
line-height: 20px; line-height: 20px;
@ -74,7 +74,7 @@ core-grades-course {
} }
} }
.split-pane-side, .split-pane-main { ion-app.app-root .split-pane-side, ion-app.app-root .split-pane-main {
core-grades-course .core-grades-table .hidden-phone { core-grades-course .core-grades-table .hidden-phone {
display: none; display: none;
opacity: 0; opacity: 0;

View File

@ -1,4 +1,4 @@
page-core-login-credentials { ion-app.app-root page-core-login-credentials {
.scroll-content { .scroll-content {
background: $core-login-page-background-color; background: $core-login-page-background-color;
} }

View File

@ -1,2 +0,0 @@
page-core-login-email-signup {
}

View File

@ -1,4 +1,4 @@
page-core-login-forgotten-password { ion-app.app-root page-core-login-forgotten-password {
.content { .content {
background: -webkit-radial-gradient(white, $gray-light); background: -webkit-radial-gradient(white, $gray-light);
background: radial-gradient(white, $gray-light); background: radial-gradient(white, $gray-light);

View File

@ -1,4 +1,4 @@
page-core-login-init { ion-app.app-root page-core-login-init {
.scroll-content { .scroll-content {
background-color: $core-color-init-screen; /* Change this to add a bg image or change color */ background-color: $core-color-init-screen; /* Change this to add a bg image or change color */
background: -webkit-radial-gradient($core-color-init-screen-alt, $core-color-init-screen); background: -webkit-radial-gradient($core-color-init-screen-alt, $core-color-init-screen);

View File

@ -1,4 +1,4 @@
page-core-login-reconnect { ion-app.app-root page-core-login-reconnect {
.scroll-content { .scroll-content {
background: $core-login-page-background-color; background: $core-login-page-background-color;
} }

View File

@ -1,4 +1,4 @@
page-core-login-site-policy { ion-app.app-root page-core-login-site-policy {
.card { .card {
height: 300px; height: 300px;
} }

View File

@ -1,4 +1,4 @@
page-core-login-site { ion-app.app-root page-core-login-site {
.scroll-content { .scroll-content {
background: $core-login-page-background-color; background: $core-login-page-background-color;
} }

View File

@ -1,4 +1,4 @@
page-core-login-sites { ion-app.app-root page-core-login-sites {
.item-button[icon-only] ion-icon { .item-button[icon-only] ion-icon {
font-size: 2.3em; font-size: 2.3em;
} }

View File

@ -1,4 +1,4 @@
page-core-mainmenu { ion-app.app-root page-core-mainmenu {
.ion-md-fa-graduation-cap, .ion-md-fa-graduation-cap,
.ion-ios-fa-graduation-cap, .ion-ios-fa-graduation-cap,
.ion-ios-fa-graduation-cap-outline, .ion-ios-fa-graduation-cap-outline,

View File

@ -1,4 +1,4 @@
page-core-mainmenu-more { ion-app.app-root page-core-mainmenu-more {
$core-more-icon: $gray-darker !default; $core-more-icon: $gray-darker !default;
$core-more-background-ios: $list-ios-background-color !default; $core-more-background-ios: $list-ios-background-color !default;
$core-more-background-md: $list-md-background-color !default; $core-more-background-md: $list-md-background-color !default;

View File

@ -1,5 +0,0 @@
core-user-profile-field {
}

View File

@ -1,2 +0,0 @@
page-core-user-about {
}

View File

@ -1,4 +1,4 @@
page-core-user-profile { ion-app.app-root page-core-user-profile {
.core-icon-foreground { .core-icon-foreground {
position: relative; position: relative;
@include position(null, null, 30px, 60px); @include position(null, null, 30px, 60px);

View File

@ -1,4 +1,4 @@
page-core-viewer-iframe { ion-app.app-root page-core-viewer-iframe {
core-loading .core-loading-content { core-loading .core-loading-content {
height: 100%; height: 100%;
} }

View File

@ -1,4 +1,4 @@
.core-zoom-pane { ion-app.app-root .core-zoom-pane {
height: 100%; height: 100%;
img { img {

View File

@ -147,7 +147,7 @@ $loading-ios-spinner-color: $core-loading-spinner-color;
$spinner-ios-ios-color: $core-spinner-color; $spinner-ios-ios-color: $core-spinner-color;
$tabs-ios-tab-color-inactive: $tabs-tab-color-inactive; $tabs-ios-tab-color-inactive: $tabs-tab-color-inactive;
$button-ios-outline-background-color: $core-button-outline-background-color; $button-ios-outline-background-color: $core-button-outline-background-color;
$toolbar-ios-height: 44px + 15; // Avoid toolbar with different heights. $toolbar-ios-height: 44px + 8; // Avoid toolbar with different heights.
$checkbox-ios-icon-border-radius: 0px !default; $checkbox-ios-icon-border-radius: 0px !default;
// App Material Design Variables // App Material Design Variables
@ -274,16 +274,6 @@ $core-question-state-incorrect-color: $red-light !default;
} }
} }
@mixin app-root() {
$root: #{&};
@at-root ion-app.app-root {
#{$root} {
@content;
}
}
}
// Font Awesome // Font Awesome
$fa-font-path: $font-path; $fa-font-path: $font-path;
@import "font-awesome"; @import "font-awesome";