Skip to content

Commit 3aa5f5a

Browse files
nlhkabuewdurbin
authored andcommitted
Add donate button to header (#1358)
1 parent 7410b43 commit 3aa5f5a

File tree

6 files changed

+217
-122
lines changed

6 files changed

+217
-122
lines changed

static/sass/_layout.scss

+26-3
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@
136136
vertical-align: baseline;
137137
width: auto;
138138
}
139+
140+
.search-field:focus {
141+
width: 8em;
142+
}
139143
}
140144

141145

@@ -171,6 +175,17 @@
171175

172176
.site-headline { float: left; }
173177

178+
.options-bar-container {
179+
float: right;
180+
}
181+
182+
.donate-button {
183+
display: inline;
184+
margin: 0 0.5em 0 0;
185+
position: relative;
186+
top: 19px;
187+
}
188+
174189
.options-bar {
175190
float: right;
176191
width: auto;
@@ -189,7 +204,7 @@
189204
}
190205

191206
.search-field:focus {
192-
width: 8em;
207+
width: 6em;
193208
margin-right: .5em;
194209
}
195210

@@ -485,6 +500,10 @@
485500
}
486501
}
487502

503+
.donate-button {
504+
top: 33px;
505+
}
506+
488507
.options-bar { margin: rhythm( .5 ) 0; }
489508

490509
.search-field {
@@ -493,7 +512,7 @@
493512
margin-right: .5em;
494513
width: 11em;
495514

496-
&:focus { width: 15em; }
515+
&:focus { width: 13em; }
497516
}
498517

499518
.home .header-banner { margin: 0 2em 0 1em; }
@@ -889,6 +908,10 @@
889908
}
890909
}
891910

911+
.donate-button {
912+
top: 38px;
913+
}
914+
892915
.options-bar { margin: rhythm( .75 ) 0; }
893916

