forked from 0x2620/oxjs
improve index page
This commit is contained in:
parent
adbecb75a2
commit
dfb96e6649
2 changed files with 156 additions and 57 deletions
90
index.css
90
index.css
|
|
@ -1,12 +1,6 @@
|
|||
body {
|
||||
margin: 0;
|
||||
}
|
||||
body.OxThemeClassic {
|
||||
background-color: rgb(240, 240, 240);
|
||||
}
|
||||
body.OxThemeModern {
|
||||
background-color: rgb(16, 16, 16);
|
||||
}
|
||||
|
||||
.animate, .loading {
|
||||
position: absolute;
|
||||
|
|
@ -32,26 +26,14 @@ body.OxThemeModern {
|
|||
margin: auto;
|
||||
}
|
||||
|
||||
.OxThemeClassic .logo {
|
||||
box-shadow: 0 0 1px rgb(0, 0, 0)
|
||||
}
|
||||
.OxThemeModern .logo {
|
||||
box-shadow: 0 0 1px rgb(255, 255, 255)
|
||||
}
|
||||
|
||||
.page {
|
||||
width: 512px;
|
||||
width: 576px;
|
||||
padding: 32px;
|
||||
margin: 16px auto 16px auto;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
margin: 32px auto 32px auto;
|
||||
border-radius: 8px;
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
}
|
||||
.page blockquote {
|
||||
margin-left: 28px;
|
||||
}
|
||||
.page code, .page pre {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
|
@ -63,23 +45,75 @@ body.OxThemeModern {
|
|||
font-size: 16px;
|
||||
line-height: 22px;
|
||||
}
|
||||
.OxThemeClassic .page {
|
||||
border-color: rgb(208, 208, 208);
|
||||
background: rgb(255, 255, 255);
|
||||
|
||||
.readme .item {
|
||||
padding: 4px 8px 4px 8px;
|
||||
border-radius: 8px;
|
||||
margin: 8px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.OxThemeModern .page {
|
||||
border-color: rgb(48, 48, 48);
|
||||
background: rgb(0, 0, 0);
|
||||
.readme .item.selected {
|
||||
cursor: normal;
|
||||
}
|
||||
.readme .item .title {
|
||||
font-size: 14px;
|
||||
}
|
||||
.readme .item .date {
|
||||
margin-top: 2px;
|
||||
font-size: 12px;
|
||||
}
|
||||
.readme .text {
|
||||
padding: 8px;
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
}
|
||||
.readme .text code, .readme .text pre {
|
||||
font-size: 12px;
|
||||
}
|
||||
.readme .text h1 {
|
||||
font-size: 18px;
|
||||
line-height: 24px;
|
||||
}
|
||||
.readme .text h2 {
|
||||
font-size: 16px;
|
||||
line-height: 22px;
|
||||
}
|
||||
|
||||
|
||||
.screen {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
body.OxThemeClassic,
|
||||
.OxThemeClassic .screen {
|
||||
background-color: rgba(240, 240, 240, 1);
|
||||
background-color: rgb(240, 240, 240);
|
||||
}
|
||||
body.OxThemeModern,
|
||||
.OxThemeModern .screen {
|
||||
background-color: rgba(16, 16, 16, 1);
|
||||
background-color: rgb(16, 16, 16);
|
||||
}
|
||||
|
||||
.OxThemeClassic .page {
|
||||
background: rgb(255, 255, 255);
|
||||
}
|
||||
.OxThemeModern .page {
|
||||
background: rgb(0, 0, 0);
|
||||
}
|
||||
|
||||
.OxThemeClassic .logo,
|
||||
.OxThemeClassic .page {
|
||||
box-shadow: 0 0 1px rgb(0, 0, 0)
|
||||
}
|
||||
.OxThemeModern .logo,
|
||||
.OxThemeModern .page {
|
||||
box-shadow: 0 0 1px rgb(255, 255, 255)
|
||||
}
|
||||
|
||||
.OxThemeClassic .readme .item.selected {
|
||||
background: rgb(224, 224, 224);
|
||||
}
|
||||
.OxThemeModern .readme .item.selected {
|
||||
background: rgb(32, 32, 32);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue