DNA transcription and translation in wasm with rust
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.

190 lines
3.2 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. :root {
  2. --primary-bg-color: #568ea3;
  3. --secondary-bg-color: #E96400;
  4. --main-highlight-color: #a40e4c;
  5. }
  6. ::selection {
  7. background: var(--main-highlight-color); /* WebKit/Blink Browsers */
  8. }
  9. ::-moz-selection {
  10. background: var(--main-highlight-color); /* Gecko Browsers */
  11. }
  12. * {
  13. box-sizing: border-box;
  14. }
  15. html {
  16. height: 100%;
  17. }
  18. body {
  19. margin: 0;
  20. font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
  21. height: 100%;
  22. background-color: var(--primary-bg-color);
  23. color: white;
  24. }
  25. h1, h2 {
  26. all: initial;
  27. }
  28. h1, h2 {
  29. font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
  30. font-size: 23.5px;
  31. color: white;
  32. }
  33. noscript {
  34. text-align: center;
  35. font-size: 2em;
  36. color: orange;
  37. font-style: italic;
  38. font-weight: bold;
  39. }
  40. a {
  41. color: white;
  42. }
  43. a:hover {
  44. color: var(--secondary-bg-color);
  45. }
  46. .input-div-container {
  47. height: 100%;
  48. width: 100%;
  49. margin: 0 auto;
  50. padding: 10px;
  51. position: relative;
  52. text-align: center;
  53. }
  54. .input-div {
  55. height: 50%;
  56. width: 50%;
  57. background-color: var(--secondary-bg-color);
  58. position: absolute;
  59. margin-left: auto;
  60. margin-right: auto;
  61. top: 50%;
  62. left: 50%;
  63. transform: translate(-50%, -50%);
  64. padding: 10px;
  65. }
  66. .input-box {
  67. -webkit-appearance: none;
  68. border-radius: 0;
  69. margin-top: 1em;
  70. padding: 0.5em;
  71. font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
  72. outline: none;
  73. border: 0;
  74. font-size: 15px;
  75. }
  76. .input-box::-moz-focus-inner {
  77. border: 0;
  78. }
  79. .input-submit {
  80. display: inline-block;
  81. border: none;
  82. padding: 1rem 2rem;
  83. margin: 0;
  84. font-size: 15px;
  85. text-decoration: none;
  86. border-radius: 0;
  87. margin-top: 1em;
  88. padding: 0.5em;
  89. font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
  90. outline: none;
  91. cursor: pointer;
  92. text-align: center;
  93. background: #0069ed;
  94. color: white;
  95. transition: background 250ms ease-in-out,
  96. transform 150ms ease;
  97. -webkit-appearance: none;
  98. -moz-appearance: none;
  99. }
  100. .input-submit::-moz-focus-inner {
  101. border: 0;
  102. }
  103. .input-submit:hover,
  104. .input-submit:focus {
  105. background: #0053ba;
  106. }
  107. .input-submit:focus {
  108. outline: 1px solid #fff;
  109. outline-offset: -1px;
  110. }
  111. .input-submit:active {
  112. transform: scale(0.99);
  113. }
  114. #footer {
  115. text-align: center;
  116. margin-top: 1em;
  117. }
  118. .codons-div-container {
  119. height: 100%;
  120. width: 100%;
  121. margin: 0 auto;
  122. padding: 10px;
  123. position: relative;
  124. text-align: center;
  125. }
  126. .codons-container {
  127. margin-top: 3em;
  128. width: 85%;
  129. height: auto;
  130. background-color: var(--secondary-bg-color);
  131. margin-left: auto;
  132. margin-right: auto;
  133. padding: 10px;
  134. }
  135. #codons {
  136. line-height: 1em;
  137. font-size: 1.2em;
  138. }
  139. #codons h2 {
  140. font-size: 2rem;
  141. }
  142. .main-heading {
  143. text-align: center;
  144. margin: 1em;
  145. }
  146. .main-heading h1 {
  147. font-size: 2em;
  148. }
  149. @media only screen and (max-width: 800px) {
  150. .input-div {
  151. width: 100%;
  152. top: 25%;
  153. }
  154. .input-box, .input-submit {
  155. padding: 1em;
  156. }
  157. .codons-container {
  158. width: 100%;
  159. }
  160. }