MOBILE-3947 chore: Change import to use on Sass

main
Pau Ferrer Ocaña 2023-11-07 13:32:19 +01:00
parent 8265f0fbe1
commit a81f93822f
79 changed files with 97 additions and 104 deletions

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {
--core-avatar-size: 30px; --core-avatar-size: 30px;

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host .core-block-content ::ng-deep { :host .core-block-content ::ng-deep {
.activitydate, .activityhead { .activitydate, .activityhead {

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {
.core-horizontal-scroll div.core-horizontal-scroll-item { .core-horizontal-scroll div.core-horizontal-scroll-item {

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
h3 { h3 {
font-weight: bold; font-weight: bold;

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {
--addon-calendar-blank-day-background-color: var(--light); --addon-calendar-blank-day-background-color: var(--light);

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {
ion-item { ion-item {

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {
.addon-messages-conversation-item, .addon-messages-conversation-item,

View File

@ -1,5 +1,4 @@
@import "~theme/components/discussion.scss"; @use "theme/globals" as *;
@import "~theme/globals.scss";
:host { :host {

View File

@ -51,7 +51,7 @@ import { CoreDom } from '@singletons/dom';
@Component({ @Component({
selector: 'page-addon-messages-discussion', selector: 'page-addon-messages-discussion',
templateUrl: 'discussion.html', templateUrl: 'discussion.html',
styleUrls: ['discussion.scss'], styleUrls: ['../../../../theme/components/discussion.scss', 'discussion.scss'],
}) })
export class AddonMessagesDiscussionPage implements OnInit, OnDestroy, AfterViewInit { export class AddonMessagesDiscussionPage implements OnInit, OnDestroy, AfterViewInit {

View File

@ -1,5 +1,3 @@
@import "~theme/components/discussion.scss";
:host { :host {
.addon-mod_chat-notice { .addon-mod_chat-notice {
margin-top: 8px; margin-top: 8px;

View File

@ -37,7 +37,7 @@ import { CoreAnalytics, CoreAnalyticsEventType } from '@services/analytics';
@Component({ @Component({
selector: 'page-addon-mod-chat-chat', selector: 'page-addon-mod-chat-chat',
templateUrl: 'chat.html', templateUrl: 'chat.html',
styleUrls: ['chat.scss'], styleUrls: ['../../../../../theme/components/discussion.scss', 'chat.scss'],
}) })
export class AddonModChatChatPage implements OnInit, OnDestroy, CanLeave { export class AddonModChatChatPage implements OnInit, OnDestroy, CanLeave {

View File

@ -1,5 +1,3 @@
@import "~theme/components/discussion.scss";
:host { :host {
.addon-mod_chat-notice { .addon-mod_chat-notice {
margin-top: 8px; margin-top: 8px;

View File

@ -31,7 +31,7 @@ import { CoreTime } from '@singletons/time';
@Component({ @Component({
selector: 'page-addon-mod-chat-session-messages', selector: 'page-addon-mod-chat-session-messages',
templateUrl: 'session-messages.html', templateUrl: 'session-messages.html',
styleUrls: ['session-messages.scss'], styleUrls: ['../../../../../theme/components/discussion.scss', 'session-messages.scss'],
}) })
export class AddonModChatSessionMessagesPage implements OnInit { export class AddonModChatSessionMessagesPage implements OnInit {

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
// Edit and search modal. // Edit and search modal.
:host { :host {

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
/// @prop - The padding for the grid column /// @prop - The padding for the grid column
$grid-column-padding: var(--ion-grid-column-padding, 5px) !default; $grid-column-padding: var(--ion-grid-column-padding, 5px) !default;

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host .addon-mod_forum-post { :host .addon-mod_forum-post {
background-color: var(--ion-item-background); background-color: var(--ion-item-background);

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {
.addon-forum-group-info { .addon-forum-group-info {

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {
.core-warning-item { .core-warning-item {

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {
.button-disabled { .button-disabled {

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {
.addon-mod_resource-outdated { .addon-mod_resource-outdated {

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {
.addon-mod_scorm-attempt-summary ion-item > p { .addon-mod_scorm-attempt-summary ion-item > p {

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
$addon-mod-wiki-toc-level-padding: 12px !default; $addon-mod-wiki-toc-level-padding: 12px !default;

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {
--extra-icon-size: 16px; --extra-icon-size: 16px;

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
ion-item { ion-item {
ion-label { ion-label {

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {

View File

@ -1,4 +1,4 @@
@import "~core/features/question/question"; @use "theme/globals" as *;
// Style ddimageortext content a bit. Almost all these styles are copied from Moodle. // Style ddimageortext content a bit. Almost all these styles are copied from Moodle.
:host { :host {

View File

@ -24,7 +24,7 @@ import { AddonQtypeDdImageOrTextQuestion } from '../classes/ddimageortext';
@Component({ @Component({
selector: 'addon-qtype-ddimageortext', selector: 'addon-qtype-ddimageortext',
templateUrl: 'addon-qtype-ddimageortext.html', templateUrl: 'addon-qtype-ddimageortext.html',
styleUrls: ['ddimageortext.scss'], styleUrls: ['../../../../core/features/question/question.scss', 'ddimageortext.scss'],
}) })
export class AddonQtypeDdImageOrTextComponent export class AddonQtypeDdImageOrTextComponent
extends CoreQuestionBaseComponent<AddonModQuizDdImageOrTextQuestionData> extends CoreQuestionBaseComponent<AddonModQuizDdImageOrTextQuestionData>

View File

@ -1,4 +1,4 @@
@import "~core/features/question/question"; @use "theme/globals" as *;
// Style ddwtos content a bit. Almost all these styles are copied from Moodle. // Style ddwtos content a bit. Almost all these styles are copied from Moodle.
.addon-qtype-ddwtos-container { .addon-qtype-ddwtos-container {

View File

@ -25,7 +25,7 @@ import { AddonQtypeDdwtosQuestion } from '../classes/ddwtos';
@Component({ @Component({
selector: 'addon-qtype-ddwtos', selector: 'addon-qtype-ddwtos',
templateUrl: 'addon-qtype-ddwtos.html', templateUrl: 'addon-qtype-ddwtos.html',
styleUrls: ['ddwtos.scss'], styleUrls: ['../../../../core/features/question/question.scss', 'ddwtos.scss'],
}) })
export class AddonQtypeDdwtosComponent extends CoreQuestionBaseComponent<AddonModQuizDdwtosQuestionData> implements OnDestroy { export class AddonQtypeDdwtosComponent extends CoreQuestionBaseComponent<AddonModQuizDdwtosQuestionData> implements OnDestroy {

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {
--course-storage-max-activity-height: 120px; --course-storage-max-activity-height: 120px;

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {
--text-overflow: initial; --text-overflow: initial;

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {
max-width: 100%; max-width: 100%;

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
ion-list { ion-list {
padding: 0; padding: 0;

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {
--core-image-radius: var(--core-courseimage-radius); --core-image-radius: var(--core-courseimage-radius);

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {
--image-size: 120px; --image-size: 120px;

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
@mixin inline() { @mixin inline() {
&:not(.core-loading-loaded) { &:not(.core-loading-loaded) {

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {
.core-input-required-asterisk { .core-input-required-asterisk {

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {
--message-background: var(--core-messages-message-bg); --message-background: var(--core-messages-message-bg);

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {
display: inline-block; display: inline-block;

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {
--height: var(--core-navigation-max-height); --height: var(--core-navigation-max-height);

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {
display: flex; display: flex;

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {
ion-chip { ion-chip {

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {
--backdrop-opacity: var(--ion-backdrop-opacity, 0.4); --backdrop-opacity: var(--ion-backdrop-opacity, 0.4);

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {
display: contents; display: contents;

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {
--menu-min-width: 270px; --menu-min-width: 270px;

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {
--tabs-background: var(--core-tabs-background); --tabs-background: var(--core-tabs-background);

View File

@ -1,4 +1,4 @@
@import '~theme/globals.scss'; @use "theme/globals" as *;
:host { :host {
position: relative; position: relative;

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {
@include position(50%, 0px, null, null); @include position(50%, 0px, null, null);

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host ::ng-deep core-block { :host ::ng-deep core-block {
@include media-breakpoint-up(md) { @include media-breakpoint-up(md) {

View File

@ -1,5 +1,3 @@
@import "~theme/components/discussion.scss";
ion-badge { ion-badge {
margin: 8px auto; margin: 8px auto;
} }

View File

@ -51,7 +51,7 @@ import { CoreAnimations } from '@components/animations';
selector: 'page-core-comments-viewer', selector: 'page-core-comments-viewer',
templateUrl: 'viewer.html', templateUrl: 'viewer.html',
animations: [CoreAnimations.SLIDE_IN_OUT], animations: [CoreAnimations.SLIDE_IN_OUT],
styleUrls: ['viewer.scss'], styleUrls: ['../../../../../theme/components/discussion.scss', 'viewer.scss'],
}) })
export class CoreCommentsViewerPage implements OnInit, OnDestroy { export class CoreCommentsViewerPage implements OnInit, OnDestroy {

View File

@ -1,4 +1,4 @@
@import '~theme/globals.scss'; @use "theme/globals" as *;
core-progress-bar { core-progress-bar {
--bar-margin: 8px 0 4px 0; --bar-margin: 8px 0 4px 0;
--line-height: 20px; --line-height: 20px;

View File

@ -1,4 +1,4 @@
@import '~theme/globals.scss'; @use "theme/globals" as *;
:host { :host {
display: block; display: block;

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {
--height: var(--core-navigation-max-height); --height: var(--core-navigation-max-height);

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host ::ng-deep ion-item[collapsible] ion-label { :host ::ng-deep ion-item[collapsible] ion-label {
margin-top: 12px; margin-top: 12px;

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {
--horizontal-margin: 12px; --horizontal-margin: 12px;

View File

@ -1,4 +1,4 @@
@import '~theme/globals.scss'; @use "theme/globals" as *;
:host { :host {
--thumb-height: 180px; --thumb-height: 180px;

View File

@ -1,4 +1,4 @@
@import '~theme/globals.scss'; @use "theme/globals" as *;
:host { :host {
.core-format-progress-list { .core-format-progress-list {

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
.core-module-availabilityinfo { .core-module-availabilityinfo {
background: var(--light); background: var(--light);

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {
@for $i from 0 to length($core-course-image-background) { @for $i from 0 to length($core-course-image-background) {

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {
--placeholder-color: var(--ion-placeholder-color); --placeholder-color: var(--ion-placeholder-color);
--toobar-background: var(--white); --toobar-background: var(--white);

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {
--header-background: var(--white); --header-background: var(--white);

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {
.core-login-onboarding-step { .core-login-onboarding-step {

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {
ion-content, ion-content,

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {
--list-item-max-width: 600px; --list-item-max-width: 600px;

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {
.core-user-menu-preferences { .core-user-menu-preferences {

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {
ion-tabs { ion-tabs {

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host ::ng-deep { :host ::ng-deep {
.core-question-answer-correct { .core-question-answer-correct {

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {
display: flex; display: flex;

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {
--rotate-expandable: rotate(180deg); --rotate-expandable: rotate(180deg);

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {
--header-background: var(--white); --header-background: var(--white);

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
.filters-info { .filters-info {
padding-bottom: 1rem; padding-bottom: 1rem;

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
ion-item ion-icon { ion-item ion-icon {
display: inline-block; display: inline-block;

View File

@ -1,4 +1,4 @@
@import "~theme/globals"; @use "theme/globals" as *;
:host { :host {
line-height: 1.6; line-height: 1.6;

View File

@ -1,4 +1,4 @@
@import "~theme/globals.scss"; @use "theme/globals" as *;
:host-context(.ios) { :host-context(.ios) {
ion-footer .toolbar:last-child { ion-footer .toolbar:last-child {

View File

@ -1,6 +1,6 @@
/** Format Text - Show more styles. */ /** Format Text - Show more styles. */
/** Styles of elements inside the directive should be placed in format-text.scss */ /** Styles of elements inside the directive should be placed in format-text.scss */
@import "~theme/globals"; @use "theme/globals.variables" as global;
core-format-text { core-format-text {
--core-format-text-background: var(--background, var(--ion-item-background)); --core-format-text-background: var(--background, var(--ion-item-background));
@ -42,7 +42,7 @@ core-format-text {
} }
} }
@if ($core-format-text-never-shorten) { @if (global.$core-format-text-never-shorten) {
&.collapsible-enabled { &.collapsible-enabled {
--display-toggle: none !important; --display-toggle: none !important;
--collapsible-height: auto !important; --collapsible-height: auto !important;
@ -200,7 +200,7 @@ core-format-text {
.embed-responsive-1by1 { .embed-responsive-1by1 {
&::before { &::before {
padding-top: percentage(1 / 1); padding-top: percentage(1);
} }
} }
@ -474,7 +474,7 @@ core-rich-text-editor .core-rte-editor {
font-weight: 400; font-weight: 400;
} }
@each $color-name, $unused in $colors { @each $color-name, $unused in global.$colors {
.alert-#{$color-name} { .alert-#{$color-name} {
--color-base: var(--#{$color-name}); --color-base: var(--#{$color-name});
color: var(--#{$color-name}-shade); color: var(--#{$color-name}-shade);
@ -504,7 +504,7 @@ core-rich-text-editor .core-rte-editor {
&[disabled] ~ .form-check-label, &[disabled] ~ .form-check-label,
&:disabled ~ .form-check-label { &:disabled ~ .form-check-label {
color: $gray-600; color: global.$gray-600;
} }
} }
@ -549,7 +549,7 @@ core-rich-text-editor .core-rte-editor {
.border-bottom-0 { border-bottom: 0 !important; } .border-bottom-0 { border-bottom: 0 !important; }
.border-left-0 { border-left: 0 !important; } .border-left-0 { border-left: 0 !important; }
@each $color-name, $unused in $colors { @each $color-name, $unused in global.$colors {
.border-#{$color-name} { .border-#{$color-name} {
border-color: var(--#{$color-name}) !important; border-color: var(--#{$color-name}) !important;
} }
@ -633,7 +633,7 @@ core-rich-text-editor .core-rte-editor {
.font-italic { font-style: italic !important; } .font-italic { font-style: italic !important; }
.text-white { color: var(--white) !important; } .text-white { color: var(--white) !important; }
@each $color-name, $unused in $colors { @each $color-name, $unused in global.$colors {
.text-#{$color-name} { .text-#{$color-name} {
color: var(--#{$color-name}); color: var(--#{$color-name});
} }
@ -669,7 +669,7 @@ core-rich-text-editor .core-rte-editor {
background-color: var(--danger); background-color: var(--danger);
} }
@each $color-name, $unused in $colors { @each $color-name, $unused in global.$colors {
.label-#{$color-name} { .label-#{$color-name} {
color: var(--#{$color-name}-contrast); color: var(--#{$color-name}-contrast);
background-color: var(--#{$color-name}); background-color: var(--#{$color-name});
@ -690,7 +690,7 @@ core-rich-text-editor .core-rte-editor {
} }
} }
@each $color-name, $unused in $colors { @each $color-name, $unused in global.$colors {
.btn.btn-#{$color-name} { .btn.btn-#{$color-name} {
--color-base: var(--#{$color-name}); --color-base: var(--#{$color-name});
color: var(--#{$color-name}-shade); color: var(--#{$color-name}-shade);

View File

@ -10,26 +10,26 @@
*/ */
/* Global variables */ /* Global variables */
@import "./globals.scss"; @import "globals.scss";
/* Application styles */ /* Application styles */
@import "./theme.light.scss"; @import "theme.light.scss";
@import "./theme.dark.scss"; @import "theme.dark.scss";
@import "./theme.custom.scss"; @import "theme.custom.scss";
@import "./theme.design-system.scss"; @import "theme.design-system.scss";
@import "./theme.base.scss"; @import "theme.base.scss";
/* Components */ /* Components */
@import "./components/collapsible-header.scss"; @import "components/collapsible-header.scss";
@import "./components/collapsible-item.scss"; @import "components/collapsible-item.scss";
@import "./components/format-text.scss"; @import "components/format-text.scss";
@import "./components/rubrics.scss"; @import "components/rubrics.scss";
@import "./components/mod-label.scss"; @import "components/mod-label.scss";
@import "../core/components/error-info/error-info.scss"; @import "../core/components/error-info/error-info.scss";
@import "./components/videojs.scss"; @import "components/videojs.scss";
/* Some styles from 3rd party libraries. */ /* Some styles from 3rd party libraries. */
@import "./bootstrap.scss"; @import "bootstrap.scss";
/* Core CSS required for Ionic components to work properly */ /* Core CSS required for Ionic components to work properly */
@import "~@ionic/angular/css/core.css"; @import "~@ionic/angular/css/core.css";
@ -38,7 +38,7 @@
@import "~@ionic/angular/css/normalize.css"; @import "~@ionic/angular/css/normalize.css";
@import "~@ionic/angular/css/structure.css"; @import "~@ionic/angular/css/structure.css";
@import "~@ionic/angular/css/typography.css"; @import "~@ionic/angular/css/typography.css";
@import '~@ionic/angular/css/display.css'; @import "~@ionic/angular/css/display.css";
/* Optional CSS utils that can be commented out */ /* Optional CSS utils that can be commented out */
@import "~@ionic/angular/css/padding.css"; @import "~@ionic/angular/css/padding.css";