summaryrefslogtreecommitdiffstats
path: root/mobile.css
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2021-02-19 12:42:11 -0500
committerBrian Cully <bjc@kublai.com>2021-02-19 12:42:11 -0500
commit0a703e8f463dfadcf102e0b553d798b8046b03ee (patch)
tree791775233693855907d6bbc79c5c0846426c6611 /mobile.css
parent555e3faea8d3cc8ae5764876fe957039cdc0d431 (diff)
downloadmolsim2-0a703e8f463dfadcf102e0b553d798b8046b03ee.tar.gz
molsim2-0a703e8f463dfadcf102e0b553d798b8046b03ee.zip
Add amino acid selection after mutation.
Diffstat (limited to 'mobile.css')
-rw-r--r--mobile.css47
1 files changed, 47 insertions, 0 deletions
diff --git a/mobile.css b/mobile.css
index 0f7f87b..6d2d5a9 100644
--- a/mobile.css
+++ b/mobile.css
@@ -112,6 +112,53 @@ body {
background-color: orange;
}
+#amino-acid-selector {
+ position: fixed;
+ left: 50%;
+ top: 50%;
+ width: 50%;
+ transform: translate(-50%, -50%);
+
+ background-color: ivory;
+ border: 1px solid black;
+ cursor: pointer;
+}
+
+#amino-acid-selector p {
+ margin: 0;
+ padding: 10px;
+
+ border-bottom: 1px dashed black;
+}
+
+#amino-acid-selector .codon {
+ font-weight: bold;
+}
+
+#amino-acid-selector ul {
+ display: flex;
+ flex-wrap: wrap;
+
+ margin: 0;
+ padding: 10px;
+
+ list-style-type: none;
+ white-space: nowrap;
+}
+
+#amino-acid-selector li {
+ display: flex-inline;
+
+ height: 3ex;
+ width: 3em;
+
+ text-align: center;
+}
+
+#amino-acid-selector li:hover {
+ background-color: orange;
+}
+
.genome .nucleotide.selected,
.genome:not(.locked) .nucleotide.selected:hover {
background-color: red;