fix: recover header logo && add styleint check (#1084)

* fix: fix header logo not show

* feat: update lint-staged

feat: add stylelint
This commit is contained in:
conghuhu
2022-08-31 23:26:58 +08:00
committed by GitHub
parent 349ce7f1d4
commit e108d26ec7
6 changed files with 435 additions and 31 deletions

View File

@ -595,7 +595,7 @@ class App extends Component {
// theme="dark"
mode={(Setting.isMobile() && this.isStartPages()) ? "inline" : "horizontal"}
selectedKeys={[`${this.state.selectedMenuKey}`]}
style={{lineHeight: "64px", width: "80%", position: "absolute"}}
style={{lineHeight: "64px", width: "80%", position: "absolute", left: "145px"}}
>
{
this.renderMenu()

View File

@ -1,6 +1,8 @@
@import '~antd/dist/antd.less';
/* stylelint-disable at-rule-name-case */
/* stylelint-disable selector-class-pattern */
@import "~antd/dist/antd.less";
@StaticBaseUrl:"https://cdn.casbin.org";
@StaticBaseUrl: "https://cdn.casbin.org";
.App {
text-align: center;
@ -69,8 +71,8 @@
}
.content-warp-card {
box-shadow: 0 1px 5px 0 rgba(51, 51, 51, 0.14);
margin: 5px 5px 5px 5px;
box-shadow: 0 1px 5px 0 rgb(51 51 51 / 14%);
margin: 5px;
flex: 1;
align-items: stretch;
}

View File

@ -1,14 +1,28 @@
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
font-family:
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
Roboto,
Oxygen,
Ubuntu,
Cantarell,
"Fira Sans",
"Droid Sans",
"Helvetica Neue",
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
font-family:
source-code-pro,
Menlo,
Monaco,
Consolas,
"Courier New",
monospace;
}
@ -17,12 +31,14 @@ code {
background-size: 130px, 27px;
width: 130px;
height: 27px;
/*background: rgba(0, 0, 0, 0.2);*/
margin: 17px 10px 16px 20px;
margin: 17px 0 16px 15px;
float: left;
}
.ant-table.ant-table-middle .ant-table-title, .ant-table.ant-table-middle .ant-table-footer, .ant-table.ant-table-middle thead > tr > th, .ant-table.ant-table-middle tbody > tr > td {
.ant-table.ant-table-middle .ant-table-title,
.ant-table.ant-table-middle .ant-table-footer,
.ant-table.ant-table-middle thead > tr > th,
.ant-table.ant-table-middle tbody > tr > td {
padding: 1px 8px !important;
}