contribution-chart.css 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. /* A modified copy of https://unpkg.com/github-calendar@2.3.2/dist/github-calendar-responsive.css */
  2. :root {
  3. /*
  4. --color-calendar-graph-day-bg: #dddbdb;
  5. --color-calendar-graph-day-L1-bg: #39dd34;
  6. --color-calendar-graph-day-L2-bg: #45a045;
  7. --color-calendar-graph-day-L3-bg: #047526;
  8. --color-calendar-graph-day-L4-bg: #0a4208;
  9. */
  10. --color-calendar-graph-day-bg: #d3d3d3;
  11. --color-calendar-graph-day-L1-bg: #6b6b6b;
  12. --color-calendar-graph-day-L2-bg: #4d4d4d;
  13. --color-calendar-graph-day-L3-bg: #333333;
  14. --color-calendar-graph-day-L4-bg: #000000;
  15. --color-calendar-border: #0000;
  16. }
  17. rect.ContributionCalendar-day[data-level='0'] {
  18. fill: var(--color-calendar-graph-day-bg);
  19. }
  20. rect.ContributionCalendar-day[data-level='1'] {
  21. fill: var(--color-calendar-graph-day-L1-bg);
  22. }
  23. rect.ContributionCalendar-day[data-level='2'] {
  24. fill: var(--color-calendar-graph-day-L2-bg);
  25. }
  26. rect.ContributionCalendar-day[data-level='3'] {
  27. fill: var(--color-calendar-graph-day-L3-bg);
  28. }
  29. rect.ContributionCalendar-day[data-level='4'] {
  30. fill: var(--color-calendar-graph-day-L4-bg);
  31. }
  32. .calendar .width-full > .float-left {
  33. display: none;
  34. }
  35. .calendar {
  36. font-family: Helvetica, arial;
  37. border: 1px solid var(--color-calendar-border);
  38. border-radius: 3px;
  39. min-height: 243px;
  40. text-align: center;
  41. margin: 0 auto;
  42. }
  43. .calendar-graph text.wday,
  44. .calendar-graph text.month {
  45. font-size: 10px;
  46. fill: #aaa;
  47. }
  48. .contrib-legend {
  49. text-align: right;
  50. padding: 0 14px 10px 0;
  51. /* Commented to remove an IDE warning */
  52. /* display: inline-block; */
  53. float: right;
  54. }
  55. .contrib-legend .legend {
  56. display: inline-block;
  57. list-style: none;
  58. margin: 0 5px;
  59. position: relative;
  60. bottom: -1px;
  61. padding: 0;
  62. }
  63. .contrib-legend .legend li {
  64. display: inline-block;
  65. width: 10px;
  66. height: 10px;
  67. }
  68. .text-small {
  69. font-size: 12px;
  70. color: #767676;
  71. }
  72. .calendar-graph {
  73. padding: 5px 0 0;
  74. text-align: center;
  75. }
  76. .contrib-column {
  77. padding: 15px 0;
  78. text-align: center;
  79. border-left: 1px solid #ddd;
  80. border-top: 1px solid #ddd;
  81. font-size: 11px;
  82. }
  83. .contrib-column-first {
  84. border-left: 0;
  85. }
  86. .table-column {
  87. display: table-cell;
  88. width: 1%;
  89. padding-right: 10px;
  90. padding-left: 10px;
  91. vertical-align: top;
  92. }
  93. .contrib-number {
  94. font-weight: 300;
  95. line-height: 1.3em;
  96. font-size: 24px;
  97. display: block;
  98. color: #333;
  99. }
  100. .calendar img.spinner {
  101. width: 70px;
  102. margin-top: 50px;
  103. min-height: 70px;
  104. }
  105. .monospace {
  106. text-align: center;
  107. color: #000;
  108. font-family: monospace;
  109. }
  110. .monospace a {
  111. color: #1D75AB;
  112. text-decoration: none;
  113. }
  114. .contrib-footer {
  115. font-size: 11px;
  116. padding: 0 10px 12px;
  117. text-align: left;
  118. width: 100%;
  119. box-sizing: border-box;
  120. height: 26px;
  121. }
  122. .left.text-muted {
  123. float: left;
  124. margin-left: 9px;
  125. color: #767676;
  126. }
  127. .left.text-muted a {
  128. color: #4078c0;
  129. text-decoration: none;
  130. }
  131. .left.text-muted a:hover,
  132. .monospace a:hover {
  133. text-decoration: underline;
  134. }
  135. h2.f4.text-normal.mb-3 {
  136. display: none;
  137. }
  138. .float-left.text-gray {
  139. float: left;
  140. }
  141. #user-activity-overview{
  142. display:none;
  143. }
  144. .day-tooltip {
  145. white-space: nowrap;
  146. position: absolute;
  147. z-index: 99999;
  148. padding: 10px;
  149. font-size: 12px;
  150. color: #959da5;
  151. text-align: center;
  152. background: rgba(0,0,0,.85);
  153. border-radius: 3px;
  154. display: none;
  155. pointer-events: none;
  156. }
  157. .day-tooltip strong {
  158. color: #dfe2e5;
  159. }
  160. .day-tooltip.is-visible {
  161. display: block;
  162. }
  163. .day-tooltip:after {
  164. position: absolute;
  165. bottom: -10px;
  166. left: 50%;
  167. width: 5px;
  168. height: 5px;
  169. box-sizing: border-box;
  170. margin: 0 0 0 -5px;
  171. content: " ";
  172. border: 5px solid transparent;
  173. border-top-color: rgba(0,0,0,.85)
  174. }
  175. text.ContributionCalendar-label {
  176. fill: #ccc;
  177. font-size: 11px;
  178. }
  179. /* Style overrides */
  180. .Link--muted {
  181. display: none;
  182. }
  183. .js-calendar-graph > div {
  184. display: none;
  185. }
  186. .contrib-column {
  187. border: none;
  188. }