ad.tmpl 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. {{if .Owner.ShowSponsors}}
  2. <script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?serve=CK7D52J7&placement=gitotein" id="_carbonads_js"></script>
  3. <style>
  4. #carbonads {
  5. display: block;
  6. overflow: hidden;
  7. margin: 0 auto;
  8. padding: 1em;
  9. max-width: 380px;
  10. border: solid 1px #dcdcdc;
  11. border-radius: 3px;
  12. font-size: 13px;
  13. line-height: 1.5;
  14. margin-top: 1.5em;
  15. }
  16. #carbonads a {
  17. color: #575757;
  18. text-decoration: none;
  19. }
  20. #carbonads a:hover {
  21. color: #000000;
  22. text-decoration: none;
  23. }
  24. #carbonads span {
  25. position: relative;
  26. display: block;
  27. overflow: hidden;
  28. }
  29. .carbon-img {
  30. float: left;
  31. margin-right: 1em;
  32. }
  33. .carbon-img img {
  34. display: block;
  35. }
  36. .carbon-text {
  37. display: block;
  38. float: left;
  39. max-width: calc(100% - 130px - 1em);
  40. text-align: left;
  41. color: #fff;
  42. }
  43. .carbon-poweredby {
  44. position: absolute;
  45. bottom: 0;
  46. left: 143px;
  47. display: block;
  48. color: hsl(0, 0%, 66%) !important;
  49. text-transform: uppercase;
  50. letter-spacing: 1px;
  51. font-size: 9px;
  52. line-height: 1;
  53. }
  54. @media only screen and (min-width: 320px) and (max-width: 479px) {
  55. #carbonads {
  56. max-width: 100%;
  57. border: 0;
  58. border-top: solid 1px hsl(263, 32%, 56%);
  59. border-radius: 0;
  60. padding-top: 2em;
  61. }
  62. }
  63. /* Rules to overwrite the position of Carbon Ads on docs pages */
  64. .bs-docs-header #carbonads {
  65. position: absolute;
  66. top: 0;
  67. right: 15px;
  68. }
  69. @media only screen and (min-width: 480px) and (max-width: 980px) {
  70. .bs-docs-header #carbonads {
  71. position: relative;
  72. right: 0;
  73. margin: 4em auto 0;
  74. }
  75. }
  76. @media only screen and (min-width: 320px) and (max-width: 479px) {
  77. .bs-docs-header #carbonads {
  78. position: relative;
  79. right: 0;
  80. margin: 2em 0 0;
  81. }
  82. }
  83. </style>
  84. {{end}}