Skip to content

Commit 23655a2

Browse files
Ciphroxxkeshav
authored andcommitted
fixed: missing css file commit
1 parent be0749b commit 23655a2

File tree

2 files changed

+25
-18
lines changed

2 files changed

+25
-18
lines changed

src/assets/styles/alphabets/[alphabet]/playground.css

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
--letter__txt--2: blueviolet;
33
--spelling__txt--3: palevioletred;
44
--steps: 10;
5+
--steps-desc: 30;
56
}
67

78
.container__typing {
89
display: grid;
910
grid-template-columns: repeat(2, 1fr);
1011
grid-template-rows: 35% auto auto;
1112
grid-template-areas:
12-
"letter content-display"
13+
"letter content__display"
1314
"spelling spelling"
1415
"description description";
1516
grid-auto-flow: row;
@@ -26,12 +27,12 @@
2627
padding: 0;
2728
transition: color 0.5s ease-in;
2829
text-align: center;
29-
width: 100%;
3030
line-height: 1;
31+
width: 100%;
3132
}
3233

3334
& .content__display {
34-
grid-area: content-display;
35+
grid-area: content__display;
3536
display: flex;
3637
justify-content: center;
3738
align-items: center;
@@ -48,11 +49,10 @@
4849
& .image__container {
4950
width: 100%;
5051
height: 100%;
51-
display: flex;
52+
display: none;
5253
justify-content: center;
5354
align-items: center;
5455
overflow: hidden;
55-
display: none;
5656
}
5757

5858
& .image__container img {
@@ -65,26 +65,33 @@
6565

6666
& .animation {
6767
animation:
68-
typing 1.5s steps(var(--steps, 10)),
68+
typing 1.5s steps(var(--steps, 10)) forwards,
6969
blink 0.5s step-end infinite alternate;
70+
width: 0;
71+
overflow: hidden;
72+
white-space: nowrap;
7073
}
7174

7275
& .spelling {
7376
grid-area: spelling;
7477
grid-column: 1/3;
7578
grid-row: 2/3;
76-
width: clamp(6ch, 50vw, 12ch);
79+
width: 0;
80+
max-width: fit-content;
7781
white-space: nowrap;
7882
overflow: hidden;
7983
border-right: 3px solid;
8084
font-family: monospace;
8185
font-size: clamp(4em, 10vw, 12em);
8286
transition: all 0.5s ease-in-out;
8387
color: var(--spelling__txt--3);
84-
max-width: fit-content;
8588
margin: 0 auto;
8689
}
8790

91+
& .spelling:not(.animation) {
92+
width: auto;
93+
}
94+
8895
& .description {
8996
grid-area: description;
9097
width: 100%;
@@ -95,19 +102,23 @@
95102
margin-top: 2rem;
96103
color: var(--spelling__txt--3);
97104
min-height: 2em;
105+
overflow: hidden;
98106
}
99107

100108
& .description.animation {
109+
width: 0;
101110
display: inline-block;
111+
max-width: fit-content;
112+
margin: 0 auto;
113+
border-right: 3px solid;
102114
animation:
103115
typing 2s steps(var(--steps-desc, 30)) forwards,
104116
blink 0.5s step-end infinite alternate;
105-
white-space: nowrap;
106-
overflow: hidden;
107-
width: 0;
108-
border-right: 3px solid;
109-
max-width: fit-content;
110-
margin: 0 auto;
117+
}
118+
119+
& .description:not(.animation) {
120+
width: auto;
121+
border-right: none;
111122
}
112123

113124
& .description:empty {

src/assets/styles/alphabets/index.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,5 @@
131131
font-size: 1.1rem;
132132
padding: 0.75rem 1rem;
133133
}
134-
135-
& .alphabets__header {
136-
margin-bottom: 2rem;
137-
}
138134
}
139135
}

0 commit comments

Comments
 (0)