Skip to content

Commit

Permalink
style download buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
qrkourier committed Nov 23, 2023
1 parent b481863 commit 73ee3e6
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions website/src/css/download-card.module.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
:root {
--contrasting-background: #c4b7f5;
--container-border: 1px solid #adadad; /* Light gray border */
--button-background-hover: #9c84f9;
}

[data-theme="dark"] {
--contrasting-background: #4b359f;
--container-border: 1px solid #6d6d6d; /* Light gray border */
--button-background-hover: #251463;
}

.downloadContainer {
Expand Down Expand Up @@ -54,6 +56,24 @@
margin-bottom: 20px; /* Add some space between the list and the footer */
}

.downloadCard li {
display: inline-block; /* Allows width and height to be set */
margin: 5px; /* Spacing between buttons */
padding: 10px 15px; /* Size of the button */
text-align: center; /* Centers text within the button */
text-decoration: none; /* Removes the underline from links */
background-color: var(--contrasting-background); /* Background color - Bootstrap primary button color */
border: 1px var(--container-border); /* Border color - same as background for a solid button */
border-radius: 18px; /* Rounded corners */
transition: background-color 0.3s ease; /* Smooth transition for hover effect */
}

.downloadCard li:hover, .downloadCard li:focus {
background-color: var(--button-background-hover);
text-decoration: none; /* Ensures the text remains with no underline on hover/focus */
outline: none; /* Removes the outline on focus for a clean look */
}

.downloadCard h3 {
margin-top: 10px;
}
Expand Down

0 comments on commit 73ee3e6

Please sign in to comment.