fix: fix dark style

This commit is contained in:
fantasticit 2022-04-27 13:00:31 +08:00
parent a5a4d95c1b
commit bcde9ce598
8 changed files with 41 additions and 2070 deletions

View File

@ -1,8 +1,6 @@
@import '~@douyinfe/semi-ui/dist/css/semi.min.css'; @import '~@douyinfe/semi-ui/dist/css/semi.min.css';
@import './var.scss'; @import './var.scss';
@import './reset.scss'; @import './reset.scss';
@import './kityminder.editor.css';
@import './hotbox.css';
.container { .container {
margin-right: auto; margin-right: auto;

View File

@ -1,191 +0,0 @@
/* stylelint-disable */
.hotbox {
position: absolute;
top: 0;
left: 0;
overflow: visible;
font-family: Arial, 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
}
.hotbox .state {
position: absolute;
display: none;
overflow: visible;
}
.hotbox .state .center .button,
.hotbox .state .ring .button {
position: absolute;
width: 70px;
height: 70px;
margin-top: -35px;
margin-left: -35px;
border-radius: 100%;
box-shadow: 0 0 30px rgb(0 0 0 / 30%);
}
.hotbox .state .center .label,
.hotbox .state .ring .label,
.hotbox .state .center .key,
.hotbox .state .ring .key {
display: block;
line-height: 1.4em;
text-align: center;
vertical-align: middle;
}
.hotbox .state .center .label,
.hotbox .state .ring .label {
margin-top: 17px;
font-size: 16px;
font-weight: normal;
line-height: 1em;
color: black;
}
.hotbox .state .center .key,
.hotbox .state .ring .key {
font-size: 12px;
color: #999;
}
.hotbox .state .ring-shape {
position: absolute;
top: -25px;
left: -25px;
border: 25px solid rgb(0 0 0 / 30%);
border-radius: 100%;
box-sizing: content-box;
}
.hotbox .state .top,
.hotbox .state .bottom {
position: absolute;
white-space: nowrap;
}
.hotbox .state .top .button,
.hotbox .state .bottom .button {
position: relative;
display: inline-block;
padding: 8px 15px;
margin: 0 10px;
border-radius: 15px;
box-shadow: 0 0 30px rgb(0 0 0 / 30%);
}
.hotbox .state .top .button .label,
.hotbox .state .bottom .button .label {
font-size: 14px;
line-height: 14px;
line-height: 1em;
color: black;
vertical-align: middle;
}
.hotbox .state .top .button .key,
.hotbox .state .bottom .button .key {
margin-left: 3px;
font-size: 12px;
line-height: 12px;
color: #999;
vertical-align: middle;
}
.hotbox .state .top .button .key::before,
.hotbox .state .bottom .button .key::before {
content: '(';
}
.hotbox .state .top .button .key::after,
.hotbox .state .bottom .button .key::after {
content: ')';
}
.hotbox .state .button {
overflow: hidden;
cursor: default;
background: #f9f9f9;
}
.hotbox .state .button .key,
.hotbox .state .button .label {
opacity: 0.3;
}
.hotbox .state .button.enabled {
background: white;
}
.hotbox .state .button.enabled .key,
.hotbox .state .button.enabled .label {
opacity: 1;
}
.hotbox .state .button.enabled:hover {
background: #e87372;
}
.hotbox .state .button.enabled:hover .label {
color: white;
}
.hotbox .state .button.enabled:hover .key {
color: #fadfdf;
}
.hotbox .state .button.enabled.selected {
animation: selected 0.1s ease;
background: #e45d5c;
}
.hotbox .state .button.enabled.selected .label {
color: white;
}
.hotbox .state .button.enabled.selected .key {
color: #fadfdf;
}
.hotbox .state .button.enabled.pressed,
.hotbox .state .button.enabled:active {
background: #ff974d;
}
.hotbox .state .button.enabled.pressed .label,
.hotbox .state .button.enabled:active .label {
color: white;
}
.hotbox .state .button.enabled.pressed .key,
.hotbox .state .button.enabled:active .key {
color: #fff0e6;
}
.hotbox .state.active {
display: block;
}
@keyframes selected {
0% {
transform: scale(1);
}
50% {
transform: scale(1.1);
}
100% {
transform: scale(1);
}
}
.hotbox-key-receiver {
position: absolute;
top: -999999px;
left: -999999px;
width: 20px;
height: 20px;
margin: 0;
outline: none;
}

File diff suppressed because it is too large Load Diff

View File

@ -88,25 +88,39 @@ select {
} }
} }
::-webkit-scrollbar {
width: 6px;
height: 6px;
background-color: transparent;
}
::-webkit-scrollbar-button {
width: 6px;
height: 6px;
background-color: transparent;
}
::-webkit-scrollbar-track { ::-webkit-scrollbar-track {
background: transparent; background-color: transparent;
border-radius: 0; }
::-webkit-scrollbar-track-piece {
background-color: transparent;
} }
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
background-color: transparent; background-color: transparent;
border-radius: 0.5rem; border-radius: 5px;
transition: all 0.2s; }
::-webkit-scrollbar-corner,
::-webkit-resizer {
background-color: transparent;
} }
*:hover { *:hover {
&::-webkit-scrollbar-thumb { &::-webkit-scrollbar-thumb &::-webkit-scrollbar-corner,
&::-webkit-resizer {
background-color: var(--scrollbar-bg); background-color: var(--scrollbar-bg);
} }
} }
::-webkit-scrollbar {
width: 6px;
height: 6px;
background: transparent;
}