894917
/* Supernavs in main-navigation */
@@ -907,7 +930,7 @@
907930
</li>*/
908931
.with-supernav {
909932

910-
.subnav {
933+
.subnav {
911934
display: none;
912935
border-right: 1px solid rgba( #666, .3 );
913936
}

static/sass/mq.css

+38-20
Original file line numberDiff line numberDiff line change
@@ -363,18 +363,18 @@ html[xmlns] .slides { display: block; }
363363
/* Base styles for a navigation with dropdowns mixin */
364364
/* A two-tier, stacked version of the main navigation -- DESKTOP ONLY */
365365
/* A single row of main navigation -- DESKTOP ONLY */
366-
/*
367-
* ! ===== START Media Queries =====
366+
/*
367+
* ! ===== START Media Queries =====
368368
*
369369
* Define media queries here as mix-ins. Deliver the ones we want inside of complete mqs in mq.scss
370-
* Alternately, deliver the rule-sets that we want to IE7 and 8 to render
371-
* by calling the mixin WITHOUT surrounding it in a media query for no-mq.scss.
370+
* Alternately, deliver the rule-sets that we want to IE7 and 8 to render
371+
* by calling the mixin WITHOUT surrounding it in a media query for no-mq.scss.
372+
*
373+
* Column structure =
372374
*
373-
* Column structure =
374-
*
375375
* Susy mix-ins with examples:
376-
* @include span-columns(3 omega, 12);
377-
* @include omega;
376+
* @include span-columns(3 omega, 12);
377+
* @include omega;
378378
* @include prefix(3); 3 columns of padding before
379379
* @include suffix(3); 3 columns of padding after
380380
* @include pad(3,3); 3 columns of padding on each side
@@ -501,7 +501,10 @@ html[xmlns] .slides { display: block; }
501501
a.button {
502502
display: inline-block;
503503
vertical-align: baseline;
504-
width: auto; } }
504+
width: auto; }
505+
506+
.search-field:focus {
507+
width: 8em; } }
505508
/* - - - Larger than 640px, less that 940px - - - */
506509
@media (min-width: 39.9375em) and (max-width: 58.75em) {
507510
body:after {
@@ -766,6 +769,15 @@ html[xmlns] .slides { display: block; }
766769
.site-headline {
767770
float: left; }
768771

772+
.options-bar-container {
773+
float: right; }
774+
775+
.donate-button {
776+
display: inline;
777+
margin: 0 0.5em 0 0;
778+
position: relative;
779+
top: 19px; }
780+
769781
.options-bar {
770782
float: right;
771783
width: auto; }
@@ -782,7 +794,7 @@ html[xmlns] .slides { display: block; }
782794
transition: width 0.3s ease-in-out; }
783795

784796
.search-field:focus {
785-
width: 8em;
797+
width: 6em;
786798
margin-right: .5em; }
787799

788800
/*modernizr*/
@@ -825,9 +837,9 @@ html[xmlns] .slides { display: block; }
825837
.with-supernav .super-navigation {
826838
display: none; }
827839

828-
/*
829-
* This is super cool. Uses two arrays to spit out a bunch of repetitive rulesets.
830-
* Associative array example borrowed from https://github.com/nex3/sass/issues/132#issuecomment-4335097
840+
/*
841+
* This is super cool. Uses two arrays to spit out a bunch of repetitive rulesets.
842+
* Associative array example borrowed from https://github.com/nex3/sass/issues/132#issuecomment-4335097
831843
*/
832844
.python-navigation {
833845
background-color: #2d618c;
@@ -1543,6 +1555,9 @@ html[xmlns] .slides { display: block; }
15431555
width: 293.92px;
15441556
height: 72.16px; }
15451557

1558+
.donate-button {
1559+
top: 33px; }
1560+
15461561
.options-bar {
15471562
margin: 0.875em 0; }
15481563

@@ -1552,7 +1567,7 @@ html[xmlns] .slides { display: block; }
15521567
margin-right: .5em;
15531568
width: 11em; }
15541569
.search-field:focus {
1555-
width: 15em; }
1570+
width: 13em; }
15561571

15571572
.home .header-banner {
15581573
margin: 0 2em 0 1em; }
@@ -1653,24 +1668,24 @@ html[xmlns] .slides { display: block; }
16531668
padding-top: 1em; }
16541669

16551670
.about-banner {
1656-
background: 120% 0 no-repeat url('../img/landing-about.png?1414305901') transparent;
1671+
background: 120% 0 no-repeat url('../img/landing-about.png?1543670309') transparent;
16571672
min-height: 345px;
16581673
padding-bottom: 3.5em;
16591674
margin-bottom: -2.5em; }
16601675

16611676
.download-for-current-os {
1662-
background: 130% 0 no-repeat url('../img/landing-downloads.png?1414305901') transparent;
1677+
background: 130% 0 no-repeat url('../img/landing-downloads.png?1543670309') transparent;
16631678
min-height: 345px;
16641679
padding-bottom: 4em;
16651680
margin-bottom: -3em; }
16661681

16671682
.documentation-banner {
1668-
background: 130% 0 no-repeat url('../img/landing-docs.png?1414305901') transparent;
1683+
background: 130% 0 no-repeat url('../img/landing-docs.png?1543670309') transparent;
16691684
padding-bottom: 1em; }
16701685

16711686
.community-banner {
16721687
text-align: left;
1673-
background: 110% 0 no-repeat url('../img/landing-community.png?1418509184') transparent;
1688+
background: 110% 0 no-repeat url('../img/landing-community.png?1543670309') transparent;
16741689
min-height: 345px;
16751690
padding-bottom: 2em;
16761691
margin-bottom: -1.25em; }
@@ -1774,7 +1789,7 @@ html[xmlns] .slides { display: block; }
17741789
right: 1em;
17751790
width: 210px;
17761791
height: 210px;
1777-
background: top left no-repeat url('../img/python-logo-large.png?1414305901') transparent; }
1792+
background: top left no-repeat url('../img/python-logo-large.png?1543670309') transparent; }
17781793
.psf-widget .widget-title, .psf-widget p, .python-needs-you-widget .widget-title, .python-needs-you-widget p {
17791794
margin-right: 34.04255%; }
17801795

@@ -2097,6 +2112,9 @@ html[xmlns] .slides { display: block; }
20972112
width: 18em;
20982113
margin-right: .5em; }
20992114

2115+
.donate-button {
2116+
top: 38px; }
2117+
21002118
.options-bar {
21012119
margin: 1.3125em 0; }
21022120

@@ -2109,7 +2127,7 @@ html[xmlns] .slides { display: block; }
21092127
<h2>Download for Mac OSX</h2>
21102128
<p>Not the system you are looking for? Python can be used on 21 different operating systems and environments. <a href="#">View the full list</a>.
21112129
</p><p>
2112-
<a class="button">Python 3.3.0</a>
2130+
<a class="button">Python 3.3.0</a>
21132131
<a class="button">Python 2.7.3</a>
21142132
</p>
21152133
</li></ul>

0 commit comments

Comments
 (0)