Add SVG icon support
This commit is contained in:
@@ -30,6 +30,10 @@
|
||||
font-size: 20px;
|
||||
margin-right: 0.2em;
|
||||
}
|
||||
|
||||
.svg-icon {
|
||||
margin-right: 0.2em;
|
||||
}
|
||||
}
|
||||
|
||||
.emoji-reacts {
|
||||
|
||||
18
app/styles/components/icon.scss
Normal file
18
app/styles/components/icon.scss
Normal file
@@ -0,0 +1,18 @@
|
||||
.svg-icon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
> svg {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.icon-button > div {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
@@ -36,7 +36,8 @@
|
||||
outline: 0 !important;
|
||||
}
|
||||
|
||||
.fa {
|
||||
.fa,
|
||||
.svg-icon {
|
||||
@include font-size(16);
|
||||
cursor: default;
|
||||
display: inline-block;
|
||||
|
||||
Reference in New Issue
Block a user