repobanner.template 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <style>
  2. #forkongithub>div {
  3. background: #000;
  4. color: #fff;
  5. font-family: arial,sans-serif;
  6. text-align: center;
  7. font-weight: bold;
  8. padding: 5px 40px;
  9. font-size: 0.9rem;
  10. line-height: 1.3rem;
  11. position: relative;
  12. transition: 0.5s;
  13. display: block;
  14. width: 400px;
  15. position: absolute;
  16. top: 0;
  17. right: 0;
  18. transform: translateX(200px) rotate(45deg) translate(10px,70px);
  19. box-shadow: 4px 4px 10px rgba(0,0,0,0.8);
  20. pointer-events: auto;
  21. }
  22. #forkongithub a {
  23. text-decoration: none;
  24. color: #fff;
  25. }
  26. #forkongithub>div:hover {
  27. background: #c11;
  28. color: #fff;
  29. }
  30. #forkongithub .contributors {
  31. font-size: 0.75rem;
  32. background: rgba(255,255,255,0.2);
  33. line-height: 1.2;
  34. padding: 0.1em;
  35. }
  36. #forkongithub>div::before,#forkongithub>div::after {
  37. content: "";
  38. width: 100%;
  39. display: block;
  40. position: absolute;
  41. top: 1px;
  42. left: 0;
  43. height: 1px;
  44. background: #fff;
  45. }
  46. #forkongithub>div::after {
  47. bottom: 1px;
  48. top: auto;
  49. }
  50. #forkongithub{
  51. z-index: 9999;
  52. /* needed for firefox */
  53. overflow: hidden;
  54. width: 300px;
  55. height: 300px;
  56. position: absolute;
  57. right: 0;
  58. top: 0;
  59. pointer-events: none;
  60. }
  61. #forkongithub svg{
  62. width: 1em;
  63. height: 1em;
  64. vertical-align: middle;
  65. }
  66. #forkongithub img {
  67. width: 1em;
  68. height: 1em;
  69. border-radius: 100%;
  70. vertical-align: middle;
  71. }
  72. @media (max-width: 900px) {
  73. #forkongithub>div {
  74. line-height: 1.2rem;
  75. }
  76. }
  77. @media (max-width: 700px) {
  78. #forkongithub {
  79. display: none;
  80. }
  81. }
  82. @media (max-width: 410px) {
  83. #forkongithub>div {
  84. font-size: 0.7rem;
  85. transform: translateX(150px) rotate(45deg) translate(20px,40px);
  86. }
  87. }
  88. </style>
  89. <div id="forkongithub"><div><div><a href="https://github.com/gfxfundamentals/threejsfundamentals">Fix, Fork, Contribute {{{include "build/templates/octocat-icon.svg"}}}</a></div></div></div>