tiptap/demos/setup/style.scss

84 lines
1.4 KiB
SCSS
Raw Normal View History

2021-08-25 17:52:20 +08:00
$colorBlack: #000;
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
line-height: 1.5;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
body {
margin: 1rem;
2021-08-25 18:29:46 +08:00
min-height: 10rem;
2021-08-25 17:52:20 +08:00
}
::-webkit-scrollbar {
width: 14px;
height: 14px;
}
::-webkit-scrollbar-track {
border: 4px solid transparent;
background-clip: padding-box;
border-radius: 8px;
background-color: transparent;
}
::-webkit-scrollbar-thumb {
border: 4px solid rgba(0, 0, 0, 0);
background-clip: padding-box;
border-radius: 8px;
background-color: rgba(0, 0, 0, 0);
}
:hover::-webkit-scrollbar-thumb {
background-color: rgba(0, 0, 0, 0.1);
}
::-webkit-scrollbar-thumb:hover {
background-color: rgba(0, 0, 0, 0.15);
}
::-webkit-scrollbar-button {
display: none;
width: 0;
height: 0;
}
::-webkit-scrollbar-corner {
background-color: transparent;
}
2021-10-16 06:08:48 +08:00
button,
2021-10-25 01:17:52 +08:00
input,
select {
2021-10-16 06:08:48 +08:00
font-size: inherit;
font-family: inherit;
2021-10-25 01:17:52 +08:00
color: black;
margin: 0.1rem;
border: 1px solid black;
border-radius: 0.3rem;
padding: 0.1rem 0.4rem;
background: white;
accent-color: black;
2021-11-04 04:27:20 +08:00
&[disabled] {
opacity: 0.3;
}
2021-10-16 06:08:48 +08:00
}
.tiptap:focus {
2021-08-25 17:52:20 +08:00
outline: none;
}
2021-08-26 03:18:36 +08:00
.is-active {
background: black;
color: white;
}