Merge pull request #2830 from crazyserver/MOBILE-3320

Mobile 3320
main
Dani Palou 2021-06-15 16:25:20 +02:00 committed by GitHub
commit 74d33dcf08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 57 additions and 23 deletions

View File

@ -21,4 +21,8 @@
margin: 5px 10px; margin: 5px 10px;
resize: vertical; resize: vertical;
} }
.core-send-message-input::placeholder {
color: var(--ion-placeholder-color);
}
} }

View File

@ -19,8 +19,15 @@
<div *ngIf="displaySectionSelector && sections && hasSeveralSections" <div *ngIf="displaySectionSelector && sections && hasSeveralSections"
class="ion-text-wrap ion-justify-content-between ion-align-items-center core-button-selector-row" class="ion-text-wrap ion-justify-content-between ion-align-items-center core-button-selector-row"
[class.core-section-download]="downloadEnabled"> [class.core-section-download]="downloadEnabled">
<core-combobox [modalOptions]="sectionSelectorModalOptions" interface="modal" listboxId="core-course-section-button" <core-combobox
icon="fas-folder" [label]="'core.course.section' | translate" (onChange)="sectionChanged($event)"> [modalOptions]="sectionSelectorModalOptions"
interface="modal"
listboxId="core-course-section-button"
icon="fas-folder"
[label]="'core.course.section' | translate"
[selection]="selectedSection ? selectedSection.name : 'core.course.sections' | translate"
(onChange)="sectionChanged($event)"
>
<span slot="text"> <span slot="text">
<core-format-text *ngIf="selectedSection" [text]="selectedSection.name" contextLevel="course" <core-format-text *ngIf="selectedSection" [text]="selectedSection.name" contextLevel="course"
[contextInstanceId]="course?.id" [clean]="true" [singleLine]="true"> [contextInstanceId]="course?.id" [clean]="true" [singleLine]="true">

View File

@ -1,6 +1,6 @@
@import "~theme/globals"; @import "~theme/globals";
:host { :host {
--placeholder-color: var(--gray-light); --placeholder-color: var(--ion-placeholder-color);
--toobar-background: var(--white); --toobar-background: var(--white);
--button-color: var(--ion-text-color); --button-color: var(--ion-text-color);
--button-active-color: var(--gray); --button-active-color: var(--gray);
@ -12,7 +12,6 @@
--color: var(--white); --color: var(--white);
--button-color: var(--gray-light); --button-color: var(--gray-light);
--button-active-color: var(--gray-dark); --button-active-color: var(--gray-dark);
--placeholder-color: var(--gray);
--toobar-background: var(--black); --toobar-background: var(--black);
} }

View File

@ -67,7 +67,7 @@
expand="block" expand="block"
fill="clear" fill="clear"
color="dark" color="dark"
class="core-login-forgotten-password core-button-as-link" class="core-login-forgotten-password core-button-as-link ion-text-wrap"
(click)="forgottenPassword()" (click)="forgottenPassword()"
> >
<ion-label>{{ 'core.login.forgotten' | translate }}</ion-label> <ion-label>{{ 'core.login.forgotten' | translate }}</ion-label>

View File

@ -76,7 +76,7 @@
expand="block" expand="block"
fill="clear" fill="clear"
color="dark" color="dark"
class="core-login-forgotten-password core-button-as-link" class="core-login-forgotten-password core-button-as-link ion-text-wrap"
(click)="forgottenPassword()" (click)="forgottenPassword()"
> >
<ion-label>{{ 'core.login.forgotten' | translate }}</ion-label> <ion-label>{{ 'core.login.forgotten' | translate }}</ion-label>

View File

@ -109,7 +109,7 @@
<!-- Help. --> <!-- Help. -->
<ion-button <ion-button
class="ion-margin-top core-login-need-help core-button-as-link" class="ion-margin-top core-login-need-help core-button-as-link ion-text-wrap"
(click)="showHelp()" (click)="showHelp()"
aria-haspopup="dialog" aria-haspopup="dialog"
expand="block" expand="block"

View File

