gitea源码

heatmap.css 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #user-heatmap {
  2. width: 100%;
  3. font-size: 9px;
  4. position: relative;
  5. }
  6. /* before the Vue component is mounted, show a loading indicator with dummy size */
  7. /* the ratio is guesswork, see https://github.com/razorness/vue3-calendar-heatmap/issues/26 */
  8. #user-heatmap.is-loading {
  9. aspect-ratio: 5.415; /* the size is about 790 x 145 */
  10. }
  11. .user.profile #user-heatmap.is-loading {
  12. aspect-ratio: 5.645; /* the size is about 953 x 169 */
  13. }
  14. #user-heatmap text {
  15. fill: currentcolor !important;
  16. }
  17. /* for the "Less" and "More" legend */
  18. #user-heatmap .vch__legend .vch__legend {
  19. display: flex;
  20. font-size: 11px;
  21. align-items: center;
  22. justify-content: right;
  23. }
  24. #user-heatmap .vch__legend .vch__legend div:first-child,
  25. #user-heatmap .vch__legend .vch__legend div:last-child {
  26. display: inline-block;
  27. padding: 0 5px;
  28. }
  29. #user-heatmap .vch__day__square:hover {
  30. outline: 1.5px solid var(--color-text);
  31. }
  32. /* move the "? contributions in the last ? months" text from top to bottom */
  33. #user-heatmap .total-contributions {
  34. font-size: 11px;
  35. position: absolute;
  36. bottom: 0;
  37. left: 25px;
  38. }
  39. @media (max-width: 1200px) {
  40. #user-heatmap .total-contributions {
  41. left: 21px;
  42. }
  43. }
  44. @media (max-width: 1000px) {
  45. #user-heatmap .total-contributions {
  46. font-size: 10px;
  47. left: 17px;
  48. bottom: -4px;
  49. }
  50. }