Skip to content

Commit

Permalink
Rename tier element class and remove buttons-container id
Browse files Browse the repository at this point in the history
  • Loading branch information
agatemosu committed Jul 23, 2024
1 parent 6c613e5 commit d9719e4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@
</div>
</main>

<div id="buttons-container">
<div class="buttons-container">
<button class="button" type="button" onclick="addRow()">New tier</button>

<button class="button" type="button" onclick="selectImages()">
Expand Down
2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ function uploadImages(files) {
image.src = URL.createObjectURL(file);

const imageEl = document.createElement("div");
imageEl.classList.add("image");
imageEl.classList.add("tier-element");
imagesBar.appendChild(imageEl);

image.onload = () => {
Expand Down
4 changes: 2 additions & 2 deletions styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ p {
filter: contrast(0%);
}

#buttons-container {
.buttons-container {
border-bottom: 1px solid var(--buttons-color);
background-color: var(--buttons-bg);
text-align: center;
Expand Down Expand Up @@ -194,7 +194,7 @@ input[type="checkbox"]:checked + label::before {
background-color: var(--button-hover);
}

.image {
.tier-element {
display: inline-flex;
vertical-align: top;
cursor: pointer;
Expand Down

0 comments on commit d9719e4

Please sign in to comment.