@ -46,21 +46,21 @@ $orange: #f98012 !default; // Accent (never text).
$yellow: #fbad1a !default; // Accent (never text). $yellow: #fbad1a !default; // Accent (never text).
$purple: #8e24aa !default; // Accent (never text). $purple: #8e24aa !default; // Accent (never text).
$blue-light: mix($blue, white, 40%) !default; // Background. $blue-light: mix($blue, white, 20%) !default; // Background.
$blue-dark: darken($blue, 10%) !default; $blue-dark: darken($blue, 10%) !default;
$turquoise-light: mix($turquoise, white, 40%) !default; // Background. $turquoise-light: mix($turquoise, white, 20%) !default; // Background.
$turquoise-dark: darken($turquoise, 10%) !default; $turquoise-dark: darken($turquoise, 10%) !default;
$green-light: mix($green, white, 40%) !default; $green-light: mix($green, white, 20%) !default;
$green-dark: darken($green, 10%) !default; $green-dark: darken($green, 10%) !default;
$red-light: mix($red, white, 40%) !default; $red-light: mix($red, white, 20%) !default;
$red-dark: darken($red, 10%) !default; $red-dark: darken($red, 10%) !default;
$orange-light: lighten($orange, 10%) !default; $orange-light: lighten($orange, 10%) !default;
$yellow-light: mix($yellow, white, 40%) !default; $yellow-light: mix($yellow, white, 20%) !default;
$yellow-dark: mix($yellow, black, 40%) !default; $yellow-dark: mix($yellow, black, 40%) !default;
$brand-color: $orange !default; $brand-color: $orange !default;
@ -75,8 +75,8 @@ $link-color: $blue !default;
$link-color-dark: $blue-light !default; $link-color-dark: $blue-light !default;
$background-color: $gray-light !default; $background-color: $gray-light !default;
$background-color-dark: $shade-90 !default; $background-color-dark: $shade-90 !default;
$subdued-text-color: $gray-darker !default; $subdued-text-color: #595959 !default;
$subdued-text-color-dark: $gray-lighter !default; $subdued-text-color-dark: #b4b4b4 !default;
$ion-item-background: $white !default; $ion-item-background: $white !default;
$ion-item-background-dark: $shade-80 !default; $ion-item-background-dark: $shade-80 !default;
@ -87,6 +87,10 @@ $ion-item-divider-background-dark: $shade-75 !default;
$ion-item-divider-color-dark: $text-color-dark !default; $ion-item-divider-color-dark: $text-color-dark !default;
$core-spacer-background-dark: $shade-100 !default; $core-spacer-background-dark: $shade-100 !default;
$ion-placeholder-color: $subdued-text-color;
$ion-placeholder-color-dark: $subdued-text-color-dark;
$color: #d0c9b9;
$color: #fcf5e3;
$core-online-color: #5cb85c !default; $core-online-color: #5cb85c !default;
$primary: $brand-color !default; $primary: $brand-color !default;
@ -164,12 +168,12 @@ $colors: (
) !default; ) !default;
$primary-dark: $brand-color !default; $primary-dark: $brand-color !default;
$secondary-dark: $blue-light !default; $secondary-dark: mix($blue, white, 40%) !default;
$tertiary-dark: $turquoise-light !default; $tertiary-dark: mix($turquoise, white, 40%) !default;
$danger-dark: $red-light !default; $danger-dark: mix($red, white, 40%) !default;
$warning-dark: $yellow-light !default; $warning-dark: mix($yellow, white, 40%) !default;
$success-dark: $green-light !default; $success-dark: mix($green, white, 40%) !default;
$info-dark: $blue-light !default; $info-dark: mix($blue, white, 40%) !default;
$light-dark: $dark !default; $light-dark: $dark !default;
$medium-dark: $gray-light !default; $medium-dark: $gray-light !default;
$dark-dark: $light !default; $dark-dark: $light !default;
@ -299,7 +303,7 @@ $core-text-hightlight-background-color: lighten($blue, 40%) !default;
$core-tabs-background: $white !default; $core-tabs-background: $white !default;
$core-tab-background: $core-tabs-background !default; $core-tab-background: $core-tabs-background !default;
$core-tab-color: $gray-dark !default; $core-tab-color: $subdued-text-color !default;
$core-tab-color-active: $dark !default; $core-tab-color-active: $dark !default;
$core-tab-font-weight-active: normal !default; $core-tab-font-weight-active: normal !default;
$core-tab-border-color: $gray !default; $core-tab-border-color: $gray !default;
@ -308,7 +312,7 @@ $core-tabs-height: 56px !default;
$core-tabs-background-dark: $shade-75 !default; $core-tabs-background-dark: $shade-75 !default;
$core-tab-background-dark: $core-tabs-background-dark !default; $core-tab-background-dark: $core-tabs-background-dark !default;
$core-tab-color-dark: $white !default; $core-tab-color-dark: $subdued-text-color-dark !default;
$core-tab-color-active-dark: $dark-dark !default; $core-tab-color-active-dark: $dark-dark !default;
$core-tab-border-color-dark: $gray-light !default; $core-tab-border-color-dark: $gray-light !default;
$core-tab-border-color-active-dark: $core-tab-border-color-active !default; $core-tab-border-color-active-dark: $core-tab-border-color-active !default;
@ -356,8 +360,10 @@ $core-star-color: $brand-color !default;
$core-large-avatar-size: 90px !default; $core-large-avatar-size: 90px !default;
$core-avatar-size: 44px !default; $core-avatar-size: 44px !default;
$core-send-message-input-background: $gray !default; $core-send-message-input-background: $gray-light !default;
$core-send-message-input-color: $black !default; $core-send-message-input-color: $black !default;
$core-send-message-input-background-dark: $black !default;
$core-send-message-input-color-dark: $white !default;
$core-more-icon-color: null !default; $core-more-icon-color: null !default;
$core-more-item-border: null !default; $core-more-item-border: null !default;

