main.less 3.0 KB

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