index.less 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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: 125%;
  20. background-repeat: no-repeat;
  21. background-position: center;
  22. border: 1px solid @border-color;
  23. transition: background-size 0.4s ease-in;
  24. &:hover {
  25. background-size: 150%;
  26. }
  27. &.crossword {
  28. background-image: url("img/crosswords.png");
  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. transform: rotate(45deg);
  46. background-color: rgba(255, 135, 135, 0.75);
  47. color: white;
  48. font-weight: 700;
  49. text-align: center;
  50. }
  51. .grid-provider,.grid-date {
  52. display: block;
  53. padding: 0.25em 0;
  54. text-align: center;
  55. background: rgba(0, 0, 0, 0.5);
  56. color: white;
  57. }
  58. .grid-provider {
  59. }
  60. .grid-date {
  61. font-weight: 700;
  62. }
  63. }