grid.less 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. .crossword {
  2. margin-left: 250px;
  3. }
  4. .crossword-line {
  5. display: block;
  6. white-space: nowrap;
  7. height: @cell-size;
  8. .cell {
  9. display: inline-block;
  10. width: @cell-size;
  11. height: 100%;
  12. border-left: 1px solid @border-color;
  13. border-top: 1px solid @border-color;
  14. border-bottom: 1px solid @border-color;
  15. overflow: hidden;
  16. text-align: center;
  17. background-color: white;
  18. &:last-child {
  19. border-right: 1px solid @border-color;
  20. }
  21. &.cell-disabled {
  22. background: @disabled-color;
  23. border-color: @disabled-color;
  24. }
  25. &.cell-definition > * {
  26. display: flex;
  27. justify-content: center;
  28. flex-direction: column;
  29. height: 100%;
  30. .definition {
  31. display: block;
  32. font-size: .75em;
  33. & > * {
  34. display: inline-block;
  35. width: @cell-size;
  36. }
  37. &:not(:only-child):not(:first-child) {
  38. border-top: 1px solid @border-color;
  39. }
  40. }
  41. }
  42. &.definition-right-vt, &.definition-right-hz, &.definition-bottom-vt, &.definition-bottom-hz {
  43. position: relative;
  44. &:after {
  45. position: absolute;
  46. height: @cell-size /6;
  47. width: @cell-size /6;
  48. content: " ";
  49. }
  50. }
  51. &.definition-right-vt:after {
  52. top: 0;
  53. bottom: 0;
  54. left: 0;
  55. margin: auto;
  56. width: @cell-size /8;
  57. border-top: 1px solid @arrow-color;
  58. border-right: 1px solid @arrow-color;
  59. }
  60. &.definition-right-hz:after {
  61. top: 0;
  62. bottom: 0;
  63. left: 0;
  64. width: @cell-size /8;
  65. margin: auto;
  66. border-top: 1px solid @arrow-color;
  67. }
  68. &.definition-bottom-vt:after {
  69. left: 0;
  70. right: 0;
  71. top: 0;
  72. margin: auto;
  73. height: @cell-size /8;
  74. border-left: 1px solid @arrow-color;
  75. }
  76. &.definition-bottom-hz:after {
  77. left: 0;
  78. right: 0;
  79. top: 0;
  80. margin: auto;
  81. height: @cell-size /8;
  82. border-left: 1px solid @arrow-color;
  83. border-bottom: 1px solid @arrow-color;
  84. }
  85. &.cell-letter {
  86. font-size: @cell-size /3;
  87. line-height: @cell-size;
  88. font-weight: 900;
  89. &.cell-letter-correct {
  90. color: green;
  91. }
  92. &.cell-letter-wrong {
  93. background-color: #ffb6b6;
  94. }
  95. }
  96. &.cell-selected {
  97. background: #e1e8ff;
  98. }
  99. &.cell-input {
  100. background: #b0c2ff;
  101. }
  102. }
  103. }
  104. .input-hidden {
  105. position: absolute;
  106. display: inline-block;
  107. height: 0;
  108. width: 0;
  109. z-index: -100;
  110. }