MOBILE-3627 core: Some style fixes

main
Pau Ferrer Ocaña 2021-03-09 11:22:21 +01:00
parent 8097b4e1a8
commit dd73c06133
8 changed files with 32 additions and 25 deletions

View File

@ -10,6 +10,7 @@
.addon-calendar-months { .addon-calendar-months {
background-color: var(--contrast-background); background-color: var(--contrast-background);
padding: 0; padding: 0;
font-size: 14px;
} }
.addon-calendar-day { .addon-calendar-day {

View File

@ -11,12 +11,12 @@
} }
} }
.note { ion-note {
position: absolute; ion-badge {
top: 0; margin-left: 6px;
right: 0; margin-right: 6px;
margin: 4px 8px; vertical-align: middle;
font-size: 1.3rem; }
} }
.addon-message-last-message { .addon-message-last-message {
@ -43,6 +43,11 @@
margin-top: 10px; margin-top: 10px;
} }
} }
ion-item-divider ion-badge {
margin-left: 16px;
margin-right: 16px;
}
} }
:host-context([dir=rtl]) { :host-context([dir=rtl]) {
@ -53,11 +58,6 @@
margin-left: 0; margin-left: 0;
} }
.note {
left: 0;
right: unset;
}
.addon-message-last-message-user { .addon-message-last-message-user {
margin-left: 2px; margin-left: 2px;
margin-right: 0; margin-right: 0;

View File

@ -123,10 +123,6 @@
<ion-icon *ngIf="conversation.ismuted" name="fas-volume-mute" <ion-icon *ngIf="conversation.ismuted" name="fas-volume-mute"
[title]="'addon.messages.mutedconversation' | translate"></ion-icon> [title]="'addon.messages.mutedconversation' | translate"></ion-icon>
</h2> </h2>
<ion-note *ngIf="conversation.lastmessagedate > 0 || conversation.unreadcount">
<ion-badge *ngIf="conversation.unreadcount > 0">{{ conversation.unreadcount }}</ion-badge>
<span *ngIf="conversation.lastmessagedate > 0">{{conversation.lastmessagedate | coreDateDayOrTime}}</span>
</ion-note>
<p *ngIf="conversation.subname"><core-format-text [text]="conversation.subname" contextLevel="system" <p *ngIf="conversation.subname"><core-format-text [text]="conversation.subname" contextLevel="system"
[contextInstanceId]="0"></core-format-text></p> [contextInstanceId]="0"></core-format-text></p>
<p class="addon-message-last-message"> <p class="addon-message-last-message">
@ -139,5 +135,9 @@
class="addon-message-last-message-text" contextLevel="system" [contextInstanceId]="0"></core-format-text> class="addon-message-last-message-text" contextLevel="system" [contextInstanceId]="0"></core-format-text>
</p> </p>
</ion-label> </ion-label>
<ion-note *ngIf="conversation.lastmessagedate > 0 || conversation.unreadcount" slot="end">
<ion-badge *ngIf="conversation.unreadcount > 0">{{ conversation.unreadcount }}</ion-badge>
<span *ngIf="conversation.lastmessagedate > 0">{{conversation.lastmessagedate | coreDateDayOrTime}}</span>
</ion-note>
</ion-item> </ion-item>
</ng-template> </ng-template>

View File

@ -55,9 +55,8 @@
flex-grow: 1; flex-grow: 1;
} }
.addon-mod-forum-discussion-more-info { .addon-mod-forum-discussion-more-info.ios {
font-size: 1.4rem; font-size: 0.9rem;
clear: both;
} }
} }

View File

@ -13,9 +13,7 @@
// limitations under the License. // limitations under the License.
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common'; import { CoreSharedModule } from '@/core/shared.module';
import { IonicModule } from '@ionic/angular';
import { TranslateModule } from '@ngx-translate/core';
import { AddonNotificationsActionsComponent } from './actions/actions'; import { AddonNotificationsActionsComponent } from './actions/actions';
@ -24,9 +22,7 @@ import { AddonNotificationsActionsComponent } from './actions/actions';
AddonNotificationsActionsComponent, AddonNotificationsActionsComponent,
], ],
imports: [ imports: [
CommonModule, CoreSharedModule,
IonicModule,
TranslateModule.forChild(),
], ],
exports: [ exports: [
AddonNotificationsActionsComponent, AddonNotificationsActionsComponent,

View File

@ -70,7 +70,7 @@
--menu-border-width: 0; --menu-border-width: 0;
--menu-box-shadow: none; --menu-box-shadow: none;
--menu-z: 0; --menu-z: 0;
--selected-item-border-width: 0; --selected-item-color: transparent;
} }
:host(.content-only) { :host(.content-only) {

View File

@ -29,6 +29,7 @@
height: 100%; height: 100%;
flex-direction: column; flex-direction: column;
ion-tab-button { ion-tab-button {
display: contents;
width: 100%; width: 100%;
ion-badge { ion-badge {
top: calc(50% - 20px); top: calc(50% - 20px);

View File

@ -136,6 +136,11 @@ ion-item-divider {
opacity: 0.25; opacity: 0.25;
padding-inline-end: 16px; padding-inline-end: 16px;
} }
&.ios {
padding-top: 10px;
padding-bottom: 10px;
}
} }
// Ionic list. // Ionic list.
@ -371,8 +376,13 @@ ion-select.core-button-select,
margin-inline-end: auto; margin-inline-end: auto;
} }
&.ion-activated {
--color: var(--ion-color-primary-contrast);
}
} }
ion-button.core-button-select { ion-button.core-button-select {
--border-radius: 0;
&::part(native) { &::part(native) {
text-transform: none; text-transform: none;
font-weight: 400; font-weight: 400;