File tree 4 files changed +37
-2
lines changed
4 files changed +37
-2
lines changed Original file line number Diff line number Diff line change 121
121
# further. For a list of options available for each theme, see the
122
122
# documentation.
123
123
html_theme_options = {'oldversion' : False , 'collapsiblesidebar' : True ,
124
- 'google_analytics' : True }
124
+ 'google_analytics' : True , 'surveybanner' : True }
125
125
126
126
# Add any paths that contain custom themes here, relative to this directory.
127
127
html_theme_path = ['themes' ]
Original file line number Diff line number Diff line change 51
51
Latest stable version</ a > </ p > </ p >
52
52
</ div >
53
53
{%- endif %}
54
+ {%- if theme_surveybanner == true %}
55
+ < div class ="survey-wrapper ">
56
+ < p > Please help us to improve < b > scikit-learn</ b >
57
+ by completing this quick survey.
58
+ — < a href ="https://docs.google.com/spreadsheet/viewform?formkey=dFdyeGNhMzlCRWZUdldpMEZlZ1B1YkE6MQ#gid=0 ">
59
+ Click here..</ a > </ p > </ p >
60
+ </ div >
61
+ {%- endif %}
54
62
55
63
< div class ="header-wrapper ">
56
64
< div class ="header ">
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ div.header-wrapper {
27
27
min-height: 50px;
28
28
margin-left: auto;
29
29
margin-right: auto;
30
+ margin-top: 0px;
30
31
border-radius: 0px 0px 15px 15px;
31
32
-moz-border-radius: 0px 0px 15px 15px;
32
33
}
@@ -562,6 +563,31 @@ div.warning-wrapper p {
562
563
margin: 0;
563
564
}
564
565
566
+ /* -------- banner for advertising the survey ------------------------------*/
567
+
568
+ div.survey-wrapper {
569
+ background-color: #FF9C34;
570
+ text-align: center;
571
+ position: fixed;
572
+ top: 0px;
573
+ left: 0px;
574
+ width: 100%;
575
+ padding-top: 1px;
576
+ height: 21px;
577
+ box-shadow: 4px -4px 10px 3px #8AA, inset 4px 0px 13px 3px #FF9E6D;
578
+ }
579
+ div.survey-wrapper p {
580
+ margin: 0;
581
+ white-space: nowrap;
582
+ }
583
+
584
+ {% if theme_surveybanner == true %}
585
+ /* for survey banner */
586
+ div.header-wrapper {
587
+ margin-top: 21px;
588
+ }
589
+ {% endif %}
590
+
565
591
/* ------- Fix maximum size of thumbnails in example gallery -------------- */
566
592
div#examples.section .figure img {
567
593
max-width: 160px;
Original file line number Diff line number Diff line change @@ -6,4 +6,5 @@ pygments_style = tango
6
6
[options]
7
7
oldversion = False
8
8
collapsiblesidebar = True
9
- google_analytics = True
9
+ google_analytics = True
10
+ surveybanner = True
You can’t perform that action at this time.
0 commit comments