Skip to content

Commit cf04fdb

Browse files
committed
feat: Replace CSS icons with SVGs for toolbar buttons to enhance visual consistency and performance
1 parent 658be98 commit cf04fdb

File tree

2 files changed

+5
-89
lines changed

2 files changed

+5
-89
lines changed

index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,19 @@
5757
<h3>EXPLORER</h3>
5858
<div class="sidebar-actions">
5959
<button class="btn-icon-small" id="expandAll" title="Expand All">
60-
<span class="css-icon css-icon-arrow-down"></span>
60+
<img src="public/expandall.svg" alt="Expand All" class="toolbar-icon" />
6161
</button>
6262
<button class="btn-icon-small" id="collapseAll" title="Collapse All">
63-
<span class="css-icon css-icon-arrow-up"></span>
63+
<img src="public/collapseAll.svg" alt="Collapse All" class="toolbar-icon" />
6464
</button>
6565
<button class="btn-icon-small" id="selectAll" title="Select All">
66-
<span class="css-icon css-icon-check"></span>
66+
<img src="public/checkedBox.svg" alt="Select All" class="toolbar-icon" />
6767
</button>
6868
<button class="btn-icon-small" id="deselectAll" title="Deselect All">
69-
<span class="css-icon css-icon-circle"></span>
69+
<img src="public/uncheckedbox.svg" alt="Deselect All" class="toolbar-icon" />
7070
</button>
7171
<button class="btn-icon-small" id="clearAll" title="Clear All">
72-
<span class="css-icon css-icon-trash"></span>
72+
<img src="public/delete.svg" alt="Clear All" class="toolbar-icon" />
7373
</button>
7474
</div>
7575
</div>

style.css

Lines changed: 0 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,3 @@
1-
/* Pure CSS Toolbar Icons */
2-
.css-icon {
3-
display: inline-block;
4-
width: 20px;
5-
height: 20px;
6-
vertical-align: middle;
7-
position: relative;
8-
opacity: 0.92;
9-
transition: opacity 0.15s, transform 0.15s;
10-
}
11-
.btn-icon-small:hover .css-icon {
12-
opacity: 1;
13-
transform: scale(1.12);
14-
}
15-
/* Arrow Down */
16-
.css-icon-arrow-down {
17-
width: 0;
18-
height: 0;
19-
border-left: 8px solid transparent;
20-
border-right: 8px solid transparent;
21-
border-top: 10px solid #e8e8e8;
22-
margin: 5px auto 0 auto;
23-
}
24-
/* Arrow Up */
25-
.css-icon-arrow-up {
26-
width: 0;
27-
height: 0;
28-
border-left: 8px solid transparent;
29-
border-right: 8px solid transparent;
30-
border-bottom: 10px solid #e8e8e8;
31-
margin: 5px auto 0 auto;
32-
}
33-
/* Checkmark */
34-
.css-icon-check {
35-
width: 20px;
36-
height: 20px;
37-
}
38-
.css-icon-check::after {
39-
content: '';
40-
position: absolute;
41-
left: 5px;
42-
top: 8px;
43-
width: 6px;
44-
height: 12px;
45-
border-right: 3px solid #e8e8e8;
46-
border-bottom: 3px solid #e8e8e8;
47-
transform: rotate(45deg);
48-
}
49-
/* Circle Outline */
50-
.css-icon-circle {
51-
width: 18px;
52-
height: 18px;
53-
border: 2px solid #e8e8e8;
54-
border-radius: 50%;
55-
box-sizing: border-box;
56-
margin: 1px auto 0 auto;
57-
}
58-
/* Trash Can */
59-
.css-icon-trash {
60-
width: 18px;
61-
height: 18px;
62-
margin: 1px auto 0 auto;
63-
}
64-
.css-icon-trash::before {
65-
content: '';
66-
position: absolute;
67-
left: 6px;
68-
top: 5px;
69-
width: 6px;
70-
height: 8px;
71-
border: 2px solid #e8e8e8;
72-
border-radius: 1px;
73-
background: none;
74-
}
75-
.css-icon-trash::after {
76-
content: '';
77-
position: absolute;
78-
left: 7px;
79-
top: 3px;
80-
width: 4px;
81-
height: 2px;
82-
background: #e8e8e8;
83-
border-radius: 1px 1px 0 0;
84-
}
851
/* ============================================================================
862
CODEVAULT - OPTIMIZED VS CODE STYLE
873
Performance Optimized + Material Icons

0 commit comments

Comments
 (0)