undertale.css 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. @import url("webfont.css");
  2. html, body {
  3. background-color: black;
  4. color: white;
  5. font-family: "8-bit Operator Mono", Fixedsys, sans-serif;
  6. font-weight: normal;
  7. font-size: 24px;
  8. }
  9. #gamebox{
  10. width: 420px;
  11. margin: 40px auto;
  12. text-align: center;
  13. }
  14. #heartbox{
  15. width: 320px;
  16. margin: auto;
  17. padding: 4px;
  18. background-color: white;
  19. }
  20. canvas{
  21. background-color: black;
  22. }
  23. img.sans{
  24. position: relative;
  25. vertical-align: middle;
  26. }
  27. div#select_difficulty{
  28. transition: all 0.5s ease;
  29. overflow: hidden;
  30. height: 100px;
  31. margin: 20px 0px;
  32. }
  33. div#select_difficulty.closed{
  34. height: 0;
  35. margin: 0;
  36. }
  37. div#select_text{
  38. font-size: 16px;
  39. margin-bottom: 4px;
  40. }
  41. div.diff-option{
  42. text-align: left;
  43. position: relative;
  44. left: 24px;
  45. }
  46. div.diff-option.hidden{
  47. display: none;
  48. }
  49. div.diff-option::before{
  50. content: "*";
  51. position: absolute;
  52. left: -24px;
  53. }
  54. div.sel.diff-option::before{
  55. content: url('../img/heart.png');
  56. position: absolute;
  57. width: 16px;
  58. height: 16px;
  59. left: -24px;
  60. top: calc(50% - 7px);
  61. }
  62. div#gameplay_area{
  63. transition: all 0.5s ease;
  64. overflow: hidden;
  65. height: 180px;
  66. }
  67. div#gameplay_area.closed{
  68. height: 0;
  69. }
  70. div.stats{
  71. display: inline-block;
  72. text-align: left;
  73. width: 140px;
  74. white-space: nowrap;
  75. overflow: visible;
  76. font-size: 15px;
  77. font-family: "Mars Needs Cunnilingus", monospace;
  78. font-weight: normal;
  79. letter-spacing: 1px;
  80. }
  81. span.tag{
  82. font-family: Menlo, Consolas, sans-serif;
  83. font-size: 10px;
  84. }
  85. div#hp_bar{
  86. display: inline-block;
  87. position: relative;
  88. top: 3px;
  89. width: 20px;
  90. height: 15px;
  91. background-color: red;
  92. }
  93. div#hp_yellow_bar{
  94. position: absolute;
  95. width: 20px;
  96. height: 15px;
  97. background-color: yellow;
  98. }
  99. div#speech_bubble{
  100. position: relative;
  101. display: inline-block;
  102. vertical-align: middle;
  103. text-align: left;
  104. width: 160px;
  105. height: 100px;
  106. border-radius: 8px;
  107. padding: 8px;
  108. background-color: white;
  109. color: black;
  110. font-family: Comic Sans MS, "Comic Relief", sans-serif;
  111. font-size: 12px;
  112. font-weight: normal;
  113. transition: all 0.5s ease;
  114. }
  115. div#speech_bubble.closed{
  116. width: 0;
  117. padding: 8px 0;
  118. }
  119. div.bottom-credits{
  120. position: absolute;
  121. text-align: center;
  122. font-size: 12px;
  123. line-height: 15px;
  124. height: 48px;
  125. bottom: 0;
  126. left: calc(50% - 300px);
  127. width: 600px;
  128. padding: 8px 0;
  129. overflow: hidden;
  130. transition: all 0.3s ease;
  131. }
  132. div.bottom-credits span{
  133. display: inline-block;
  134. }
  135. div.bottom-credits:hover{
  136. height: 160px;
  137. }
  138. a{
  139. color: #00ffff;
  140. text-decoration: none;
  141. }
  142. a:hover{
  143. color: #33cccc;
  144. }