Skip to content

Commit a7dbc04

Browse files
Pequeñas mejoras para responsive
Quiz
2 parents bab1de8 + 09aa1ed commit a7dbc04

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

src/App.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@ body {
4444

4545
h1 {
4646
text-align: center;
47-
margin-block: 1rem;
48-
font-size: clamp(2.5rem, calc(2rem + 1.333vw), 3rem);
47+
margin-block-start: 1rem;
48+
margin-block-end: 2rem;
49+
font-size: clamp(1.875rem, calc(0.75rem + 3vw), 3rem);
4950
text-shadow: 2px 2px 3px var(--info-color);
5051
display: flex;
5152
flex-direction: column;
@@ -55,7 +56,7 @@ h1 {
5556
row-gap: 0.5rem;
5657

5758
.img {
58-
width: 14rem;
59+
width: clamp(11.25rem, calc(8.5rem + 7.333vw), 14rem);
5960
padding: 0.5rem;
6061

6162
img {

src/components/footer/footer.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
@scope (footer) {
22
:scope {
33
text-align: center;
4-
padding: 1rem;
4+
padding-block-end: 1rem;
5+
padding-block-start: 2rem;
56

67
p,
78
a {

src/components/quiz/answer/answer.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
align-items: center;
77
column-gap: 1rem;
88
font-size: 1.1rem;
9+
transition: filter 0.3s;
910

1011
&.correct {
1112
background-color: var(--correct-color);
@@ -18,6 +19,10 @@
1819

1920
&.cursor {
2021
cursor: pointer;
22+
23+
&:hover {
24+
filter: brightness(1.3);
25+
}
2126
}
2227

2328
input {

0 commit comments

Comments
 (0)