Displays a base image and an "x-ray" view of a second image where the mouse is pointing
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

121 lines
1.5 KiB

  1. html, body {
  2. font-family: sans-serif;
  3. width: 100vw;
  4. height: 100vh;
  5. margin: 0;
  6. display: flex;
  7. flex-direction: column;
  8. background: #111;
  9. color: #ddd;
  10. }
  11. input,
  12. button {
  13. background: #111;
  14. color: #ddd;
  15. }
  16. canvas {
  17. position: absolute;
  18. }
  19. canvas.hidden {
  20. display: none;
  21. }
  22. img {
  23. display: none;
  24. }
  25. #overlay {
  26. --opacity: 1;
  27. opacity: var(--opacity);
  28. z-index: 2;
  29. }
  30. #menu {
  31. display: flex;
  32. flex: 0 1;
  33. flex-direction: row;
  34. transition: 0.5s;
  35. flex-wrap: wrap;
  36. justify-content: center;
  37. align-items: center;
  38. }
  39. #menu.start {
  40. flex-direction: column;
  41. min-width: 100vw;
  42. min-height: 100vh;
  43. justify-content: center;
  44. }
  45. #menu.start input {
  46. font-size: 24pt;
  47. }
  48. #menu.start label,
  49. #menu.start button {
  50. font-size: 48pt;
  51. margin: 16pt;
  52. }
  53. #menu.start input {
  54. width: 80vw;
  55. }
  56. #menu.start .nostart {
  57. display: none;
  58. }
  59. #menu .onlystart {
  60. display: none;
  61. }
  62. #menu.start .onlystart {
  63. display: unset;
  64. }
  65. .large,
  66. .large > * {
  67. font-size: 24pt;
  68. }
  69. .large > input[type=number] {
  70. max-width: 72pt;
  71. }
  72. .large > input[type=checkbox] {
  73. width: 1em;
  74. height: 1em;
  75. }
  76. #fill-div {
  77. position: relative;
  78. flex: 1 0;
  79. }
  80. #shadow {
  81. --opacity: 0;
  82. opacity: var(--opacity);
  83. z-index: 1;
  84. }
  85. #menu.start > label {
  86. background: none;
  87. }
  88. label {
  89. margin: 5px;
  90. background: #222;
  91. }
  92. label span {
  93. user-select: none;
  94. }
  95. label input {
  96. margin: auto;
  97. }
  98. .hidden {
  99. display: none !important;
  100. }