Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added src/res/icons/li-icon.ttf
Binary file not shown.
Binary file removed src/res/icons/li-icons.ttf
Binary file not shown.
33 changes: 20 additions & 13 deletions src/res/icons/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

@font-face {
font-family: "li-icon";
src: url("li-icons.ttf?6wte0b") format("truetype");
src: url("li-icon.ttf") format("truetype");
font-weight: normal;
font-style: normal;
font-display: block;
Expand All @@ -30,9 +30,8 @@
}

.licons {
/* use !important to prevent issues with browser extensions that change fonts */
/* Use !important to prevent extensions from overriding this font. */
font-family: "li-icon" !important;
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
Expand All @@ -44,20 +43,28 @@
-moz-osx-font-smoothing: grayscale;
}

.licons.terminal:before {
content: "\e900";
.licons.scale:before {
content: "\f006";
}

.licons.cart:before {
content: "\e901";
content: "\f005";
}
.licons.scale:before {
content: "\e902";
}
.licons.tag:before {
content: "\e903";

.licons.zap:before {
content: "\f000";
}

.licons.verified:before {
content: "\e904";
content: "\f001";
}

.licons.terminal:before {
content: "\f002";
}

.licons.tag:before {
content: "\f003";
}
Comment on lines +46 to 68
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For better maintainability and to make it easier to find icons, it's a good practice to keep the icon definitions sorted alphabetically by class name. The new zap icon has been added, and this is a good opportunity to reorder all .licons selectors.

.licons.cart:before {
  content: "\f005";
}

.licons.scale:before {
  content: "\f006";
}

.licons.tag:before {
  content: "\f003";
}

.licons.terminal:before {
  content: "\f002";
}

.licons.verified:before {
  content: "\f001";
}

.licons.zap:before {
  content: "\f000";
}


.icon.acode:before {
Expand Down Expand Up @@ -1210,4 +1217,4 @@

.icon.all_inclusive:before {
content: "\ea18";
}
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Files should end with a newline character. This is a common convention that helps prevent issues with some tools (e.g., cat, git) and improves diff readability.

6 changes: 1 addition & 5 deletions utils/extra-icons/cart.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion utils/extra-icons/scale.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions utils/extra-icons/zap.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.