修改统一风格

This commit is contained in:
何童崇 2022-06-13 15:00:22 +08:00
parent 5505142eb7
commit 25b4ba1d54
8 changed files with 361 additions and 287 deletions

View File

@ -150,7 +150,7 @@ module.exports = {
{ {
libraryName: "antd", libraryName: "antd",
libraryDirectory: "es", libraryDirectory: "es",
style: "css", style: true,
}, },
], ],
], ],
@ -208,6 +208,26 @@ module.exports = {
}, },
], ],
}, },
{
test: /\.less$/,
use: [{
loader: 'style-loader',
}, {
loader: 'css-loader', // translates CSS into CommonJS
}, {
loader: 'less-loader', // compiles Less to CSS
options: {
modifyVars: {
'primary-color': '#466aff',
'primary-color-hover': '#6684FE',
'primary-color-active': '#1A47FF',
'link-color': '#466aff',
},
javascriptEnabled: true,
},
}]
},
// "file" loader makes sure those assets get served by WebpackDevServer. // "file" loader makes sure those assets get served by WebpackDevServer.
// When you `import` an asset, you get its (virtual) filename. // When you `import` an asset, you get its (virtual) filename.
// In production, they would get copied to the `build` folder. // In production, they would get copied to the `build` folder.
@ -266,7 +286,7 @@ module.exports = {
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/), new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
new MonacoWebpackPlugin({ new MonacoWebpackPlugin({
features: ["coreCommands", "find"], features: ["coreCommands", "find"],
languages: ['plaintext','apex', 'azcli', 'bat', 'clojure', 'coffee', 'cpp', 'csharp', 'csp', 'css', 'dockerfile', 'fsharp', 'go', 'handlebars', 'html', 'ini', 'java', 'javascript', 'json', 'less', 'lua', 'markdown', 'msdax', 'mysql', 'objective', 'perl', 'pgsql', 'php', 'postiats', 'powerquery', 'powershell', 'pug', 'python', 'r', 'razor', 'redis', 'redshift', 'ruby', 'rust', 'sb', 'scheme', 'scss', 'shell', 'solidity', 'sql', 'st', 'swift', 'typescript', 'vb', 'xml', 'yaml'] languages: ['plaintext', 'apex', 'azcli', 'bat', 'clojure', 'coffee', 'cpp', 'csharp', 'csp', 'css', 'dockerfile', 'fsharp', 'go', 'handlebars', 'html', 'ini', 'java', 'javascript', 'json', 'less', 'lua', 'markdown', 'msdax', 'mysql', 'objective', 'perl', 'pgsql', 'php', 'postiats', 'powerquery', 'powershell', 'pug', 'python', 'r', 'razor', 'redis', 'redshift', 'ruby', 'rust', 'sb', 'scheme', 'scss', 'shell', 'solidity', 'sql', 'st', 'swift', 'typescript', 'vb', 'xml', 'yaml']
}), }),
], ],
// Some libraries import Node modules but don't use them in the browser. // Some libraries import Node modules but don't use them in the browser.

View File

@ -147,7 +147,7 @@ module.exports = {
{ {
libraryName: "antd", libraryName: "antd",
libraryDirectory: "es", libraryDirectory: "es",
style: "css", style: true,
}, },
], ],
], ],
@ -210,6 +210,23 @@ module.exports = {
}, },
], ],
}, },
{
test: /\.less$/,
use: [{
loader: 'style-loader',
}, {
loader: 'css-loader', // translates CSS into CommonJS
}, {
loader: 'less-loader', // compiles Less to CSS
options: {
modifyVars: {
'primary-color': '#466aff',
'link-color': '#466aff',
},
javascriptEnabled: true,
},
}]
},
// "file" loader makes sure assets end up in the `build` folder. // "file" loader makes sure assets end up in the `build` folder.
// When you `import` an asset, you get its filename. // When you `import` an asset, you get its filename.
// This loader doesn't use a "test" so it will catch all modules // This loader doesn't use a "test" so it will catch all modules

586
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -51,6 +51,8 @@
"js-base64": "^2.5.2", "js-base64": "^2.5.2",
"js2wordcloud": "^1.1.12", "js2wordcloud": "^1.1.12",
"katex": "^0.11.1", "katex": "^0.11.1",
"less": "^3.9.0",
"less-loader": "^4.1.0",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"loglevel": "^1.6.8", "loglevel": "^1.6.8",
"marked": "^1.0.0", "marked": "^1.0.0",

View File

@ -1365,10 +1365,13 @@ table {
border: 0; border: 0;
} }
a:link, a:link{
color: #466aff;
}
a:visited { a:visited {
text-decoration: none; text-decoration: none;
color: #05101a; /* color: #05101a; */
color: #1A47FF;
} }
ol, ol,
@ -2466,7 +2469,7 @@ a.hoverLine:hover{
} }
a:hover{ a:hover{
color: #466AFF !important; color: #6684FE !important;
} }
.color-grey-98 { .color-grey-98 {

View File

@ -18,7 +18,7 @@
} }
.name{ .name{
font-size: 16px; font-size: 16px;
color: #4CACFF; // color: #4CACFF;
} }
.desc{ .desc{
color: #999; color: #999;

View File

@ -238,7 +238,7 @@ ul.ant-menu.menuStyle li {
bottom: -1px; bottom: -1px;
height: 2px; height: 2px;
left: 0px; left: 0px;
background-color: #1890ff; background-color: #466aff;
content: ""; content: "";
} }

View File

@ -1,4 +1,5 @@
$flex:flex; $flex:flex;
$primary-color:#466aff;
.headerbox{ .headerbox{
padding:20px; padding:20px;
border-bottom: 1px solid #E0E0E0; border-bottom: 1px solid #E0E0E0;
@ -306,7 +307,8 @@ ul.ant-menu.menuStyle{
bottom: -1px; bottom: -1px;
height: 2px; height: 2px;
left: 0px; left: 0px;
background-color: #1890ff; // background-color: #1890ff;
background-color: $primary-color;
content:""; content:"";
} }
} }