From 8ce628fd36223287667f585bdd299ddf9990cb53 Mon Sep 17 00:00:00 2001 From: Thibaut Date: Sun, 19 Jan 2014 19:05:26 -0500 Subject: [PATCH] Add links to Gittip --- assets/images/gittip-bw.png | Bin 0 -> 900 bytes assets/images/gittip-bw@2x.png | Bin 0 -> 1591 bytes .../templates/pages/root_tmpl.coffee.erb | 3 ++ assets/stylesheets/components/_content.scss | 34 ++++++++++++++---- assets/stylesheets/components/_mobile.scss | 8 ++++- views/manifest.erb | 2 ++ 6 files changed, 40 insertions(+), 7 deletions(-) create mode 100644 assets/images/gittip-bw.png create mode 100644 assets/images/gittip-bw@2x.png diff --git a/assets/images/gittip-bw.png b/assets/images/gittip-bw.png new file mode 100644 index 0000000000000000000000000000000000000000..e7158849266714aa4128d7cf081c69ee721e7aa8 GIT binary patch literal 900 zcmV-~1AF|5P)G+L9?#v0H?1#u-p zE28q^q7)L)Wl?b_2rk5BLED;0ly1~&2%;4d^LOUXeSLX|UB;f@VTSW&9`k3;nVCyl zt+r2$*G|_?xprTTwjbw#O1EstRfT|Dm5oYwg|?TniwESAhJ+}QaM4mc5Yu*2G}XOg zSwSFj2uED>3Szmsw@TYb(Zmf6ff^1W$FL*8Ll}X8M%-xEUfE$E(HG@8t1Sggp3Imj zb4+zBQn#B)J8h=yv^p|)+aSe5#n@CbBV$RD^dakFb)<~ab(jTpt0G0_-E<=Zuga<<)ooW3 zWJq9ssqC(hc{SZk;ZbiEbI&H58SE8%z%Q+y$id)^I{3W0%a1!3;|c;p_!QnYu>o&i zVK}5}Tu>m}$={`andd~0?&pSiVXSkE#%TX7_Jb5EqD~^!74_;@>d?nUj~`Wcs{MAE zFYCVQPL}~Ump@{NgVaIJ)I<(57xkLC9OATJ!Fla%FQ$rFtOKPW;Pq0BJL(irM{<~x zhKyU3IvpKU7{8ao3>XT?XLG0tMNRlyUQu1wq6LQT)8z4D_$elxWr#lWJ5Ny%%pS|4go`2ezik5kul@c)Nr&oU67psmUDXHA8k+GRGfh5Vi1o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A-_4v^h3SQTI$7~wis9mlvCk*P{`q9= pgWK3A+Uq^WKI-Q?ium6^{slTCK%KcS)1CkT002ovPDHLkV1ggG{$cDevDocs Sponsored by MaxCDN + Donate on Gittip """ <% if App.development? %> @@ -21,6 +22,7 @@ app.templates.intro = """
  • DevDocs is licensed under the terms of the Mozilla Public License v2.0. For more information, see the COPYRIGHT and LICENSE files. +
  • If you like the app, please consider funding the project on Gittip. Thanks! Sponsored by

    That's all. Happy coding! @@ -43,6 +45,7 @@ app.templates.intro = """

  • For the latest news, subscribe to the newsletter or follow @DevDocs
  • DevDocs is free and open source +
  • If you like the app, please consider funding the project on Gittip. Thanks! Sponsored by

    That's all. Happy coding! diff --git a/assets/stylesheets/components/_content.scss b/assets/stylesheets/components/_content.scss index 9ad0b586..85bfb9c1 100644 --- a/assets/stylesheets/components/_content.scss +++ b/assets/stylesheets/components/_content.scss @@ -53,21 +53,31 @@ @extend ._booting:before, %user-select-none; } -._splash-maxcdn { +%splash-promo { position: absolute; bottom: 1.25rem; - left: 50%; - width: 16rem; - margin-left: -8rem; line-height: 1rem; color: #bbb; - text-align: center; &:hover { color: $linkColor; } +} + +._splash-maxcdn { + left: .75rem; + @extend %splash-promo; + > ._maxcdn-logo-bw { opacity: .2; } &:hover > ._maxcdn-logo-bw { opacity: .5; } } +._splash-gittip { + right: 1.25rem; + @extend %splash-promo; + + > ._gittip-logo-bw { opacity: .35; } + &:hover > ._gittip-logo-bw { opacity: .65; } +} + // // Intro // @@ -298,7 +308,7 @@ display: inline-block; vertical-align: top; width: 6.25rem; - margin-left: .375rem; + margin-left: .5rem; overflow: hidden; text-indent: -20rem; background-position: center center; @@ -323,3 +333,15 @@ background-image: image-url('maxcdn-bw@2x.png'); } } + +._gittip-logo-bw { + width: 4.375rem; + margin-left: .375rem; + background-size: 4.375rem 1rem; + background-image: image-url('gittip-bw.png'); + @extend %maxcdn-logo; + + @media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) { + background-image: image-url('gittip-bw@2x.png'); + } +} diff --git a/assets/stylesheets/components/_mobile.scss b/assets/stylesheets/components/_mobile.scss index 792c8973..2fee76ba 100644 --- a/assets/stylesheets/components/_mobile.scss +++ b/assets/stylesheets/components/_mobile.scss @@ -131,7 +131,13 @@ // Splash - ._splash-title { margin-top: -.5em; } + ._splash-maxcdn, ._splash-gittip { + left: 0; + right: 0; + text-align: center; + } + + ._splash-gittip { margin-bottom: 2.25rem; } } // diff --git a/views/manifest.erb b/views/manifest.erb index 8d9dbe6d..ac15238f 100644 --- a/views/manifest.erb +++ b/views/manifest.erb @@ -10,6 +10,8 @@ CACHE: <%= image_path 'maxcdn@2x.png' %> <%= image_path 'maxcdn-bw.png' %> <%= image_path 'maxcdn-bw@2x.png' %> +<%= image_path 'gittip-bw.png' %> +<%= image_path 'gittip-bw@2x.png' %> <%= asset_path 'docs.js' %> <%= doc_index_urls.join "\n" %>