Skip to content

Commit 04610d0

Browse files
committed
fix background clip text for safari
1 parent 152cdc0 commit 04610d0

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

src/app/login/login.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ <h2 class="text-muted">Please Login</h2>
99
<p *ngIf="showError('email')" class="text-danger text-left small">Please enter a valid email.</p>
1010
</div>
1111
<button type="submit" class="btn btn-primary d-block mx-auto mt-5 mb-3"><img src="assets/lock.svg" width="20" class="mr-3">Login</button>
12-
<button type="button" class="btn btn-secondary d-block mx-auto mt-2" [routerLink]="['/register']">Register</button>
12+
<a class="btn btn-secondary d-inline-block mx-auto mt-2" [routerLink]="['/register']">Register</a>
1313
</form>
1414
<div *ngIf="error" class="alert alert-danger text-left" role="alert">{{ error }}</div>
1515
</div>

src/app/register/register.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ <h2 class="text-muted">Register</h2>
1212
<input type="text" class="form-control" formControlName="name" placeholder="Name" autocomplete="off" [ngClass]="{ 'is-invalid': showError('name') }">
1313
<p *ngIf="showError('name')" class="text-danger text-left small">Please enter a name.</p>
1414
</div>
15-
<button type="submit" class="btn btn-primary mt-3"><img src="assets/lock.svg" width="20" class="mr-3">Submit</button>
16-
<button type="button" class="btn btn-secondary d-block mx-auto mt-2" [routerLink]="['/login']">Login</button>
15+
<button type="submit" class="btn btn-primary d-block mx-auto mt-3 mb-3"><img src="assets/lock.svg" width="20" class="mr-3">Submit</button>
16+
<a class="btn btn-secondary d-inline-block mx-auto mt-2" [routerLink]="['/login']"><span>Login</span></a>
1717
</form>
1818
<div *ngIf="error" class="alert alert-danger text-left" role="alert">{{ error }}</div>
1919
</div>

src/scss/styles.scss

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ h1 {
88

99
@mixin gradient() {
1010
// colorzilla.com/gradient-editor/#9cf253+0,09d3ff+100
11-
background: -moz-linear-gradient(-45deg, #9cf253 0%, #09d3ff 100%);
12-
background: -webkit-linear-gradient(-45deg, #9cf253 0%,#09d3ff 100%);
13-
background: linear-gradient(135deg, #9cf253 0%,#09d3ff 100%);
11+
background-image: -moz-linear-gradient(-45deg, #9cf253 0%, #09d3ff 100%);
12+
background-image: -webkit-linear-gradient(-45deg, #9cf253 0%,#09d3ff 100%);
13+
background-image: linear-gradient(135deg, #9cf253 0%,#09d3ff 100%);
1414
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#9cf253', endColorstr='#09d3ff',GradientType=1 );
1515
}
1616

@@ -20,11 +20,9 @@ h1 {
2020
}
2121

2222
.btn-secondary {
23-
background: white;
24-
color: $fallback;
2523
@include gradient();
2624
-webkit-background-clip: text;
27-
-webkit-text-fill-color: transparent;
25+
color: transparent !important;
2826
}
2927

3028
.text-muted {

0 commit comments

Comments
 (0)