View File

@ -874,6 +874,13 @@ html.ios div.fake-ion-item {
} }
// Disabled items.
ion-item.item-disabled,
ion-item.item-interactive-disabled:not(.item-multiple-inputs) ion-label,
ion-datetime.datetime-disabled {
opacity: .8 !important;
}
// Make links clickable when inside radio or checkbox items. Style part. // Make links clickable when inside radio or checkbox items. Style part.
@media (hover: hover) { @media (hover: hover) {
ion-item.item-multiple-inputs:hover::part(native) { ion-item.item-multiple-inputs:hover::part(native) {

View File

@ -58,6 +58,8 @@
--contrast-background: black; --contrast-background: black;
--ion-placeholder-color: #{$ion-placeholder-color-dark};
ion-content { ion-content {
--background: var(--ion-background-color); --background: var(--ion-background-color);
--background-alternative: var(--black); --background-alternative: var(--black);
@ -127,6 +129,9 @@
--core-dd-question-selected-shadow: 2px 2px 4px var(--gray-light); --core-dd-question-selected-shadow: 2px 2px 4px var(--gray-light);
--core-dd-question-border: var(--gray-light); --core-dd-question-border: var(--gray-light);
--core-send-message-input-background: #{$core-send-message-input-background-dark};
--core-send-message-input-color: #{$core-send-message-input-color-dark};
--addon-messages-message-bg: #{$addon-messages-message-bg-dark}; --addon-messages-message-bg: #{$addon-messages-message-bg-dark};
--addon-messages-message-activated-bg: #{$addon-messages-message-activated-bg-dark}; --addon-messages-message-activated-bg: #{$addon-messages-message-activated-bg-dark};
--addon-messages-message-note-text: #{$addon-messages-message-note-text-dark}; --addon-messages-message-note-text: #{$addon-messages-message-note-text-dark};

View File

@ -81,6 +81,8 @@
--text-hightlight-background-color: #{$core-text-hightlight-background-color}; --text-hightlight-background-color: #{$core-text-hightlight-background-color};
--ion-placeholder-color: #{$ion-placeholder-color};
ion-content { ion-content {
--background: var(--ion-background-color); --background: var(--ion-background-color);
--background-alternative: var(--gray-lighter); --background-alternative: var(--gray-lighter);
@ -223,6 +225,10 @@
--item-divider-background: var(--spacer-background); --item-divider-background: var(--spacer-background);
} }
ion-note {
--color: var(--subdued-text-color);
}
--core-combobox-background: var(--ion-item-background); --core-combobox-background: var(--ion-item-background);
--core-combobox-color: #{$core-combobox-color}; --core-combobox-color: #{$core-combobox-color};
--core-combobox-background: #{$core-combobox-background}; --core-combobox-background: #{$core-combobox-background};