fix(badge): fix css build by error common path

This commit is contained in:
YunYouJun 2021-09-08 21:30:12 +08:00
parent 3a3d695206
commit 42c75fa882
3 changed files with 43 additions and 18 deletions

View File

@ -1,17 +1,42 @@
/* Error: Can't find stylesheet to import.
* ,
* 1 | @import '../node_modules/@omiu/common/scss/theme.scss';
* | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
* '
* src/index.scss 1:9 root stylesheet */
body::before {
font-family: "Source Code Pro", "SF Mono", Monaco, Inconsolata, "Fira Mono",
"Droid Sans Mono", monospace, monospace;
white-space: pre;
display: block;
padding: 1em;
margin-bottom: 1em;
border-bottom: 2px solid black;
content: "Error: Can't find stylesheet to import.\a \2577 \a 1 \2502 @import '../node_modules/@omiu/common/scss/theme.scss';\a \2502 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\a \2575 \a src/index.scss 1:9 root stylesheet";
.o-badge {
position: relative;
display: inline-block;
}
.badge {
background-color: #f95050;
color: #ffffff;
line-height: 1.2;
top: 0;
right: 0;
height: 20px;
display: flex;
padding: 0 4px;
z-index: 1;
position: absolute;
flex-wrap: wrap;
font-size: 0.75rem;
min-width: 20px;
transform: scale(1) translate(50%, -50%);
box-sizing: border-box;
transition: transform 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
align-items: center;
font-family: "Roboto", "Helvetica", "Arial", sans-serif;
font-weight: 500;
align-content: center;
border-radius: 10px;
flex-direction: row;
justify-content: center;
transform-origin: 100% 0%;
cursor: pointer;
}
.circle {
width: 8px;
height: 8px;
border-radius: 50%;
min-width: 8px;
padding: 0;
}
/*# sourceMappingURL=index.css.map */

View File

@ -1 +1 @@
{"version":3,"sourceRoot":"","sources":["index.scss"],"names":[],"mappings":"AAIA;EACE;EACA;;;AAGF;EAEE;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EAEE;EACA;EACA;EACA;EACA","file":"index.css"}
{"version":3,"sourceRoot":"","sources":["index.scss"],"names":[],"mappings":"AAEA;EACE;EACA;;;AAGF;EACE;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;;;AAGF;EACE;EACA;EACA;EACA;EACA","file":"index.css"}

View File

@ -1,4 +1,4 @@
@import '../node_modules/@omiu/common/scss/theme.scss';
@import '../../common/scss/theme.scss';
.o-badge {
position: relative;