emoji-mart-lazyload/css/emoji-mart.css

462 lines
9.0 KiB
CSS
Raw Normal View History

2016-07-27 15:35:12 +00:00
.emoji-mart,
.emoji-mart * {
2016-05-31 14:36:52 +00:00
box-sizing: border-box;
line-height: 1.15;
2016-05-31 14:36:52 +00:00
}
2016-07-27 15:35:12 +00:00
.emoji-mart {
2016-05-31 14:36:52 +00:00
font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
font-size: 16px;
display: inline-block;
color: #222427;
2016-05-31 16:35:08 +00:00
border: 1px solid #d9d9d9;
2016-05-31 14:36:52 +00:00
border-radius: 5px;
2016-07-12 20:52:04 +00:00
background: #fff;
2016-05-31 14:36:52 +00:00
}
2016-07-27 15:35:12 +00:00
.emoji-mart .emoji-mart-emoji {
padding: 6px;
}
.emoji-mart-bar {
border: 0 solid #d9d9d9;
}
2016-07-27 15:35:12 +00:00
.emoji-mart-bar:first-child {
border-bottom-width: 1px;
2016-05-31 14:36:52 +00:00
border-top-left-radius: 5px;
border-top-right-radius: 5px;
}
2016-07-27 15:35:12 +00:00
.emoji-mart-bar:last-child {
border-top-width: 1px;
2016-05-31 14:36:52 +00:00
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
}
2016-07-27 15:35:12 +00:00
.emoji-mart-anchors {
2016-06-02 15:26:48 +00:00
display: flex;
2017-11-09 01:01:00 +00:00
flex-direction: row;
2016-06-02 15:26:48 +00:00
justify-content: space-between;
padding: 0 6px;
line-height: 0;
2016-06-02 15:26:48 +00:00
}
2016-07-27 15:35:12 +00:00
.emoji-mart-anchor {
2016-06-02 15:26:48 +00:00
position: relative;
2017-11-09 01:01:00 +00:00
display: block;
flex: 1 1 auto;
2019-12-23 14:04:27 +00:00
color: #858585;
2016-06-02 15:26:48 +00:00
text-align: center;
padding: 12px 4px;
overflow: hidden;
2016-06-02 18:58:19 +00:00
transition: color .1s ease-out;
margin: 0;
box-shadow: none;
background: none;
border: none;
2016-06-02 18:58:19 +00:00
}
2019-12-23 14:05:03 +00:00
.emoji-mart-anchor:focus { outline: 0 }
2016-07-27 15:35:12 +00:00
.emoji-mart-anchor:hover,
2019-12-23 14:05:03 +00:00
.emoji-mart-anchor:focus,
2016-07-27 15:35:12 +00:00
.emoji-mart-anchor-selected {
2016-06-02 18:58:19 +00:00
color: #464646;
2016-06-02 15:26:48 +00:00
}
2016-07-27 15:35:12 +00:00
.emoji-mart-anchor-selected .emoji-mart-anchor-bar {
2016-06-02 15:26:48 +00:00
bottom: 0;
}
2016-07-27 15:35:12 +00:00
.emoji-mart-anchor-bar {
2016-06-02 15:26:48 +00:00
position: absolute;
bottom: -3px; left: 0;
width: 100%; height: 3px;
2016-07-21 19:33:18 +00:00
background-color: #464646;
2016-06-02 15:26:48 +00:00
}
2016-07-27 15:35:12 +00:00
.emoji-mart-anchors i {
2016-06-02 15:26:48 +00:00
display: inline-block;
width: 100%;
max-width: 22px;
}
.emoji-mart-anchors svg,
.emoji-mart-anchors img {
2019-12-23 14:04:27 +00:00
fill: currentColor;
height: 18px;
width: 18px;
2016-06-02 15:26:48 +00:00
}
2016-07-27 15:35:12 +00:00
.emoji-mart-scroll {
2016-10-26 13:46:59 +00:00
overflow-y: scroll;
2020-03-16 13:57:47 +00:00
overflow-x: hidden;
2016-05-31 18:39:30 +00:00
height: 270px;
2016-05-31 16:35:08 +00:00
padding: 0 6px 6px 6px;
will-change: transform; /* avoids "repaints on scroll" in mobile Chrome */
2016-05-31 14:36:52 +00:00
}
2016-07-27 15:35:12 +00:00
.emoji-mart-search {
margin-top: 6px;
padding: 0 6px;
position: relative;
}
.emoji-mart-search input {
2016-05-31 14:36:52 +00:00
font-size: 16px;
display: block;
width: 100%;
2018-07-30 20:17:22 +00:00
padding: 5px 25px 6px 10px;
border-radius: 5px;
2016-05-31 16:35:08 +00:00
border: 1px solid #d9d9d9;
2016-05-31 14:36:52 +00:00
outline: 0;
2019-03-10 17:35:07 +00:00
}
2019-03-10 18:24:28 +00:00
.emoji-mart-search input,
2019-03-10 17:35:07 +00:00
.emoji-mart-search input::-webkit-search-decoration,
.emoji-mart-search input::-webkit-search-cancel-button,
.emoji-mart-search input::-webkit-search-results-button,
.emoji-mart-search input::-webkit-search-results-decoration {
/* remove webkit/blink styles for <input type="search">
* via https://stackoverflow.com/a/9422689 */
-webkit-appearance: none;
2016-05-31 14:36:52 +00:00
}
.emoji-mart-search-icon {
position: absolute;
top: 7px;
right: 11px;
z-index: 2;
padding: 2px 5px 1px;
border: none;
background: none;
}
2016-07-27 15:35:12 +00:00
.emoji-mart-category .emoji-mart-emoji span {
2016-07-22 14:19:22 +00:00
z-index: 1;
position: relative;
2017-02-17 15:36:50 +00:00
text-align: center;
cursor: default;
2016-07-22 14:19:22 +00:00
}
2016-07-27 15:35:12 +00:00
.emoji-mart-category .emoji-mart-emoji:hover:before {
z-index: 0;
content: "";
position: absolute;
top: 0; left: 0;
width: 100%; height: 100%;
2016-06-02 15:37:53 +00:00
background-color: #f4f4f4;
border-radius: 100%;
2016-05-31 14:36:52 +00:00
}
2016-07-27 15:35:12 +00:00
.emoji-mart-category-label {
z-index: 2;
2016-05-31 16:35:08 +00:00
position: relative;
position: -webkit-sticky;
position: sticky;
2016-05-31 16:35:08 +00:00
top: 0;
}
.emoji-mart-category-label span {
2016-05-31 16:35:08 +00:00
display: block;
width: 100%;
2016-06-01 15:15:03 +00:00
font-weight: 500;
2016-05-31 14:36:52 +00:00
padding: 5px 6px;
background-color: #fff;
background-color: rgba(255, 255, 255, .95);
2016-05-31 14:36:52 +00:00
}
.emoji-mart-category-list {
margin: 0;
padding: 0;
}
.emoji-mart-category-list li {
list-style: none;
margin: 0;
padding: 0;
display: inline-block;
}
2016-07-27 15:35:12 +00:00
.emoji-mart-emoji {
position: relative;
2016-05-31 14:36:52 +00:00
display: inline-block;
2016-07-12 20:55:50 +00:00
font-size: 0;
margin: 0;
padding: 0;
border: none;
background: none;
box-shadow: none;
}
.emoji-mart-emoji-native {
font-family: "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "Android Emoji";
}
2016-07-27 15:35:12 +00:00
.emoji-mart-no-results {
font-size: 14px;
text-align: center;
padding-top: 70px;
color: #858585;
}
.emoji-mart-no-results-img {
display: block;
margin-left: auto;
margin-right: auto;
width: 50%;
}
2017-04-18 15:20:17 +00:00
.emoji-mart-no-results .emoji-mart-category-label {
display: none;
}
.emoji-mart-no-results .emoji-mart-no-results-label {
margin-top: .2em;
}
.emoji-mart-no-results .emoji-mart-emoji:hover:before {
content: none;
}
2016-07-27 15:35:12 +00:00
.emoji-mart-preview {
2016-05-31 14:36:52 +00:00
position: relative;
height: 70px;
}
2016-07-27 15:35:12 +00:00
.emoji-mart-preview-emoji,
.emoji-mart-preview-data,
.emoji-mart-preview-skins {
2016-05-31 14:36:52 +00:00
position: absolute;
2016-06-09 00:22:06 +00:00
top: 50%;
transform: translateY(-50%);
2016-05-31 14:36:52 +00:00
}
2016-07-27 15:35:12 +00:00
.emoji-mart-preview-emoji {
2016-05-31 14:36:52 +00:00
left: 12px;
}
2016-07-27 15:35:12 +00:00
.emoji-mart-preview-data {
2016-05-31 14:36:52 +00:00
left: 68px; right: 12px;
2017-05-05 01:21:01 +00:00
word-break: break-all;
2016-05-31 14:36:52 +00:00
}
2016-07-27 15:35:12 +00:00
.emoji-mart-preview-skins {
2016-06-09 00:22:06 +00:00
right: 30px;
text-align: right;
}
.emoji-mart-preview-skins.custom {
right: 10px;
text-align: right;
}
2016-07-27 15:35:12 +00:00
.emoji-mart-preview-name {
2016-05-31 14:36:52 +00:00
font-size: 14px;
}
2016-07-27 15:35:12 +00:00
.emoji-mart-preview-shortname {
2016-05-31 14:36:52 +00:00
font-size: 12px;
color: #888;
}
2016-07-27 15:35:12 +00:00
.emoji-mart-preview-shortname + .emoji-mart-preview-shortname,
.emoji-mart-preview-shortname + .emoji-mart-preview-emoticon,
.emoji-mart-preview-emoticon + .emoji-mart-preview-emoticon {
2016-05-31 14:36:52 +00:00
margin-left: .5em;
}
2016-06-01 13:53:45 +00:00
2016-07-27 15:35:12 +00:00
.emoji-mart-preview-emoticon {
font-size: 11px;
color: #bbb;
}
2016-07-27 15:35:12 +00:00
.emoji-mart-title span {
2016-06-01 13:53:45 +00:00
display: inline-block;
vertical-align: middle;
}
2016-07-27 15:35:12 +00:00
.emoji-mart-title .emoji-mart-emoji {
2016-06-01 13:53:45 +00:00
padding: 0;
}
2016-07-27 15:35:12 +00:00
.emoji-mart-title-label {
color: #999A9C;
2016-06-01 13:53:45 +00:00
font-size: 26px;
2016-07-27 15:35:12 +00:00
font-weight: 300;
2016-06-01 13:53:45 +00:00
}
2016-06-09 00:22:06 +00:00
2016-07-27 15:35:12 +00:00
.emoji-mart-skin-swatches {
2016-07-12 20:55:50 +00:00
font-size: 0;
2016-06-09 00:22:06 +00:00
padding: 2px 0;
border: 1px solid #d9d9d9;
border-radius: 12px;
background-color: #fff;
}
.emoji-mart-skin-swatches.custom {
font-size: 0;
border: none;
background-color: #fff;
}
.emoji-mart-skin-swatches.opened .emoji-mart-skin-swatch {
2016-06-09 00:22:06 +00:00
width: 16px;
padding: 0 2px;
}
.emoji-mart-skin-swatches.opened .emoji-mart-skin-swatch.selected:after {
2016-06-09 00:22:06 +00:00
opacity: .75;
}
2016-07-27 15:35:12 +00:00
.emoji-mart-skin-swatch {
2016-06-09 00:22:06 +00:00
display: inline-block;
width: 0;
vertical-align: middle;
transition-property: width, padding;
transition-duration: .125s;
transition-timing-function: ease-out;
}
2017-05-05 01:21:01 +00:00
.emoji-mart-skin-swatch:nth-child(1) { transition-delay: 0s }
2016-07-27 15:35:12 +00:00
.emoji-mart-skin-swatch:nth-child(2) { transition-delay: .03s }
.emoji-mart-skin-swatch:nth-child(3) { transition-delay: .06s }
.emoji-mart-skin-swatch:nth-child(4) { transition-delay: .09s }
.emoji-mart-skin-swatch:nth-child(5) { transition-delay: .12s }
.emoji-mart-skin-swatch:nth-child(6) { transition-delay: .15s }
2016-06-09 00:22:06 +00:00
.emoji-mart-skin-swatch.selected {
2016-06-09 00:22:06 +00:00
position: relative;
width: 16px;
padding: 0 2px;
}
.emoji-mart-skin-swatch.selected:after {
2016-06-09 00:22:06 +00:00
content: "";
position: absolute;
top: 50%; left: 50%;
width: 4px; height: 4px;
margin: -2px 0 0 -2px;
background-color: #fff;
border-radius: 100%;
pointer-events: none;
opacity: 0;
transition: opacity .2s ease-out;
}
.emoji-mart-skin-swatch.custom {
display: inline-block;
width: 0;
height: 38px;
overflow: hidden;
vertical-align: middle;
transition-property: width, height;
transition-duration: .125s;
transition-timing-function: ease-out;
cursor: default;
}
.emoji-mart-skin-swatch.custom.selected {
position: relative;
width: 36px;
height: 38px;
padding: 0 2px 0 0;
}
.emoji-mart-skin-swatch.custom.selected:after {
content: "";
width: 0;
height: 0;
}
.emoji-mart-skin-swatches.custom .emoji-mart-skin-swatch.custom:hover {
background-color: #f4f4f4;
border-radius: 10%;
}
.emoji-mart-skin-swatches.custom.opened .emoji-mart-skin-swatch.custom {
width: 36px;
height: 38px;
padding: 0 2px 0 0;
}
.emoji-mart-skin-swatches.custom.opened .emoji-mart-skin-swatch.custom.selected:after {
opacity: .75;
}
.emoji-mart-skin-text.opened {
display: inline-block;
vertical-align: middle;
text-align: left;
color: #888;
font-size: 11px;
padding: 5px 2px;
width: 95px;
height: 40px;
border-radius: 10%;
background-color: #fff;
}
2016-07-27 15:35:12 +00:00
.emoji-mart-skin {
2016-06-09 00:22:06 +00:00
display: inline-block;
width: 100%;
padding-top: 100%;
2016-06-09 00:22:06 +00:00
max-width: 12px;
border-radius: 100%;
}
2016-07-27 15:35:12 +00:00
.emoji-mart-skin-tone-1 { background-color: #ffc93a }
.emoji-mart-skin-tone-2 { background-color: #fadcbc }
.emoji-mart-skin-tone-3 { background-color: #e0bb95 }
.emoji-mart-skin-tone-4 { background-color: #bf8f68 }
.emoji-mart-skin-tone-5 { background-color: #9b643d }
.emoji-mart-skin-tone-6 { background-color: #594539 }
/* For screenreaders only, via https://stackoverflow.com/a/19758620 */
.emoji-mart-sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
border: 0;
}
/*
* Dark mode styles
*/
.emoji-mart-dark {
color: #fff;
2019-12-23 13:50:49 +00:00
border-color: #555453;
background-color: #222;
}
2019-12-23 13:50:49 +00:00
.emoji-mart-dark .emoji-mart-bar {
border-color: #555453;
}
.emoji-mart-dark .emoji-mart-search input {
color: #fff;
2019-12-23 13:50:49 +00:00
border-color: #555453;
background-color: #2f2f2f;
}
.emoji-mart-dark .emoji-mart-search-icon svg {
fill: #fff;
}
.emoji-mart-dark .emoji-mart-category .emoji-mart-emoji:hover:before {
background-color: #444;
}
.emoji-mart-dark .emoji-mart-category-label span {
background-color: #222;
color: #fff;
}
2019-12-23 13:50:49 +00:00
.emoji-mart-dark .emoji-mart-skin-swatches {
border-color: #555453;
background-color: #222;
}
2019-12-23 14:05:03 +00:00
.emoji-mart-dark .emoji-mart-anchor:hover,
.emoji-mart-dark .emoji-mart-anchor:focus,
.emoji-mart-dark .emoji-mart-anchor-selected {
color: #bfbfbf;
}