Skip to content

Commit

Permalink
Improve image load
Browse files Browse the repository at this point in the history
  • Loading branch information
agatemosu committed Dec 28, 2024
1 parent 82e75b7 commit 184613f
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Tier list creator</title>
<script type="module" src="./src/main.js"></script>
<link rel="icon" href="/icon.svg" />
<link rel="stylesheet" href="./src/main.css" />
<link rel="preload" href="/check.svg" as="image" />
<link rel="icon" href="/icon.svg" />
</head>
<body>
<main>
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion src/styles/buttons.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ input[type="checkbox"] {
}

input[type="checkbox"]:checked {
background-image: url("/check.svg");
background-image: url("../assets/check.svg");
background-color: var(--button-hover);
}
6 changes: 3 additions & 3 deletions src/styles/tier-options.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@
}

.option.delete {
--option-img: url("/trash.svg");
--option-img: url("../assets/trash.svg");
grid-row: span 2;
justify-content: right;
}

.option.up i {
--option-img: url("/chevron-up.svg");
--option-img: url("../assets/chevron-up.svg");
}

.option.down i {
--option-img: url("/chevron-down.svg");
--option-img: url("../assets/chevron-down.svg");
}

.option i {
Expand Down

0 comments on commit 184613f

Please sign in to comment.