My static website generator using poole https://www.xythobuz.de
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

gh-fork-ribbon.css 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. /* Left will inherit from right (so we don't need to duplicate code */
  2. .github-fork-ribbon {
  3. /* The right and left lasses determine the side we attach our banner to */
  4. position: absolute;
  5. /* Add a bit of padding to give some substance outside the "stitching" */
  6. padding: 2px 0;
  7. /* Set the base colour */
  8. background-color: #FF9900;
  9. /* Set a gradient: transparent black at the top to almost-transparent black at the bottom */
  10. background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.00)), to(rgba(0, 0, 0, 0.15)));
  11. background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.00), rgba(0, 0, 0, 0.15));
  12. background-image: -moz-linear-gradient(top, rgba(0, 0, 0, 0.00), rgba(0, 0, 0, 0.15));
  13. background-image: -o-linear-gradient(top, rgba(0, 0, 0, 0.00), rgba(0, 0, 0, 0.15));
  14. background-image: -ms-linear-gradient(top, rgba(0, 0, 0, 0.00), rgba(0, 0, 0, 0.15));
  15. background-image: linear-gradient(top, rgba(0, 0, 0, 0.00), rgba(0, 0, 0, 0.15));
  16. filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,StartColorStr='#000000', EndColorStr='#000000');
  17. /* Add a drop shadow */
  18. -webkit-box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.5);
  19. box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.5);
  20. z-index: 9999;
  21. }
  22. .github-fork-ribbon a {
  23. /* Set the font */
  24. font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  25. font-size: 13px;
  26. font-weight: 700;
  27. color: white;
  28. /* Set the text properties */
  29. text-decoration: none;
  30. text-shadow: 0 -1px rgba(0,0,0,0.5);
  31. text-align: center;
  32. /* Set the geometry. If you fiddle with these you'll also need to tweak the top and right values in #github-fork-ribbon. */
  33. width: 200px;
  34. line-height: 20px;
  35. /* Set the layout properties */
  36. display: inline-block;
  37. padding: 2px 0;
  38. /* Add "stitching" effect */
  39. border-width: 1px 0;
  40. border-style: dotted;
  41. border-color: rgba(255,255,255,0.7);
  42. }
  43. .github-fork-ribbon-wrapper {
  44. width: 150px;
  45. height: 150px;
  46. position: absolute;
  47. overflow: hidden;
  48. top: 0;
  49. }
  50. .github-fork-ribbon-wrapper.left {
  51. left: 0;
  52. }
  53. .github-fork-ribbon-wrapper.right {
  54. right: 0;
  55. }
  56. .github-fork-ribbon-wrapper.left-bottom {
  57. position: fixed;
  58. top: inherit;
  59. bottom: 0;
  60. left: 0;
  61. }
  62. .github-fork-ribbon-wrapper.right-bottom {
  63. position: fixed;
  64. top: inherit;
  65. bottom: 0;
  66. right: 0;
  67. }
  68. .github-fork-ribbon-wrapper.right .github-fork-ribbon {
  69. top: 42px;
  70. right: -43px;
  71. /* Rotate the banner 45 degrees */
  72. -webkit-transform: rotate(45deg);
  73. -moz-transform: rotate(45deg);
  74. -o-transform: rotate(45deg);
  75. transform: rotate(45deg);
  76. }
  77. .github-fork-ribbon-wrapper.left .github-fork-ribbon {
  78. top: 42px;
  79. left: -43px;
  80. /* Rotate the banner -45 degrees */
  81. -webkit-transform: rotate(-45deg);
  82. -moz-transform: rotate(-45deg);
  83. -o-transform: rotate(-45deg);
  84. transform: rotate(-45deg);
  85. }
  86. .github-fork-ribbon-wrapper.left-bottom .github-fork-ribbon {
  87. top: 80px;
  88. left: -43px;
  89. /* Rotate the banner -45 degrees */
  90. -webkit-transform: rotate(45deg);
  91. -moz-transform: rotate(45deg);
  92. -o-transform: rotate(45deg);
  93. transform: rotate(45deg);
  94. }
  95. .github-fork-ribbon-wrapper.right-bottom .github-fork-ribbon {
  96. top: 80px;
  97. right: -43px;
  98. /* Rotate the banner -45 degrees */
  99. -webkit-transform: rotate(-45deg);
  100. -moz-transform: rotate(-45deg);
  101. -o-transform: rotate(-45deg);
  102. transform: rotate(-45deg);
  103. }