index.less 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. body.home {
  2. @grid-size: 150px;
  3. .grids-wrapper {
  4. text-align: center;
  5. }
  6. .grids {
  7. list-style: none;
  8. padding: 0;
  9. margin: auto;
  10. max-width: 1640px;
  11. width: 100%;
  12. }
  13. .grid {
  14. display: inline-block;
  15. height: @grid-size;
  16. width: @grid-size;
  17. overflow: hidden;
  18. margin: 0.25em;
  19. background-size: 112%;
  20. background-repeat: no-repeat;
  21. background-position: center;
  22. border: 1px solid @border-color;
  23. transition: background-size 0.2s ease-in;
  24. &:hover {
  25. background-size: 120%;
  26. }
  27. &.crossword {
  28. background-image: url("img/crosswords.svg");
  29. }
  30. & > a {
  31. position: relative;
  32. display: inline-block;
  33. height: @grid-size - 85px;
  34. width: 100%;
  35. padding-top: 85px;
  36. text-decoration: none;
  37. color: black;
  38. }
  39. }
  40. .grid-difficulty {
  41. position: absolute;
  42. right: -40px;
  43. top: 20px;
  44. width: 100%;
  45. padding: 2px 0;
  46. transform: rotate(45deg);
  47. background-color: rgba(255, 135, 135, 0.95);
  48. color: white;
  49. font-weight: 700;
  50. text-align: center;
  51. }
  52. .grid-provider,.grid-date {
  53. display: block;
  54. padding: 0.25em 0;
  55. text-align: center;
  56. background: rgba(0, 0, 0, 0.65);
  57. color: white;
  58. }
  59. .grid-provider {
  60. }
  61. .grid-date {
  62. font-weight: 700;
  63. }
  64. }