mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-25 05:48:54 -04:00
169 lines
2.9 KiB
CSS
169 lines
2.9 KiB
CSS
#kiwix-toc-side {
|
|
all: initial;
|
|
position: fixed;
|
|
top: 0px;
|
|
left: 0px;
|
|
width: 306px; /* ui/mainwindow.ui width and spacing */
|
|
height: 100vh;
|
|
border-right: 1px solid #ccc;
|
|
background: white;
|
|
margin: 0px;
|
|
padding: 0px;
|
|
z-index: 10000;
|
|
}
|
|
|
|
#kiwix-toc-title-div {
|
|
all: initial;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
position: relative;
|
|
font-size: 0px;
|
|
height: 30px;
|
|
margin: 0px;
|
|
border: 0px;
|
|
padding: 10px;
|
|
}
|
|
|
|
#kiwix-toc-title {
|
|
all: initial;
|
|
display: block;
|
|
position: relative;
|
|
|
|
font-size: 24px;
|
|
line-height: 30px;
|
|
font-weight: bold;
|
|
font-family: Arial;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
|
|
margin: 0px;
|
|
padding: 0px;
|
|
}
|
|
|
|
#kiwix-toc-hide-button {
|
|
all: initial;
|
|
display: flex;
|
|
align-items: center;
|
|
position: relative;
|
|
|
|
background: white;
|
|
color: #3366CC;
|
|
|
|
margin: 0px;
|
|
margin-top: 7px;
|
|
padding: 0px;
|
|
|
|
font-size: 12px;
|
|
font-family: Arial;
|
|
font-weight: bold;
|
|
}
|
|
|
|
#kiwix-toc-hide-button:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.kiwix-toc-item {
|
|
all: initial;
|
|
display: list-item;
|
|
list-style-type: none;
|
|
position: relative;
|
|
width: 100%;
|
|
}
|
|
|
|
.kiwix-toc-list {
|
|
all: initial;
|
|
display: block;
|
|
width: 100%;
|
|
margin: 0px;
|
|
padding: 0px;
|
|
counter-reset: item;
|
|
}
|
|
|
|
.kiwix-toc-item-a {
|
|
all: initial;
|
|
color: inherit;
|
|
outline: none;
|
|
display: block;
|
|
position: relative;
|
|
|
|
padding-bottom: 3px;
|
|
padding-top: 3px;
|
|
border: none;
|
|
border-top: 1px solid transparent;
|
|
border-bottom: 1px solid transparent;
|
|
|
|
font-size: 16px;
|
|
line-height: 24px;
|
|
font-family: Arial;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.kiwix-toc-item-a:hover {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
|
|
border-top: 1px solid #3366CC;
|
|
border-bottom: 1px solid #3366CC;
|
|
|
|
background-color: #D9E9FF;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.kiwix-toc-item-a:before { content: counters(item, ".") " "; counter-increment: item; margin-right: 10px; padding-left: 10px; }
|
|
|
|
.kiwix-tool-tip {
|
|
all: initial;
|
|
display: none;
|
|
position: fixed;
|
|
|
|
background-color: #ffffe1;
|
|
border: 1px solid black;
|
|
padding: 5px;
|
|
|
|
font-size: 16px;
|
|
line-height: 20px;
|
|
font-family: Arial;
|
|
|
|
z-index: 10000;
|
|
}
|
|
|
|
.kiwix-toc-a {
|
|
all: inherit;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.kiwix-toc-a:hover {
|
|
all: inherit;
|
|
}
|
|
|
|
.kiwix-toc-a:visited {
|
|
all: inherit;
|
|
}
|
|
|
|
#kiwix-toc {
|
|
all: initial;
|
|
display: block;
|
|
position: relative;
|
|
|
|
/* #kiwix-toc-title-div height&padding and #kiwix-toc border-top */
|
|
height: calc(100vh - 51px);
|
|
|
|
width: 100%;
|
|
overflow: auto;
|
|
border-top: 1px solid #ccc;
|
|
}
|
|
|
|
#kiwix-toc::-webkit-scrollbar {
|
|
width: 5px;
|
|
border: 1px solid #ccc;
|
|
outline: none;
|
|
}
|
|
|
|
#kiwix-toc::-webkit-scrollbar-thumb {
|
|
background-color: darkgrey;
|
|
outline: none;
|
|
}
|