use svg for sorting state icons (#15546)

This commit is contained in:
Alan Ren
2021-05-20 23:32:45 -07:00
committed by GitHub
parent 82e0ede921
commit cc232f195f
7 changed files with 53 additions and 5 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 830 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 833 B

View File

@@ -0,0 +1,8 @@
<svg viewBox="0 0 100 50" xmlns="http://www.w3.org/2000/svg">
<style>
polygon {
fill:black;
}
</style>
<polygon points="0,50 50,0 100,50" />
</svg>

After

Width:  |  Height:  |  Size: 158 B

View File

@@ -0,0 +1,8 @@
<svg viewBox="0 0 100 50" xmlns="http://www.w3.org/2000/svg">
<style>
polygon {
fill:white;
}
</style>
<polygon points="0,50 50,0 100,50" />
</svg>

After

Width:  |  Height:  |  Size: 157 B

View File

@@ -0,0 +1,8 @@
<svg viewBox="0 0 100 50" xmlns="http://www.w3.org/2000/svg">
<style>
polygon {
fill:black;
}
</style>
<polygon points="0,0 100,0 50,50" />
</svg>

After

Width:  |  Height:  |  Size: 156 B

View File

@@ -0,0 +1,8 @@
<svg viewBox="0 0 100 50" xmlns="http://www.w3.org/2000/svg">
<style>
polygon {
fill:white;
}
</style>
<polygon points="0,0 100,0 50,50" />
</svg>

After

Width:  |  Height:  |  Size: 156 B

View File

@@ -18,20 +18,36 @@
height: 100%;
}
.monaco-table .slick-sort-indicator-asc {
background: url('sort-asc.gif');
.monaco-table .slick-sort-indicator {
background-size: 8px;
background-repeat: no-repeat;
}
.vs .monaco-table .slick-sort-indicator-asc {
background-image: url('sort_asc.svg');
}
.monaco-table .slick-sort-indicator-desc {
background: url('sort-desc.gif');
.vs-dark .monaco-table .slick-sort-indicator-asc,
.hc-black .monaco-table .slick-sort-indicator-asc {
background-image: url('sort_asc_inverse.svg');
}
.vs .monaco-table .slick-sort-indicator-desc {
background-image: url('sort_desc.svg');
}
.vs-dark .monaco-table .slick-sort-indicator-desc,
.hc-black .monaco-table .slick-sort-indicator-desc {
background-image: url('sort_desc_inverse.svg');
}
.monaco-table .slick-sort-indicator {
display: inline-block;
width: 8px;
height: 5px;
height: 8px;
margin-left: 4px;
margin-right: 4px;
margin-top: 6px;
flex: 0 0 auto;
}
.slick-header-menubutton {