From 42c75fa8823a9ae62fba6fdedb8323a2a2d52e79 Mon Sep 17 00:00:00 2001 From: YunYouJun Date: Wed, 8 Sep 2021 21:30:12 +0800 Subject: [PATCH] fix(badge): fix css build by error common path --- components/badge/src/index.css | 57 +++++++++++++++++++++--------- components/badge/src/index.css.map | 2 +- components/badge/src/index.scss | 2 +- 3 files changed, 43 insertions(+), 18 deletions(-) diff --git a/components/badge/src/index.css b/components/badge/src/index.css index 20e24bd8f..905c3f2e6 100644 --- a/components/badge/src/index.css +++ b/components/badge/src/index.css @@ -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 */ diff --git a/components/badge/src/index.css.map b/components/badge/src/index.css.map index d364c42b1..79d3c24fa 100644 --- a/components/badge/src/index.css.map +++ b/components/badge/src/index.css.map @@ -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"} \ No newline at end of file +{"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"} \ No newline at end of file diff --git a/components/badge/src/index.scss b/components/badge/src/index.scss index 4d6350c5b..323a4bf78 100755 --- a/components/badge/src/index.scss +++ b/components/badge/src/index.scss @@ -1,4 +1,4 @@ -@import '../node_modules/@omiu/common/scss/theme.scss'; +@import '../../common/scss/theme.scss'; .o-badge { position: relative;