feat: update page ui
parent
8a55f2b3e2
commit
06833d540f
|
|
@ -0,0 +1,117 @@
|
|||
@media only screen and (max-width: 1299px) {
|
||||
aside.toc-nav {
|
||||
max-width: 45px;
|
||||
opacity: 0.6;
|
||||
right: 0 !important;
|
||||
margin-right: 0 !important;
|
||||
background: #fff;
|
||||
}
|
||||
aside.toc-nav:hover {
|
||||
max-width: inherit;
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 1300px) {
|
||||
section.content {
|
||||
padding-right: 250px;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 960px) {
|
||||
aside.toc-nav {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
aside.toc-nav {
|
||||
position: fixed;
|
||||
top: 70px;
|
||||
right: 3%;
|
||||
margin-right: 20px;
|
||||
width: 250px;
|
||||
z-index: 999999;
|
||||
align-self: flex-start;
|
||||
flex: 0 0 auto;
|
||||
overflow-y: auto;
|
||||
max-height: 70%;
|
||||
}
|
||||
|
||||
aside.toc-nav.nothing {
|
||||
width: 0;
|
||||
}
|
||||
|
||||
.page_toc {
|
||||
position: relative;
|
||||
left: 0;
|
||||
margin: 10px 0;
|
||||
border: none;
|
||||
font-size: 1.0em;
|
||||
}
|
||||
|
||||
.page_toc p.title {
|
||||
margin: 0;
|
||||
padding-bottom: 5px;
|
||||
font-weight: 600;
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
.page_toc .anchor:hover:after {
|
||||
content: "";
|
||||
}
|
||||
.page_toc div[class^="lv"] a:hover span {
|
||||
color: var(--sidebar-nav-link-color--active, #42b983);
|
||||
}
|
||||
|
||||
.page_toc div {
|
||||
border-left: 2px solid #e8e8e8;
|
||||
text-indent: 10px;
|
||||
padding: 2px 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.page_toc div.active {
|
||||
border-left-color: var(--sidebar-nav-link-color--active, #42b983);
|
||||
transition: border-left-color 0.23s;
|
||||
}
|
||||
|
||||
.page_toc div.active a span {
|
||||
color: var(--sidebar-nav-link-color--active, #42b983);
|
||||
transition: color 0.23s;
|
||||
}
|
||||
|
||||
.page_toc div[class^="lv"] a {
|
||||
color: var(--text-color-base, black);
|
||||
text-decoration: none;
|
||||
font-weight: 300;
|
||||
line-height: 2em;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.page_toc div[class^="lv"] a span {
|
||||
color: var(--sidebar-nav-link-color--hover, var(--sidebar-nav-link-color));
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow:ellipsis;
|
||||
}
|
||||
|
||||
.page_toc div.lv2 {
|
||||
text-indent: 20px;
|
||||
}
|
||||
|
||||
.page_toc div.lv3 {
|
||||
text-indent: 30px;
|
||||
}
|
||||
|
||||
.page_toc div.lv4 {
|
||||
text-indent: 40px;
|
||||
}
|
||||
|
||||
.page_toc div.lv5 {
|
||||
text-indent: 50px;
|
||||
}
|
||||
|
||||
.page_toc div.lv6 {
|
||||
text-indent: 60px;
|
||||
}
|
||||
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
|
|
@ -1,6 +1,6 @@
|
|||
* <img src="https://raw.githubusercontent.com/FortAwesome/Font-Awesome/6.x/svgs/solid/language.svg" width="30" height="30">
|
||||
|
||||
* [English](#/en/)
|
||||
* [Tieng Viet](#/vi/)
|
||||
* [English](en/)
|
||||
* [Tieng Viet](vi/)
|
||||
|
||||
* <img src="https://raw.githubusercontent.com/FortAwesome/Font-Awesome/6.x/svgs/brands/github.svg" width="25" height="25">
|
||||
|
|
|
|||
17
index.html
17
index.html
|
|
@ -11,7 +11,7 @@
|
|||
<meta name="description" content="Description">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
|
||||
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css">
|
||||
<link rel="stylesheet" href="https://unpkg.com/docsify-plugin-toc@1.3.1/dist/light.css">
|
||||
<link rel="stylesheet" href="/_css/light.css">
|
||||
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify-sidebar-collapse/dist/sidebar.min.css" />
|
||||
<link rel="stylesheet" href="//unpkg.com/@fortawesome/fontawesome-free/css/fontawesome.css" />
|
||||
<link rel="stylesheet" href="//unpkg.com/@fortawesome/fontawesome-free/css/brands.css" />
|
||||
|
|
@ -23,9 +23,22 @@
|
|||
:root {
|
||||
--docsifytabs-border-color: #ededed;
|
||||
--docsifytabs-tab-highlight-color: #42b983;
|
||||
|
||||
}
|
||||
.blue {
|
||||
color: blue;
|
||||
}
|
||||
.sidebar-toggle {
|
||||
background-color: unset;
|
||||
position: fixed !important;
|
||||
top: 0 !important;
|
||||
bottom: auto !important;
|
||||
padding: 10px 10px 10px 10px !important;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 768px) {
|
||||
.markdown-section {
|
||||
padding: 16px 16px 16px 36px !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<div id="app"></div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue