signal-desktop/stylesheets/_emoji.scss

93 lines
1.5 KiB
SCSS
Raw Normal View History

2020-10-30 20:34:04 +00:00
// Copyright 2016-2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
span.emoji {
2018-05-04 20:07:52 +00:00
display: -moz-inline-box;
-moz-box-orient: vertical;
display: inline-block;
vertical-align: baseline;
*vertical-align: auto;
*zoom: 1;
*display: inline;
width: 1em;
height: 1em;
background-size: 1em;
background-repeat: no-repeat;
text-indent: -9999px;
background-position: 50%, 50%;
background-size: contain;
}
span.emoji-sizer {
2018-05-04 20:07:52 +00:00
line-height: 0.81em;
font-size: 1em;
margin: -2px 0;
}
span.emoji-outer {
2018-05-04 20:07:52 +00:00
display: -moz-inline-box;
display: inline-block;
*display: inline;
height: 1em;
width: 1em;
}
span.emoji-inner {
2018-05-04 20:07:52 +00:00
display: -moz-inline-box;
display: inline-block;
text-indent: -9999px;
width: 100%;
height: 100%;
vertical-align: baseline;
*vertical-align: auto;
*zoom: 1;
}
img.emoji {
2019-10-28 17:35:18 +00:00
height: 1.4em;
2020-08-05 01:13:19 +00:00
margin-bottom: -5px;
2021-10-06 17:37:53 +00:00
margin-left: 2px;
margin-right: 2px;
vertical-align: baseline;
2021-10-06 17:37:53 +00:00
width: 1.4em;
}
img.emoji.small {
2021-10-06 17:37:53 +00:00
width: 32px;
height: 32px;
}
img.emoji.medium {
2021-10-06 17:37:53 +00:00
width: 36px;
height: 36px;
}
img.emoji.large {
2021-10-06 17:37:53 +00:00
width: 40px;
height: 40px;
}
img.emoji.extra-large {
width: 48px;
height: 48px;
}
2021-10-06 17:37:53 +00:00
img.emoji.max {
width: 56px;
height: 56px;
}
// we need these, or we'll make conversation items too big in the left-nav
.conversations img.emoji.small {
2018-05-04 20:07:52 +00:00
width: 1em;
height: 1em;
}
.conversations img.emoji.medium {
2018-05-04 20:07:52 +00:00
width: 1em;
height: 1em;
}
.conversations img.emoji.large {
2018-05-04 20:07:52 +00:00
width: 1em;
height: 1em;
}
.conversations img.emoji.jumbo {
2018-05-04 20:07:52 +00:00
width: 1em;
height: 1em;
}