View File

@ -123,7 +123,7 @@ export const MindBubbleMenu = ({ editor }) => {
className={cls(template === item.value && styles.active)} className={cls(template === item.value && styles.active)}
onClick={() => setTemplate(item.value)} onClick={() => setTemplate(item.value)}
> >
{item.label} <Text>{item.label}</Text>
</li> </li>
); );
})} })}

View File

@ -45,6 +45,9 @@
.node-codeBlock, .node-codeBlock,
.node-documentChildren, .node-documentChildren,
.node-documentReference { .node-documentReference {
display: inline-block;
max-width: 100%;
.render-wrapper { .render-wrapper {
position: relative; position: relative;
user-select: text; user-select: text;

View File

@ -1,11 +1,14 @@
.items { .items {
width: 200px; width: 200px;
max-height: 380px; max-height: 320px;
overflow-x: hidden; overflow-x: hidden;
overflow-y: auto; overflow-y: auto;
background-color: var(--semi-color-bg-0);
border-radius: var(--border-radius); border-radius: var(--border-radius);
box-shadow: rgb(9 30 66 / 31%) 0 0 1px, rgb(9 30 66 / 25%) 0 4px 8px -2px; box-shadow: rgb(9 30 66 / 31%) 0 0 1px, rgb(9 30 66 / 25%) 0 4px 8px -2px;
&::-webkit-scrollbar {
background-color: #fff !important;
}
} }
.item { .item {
@ -18,11 +21,9 @@
background-color: rgb(255 255 255); background-color: rgb(255 255 255);
border: 0; border: 0;
border-radius: 0; border-radius: 0;
outline: 0; outline: none;
flex: 0 0 auto; flex: 0 0 auto;
align-items: center; align-items: center;
box-sizing: border-box;
fill: rgb(255 255 255);
&:hover { &:hover {
background-color: #f4f5f7; background-color: #f4f5f7;

View File

@ -1,11 +1,14 @@
.items { .items {
width: 200px; width: 200px;
max-height: 380px; max-height: 320px;
overflow-x: hidden; overflow-x: hidden;
overflow-y: auto; overflow-y: auto;
background-color: var(--semi-color-bg-0);
border-radius: var(--border-radius); border-radius: var(--border-radius);
box-shadow: rgb(9 30 66 / 31%) 0 0 1px, rgb(9 30 66 / 25%) 0 4px 8px -2px; box-shadow: rgb(9 30 66 / 31%) 0 0 1px, rgb(9 30 66 / 25%) 0 4px 8px -2px;
&::-webkit-scrollbar {
background-color: #fff !important;
}
} }
.item { .item {
@ -18,11 +21,9 @@
background-color: rgb(255 255 255); background-color: rgb(255 255 255);
border: 0; border: 0;
border-radius: 0; border-radius: 0;
outline: 0; outline: none;
flex: 0 0 auto; flex: 0 0 auto;
align-items: center; align-items: center;
box-sizing: border-box;
fill: rgb(255 255 255);
&:hover { &:hover {
background-color: #f4f5f7; background-color: #f4f5f7;