Browse Source

joplin: improve the TOC

Maxim Likhachev 4 years ago
parent
commit
c6a0c4a19e
  1. 124
      etc/soft/joplin/userstyle.css

124
etc/soft/joplin/userstyle.css

@ -50,66 +50,6 @@ a { @@ -50,66 +50,6 @@ a {
text-decoration: none;
}
/* TOC */
nav.table-of-contents ul {
list-style-type: none;
margin-top: 0px;
margin-bottom: 0px;
}
nav.table-of-contents>ul {
top: 5px;
right: 0px;
z-index: 99;
font-size: 12px;
position: fixed;
padding: 15px;
border-radius: 10px 0px 0px 10px;
margin: 0px;
overflow: hidden;
height: 90%;
width: 5px;
transition: .2s;
}
nav.table-of-contents::after {
content: "";
color: black;
}
nav.table-of-contents>ul:hover {
background: #F8F8F8;
box-shadow: -5px 0px 10px 0px rgba(0,0,0,0.15);
width: 30%;
color: none;
overflow: scroll;
}
nav.table-of-contents>ul:hover::before {
content: "TABLE OF CONTENTS"
}
nav.table-of-contents>ul:hover li {
display: list-item;
}
nav.table-of-contents li {
display: none;
white-space: nowrap;
overflow: hidden;
margin: 0px;
padding: 0px;
}
/* BADGES */
b-error, b-success, b-info, b-warning, b-help {
@ -393,3 +333,67 @@ ins { @@ -393,3 +333,67 @@ ins {
background-color: #155BDA;
}
/* TOC */
nav.table-of-contents ul {
list-style-type: none;
margin-top: 0px !important;
margin-bottom: 0px !important;
margin-left: 1em !important;
}
nav.table-of-contents>ul {
top: 5px;
right: 0px;
z-index: 99;
font-size: 12px;
position: fixed;
padding: 15px;
border-radius: 10px 0px 0px 10px;
margin: 0px;
overflow: hidden;
height: 90%;
width: 5px;
transition: .2s;
}
nav.table-of-contents::after {
content: "";
color: black;
}
nav.table-of-contents>ul:hover {
background: #F8F8F8;
box-shadow: -5px 0px 10px 0px rgba(0,0,0,0.15);
width: 30%;
color: none;
overflow: scroll;
}
nav.table-of-contents>ul:hover::before {
content: "Содержание"
font-weight: bold;
}
nav.table-of-contents>ul:hover li {
display: list-item;
}
nav.table-of-contents li {
display: none;
white-space: nowrap;
overflow: hidden;
margin: 0px;
padding: 0px;
}
nav.table-of-contents li:before {
content: "" !important;
}

Loading…
Cancel
Save