Skip to content

Commit

Permalink
CSS Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberSphinxxx committed Oct 28, 2024
1 parent 262a6ed commit 873f748
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 5 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h1>Generate Your Password</h1>

<!-- Description Dropdown Container (Right Side) -->
<div class="description-container">
<h2>About Strong Passwords</h2>
<h2 id="faq_title">Frequently Asked Questions About Passwords</h2>

<div class="dropdown">
<button class="dropdown-btn">What makes a password strong?</button>
Expand Down
32 changes: 28 additions & 4 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ body {
padding: 1.25rem;
border-radius: 10px;
text-align: center;
margin: 0; /* Remove margin for consistent alignment */
margin: 0;
}

#projectName {
color: rgb(255, 255, 255);
color: rgb(0, 0, 0);
margin-bottom: 1rem;
font-size: 1.5rem;
font-size: 2.6rem;
}

/* Password Display and Copy Button */
Expand Down Expand Up @@ -72,6 +72,11 @@ body {
margin-top: 1.25rem;
}

#faq_title{
color: rgb(0, 0, 0);
font-size: 2rem;
}

/* FAQ Container (Right Side) */
.description-container {
background-color: rgb(255, 177, 8);
Expand All @@ -84,6 +89,25 @@ body {
margin: 0;
}

/* Custom scrollbar styling */
.description-container::-webkit-scrollbar {
width: 10px;
}

.description-container::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 10px;
}

.description-container::-webkit-scrollbar-thumb {
background-color: #888;
border-radius: 10px;
}

.description-container::-webkit-scrollbar-thumb:hover {
background-color: #555;
}

.dropdown {
margin-bottom: 0.9375rem;
}
Expand All @@ -106,7 +130,7 @@ body {

.dropdown-content {
display: none;
background-color: #171717;
background-color: #000000;
padding: 0.625rem;
color: white;
border-radius: 0 0 10px 10px;
Expand Down

0 comments on commit 873f748

Please sign in to comment.