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
|
|
@ -34,9 +34,9 @@
|
||||||
:recursive t
|
:recursive t
|
||||||
:publishing-function org-publish-org-to-html
|
:publishing-function org-publish-org-to-html
|
||||||
; Org 8
|
; Org 8
|
||||||
:html-head "<link rel=\"stylesheet\" type=\"text/css\" href=\"spot.css\" />"
|
:html-head "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<link rel=\"stylesheet\" type=\"text/css\" href=\"syntax.css\" />\n<link rel=\"stylesheet\" type=\"text/css\" href=\"spot.css\" />"
|
||||||
; Org 7
|
; Org 7
|
||||||
:style "<link rel=\"stylesheet\" type=\"text/css\" href=\"spot.css\" />"
|
:style "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<link rel=\"stylesheet\" type=\"text/css\" href=\"syntax.css\" />\n<link rel=\"stylesheet\" type=\"text/css\" href=\"spot.css\" />"
|
||||||
:auto-preamble t)
|
:auto-preamble t)
|
||||||
("spot-static"
|
("spot-static"
|
||||||
:base-directory "."
|
:base-directory "."
|
||||||
|
|
|
||||||
|
|
@ -52,9 +52,9 @@
|
||||||
,(if (require 'org-publish nil t) 'org-publish-org-to-html ; Org 7
|
,(if (require 'org-publish nil t) 'org-publish-org-to-html ; Org 7
|
||||||
'org-html-publish-to-html) ; Org 8
|
'org-html-publish-to-html) ; Org 8
|
||||||
; Org 8
|
; Org 8
|
||||||
:html-head "<link rel=\"stylesheet\" type=\"text/css\" href=\"syntax.css\" />\n<link rel=\"stylesheet\" type=\"text/css\" href=\"spot.css\" />"
|
:html-head "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<link rel=\"stylesheet\" type=\"text/css\" href=\"syntax.css\" />\n<link rel=\"stylesheet\" type=\"text/css\" href=\"spot.css\" />"
|
||||||
; Org 7
|
; Org 7
|
||||||
:style "\n<link rel=\"stylesheet\" type=\"text/css\" href=\"syntax.css\" />\n<link rel=\"stylesheet\" type=\"text/css\" href=\"spot.css\" />"
|
:style "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<link rel=\"stylesheet\" type=\"text/css\" href=\"syntax.css\" />\n<link rel=\"stylesheet\" type=\"text/css\" href=\"spot.css\" />"
|
||||||
:auto-preamble t)
|
:auto-preamble t)
|
||||||
("spot-static"
|
("spot-static"
|
||||||
:base-directory "@abs_top_srcdir@/doc/org/"
|
:base-directory "@abs_top_srcdir@/doc/org/"
|
||||||
|
|
|
||||||
|
|
@ -33,11 +33,13 @@
|
||||||
|
|
||||||
/* TOC inspired by http://jashkenas.github.com/coffee-script */
|
/* TOC inspired by http://jashkenas.github.com/coffee-script */
|
||||||
#table-of-contents {
|
#table-of-contents {
|
||||||
font-size: 10pt;
|
font-size: 80%;
|
||||||
|
max-width: 30em;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
right: 0em;
|
right: 0em;
|
||||||
top: 0em;
|
top: 0em;
|
||||||
padding-right: 8pt;
|
padding-left: 0.5em;
|
||||||
|
padding-right: 0.5em;
|
||||||
-webkit-box-shadow: 0 0 1em #777777;
|
-webkit-box-shadow: 0 0 1em #777777;
|
||||||
-moz-box-shadow: 0 0 1em #777777;
|
-moz-box-shadow: 0 0 1em #777777;
|
||||||
-webkit-border-bottom-left-radius: 5px;
|
-webkit-border-bottom-left-radius: 5px;
|
||||||
|
|
@ -46,12 +48,14 @@
|
||||||
/* ensure doesn't flow off the screen when expanded */
|
/* ensure doesn't flow off the screen when expanded */
|
||||||
max-height: 80%;
|
max-height: 80%;
|
||||||
overflow: auto; }
|
overflow: auto; }
|
||||||
|
#table-of-contents ul {
|
||||||
|
padding-left: 1em;
|
||||||
|
}
|
||||||
#table-of-contents h2 {
|
#table-of-contents h2 {
|
||||||
font-size: 10pt;
|
font-size: 100%;
|
||||||
max-width: 8em;
|
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
padding-left: 0.5em;
|
padding-left: 0.5em;
|
||||||
padding-left: 0.5em;
|
padding-right: 0.5em;
|
||||||
padding-top: 0.05em;
|
padding-top: 0.05em;
|
||||||
padding-bottom: 0.05em; }
|
padding-bottom: 0.05em; }
|
||||||
#table-of-contents #text-table-of-contents {
|
#table-of-contents #text-table-of-contents {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue