Skip to content

Commit a17b4af

Browse files
committed
Removed extra files
1 parent 8c62d6d commit a17b4af

File tree

6 files changed

+230
-221
lines changed

6 files changed

+230
-221
lines changed

book.css

+225-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* --- Import -------------------------------------------------------------- */
2-
@import "sidebar.css";
3-
@import "code.css";
2+
/*@import "sidebar.css";*/
3+
/*@import "code.css";*/
44

55

66
/* --- Structure ----------------------------------------------------------- */
@@ -9,7 +9,7 @@ body {
99
background-color: #f9f9f9;
1010
font-size: 18px;
1111
font-family: "Georgia", serif; //'Source Sans Pro', sans-serif;
12-
font-weight: 400;
12+
font-weight: 40>0;
1313
line-height: 1.35em;
1414
margin: 0;
1515
padding: 0;
@@ -40,6 +40,108 @@ body {
4040
}
4141

4242

43+
44+
45+
46+
47+
48+
49+
50+
51+
52+
53+
54+
55+
.sidebar-title {
56+
margin: 0;
57+
padding: 0;
58+
padding: 1em 1em;
59+
}
60+
61+
.sidebar-title a,
62+
.sidebar-title a:visited {
63+
color: #000;
64+
font-variant: small-caps;
65+
font-weight: 700;
66+
}
67+
68+
.sidebar-title a:hover {
69+
text-decoration: none;
70+
border: 0;
71+
}
72+
73+
.sidebar .small,
74+
.sidebar .subtitle {
75+
display: block;
76+
font-size: 75%;
77+
margin-top: -0.5em;
78+
}
79+
80+
.sidebar .subtitle {
81+
font-variant: small-caps;
82+
font-weight: 500;
83+
}
84+
85+
86+
.sidebar ul {
87+
margin: 0;
88+
padding: 0;
89+
}
90+
91+
.sidebar li ul {
92+
margin-bottom: 0.5em;
93+
}
94+
95+
.sidebar li {
96+
font-weight: 500;
97+
margin: 0;
98+
padding: 0;
99+
list-style-type: none;
100+
}
101+
102+
.sidebar li li {
103+
line-height: 1.25em;
104+
margin: 0;
105+
font-size: 90%;
106+
font-weight: 300;
107+
margin-top: 0;
108+
margin-bottom: 0;
109+
}
110+
111+
.sidebar li p {
112+
margin: 0;
113+
padding: 0;
114+
}
115+
.sidebar li a {
116+
color: #000;
117+
padding-left: 20px;
118+
display: block;
119+
text-decoration: none;
120+
padding-bottom: .25em;
121+
padding-top: .25em;
122+
padding-left: 1em;
123+
}
124+
125+
.sidebar li li a {
126+
padding-left: 20px;
127+
display: block;
128+
text-decoration: none;
129+
padding-bottom: 0em;
130+
padding-top: 0em;
131+
padding-left: 2em;
132+
}
133+
134+
.sidebar li a:hover,
135+
.sidebar li a:active,
136+
.sidebar li a:focus,
137+
.sidebar li a:target {
138+
display: block;
139+
border: 0;
140+
text-decoration: none;
141+
background-color: #f9f9f9;
142+
}
143+
144+
43145
/* --- Title --------------------------------------------------------------- */
44146
h1.title::before {
45147
content: none;
@@ -488,3 +590,123 @@ img {
488590
.figure .legend p {
489591
margin: 0;
490592
}
593+
594+
595+
596+
597+
598+
/* --- Math ---------------------------------------------------------------- */
599+
span.formula,
600+
div.formula {
601+
color: #955;
602+
font-family: 'Source Sans Pro', sans-serif;
603+
font-weight: 300;
604+
}
605+
606+
/* --- Code ---------------------------------------------------------------- */
607+
.proto {
608+
display: inline-block;
609+
background-color: #f5f5ff;
610+
font-size: 90%;
611+
font-weight: normal;
612+
font-family: 'Source Code Pro';
613+
padding: 0px 8px;
614+
margin-top: 2px;
615+
border-radius: 3px;
616+
border: 1px solid #c0c0ff;
617+
}
618+
619+
code {
620+
font-size: 90%;
621+
font-weight: 500;
622+
font-family: 'Source Code Pro';
623+
}
624+
625+
pre.code {
626+
display: block;
627+
font-size: 90%;
628+
font-family: 'Source Code Pro', monospace;
629+
font-weight: 400;
630+
line-height: 125%;
631+
padding-left: 2.0em;
632+
padding-top: 0.5em;
633+
padding-bottom: 0.5em;
634+
overflow-x: auto;
635+
}
636+
pre.code {
637+
background: #fcfcfc;
638+
border-top: .5px solid #ccc;
639+
border-bottom: .5px solid #ccc;
640+
641+
line-height: 1.35em;
642+
font-size: 75%;
643+
border-radius: 5.0px;
644+
border: 0.5px solid #ccc;
645+
}
646+
647+
648+
pre.neutral {
649+
background: none;
650+
border: none;
651+
}
652+
653+
pre.output:before {
654+
display: block;
655+
color: #ccc;
656+
font-weight: bold;
657+
content: "OUTPUT";
658+
float: right;
659+
margin-right: 1em;
660+
}
661+
pre.output {
662+
background-color: #f9f9f9;
663+
}
664+
665+
666+
pre.math:before {
667+
display: block;
668+
color: #ccc;
669+
font-weight: bold;
670+
content: "MATH";
671+
float: right;
672+
margin-right: 1em;
673+
}
674+
pre.math {
675+
background-color: #f9f9f9;
676+
}
677+
678+
679+
pre.glsl:before {
680+
display: block;
681+
color: #ccf;
682+
font-weight: bold;
683+
content: "GLSL";
684+
float: right;
685+
margin-right: 1em;
686+
}
687+
pre.glsl {
688+
background-color: #f9f9ff;
689+
}
690+
691+
pre.python:before {
692+
display: block;
693+
color: #dd9;
694+
font-weight: bold;
695+
content: "PYTHON";
696+
float: right;
697+
margin-right: 1em;
698+
}
699+
pre.python {
700+
background-color: #fffff9;
701+
}
702+
703+
704+
705+
.function, .class {
706+
font-weight: 400;
707+
}
708+
.comment, .string {
709+
color: #459;
710+
}
711+
712+

book.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
66
<meta name="generator" content="Docutils 0.14: http://docutils.sourceforge.net/" />
77
<title>Python &amp; OpenGL for Scientific Visualization</title>
8-
<meta content="An open-source book Python and OpenGL for Scientific Visualizationbased on experience, practice and descriptive examples" name="description" />
8+
<meta content="An open-source book about Python and OpenGL for Scientific Visualization based on experience, practice and descriptive examples" name="description" />
99
<link rel="stylesheet" href="book.css" type="text/css" />
1010
</head>
1111
<body>
@@ -51,7 +51,7 @@ <h2 class="subtitle" id="copyright-c-2017-nicolas-p-rougier-nicolas-rougier-inri
5151
<div class="line"><br /></div>
5252
</div>
5353
<div class="sidebar">
54-
<p class="first sidebar-title"><a class="reference external" href="#title">Python &amp; OpenGL</a>
54+
<p class="first sidebar-title"><a class="reference external" href="#python-opengl-for-scientific-visualization">Python &amp; OpenGL</a>
5555
<span class="subtitle">for Scientific Visualization</span>
5656
<span class="small">by Nicolas P. Rougier, © 2017</span></p>
5757
<div class="contents local last topic" id="contents">

book.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.. meta::
2-
:description: An open-source book Python and OpenGL for Scientific
3-
Visualizationbased on experience, practice and
2+
:description: An open-source book about Python and OpenGL for Scientific
3+
Visualization based on experience, practice and
44
descriptive examples
55
.. |date| date:: %B %Y
66
.. default-role:: code
@@ -61,7 +61,7 @@
6161
|
6262
|
6363
64-
.. sidebar:: `Python & OpenGL <#title>`_
64+
.. sidebar:: `Python & OpenGL <#python-opengl-for-scientific-visualization>`_
6565
:subtitle:`for Scientific Visualization`
6666
:small:`by Nicolas P. Rougier, © 2017`
6767

0 commit comments

Comments
 (0)