index.css 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. /***
  2. The new CSS reset - version 1.11.2 (last updated 15.11.2023)
  3. GitHub page: https://github.com/elad2412/the-new-css-reset
  4. ***/
  5. /*
  6. Remove all the styles of the "User-Agent-Stylesheet", except for the 'display' property
  7. - The "symbol *" part is to solve Firefox SVG sprite bug
  8. - The "html" element is excluded, otherwise a bug in Chrome breaks the CSS hyphens property (https://github.com/elad2412/the-new-css-reset/issues/36)
  9. */
  10. *:where(
  11. :not(html, iframe, canvas, img, svg, video, audio):not(svg *, symbol *)
  12. ) {
  13. all: unset;
  14. display: revert;
  15. }
  16. /* Preferred box-sizing value */
  17. *,
  18. *::before,
  19. *::after {
  20. box-sizing: border-box;
  21. }
  22. /* Fix mobile Safari increase font-size on landscape mode */
  23. html {
  24. -moz-text-size-adjust: none;
  25. -webkit-text-size-adjust: none;
  26. text-size-adjust: none;
  27. }
  28. /* Reapply the pointer cursor for anchor tags */
  29. a,
  30. button {
  31. cursor: revert;
  32. }
  33. /* Remove list styles (bullets/numbers) */
  34. ol,
  35. ul,
  36. menu,
  37. summary {
  38. list-style: none;
  39. }
  40. /* For images to not be able to exceed their container */
  41. img {
  42. max-inline-size: 100%;
  43. max-block-size: 100%;
  44. }
  45. /* removes spacing between cells in tables */
  46. table {
  47. border-collapse: collapse;
  48. }
  49. /* Safari - solving issue when using user-select:none on the <body> text input doesn't working */
  50. input,
  51. textarea {
  52. -webkit-user-select: auto;
  53. }
  54. /* revert the 'white-space' property for textarea elements on Safari */
  55. textarea {
  56. white-space: revert;
  57. }
  58. /* minimum style to allow to style meter element */
  59. meter {
  60. -webkit-appearance: revert;
  61. appearance: revert;
  62. }
  63. /* preformatted text - use only for this feature */
  64. :where(pre) {
  65. all: revert;
  66. box-sizing: border-box;
  67. }
  68. /* reset default text opacity of input placeholder */
  69. ::placeholder {
  70. color: unset;
  71. }
  72. /* fix the feature of 'hidden' attribute.
  73. display:revert; revert to element instead of attribute */
  74. :where([hidden]) {
  75. display: none;
  76. }
  77. /* revert for bug in Chromium browsers
  78. - fix for the content editable attribute will work properly.
  79. - webkit-user-select: auto; added for Safari in case of using user-select:none on wrapper element*/
  80. :where([contenteditable]:not([contenteditable="false"])) {
  81. -moz-user-modify: read-write;
  82. -webkit-user-modify: read-write;
  83. overflow-wrap: break-word;
  84. -webkit-line-break: after-white-space;
  85. -webkit-user-select: auto;
  86. }
  87. /* apply back the draggable feature - exist only in Chromium and Safari */
  88. :where([draggable="true"]) {
  89. -webkit-user-drag: element;
  90. }
  91. /* Revert Modal native behavior */
  92. :where(dialog:modal) {
  93. all: revert;
  94. box-sizing: border-box;
  95. }
  96. /* Remove details summary webkit styles */
  97. ::-webkit-details-marker {
  98. display: none;
  99. }
  100. html,
  101. body {
  102. margin: 0;
  103. padding: 0;
  104. font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
  105. "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
  106. }
  107. * {
  108. box-sizing: border-box;
  109. }
  110. button {
  111. display: inline-block; /* Aligns like a button */
  112. padding: 0.125em 0.5em; /* Button size */
  113. color: #333; /* Text color */
  114. background-color: #ccc;
  115. border: none; /* No border */
  116. border-radius: 5px; /* Rounded corners */
  117. text-align: center; /* Center text */
  118. text-decoration: none; /* No underline */
  119. cursor: pointer; /* Cursor changes to hand symbol */
  120. transition: background-color 0.3s, box-shadow 0.3s; /* Smooth transition for hover effect */
  121. /* Slight shadow for depth (optional) */
  122. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  123. }
  124. /* Hover state */
  125. button:hover {
  126. background-color: #fff; /* Darker shade when hovered */
  127. box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Larger shadow on hover */
  128. }
  129. .overlay {
  130. display: flex;
  131. flex-direction: column;
  132. position: fixed;
  133. z-index: 10;
  134. top: 0;
  135. left: 0;
  136. gap: 0.5em;
  137. padding: 1em;
  138. background-color: rgba(0, 0, 0, 0.7);
  139. color: #ddd;
  140. border-radius: 5px;
  141. }
  142. h1,
  143. h2,
  144. h3,
  145. h4,
  146. h5,
  147. h5 {
  148. font-weight: 600;
  149. margin: 1rem 0;
  150. }
  151. body {
  152. background-color: #222;
  153. color: #ccc;
  154. }
  155. h1 {
  156. font-size: 1.5em;
  157. }
  158. h2 {
  159. font-size: 1em;
  160. }
  161. a {
  162. color: darkorange;
  163. }
  164. ul,
  165. ol {
  166. padding: 1em;
  167. line-height: 1.25em;
  168. }
  169. .flex {
  170. display: flex;
  171. }
  172. .flex-col {
  173. flex-direction: column;
  174. }
  175. .flex-grow {
  176. flex-grow: 1;
  177. }
  178. .items-center {
  179. align-items: center;
  180. }
  181. .justify-center {
  182. justify-content: center;
  183. }
  184. .w-full {
  185. width: 100%;
  186. }
  187. .h-full {
  188. height: 100%;
  189. }
  190. .h-screen {
  191. height: 100vh;
  192. }
  193. .p-4 {
  194. padding: 1em;
  195. }
  196. .mb-4 {
  197. margin-bottom: 1em;
  198. }