Skip to content

Commit 6990975

Browse files
authored
fix: work on aligning the cards
Fixed generator alignment, improved generator text alignment
2 parents 14dc29e + 1a38535 commit 6990975

File tree

1 file changed

+23
-10
lines changed

1 file changed

+23
-10
lines changed

src/style.css

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
--modal-width: calc(var(--modal-container-width) - 30vw);
1515
--input-width: 300px;
1616
--output-width: 400px;
17+
--pseudo-footer-height:70px;
1718
}
1819

1920
*,
@@ -29,6 +30,7 @@ body {
2930
background-color: var(--primary-color);
3031
color: var(--text-color);
3132
overflow-x: hidden;
33+
padding-bottom:var(--pseudo-footer-height) ;
3234
}
3335

3436
nav {
@@ -81,7 +83,7 @@ main {
8183
height: var(--generator-height);
8284
width: var(--generator-width);
8385
border-radius: 10px;
84-
text-align: center;
86+
/* text-align: center; */
8587
font-size: 1rem;
8688
display: flex;
8789
flex-direction: column;
@@ -112,19 +114,21 @@ main {
112114
display: flex;
113115
flex-direction: column;
114116
justify-content: space-around;
115-
padding: 0.5rem 0 1rem 0;
117+
padding: 5px 10px;
118+
position: relative;
116119
}
117120

118121
.generator h2 {
122+
padding-right: 10px;
119123
font-size: min(1.1rem, 2.5rem);
120124
}
121125

122126
.generator > div img {
123127
height: 30px;
124128
width: 30px;
125-
position: relative;
126-
margin-left: auto;
127-
margin-right: 1rem;
129+
position: absolute;
130+
right: 7px;
131+
bottom: 5px;
128132
}
129133

130134
/* Generator Modal */
@@ -283,12 +287,13 @@ textarea:focus {
283287

284288
.btn {
285289
height: 40px;
286-
border-radius: 5px;
287-
display: grid;
288-
place-items: center;
290+
border-radius: 5px;
291+
display: flex;
292+
align-items: center;
293+
justify-content: center;
289294
border: 1px solid var(--text-color);
290295
cursor: pointer;
291-
margin-top: 0.2rem;
296+
margin-top: 0.4rem;
292297
}
293298

294299
.output {
@@ -377,7 +382,15 @@ a {
377382
width: 90vw;
378383
}
379384

380-
footer {
385+
.generator{
386+
margin: 0.8rem auto;
387+
}
388+
389+
:root {
390+
--generator-width:14rem;
391+
}
392+
393+
footer{
381394
font-size: 1.3rem;
382395
}
383396
}

0 commit comments

Comments
 (0)