tiptap/examples/assets/sass/main.scss

93 lines
1.3 KiB
SCSS
Raw Normal View History

2018-08-21 05:02:21 +08:00
@import "~variables";
* {
2018-11-09 05:03:10 +08:00
margin: 0;
padding: 0;
box-sizing: border-box;
text-size-adjust: 100%;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-touch-callout: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
2018-08-21 05:02:21 +08:00
2018-11-09 05:03:10 +08:00
&:focus {
outline: none;
}
2018-08-21 05:02:21 +08:00
}
*::before,
*::after {
2018-11-09 05:03:10 +08:00
box-sizing: border-box;
2018-08-21 05:02:21 +08:00
}
html {
2019-09-27 16:49:08 +08:00
font-family: 'Inter';
2018-11-09 05:03:10 +08:00
font-size: 18px;
color: $color-black;
line-height: 1.5;
2018-08-21 05:02:21 +08:00
}
body {
2018-11-09 05:03:10 +08:00
margin: 0;
2018-08-21 05:02:21 +08:00
}
2018-08-22 21:42:03 +08:00
a {
2018-11-09 05:03:10 +08:00
color: inherit;
2018-08-22 21:42:03 +08:00
}
2018-08-21 05:02:21 +08:00
h1,
h2,
2018-08-23 14:03:42 +08:00
h3,
2018-08-21 05:02:21 +08:00
p,
ul,
ol,
2018-08-22 22:46:30 +08:00
pre,
blockquote {
2018-11-09 05:03:10 +08:00
margin: 1rem 0;
2018-08-21 05:02:21 +08:00
&:first-child {
margin-top: 0;
2018-11-09 05:03:10 +08:00
}
2018-08-21 05:02:21 +08:00
&:last-child {
margin-bottom: 0;
}
2018-08-23 14:03:42 +08:00
}
h1,
h2,
h3 {
2018-11-09 05:03:10 +08:00
line-height: 1.3;
2018-09-07 05:29:00 +08:00
}
.button {
2018-11-09 05:03:10 +08:00
font-weight: bold;
display: inline-flex;
background: transparent;
border: 0;
color: $color-black;
padding: 0.2rem 0.5rem;
margin-right: 0.2rem;
border-radius: 3px;
cursor: pointer;
background-color: rgba($color-black, 0.1);
2019-06-05 04:20:27 +08:00
&:hover {
background-color: rgba($color-black, 0.15);
}
}
2019-05-05 02:40:18 +08:00
.message {
background-color: rgba($color-black, 0.05);
color: rgba($color-black, 0.7);
padding: 1rem;
border-radius: 6px;
2019-05-06 05:08:28 +08:00
margin-bottom: 1.5rem;
2019-05-05 02:40:18 +08:00
font-style: italic;
}
2018-09-07 05:29:00 +08:00
@import "./editor";
@import "./menubar";
2018-11-09 05:03:10 +08:00
@import "./menububble";