Skip to content

Commit

Permalink
hover and pointer for events
Browse files Browse the repository at this point in the history
  • Loading branch information
nataliedex committed Sep 24, 2024
1 parent a404fe7 commit ee940ed
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions assets/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,16 @@

.delete-button:hover {
background-color: #d32f2f; /* Darker red on hover */
}

/* Style for the event button */
.event-button {
margin-left: 10px; /* Space between the event name and 'X' button */
border: none;
padding: 2px 5px;
cursor: pointer;
}

.event-button:hover {
font-weight: bold; /* Bold on hover */
}
1 change: 1 addition & 0 deletions assets/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ function createEventItem(event,index) {
const eventItem = document.createElement("li");
eventItem.textContent = event.name;
eventItem.classList.add("event-item");
eventItem.classList.add("event-button");

// Create a container for each event and its delete button
const eventContainerItem = document.createElement("div");
Expand Down

0 comments on commit ee940ed

Please sign in to comment.