File tree Expand file tree Collapse file tree 4 files changed +29
-16
lines changed Expand file tree Collapse file tree 4 files changed +29
-16
lines changed Original file line number Diff line number Diff line change 1
1
.idea
2
2
.Rhistory
3
+ .vscode
Original file line number Diff line number Diff line change 3
3
4
4
< head >
5
5
< meta charset ="utf-8 ">
6
+ < meta name ="viewport " content ="width=device-width, initial-scale=1, minimum-scale=1 " />
6
7
< title > Comprehensive Python Cheatsheet</ title >
7
8
< link rel ="icon " href ="web/favicon.png ">
8
- < script src ="https://code.jquery.com/jquery-3.3.1.min.js "> </ script >
9
- < script src ="https://d3js.org/d3.v3.min.js " charset ="utf-8 "> </ script >
10
- < script src ="web/showdown.min.js "> </ script >
11
9
< link rel ="stylesheet " href ="web/default.min.css ">
12
- < script src ="web/highlight.min.js "> </ script >
13
- < script src ="web/script.js "> </ script >
14
10
< meta name ="twitter:card " content ="summary ">
15
11
< meta name ="twitter:title " content ="Comprehensive Python Cheatsheet ">
16
12
< meta name ="twitter:description " content ="Exhaustive, simple, beautiful and concise. A truly pythonic cheat sheet about Python programming language. ">
163
159
< br >
164
160
< br >
165
161
< br >
162
+ < script src ="https://code.jquery.com/jquery-3.3.1.min.js "> </ script >
163
+ < script src ="https://d3js.org/d3.v3.min.js " charset ="utf-8 "> </ script >
164
+ < script src ="web/showdown.min.js "> </ script >
165
+ < script src ="web/highlight.min.js "> </ script >
166
+ < script src ="web/script.js "> </ script >
166
167
</ body >
167
- </ html >
168
+ </ html >
Original file line number Diff line number Diff line change @@ -26,9 +26,10 @@ function removeOrigToc() {
26
26
27
27
function insertLinks ( ) {
28
28
$ ( 'h2' ) . each ( function ( ) {
29
- aId = $ ( this ) . attr ( 'id' ) ;
30
- $ ( this ) . append ( '<a href="#' + aId + '" name="' + aId + '">#</a>' ) ;
31
- } ) ;
29
+ aId = $ ( this ) . attr ( 'id' )
30
+ text = $ ( this ) . text ( )
31
+ $ ( this ) . html ( '<a href="#' + aId + '" name="' + aId + '">#</a>' + text )
32
+ } )
32
33
}
33
34
34
35
function addToc ( ) {
Original file line number Diff line number Diff line change 1
1
2
2
/* Copyright 2013 Michael Bostock. All rights reserved. Do not copy. */
3
3
4
- @import url (//fonts.googleapis.com/css?family=PT+Serif|PT+Serif:b|PT+Serif:i|PT+Sans|PT+Sans:b);
4
+ @import url (https: //fonts.googleapis.com/css?family=PT+Serif|PT+Serif:b|PT+Serif:i|PT+Sans|PT+Sans:b);
5
5
6
- html {
7
- min-width : 1040px ;
8
- }
9
6
10
7
.ocks-org body {
11
8
background : # fcfcfa ;
@@ -56,9 +53,7 @@ h1, h2 {
56
53
h2 a [name ],
57
54
h2 a [id ] {
58
55
color : # ccc ;
59
- right : 100% ;
60
56
padding : 0 .3em ;
61
- position : absolute;
62
57
}
63
58
64
59
header ,
@@ -143,7 +138,7 @@ textarea {
143
138
body > pre {
144
139
border-left : solid 2px # ccc ;
145
140
padding-left : 18px ;
146
- margin : 2em 0 2em -20 px ;
141
+ margin : 2em 0 2em 0 ;
147
142
}
148
143
149
144
.html .value ,
@@ -219,3 +214,18 @@ blockquote q:before,
219
214
blockquote q : after {
220
215
content : "" ;
221
216
}
217
+
218
+ @media only screen
219
+ and (max-device-width : 1024px ){
220
+ .ocks-org body {
221
+ margin : 1rem ;
222
+ }
223
+
224
+ h1 {
225
+ font-size : 3rem ;
226
+ }
227
+ p , h1 , img {
228
+ max-width : calc (100vw - 2em );
229
+ min-width : calc (100vw - 2em );
230
+ }
231
+ }
You can’t perform that action at this time.
0 commit comments