Skip to content

Commit 546fe74

Browse files
Random Quote Generator
1 parent 2d5bcf3 commit 546fe74

File tree

1 file changed

+11
-20
lines changed

1 file changed

+11
-20
lines changed

RandomQuote/yashwanthvarma18/style.css

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ body {
1717
flex-direction: column;
1818
justify-content: center;
1919
align-items: center;
20-
background-color: rgba(0, 0, 0, 0.3); /* Grayish background with 50% opacity */
20+
background-color: rgba(0, 0, 0, 0.3); /* Grayish background with 30% opacity */
2121
border-radius: 10px;
2222
box-shadow: 0 0 10px rgba(206, 192, 192, 0.2);
2323
backdrop-filter: blur(5px); /* Apply a blur effect */
@@ -26,21 +26,14 @@ body {
2626
margin: 0 auto;
2727
height: 300px; /* Fixed height for the box */
2828
overflow-y: auto; /* Allow vertical scrolling if needed */
29-
text-align: center; /* Left-align text */
30-
font-family: 'Bebas Neue', sans-serif;
31-
font-family: 'Fjalla One', sans-serif;
32-
font-family: 'Merriweather', serif;
33-
font-family: 'Montserrat', sans-serif;
34-
font-family: 'Oswald', sans-serif;
35-
font-family: 'Poppins', sans-serif;
36-
font-family: 'Signika', sans-serif;
37-
font-family: 'Teko', sans-serif;
38-
font-family: 'Titillium Web', sans-serif;/* Use a monospace font for proper text alignment */
29+
text-align: center; /* Center-align text */
3930
}
4031

4132
h1 {
42-
margin-top: 6 0px;
33+
margin-top: 60px;
4334
color: #fff;
35+
font-family: 'Bebas Neue', sans-serif;
36+
font-size: 36px;
4437
}
4538

4639
button {
@@ -51,21 +44,19 @@ button {
5144
font-size: 18px;
5245
border-radius: 5px;
5346
cursor: pointer;
54-
margin-top: 5px;
47+
margin-top: 10px;
5548
transition: transform 0.2s ease; /* Add transition for smooth scaling */
49+
font-family: 'Fjalla One', sans-serif;
5650
}
5751

5852
button:hover {
5953
background-color: #0056b3;
60-
transform: scale(1.05); /* Scale up by 10% on hover */
54+
transform: scale(1.05); /* Scale up by 5% on hover */
6155
}
6256

63-
.joke-container {
64-
margin-top: 3px;
65-
}
66-
67-
#jokeText {
57+
#quoteText {
6858
font-size: 18px;
6959
color: #fff;
70-
line-height: 1.2; /* You can adjust this value as needed for spacing */
60+
line-height: 1.5; /* You can adjust this value as needed for spacing */
61+
font-family: 'Merriweather', serif;
7162
}

0 commit comments

Comments
 (0)