History

Add links to Gittip

Thibaut committed 12 years ago

Commit 8ce628f1 parent a41f02e6 files · +38 −5Browse files

Unified · Split

6 files
  1. assets/images/gittip-bw.png +0 −0
  2. assets/images/gittip-bw@2x.png +0 −0
  3. assets/javascripts/templates/pages/root_tmpl.coffee.erb +3 −0
  4. assets/stylesheets/components/_content.scss +28 −6
  5. assets/stylesheets/components/_mobile.scss +7 −1
  6. views/manifest.erb +2 −0
assets/images/gittip-bw.png+0−0

Binary file not shown.

assets/images/gittip-bw@2x.png+0−0

Binary file not shown.

assets/javascripts/templates/pages/root_tmpl.coffee.erb+3−0
@@ -1,6 +1,7 @@
11 app.templates.splash = """
22 <div class="_splash-title">DevDocs</div>
33 <a href="http://www.maxcdn.com" class="_splash-maxcdn">Sponsored by<span class="_maxcdn-logo-bw"> MaxCDN</span></a>
4+ <a href="https://www.gittip.com/Thibaut/" class="_splash-gittip">Donate on<span class="_gittip-logo-bw"> Gittip</span></a>
45 """
56
67 <% if App.development? %>
@@ -21,6 +22,7 @@ app.templates.intro = """ · 14 unmodified lines
2122 <li>DevDocs is licensed under the terms of the Mozilla Public License v2.0. For more information,
2223 see the <a href="https://github.com/Thibaut/devdocs/blob/master/COPYRIGHT">COPYRIGHT</a> and
2324 <a href="https://github.com/Thibaut/devdocs/blob/master/LICENSE">LICENSE</a> files.
25+ <li>If you like the app, please consider funding the project on <a href="https://www.gittip.com/Thibaut/">Gittip</a>. Thanks!
2426 </ol>
2527 <a href="http://www.maxcdn.com" class="_intro-maxcdn">Sponsored by<span class="_maxcdn-logo"> MaxCDN</span></a>
2628 <p>That's all. Happy coding!
@@ -43,6 +45,7 @@ app.templates.intro = """ · 16 unmodified lines
4345 <li>For the latest news, subscribe to the <a href="http://eepurl.com/HnLUz">newsletter</a> or follow <a href="https://twitter.com/DevDocs">@DevDocs</a>
4446 <li>DevDocs is free and <a href="https://github.com/Thibaut/devdocs">open source</a>
4547 <iframe class="_github-btn" src="http://ghbtns.com/github-btn.html?user=Thibaut&repo=devdocs&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="100" height="20"></iframe>
48+ <li>If you like the app, please consider funding the project on <a href="https://www.gittip.com/Thibaut/">Gittip</a>. Thanks!
4649 </ol>
4750 <a href="http://www.maxcdn.com" class="_intro-maxcdn">Sponsored by<span class="_maxcdn-logo"> MaxCDN</span></a>
4851 <p>That's all. Happy coding!
assets/stylesheets/components/_content.scss+28−6
@@ -53,21 +53,31 @@ · 52 unmodified lines
5353 @extend ._booting:before, %user-select-none;
5454 }
5555
56−._splash-maxcdn {
56+%splash-promo {
5757 position: absolute;
5858 bottom: 1.25rem;
59− left: 50%;
60− width: 16rem;
61− margin-left: -8rem;
6259 line-height: 1rem;
6360 color: #bbb;
64− text-align: center;
6561
6662 &:hover { color: $linkColor; }
63+}
64+
65+._splash-maxcdn {
66+ left: .75rem;
67+ @extend %splash-promo;
68+
6769 > ._maxcdn-logo-bw { opacity: .2; }
6870 &:hover > ._maxcdn-logo-bw { opacity: .5; }
6971 }
7072
73+._splash-gittip {
74+ right: 1.25rem;
75+ @extend %splash-promo;
76+
77+ > ._gittip-logo-bw { opacity: .35; }
78+ &:hover > ._gittip-logo-bw { opacity: .65; }
79+}
80+
7181 //
7282 // Intro
7383 //
@@ -298,7 +308,7 @@ · 224 unmodified lines
298308 display: inline-block;
299309 vertical-align: top;
300310 width: 6.25rem;
301− margin-left: .375rem;
311+ margin-left: .5rem;
302312 overflow: hidden;
303313 text-indent: -20rem;
304314 background-position: center center;
@@ -323,3 +333,15 @@ · 18 unmodified lines
323333 background-image: image-url('maxcdn-bw@2x.png');
324334 }
325335 }
336+
337+._gittip-logo-bw {
338+ width: 4.375rem;
339+ margin-left: .375rem;
340+ background-size: 4.375rem 1rem;
341+ background-image: image-url('gittip-bw.png');
342+ @extend %maxcdn-logo;
343+
344+ @media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) {
345+ background-image: image-url('gittip-bw@2x.png');
346+ }
347+}
assets/stylesheets/components/_mobile.scss+7−1
@@ -131,7 +131,13 @@ · 130 unmodified lines
131131
132132 // Splash
133133
134− ._splash-title { margin-top: -.5em; }
134+ ._splash-maxcdn, ._splash-gittip {
135+ left: 0;
136+ right: 0;
137+ text-align: center;
138+ }
139+
140+ ._splash-gittip { margin-bottom: 2.25rem; }
135141 }
136142
137143 //
views/manifest.erb+2−0
@@ -10,6 +10,8 @@ CACHE: · 9 unmodified lines
1010 <%= image_path 'maxcdn@2x.png' %>
1111 <%= image_path 'maxcdn-bw.png' %>
1212 <%= image_path 'maxcdn-bw@2x.png' %>
13+<%= image_path 'gittip-bw.png' %>
14+<%= image_path 'gittip-bw@2x.png' %>
1315 <%= asset_path 'docs.js' %>
1416 <%= doc_index_urls.join "\n" %>
1517