Skip to content

Commit 9e41f06

Browse files
fix(app): scope tutorial styles (#134)
Co-authored-by: Brandy Smith <6577830+brandyscarney@users.noreply.github.com>
1 parent 11099be commit 9e41f06

File tree

2 files changed

+44
-42
lines changed

2 files changed

+44
-42
lines changed

src/pages/Tutorial.scss

Lines changed: 43 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,56 @@
1-
ion-toolbar {
2-
--background: transparent;
3-
--border-color: transparent;
4-
}
1+
#tutorial-page {
2+
ion-toolbar {
3+
--background: transparent;
4+
--border-color: transparent;
5+
}
56

6-
.slide-title {
7-
margin-top: 2.8rem;
8-
}
7+
.slide-title {
8+
margin-top: 2.8rem;
9+
}
910

10-
.slider {
11-
display: grid;
12-
grid-template-columns: repeat(4, 100%);
13-
grid-template-rows: 1fr;
11+
.slider {
12+
display: grid;
13+
grid-template-columns: repeat(4, 100%);
14+
grid-template-rows: 1fr;
1415

15-
height: 100%;
16+
height: 100%;
1617

17-
overflow: scroll;
18-
scroll-snap-type: x mandatory;
19-
}
18+
overflow: scroll;
19+
scroll-snap-type: x mandatory;
20+
}
2021

21-
section {
22-
display: flex;
23-
flex-direction: column;
24-
align-items: center;
25-
justify-content: center;
26-
text-align: center;
22+
section {
23+
display: flex;
24+
flex-direction: column;
25+
align-items: center;
26+
justify-content: center;
27+
text-align: center;
2728

28-
width: 100%;
29+
width: 100%;
2930

30-
scroll-snap-align: center;
31-
scroll-snap-stop: always;
32-
}
31+
scroll-snap-align: center;
32+
scroll-snap-stop: always;
33+
}
3334

34-
.slide-image {
35-
max-height: 50%;
36-
max-width: 60%;
37-
margin: -5vh 0 0;
38-
pointer-events: none;
39-
}
35+
.slide-image {
36+
max-height: 50%;
37+
max-width: 60%;
38+
margin: -5vh 0 0;
39+
pointer-events: none;
40+
}
4041

41-
b {
42-
font-weight: 500;
43-
}
42+
b {
43+
font-weight: 500;
44+
}
4445

45-
p {
46-
padding: 0 40px;
47-
font-size: 14px;
48-
line-height: 1.5;
49-
color: var(--ion-color-step-600, #60646b);
46+
p {
47+
padding: 0 40px;
48+
font-size: 14px;
49+
line-height: 1.5;
50+
color: var(--ion-color-step-600, #60646b);
5051

51-
b {
52-
color: var(--ion-text-color, #000000);
52+
b {
53+
color: var(--ion-text-color, #000000);
54+
}
5355
}
5456
}

src/pages/Tutorial.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const Tutorial: React.FC<TutorialProps> = ({
4949
};
5050

5151
return (
52-
<IonPage>
52+
<IonPage id="tutorial-page">
5353
<IonHeader className="ion-no-border">
5454
<IonToolbar>
5555
<IonButtons slot="end">

0 commit comments

Comments
 (0)