mirror of
https://github.com/MultiMote/niimblue
synced 2026-01-19 19:37:11 +03:00
Move icon style
This commit is contained in:
@@ -1,9 +1,30 @@
|
||||
<script lang="ts">
|
||||
import { iconCodepoints, type MaterialIcon } from "../mdi_icons";
|
||||
export let icon: MaterialIcon;
|
||||
export let rotate90: boolean = false;
|
||||
</script>
|
||||
|
||||
<span class="material-icons{rotate90 ? 'r-90' : ''}">
|
||||
<span class="mdi">
|
||||
{String.fromCodePoint(iconCodepoints[icon])}
|
||||
</span>
|
||||
|
||||
<style>
|
||||
.mdi {
|
||||
font-family: "Material Icons";
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
line-height: 1;
|
||||
font-size: 1.5em;
|
||||
vertical-align: -0.24em;
|
||||
/*vertical-align: middle;*/
|
||||
letter-spacing: normal;
|
||||
text-transform: none;
|
||||
display: inline-block;
|
||||
white-space: nowrap;
|
||||
word-wrap: normal;
|
||||
direction: ltr;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
text-rendering: optimizeLegibility;
|
||||
font-feature-settings: "liga";
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -13,32 +13,6 @@
|
||||
@import "bootstrap/scss/alert";
|
||||
@import "font";
|
||||
|
||||
|
||||
body {
|
||||
font-family: "Noto Sans Variable", sans-serif;
|
||||
}
|
||||
|
||||
.material-icons {
|
||||
font-family: "Material Icons";
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
line-height: 1;
|
||||
font-size: 1.5em;
|
||||
vertical-align: -0.24em;
|
||||
// vertical-align: middle;
|
||||
letter-spacing: normal;
|
||||
text-transform: none;
|
||||
display: inline-block;
|
||||
white-space: nowrap;
|
||||
word-wrap: normal;
|
||||
direction: ltr;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
text-rendering: optimizeLegibility;
|
||||
font-feature-settings: "liga";
|
||||
}
|
||||
|
||||
.material-icons.r-90 {
|
||||
-webkit-transform: rotate(90deg);
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user