Skip to content

Commit e12ceb5

Browse files
committed
MOBILE-3401 login: Add darkmode styles for login
1 parent 9269d55 commit e12ceb5

File tree

4 files changed

+18
-14
lines changed

4 files changed

+18
-14
lines changed

src/core/login/login.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,12 @@ ion-app.app-root page-core-login-site {
9797
max-width: 300px;
9898
margin: 5px auto;
9999
}
100+
101+
.item.item-block {
102+
background: transparent;
103+
104+
@include darkmode() {
105+
background: transparent;
106+
}
107+
}
100108
}

src/core/login/pages/forgotten-password/forgotten-password.scss

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/core/login/pages/site/site.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<ng-container *ngIf="!fixedSites">
2020
<ion-item>
2121
<ion-label stacked><h2>{{ 'core.login.siteaddress' | translate }}</h2></ion-label>
22-
<ion-input type="url" name="url" placeholder="https://campus.example.edu" formControlName="siteUrl" [core-auto-focus]="showKeyboard" (ionChange)="searchSite($event, siteForm.value.siteUrl)"></ion-input>
22+
<ion-input name="url" placeholder="https://campus.example.edu" formControlName="siteUrl" [core-auto-focus]="showKeyboard" (ionChange)="searchSite($event, siteForm.value.siteUrl)"></ion-input>
2323
</ion-item>
2424
</ng-container>
2525

@@ -59,7 +59,7 @@ <h2 text-wrap>{{site.name}}<ng-container *ngIf="site.alias"> ({{site.alias}})</n
5959

6060
<ng-container *ngIf="!fixedSites && showScanQR && !hasSites && !enteredSiteUrl">
6161
<div class="core-login-site-qrcode-separator">{{ 'core.login.or' | translate }}</div>
62-
<ion-item>
62+
<ion-item class="core-login-site-qrcode">
6363
<a ion-button block color="light" margin-top icon-start (click)="showInstructionsAndScanQR()">
6464
<core-icon name="fa-qrcode" aria-hidden="true"></core-icon>
6565
{{ 'core.scanqr' | translate }}

src/core/login/pages/site/site.scss

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ ion-app.app-root page-core-login-site {
1111
}
1212
}
1313

14-
.core-login-need-help.item {
15-
background: transparent;
16-
text-decoration: underline;
17-
18-
@include darkmode() {
19-
background: transparent;
14+
.item.item-block {
15+
&.core-login-need-help.item {
16+
text-decoration: underline;
17+
}
18+
&.core-login-site-qrcode {
19+
.item-inner {
20+
border-bottom: 0;
21+
}
2022
}
2123
}
2224

0 commit comments

Comments
 (0)