main.less 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. @cell-size: 75px;
  2. @border-color: darkblue;
  3. @arrow-color: darkblue;
  4. @disabled-color: #263340;
  5. .crossword-line {
  6. display: block;
  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. overflow: hidden;
  15. &:last-child {
  16. border-right: 1px solid @border-color;
  17. }
  18. &.cell-disabled {
  19. background: @disabled-color;
  20. border-color: @disabled-color;
  21. }
  22. &.cell-definition > * {
  23. display: flex;
  24. justify-content: center;
  25. flex-direction: column;
  26. height: 100%;
  27. .definition {
  28. display: block;
  29. font-size: .75em;
  30. text-align: center;
  31. & > * {
  32. display: inline-block;
  33. width: @cell-size;
  34. }
  35. &:not(:only-child):not(:first-child) {
  36. border-top: 1px solid @border-color;
  37. }
  38. }
  39. }
  40. &.definition-right-vt, &.definition-right-hz, &.definition-bottom-vt, &.definition-bottom-hz {
  41. position: relative;
  42. &:after {
  43. position: absolute;
  44. height: @cell-size /6;
  45. width: @cell-size /6;
  46. content: " ";
  47. }
  48. }
  49. &.definition-right-vt:after {
  50. top: 0;
  51. bottom: 0;
  52. margin: auto;
  53. width: @cell-size /8;
  54. border-top: 1px solid @arrow-color;
  55. border-right: 1px solid @arrow-color;
  56. }
  57. &.definition-right-hz:after {
  58. top: 0;
  59. bottom: 0;
  60. width: @cell-size /8;
  61. margin: auto;
  62. border-top: 1px solid @arrow-color;
  63. }
  64. &.definition-bottom-vt:after {
  65. left: 0;
  66. right: 0;
  67. margin: auto;
  68. height: @cell-size /8;
  69. border-left: 1px solid @arrow-color;
  70. }
  71. &.definition-bottom-hz:after {
  72. left: 0;
  73. right: 0;
  74. margin: auto;
  75. height: @cell-size /8;
  76. border-left: 1px solid @arrow-color;
  77. border-bottom: 1px solid @arrow-color;
  78. }
  79. &.cell-selected {
  80. background: #e1e8ff;
  81. }
  82. &.cell-input {
  83. background: #b0c2ff;
  84. }
  85. }
  86. &:last-child .cell {
  87. border-bottom: 1px solid @border-color;
  88. }
  89. }