sequence.scss 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. .msp-sequence {
  2. position: absolute;
  3. right: 0;
  4. top: 0;
  5. left: 0;
  6. bottom: 0;
  7. background: $sequence-background;
  8. }
  9. $sequence-select-height: 24px;
  10. .msp-sequence-select {
  11. position: relative;
  12. height: $sequence-select-height;
  13. width: 100%;
  14. margin-bottom: 1px;
  15. background: $control-background;
  16. text-align: left;
  17. > span {
  18. display: inline-block;
  19. line-height: $sequence-select-height;
  20. padding: 0 $control-spacing;
  21. font-size: 85%;
  22. font-weight: bold;
  23. cursor: default;
  24. }
  25. > select {
  26. display: inline-block;
  27. max-width: 120px;
  28. width: auto;
  29. text-overflow: ellipsis;
  30. font-size: 85%;
  31. height: $sequence-select-height;
  32. line-height: $sequence-select-height;
  33. background-size: 6px 8px;
  34. background-color: $control-background;
  35. }
  36. }
  37. .msp-sequence-wrapper {
  38. word-break: break-word;
  39. // use $control-spacing for top to have space for sequence numebrs
  40. padding: $control-spacing $control-spacing $info-vertical-padding $control-spacing;
  41. user-select: none;
  42. }
  43. .msp-sequence-wrapper-non-empty {
  44. font-size: 85%;
  45. line-height: 180%;
  46. font-family: "Courier New", monospace;
  47. background: $msp-form-control-background;
  48. width: 100%;
  49. overflow-y: auto;
  50. overflow-x: hidden;
  51. position: absolute;
  52. top: $sequence-select-height + 1px;
  53. left: 0;
  54. bottom: 0;
  55. right: 0;
  56. }
  57. .msp-sequence-chain-label {
  58. margin-left: $control-spacing;
  59. margin-top: $control-spacing;
  60. user-select: none;
  61. color: $sequence-number-color;
  62. font-size: 90%;
  63. line-height: 90%;
  64. padding-left: 0.2em;
  65. }
  66. .msp-sequence-wrapper {
  67. span {
  68. cursor: pointer;
  69. }
  70. .msp-sequence-residue-long {
  71. margin: 0em 0.2em 0em 0.2em;
  72. }
  73. .msp-sequence-residue-long-begin {
  74. margin: 0em 0.2em 0em 0em;
  75. }
  76. .msp-sequence-label {
  77. color: $sequence-number-color;
  78. font-size: 90%;
  79. line-height: 90%;
  80. padding-bottom: 1em;
  81. padding-left: 0.2em;
  82. }
  83. .msp-sequence-number {
  84. color: $sequence-number-color;
  85. word-break: keep-all;
  86. cursor: default;
  87. position: relative;
  88. top: -1.1em;
  89. left: 3.1em;
  90. padding: 0px;
  91. margin-left: -3em;
  92. font-size: 80%;
  93. }
  94. .msp-sequence-number-long {
  95. left: 3.3em;
  96. }
  97. .msp-sequence-number-long-negative {
  98. left: 2.7em;
  99. }
  100. .msp-sequence-number-negative {
  101. left: 2.5em;
  102. }
  103. .msp-sequence-present {
  104. color: $font-color;
  105. }
  106. .msp-sequence-missing {
  107. color: color-lower-contrast($font-color, 33%);
  108. }
  109. }