Vanessa 2024-11-09 15:41:27 +08:00
parent 06f24ae44b
commit cd8a89e5da
7 changed files with 368 additions and 184 deletions

View file

@ -34,6 +34,7 @@
@import "business/custom";
@import "business/resize";
@import "business/av";
@import "business/emojis";
/*
.status: 2

View file

@ -0,0 +1,107 @@
.emojis {
word-break: break-all;
white-space: normal;
display: flex;
flex-direction: column;
padding: 8px 0;
height: 100%;
box-sizing: border-box;
&__tabheader {
display: flex;
border-bottom: 1px solid var(--b3-border-color);
padding: 0 8px 8px;
}
&__tabbody {
flex: 1;
overflow: auto;
div[data-type="tab-emoji"] {
display: flex;
flex-direction: column;
height: 100%;
}
}
.emoji__dynamic {
&-item {
width: 73px;
margin: 8px;
cursor: pointer;
}
&-color {
padding: 8px 8px 4px 4px;
}
}
&__item {
font-size: 24px;
line-height: .9em; // windows 需要这样设置
font-family: var(--b3-font-family-emoji);
text-align: center;
height: 28px;
padding: 2px 4px;
cursor: pointer;
display: inline-block;
transition: var(--b3-transition);
background-color: transparent;
border: 0;
margin: 1px;
overflow: hidden;
border-radius: var(--b3-border-radius);
img, svg {
height: 24px;
display: block;
width: 24px;
}
&--current,
&:hover {
background: var(--b3-list-hover);
}
}
&__title {
color: var(--b3-theme-on-surface);
padding: 8px 4px 4px 4px;
}
&__panel {
flex: 1;
overflow: auto;
padding: 0 8px;
}
&__content {
display: flex;
flex-wrap: wrap;
}
&__type {
cursor: pointer;
flex: 1;
display: flex;
align-items: center;
justify-content: center;
height: 28px;
line-height: 28px;
transition: var(--b3-list-hover);
font-size: 16px;
background-color: transparent;
border: 0;
padding: 0;
&:hover {
background-color: var(--b3-theme-surface-lighter);
}
svg {
height: 16px;
width: 16px;
}
}
}

View file

@ -366,81 +366,3 @@
}
}
}
.emojis {
word-break: break-all;
white-space: normal;
display: flex;
flex-direction: column;
padding: 8px 0;
height: 100%;
box-sizing: border-box;
&__item {
font-size: 24px;
line-height: .9em; // windows 需要这样设置
font-family: var(--b3-font-family-emoji);
text-align: center;
height: 28px;
padding: 2px 4px;
cursor: pointer;
display: inline-block;
transition: var(--b3-transition);
background-color: transparent;
border: 0;
margin: 1px;
overflow: hidden;
border-radius: var(--b3-border-radius);
img, svg {
height: 24px;
display: block;
width: 24px;
}
&--current,
&:hover {
background: var(--b3-list-hover);
}
}
&__title {
color: var(--b3-theme-on-surface);
padding: 8px 4px 4px 4px;
}
&__panel {
flex: 1;
overflow: auto;
padding: 0 8px;
}
&__content {
display: flex;
flex-wrap: wrap;
}
&__type {
cursor: pointer;
flex: 1;
display: flex;
align-items: center;
justify-content: center;
height: 28px;
line-height: 28px;
transition: var(--b3-list-hover);
font-size: 16px;
background-color: transparent;
border: 0;
padding: 0;
&:hover {
background-color: var(--b3-theme-surface-lighter);
}
svg {
height: 16px;
width: 16px;
}
}
}

View file

@ -27,6 +27,7 @@
@import "business/custom";
@import "business/av";
@import "business/search";
@import "business/emojis";
.block__popover {
width: 80vw;