org: improve TOC display and specify viewport
* doc/org/spot.css: Improve TOC. * doc/org/.dir-locals.el.in, doc/org/init.el.in: Specify viewport.
This commit is contained in:
parent
a184507848
commit
41a7b906d8
3 changed files with 25 additions and 21 deletions
|
|
@ -33,11 +33,13 @@
|
|||
|
||||
/* TOC inspired by http://jashkenas.github.com/coffee-script */
|
||||
#table-of-contents {
|
||||
font-size: 10pt;
|
||||
font-size: 80%;
|
||||
max-width: 30em;
|
||||
position: fixed;
|
||||
right: 0em;
|
||||
top: 0em;
|
||||
padding-right: 8pt;
|
||||
padding-left: 0.5em;
|
||||
padding-right: 0.5em;
|
||||
-webkit-box-shadow: 0 0 1em #777777;
|
||||
-moz-box-shadow: 0 0 1em #777777;
|
||||
-webkit-border-bottom-left-radius: 5px;
|
||||
|
|
@ -46,21 +48,23 @@
|
|||
/* ensure doesn't flow off the screen when expanded */
|
||||
max-height: 80%;
|
||||
overflow: auto; }
|
||||
#table-of-contents h2 {
|
||||
font-size: 10pt;
|
||||
max-width: 8em;
|
||||
font-weight: normal;
|
||||
padding-left: 0.5em;
|
||||
padding-left: 0.5em;
|
||||
padding-top: 0.05em;
|
||||
padding-bottom: 0.05em; }
|
||||
#table-of-contents #text-table-of-contents {
|
||||
display: none;
|
||||
text-align: left; }
|
||||
#table-of-contents:hover #text-table-of-contents {
|
||||
display: block;
|
||||
padding: 0.5em;
|
||||
margin-top: -1.5em; }
|
||||
#table-of-contents ul {
|
||||
padding-left: 1em;
|
||||
}
|
||||
#table-of-contents h2 {
|
||||
font-size: 100%;
|
||||
font-weight: normal;
|
||||
padding-left: 0.5em;
|
||||
padding-right: 0.5em;
|
||||
padding-top: 0.05em;
|
||||
padding-bottom: 0.05em; }
|
||||
#table-of-contents #text-table-of-contents {
|
||||
display: none;
|
||||
text-align: left; }
|
||||
#table-of-contents:hover #text-table-of-contents {
|
||||
display: block;
|
||||
padding: 0.5em;
|
||||
margin-top: -1.5em; }
|
||||
|
||||
.rss_box {}
|
||||
.rss_title, rss_title a {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue