Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Zhang (张涛) committed Oct 8, 2024
1 parent 8ff0ee3 commit 0c3d374
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 38 deletions.
Binary file not shown.
62 changes: 32 additions & 30 deletions packages/canyon-platform/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
@tailwind components;
@tailwind utilities;

/*canyon-report的样式*/

@font-face {
font-family: "IBMPlexMono";
src: url("./assets/IBMPlexMono-Regular.woff2");
Expand All @@ -12,9 +14,38 @@
.shiki > code {
font-size: 12px;
font-family: "IBMPlexMono";
line-height: 20px;
line-height: 21px;
}

.content-class-no-found {
background: #f6c6ce;
}

.content-class-found {
background: #f6c6ce;
}

.dark .content-class-no-found {
background: rgb(122, 84, 116);
}

.dark .content-class-found {
background: rgb(122, 84, 116);
}

.highlight {
color: red !important;
}

.YourHighlightClass {
padding: 0 !important;
color: white !important;
background: rgb(244, 176, 27) !important;
}

/*canyon-report的样式*/


.fullscreen-modal {
position: fixed;
top: 0;
Expand Down Expand Up @@ -79,35 +110,6 @@ a:hover {
visibility: unset;
}

.content-class-no-found {
background: #f6c6ce;
}

.content-class-found {
background: #f6c6ce;
}

.dark .content-class-no-found {
background: rgb(122, 84, 116);
}

.dark .content-class-found {
background: rgb(122, 84, 116);
}

/*thead tr:nth-child(2){*/
/* display: none !important;*/
/*}*/

.highlight {
color: red !important;
}

.YourHighlightClass {
padding: 0 !important;
color: white !important;
background: rgb(244, 176, 27) !important;
}

.editable-cell {
position: relative;
Expand Down
1 change: 1 addition & 0 deletions packages/canyon-report/.eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ coverage
dist
lib/
html-spa.js
webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { FC } from "react";
import { useEffect, useState } from "react";
import { createHighlighterCoreInstance } from "../../helpers/loadShiki";

function jisuanColor(coun) {
function jisuanColor(coun: number) {
if (coun === 0) {
return "rgba(255, 0, 0, 0.5)";
}
Expand Down Expand Up @@ -40,8 +40,8 @@ const FileCoverageDetail: FC<{
return (
<div
key={index}
className={"h-[24px] text-right text-[#0071c2]"}
style={{ lineHeight: "24px", fontSize: "12px" }}
className={"h-[21px] text-right text-[#0071c2]"}
style={{ lineHeight: "21px", fontSize: "12px" }}
>
{index + 1}
</div>
Expand All @@ -59,9 +59,9 @@ const FileCoverageDetail: FC<{
return (
<div
key={index}
className={"h-[24px] px-[5px]"}
className={"h-[21px] px-[5px]"}
style={{
lineHeight: "24px",
lineHeight: "21px",
fontSize: "12px",
backgroundColor: jisuanColor(lin.count),
color: "rgba(0, 0, 0, 0.5)",
Expand Down
2 changes: 1 addition & 1 deletion packages/canyon-report/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

.shiki > code {
font-size: 12px;
line-height: 24px;
line-height: 21px;
}

a{
Expand Down
3 changes: 1 addition & 2 deletions packages/canyon-report/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ const config = {
filename: "asset/[name].js", // 修改这里,指定输出的 js 文件路径和名称格式
},
devServer: {
// open: true,
// host: "localhost",
port: 3030,
},
plugins: [
new HtmlWebpackPlugin({
Expand Down

0 comments on commit 0c3d374

Please sign in to comment.