track_styles.css 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516
  1. /*
  2. NOTES ON STYLING FEATURES:
  3. - avoid using any margins in feature styles. Layout is done
  4. by JBrowse.
  5. - when possible, make all element heights an odd number of
  6. pixels, so that vertical centering is possible with
  7. pixel-perfect accuracy.
  8. */
  9. .basic,
  10. .plus-basic,
  11. .minus-basic {
  12. position: absolute;
  13. cursor: pointer;
  14. z-index: 10;
  15. min-width: 1px;
  16. }
  17. .basicSubfeature {
  18. position: absolute;
  19. cursor: pointer;
  20. z-index: 12;
  21. min-width: 1px;
  22. }
  23. div.hist {
  24. position: absolute;
  25. z-index: 10;
  26. box-sizing: border-box;
  27. -moz-box-sizing: border-box;
  28. -webkit-box-sizing: border-box;
  29. -ms-box-sizing: border-box;
  30. }
  31. .feature,
  32. .plus-feature,
  33. .minus-feature {
  34. position:absolute;
  35. height: 7px;
  36. background-repeat: repeat-x;
  37. cursor: pointer;
  38. min-width: 1px;
  39. z-index: 10;
  40. background-color: #eee;
  41. box-sizing: border-box;
  42. -moz-box-sizing: border-box;
  43. -webkit-box-sizing: border-box;
  44. -ms-box-sizing: border-box;
  45. }
  46. .plus-feature { background-image: url('img/plus-chevron3.png'); }
  47. .minus-feature { background-image: url('img/minus-chevron3.png'); }
  48. .subfeature,
  49. .plus-subfeature,
  50. .minus-subfeature {
  51. position:absolute;
  52. background-color: #dadada;
  53. height: 7px;
  54. min-width: 1px;
  55. z-index: 12;
  56. box-sizing: border-box;
  57. -moz-box-sizing: border-box;
  58. -webkit-box-sizing: border-box;
  59. -ms-box-sizing: border-box;
  60. }
  61. .alignment,
  62. .plus-alignment,
  63. .minus-alignment {
  64. background-color: #ccc;
  65. /* these should all 3 match */
  66. height: 11px;
  67. line-height: 11px;
  68. font-size: 11px;
  69. }
  70. .plus-alignment {
  71. background-color: #EC8B8B;
  72. }
  73. .minus-alignment {
  74. background-color: #898FD8;
  75. }
  76. .alignment.missing_mate, .plus-alignment.missing_mate, .minus-alignment.missing_mate {
  77. background-image: url('img/red_crosshatch_bg.png');
  78. }
  79. .alignment > .mismatch, .minus-alignment > .mismatch, .plus-alignment > .mismatch {
  80. height: 100%;
  81. }
  82. .alignment > .deletion, .minus-alignment > .deletion, .plus-alignment > .deletion {
  83. background-color: black;
  84. height: 100%;
  85. }
  86. .alignment > .deletion *, .plus-alignment > .deletion *, .minus-alignment > .deletion * {
  87. color: white;
  88. }
  89. .alignment > .insertion, .plus-alignment > .insertion, .minus-alignment > .insertion {
  90. background-color: white;
  91. color: black;
  92. height: 100%;
  93. }
  94. .alignment > .skip, .plus-alignment > .skip, .minus-alignment > .skip {
  95. background: url('img/dark_20x3.png') repeat-x 0 50% white;
  96. height: 100%;
  97. opacity: 0.7;
  98. }
  99. div.feature-hist {
  100. background-color: blue;
  101. border-color: #5858C4;
  102. }
  103. .feature2, .plus-feature2, .minus-feature2 {
  104. position:absolute;
  105. height: 7px;
  106. background-repeat: repeat-x;
  107. cursor: pointer;
  108. min-width: 1px;
  109. z-index: 10;
  110. background-color: #62d335;
  111. }
  112. .Boolean-transparent {
  113. opacity: 0.2;
  114. }
  115. div.feature2-hist {
  116. background-color: #9f9;
  117. border-color: #ada;
  118. }
  119. .feature3, .plus-feature3, .minus-feature3 {
  120. position:absolute;
  121. height: 7px;
  122. background-repeat: repeat-x;
  123. cursor: pointer;
  124. min-width: 1px;
  125. z-index: 10;
  126. background-color: goldenrod;
  127. }
  128. div.feature3-hist {
  129. background-color: yellow;
  130. border-color: black;
  131. }
  132. .feature4, .plus-feature4, .minus-feature4 {
  133. position:absolute;
  134. height: 11px;
  135. background-repeat: repeat-x;
  136. cursor: pointer;
  137. min-width: 1px;
  138. z-index: 10;
  139. background: yellow;
  140. }
  141. div.feature4-hist {
  142. background-color: yellow;
  143. border-color: black;
  144. }
  145. .feature5, .plus-feature5, .minus-feature5 {
  146. position:absolute;
  147. height: 7px;
  148. background-repeat: repeat-x;
  149. cursor: pointer;
  150. min-width: 1px;
  151. z-index: 10;
  152. background-color: blue;
  153. }
  154. div.feature5-hist {
  155. background-color: blue;
  156. border-color: lightblue;
  157. }
  158. div.exon-hist {
  159. background-color: #4B76E8;
  160. border-color: #00f;
  161. }
  162. .exon,
  163. .plus-exon,
  164. .minus-exon {
  165. position: absolute;
  166. height: 7px;
  167. background-color: #4B76E8;
  168. border-style: solid;
  169. border-color: #00f;
  170. border-width: 1px;
  171. cursor: pointer;
  172. z-index: 10;
  173. }
  174. div.est-hist {
  175. background-color: #ED9185;
  176. border-color: #c33;
  177. }
  178. .est,
  179. .plus-est,
  180. .minus-est {
  181. position: absolute;
  182. height: 7px;
  183. background-color: #ED9185;
  184. }
  185. .dblhelix,
  186. .plus-dblhelix,
  187. .minus-dblhelix {
  188. position:absolute;
  189. height: 11px;
  190. background-image: url('img/dblhelix-red.png');
  191. background-repeat: repeat-x;
  192. min-width: 1px;
  193. cursor: pointer;
  194. z-index: 10;
  195. }
  196. div.dblhelix-hist {
  197. background-color: #fcc;
  198. border-color: #daa;
  199. }
  200. .plus-helix,
  201. .minus-helix {
  202. position:absolute;
  203. height: 11px;
  204. background-image: url('img/helix3-green.png');
  205. background-repeat: repeat-x;
  206. min-width: 1px;
  207. cursor: pointer;
  208. z-index: 10;
  209. }
  210. div.helix-hist {
  211. background-color: #cfc;
  212. border-color: #ada;
  213. }
  214. .loops, .minus-loops, .plus-loops {
  215. position:absolute;
  216. height: 13px;
  217. background-image: url('img/loops.png');
  218. background-repeat: repeat-x;
  219. cursor: pointer;
  220. }
  221. .diamonds, .minus-diamonds, .plus-diamonds {
  222. position:absolute;
  223. height: 13px;
  224. background-image: url('img/glyph-diamond.png');
  225. background-repeat: repeat-x;
  226. cursor: pointer;
  227. }
  228. .plus-cds, .minus-cds {
  229. position:absolute;
  230. height: 13px;
  231. background-repeat: repeat-x;
  232. cursor: pointer;
  233. min-width: 1px;
  234. }
  235. .plus-cds_phase0 { background-image: url('img/plus-cds0.png'); }
  236. .plus-cds_phase1 { background-image: url('img/plus-cds1.png'); }
  237. .plus-cds_phase2 { background-image: url('img/plus-cds2.png'); }
  238. .minus-cds_phase0 { background-image: url('img/minus-cds0.png'); }
  239. .minus-cds_phase1 { background-image: url('img/minus-cds1.png'); }
  240. .minus-cds_phase2 { background-image: url('img/minus-cds2.png'); }
  241. div.cds-hist {
  242. background-color: #fcc;
  243. border-color: #daa;
  244. }
  245. .topbracket {
  246. position:absolute;
  247. height: 8px;
  248. border-style: solid solid none solid;
  249. border-width: 2px;
  250. border-color: orange;
  251. cursor: pointer;
  252. }
  253. .bottombracket {
  254. position:absolute;
  255. height: 8px;
  256. border-style: none solid solid solid;
  257. border-width: 2px;
  258. border-color: green;
  259. cursor: pointer;
  260. }
  261. .hourglass, .plus-hourglass, .minus-hourglass {
  262. position:absolute;
  263. height: 0px;
  264. border-style: solid;
  265. border-width: 6px 3px 6px 3px;
  266. cursor: pointer;
  267. }
  268. .triangle, .plus-triangle, .minus-triangle {
  269. position:absolute;
  270. height: 0px;
  271. border-style: solid;
  272. border-width: 6px 3px 0px 3px;
  273. cursor: pointer;
  274. }
  275. .hgred {
  276. border-color: #f99 white #f99 white;
  277. }
  278. div.hgred-hist {
  279. background-color: #daa;
  280. border-color: #d44;
  281. }
  282. .hgblue {
  283. border-color: #99f white #99f white;
  284. }
  285. div.hgblue-hist {
  286. background-color: #aad;
  287. border-color: #99f;
  288. }
  289. .ibeam, .plus-ibeam, .minus-ibeam {
  290. position:absolute;
  291. height: 2px;
  292. background-color: blue;
  293. border-style: solid;
  294. border-width: 8px 4px 8px 4px;
  295. border-color: white blue white blue;
  296. cursor: pointer;
  297. box-sizing: content-box;
  298. -moz-box-sizing: content-box;
  299. -webkit-box-sizing: content-box;
  300. -ms-box-sizing: content-box;
  301. }
  302. div.transcript-hist {
  303. background-color: #ddd;
  304. border-color: #FF9185;
  305. }
  306. .transcript,
  307. .plus-transcript,
  308. .minus-transcript {
  309. position: absolute;
  310. height: 11px;
  311. background: url('img/dark_20x3.png') repeat-x 0 4px white;
  312. z-index: 6;
  313. min-width: 1px;
  314. cursor: pointer;
  315. }
  316. .plus-transcript-arrowhead,
  317. .plus-arrowhead {
  318. position: absolute;
  319. width: 9px;
  320. height: 5px;
  321. background-image: url('img/plus-arrowhead.png');
  322. background-repeat: no-repeat;
  323. z-index: 100;
  324. }
  325. .minus-transcript-arrowhead,
  326. .minus-arrowhead {
  327. position: absolute;
  328. width: 9px;
  329. height: 5px;
  330. background-image: url('img/minus-arrowhead.png');
  331. background-repeat: no-repeat;
  332. z-index: 100;
  333. }
  334. /* introns are hidden by default */
  335. .plus-intron, .minus-intron {
  336. display: none;
  337. }
  338. /* can also set a class of 'hidden' to hide something */
  339. .hidden, .plus-hidden, .minus-hidden {
  340. display: none;
  341. }
  342. .plus-CDS,
  343. .plus-transcript-CDS,
  344. .minus-CDS,
  345. .minus-transcript-CDS {
  346. position: absolute;
  347. height: 11px;
  348. background: #F09A9A;
  349. cursor: pointer;
  350. z-index: 10;
  351. min-width: 1px;
  352. }
  353. .plus-exon,
  354. .minus-exon,
  355. .plus-UTR,
  356. .minus-UTR,
  357. .plus-five_prime_UTR,
  358. .minus-five_prime_UTR,
  359. .plus-three_prime_UTR,
  360. .minus-three_prime_UTR {
  361. position: absolute;
  362. height: 7px;
  363. background-color: #B66;
  364. border-style: solid;
  365. border-color: #D88;
  366. border-width: 2px 0px 2px 0px;
  367. z-index: 8;
  368. min-width: 1px;
  369. cursor: pointer;
  370. }
  371. .generic_parent,
  372. .plus-generic_parent,
  373. .minus-generic_parent {
  374. position: absolute;
  375. height: 4px;
  376. background-color: #AAA;
  377. z-index: 6;
  378. min-width: 1px;
  379. cursor: pointer;
  380. }
  381. div.generic_parent-hist {
  382. background-color: #ddd;
  383. border-color: #555;
  384. }
  385. .match_part,
  386. .plus-match_part,
  387. .minus-match_part {
  388. position: absolute;
  389. height: 4px;
  390. background-color: #66B;
  391. border-style: solid;
  392. border-color: #88D;
  393. border-width: 2px 0px 2px 0px;
  394. z-index: 8;
  395. min-width: 1px;
  396. cursor: pointer;
  397. }
  398. .generic_part_a,
  399. .plus-generic_part_a,
  400. .minus-generic_part_a {
  401. position: absolute;
  402. height: 4px;
  403. background-color: #6B6;
  404. border-style: solid;
  405. border-color: #8D8;
  406. border-width: 2px 0px 2px 0px;
  407. z-index: 8;
  408. min-width: 1px;
  409. cursor: pointer;
  410. }
  411. /* floating score display for wiggle tracks */
  412. .wiggleValueDisplay {
  413. background: #FFFEF0;
  414. border: 1px solid #aaa;
  415. padding: 2px;
  416. font-family: Courier New, monospace;
  417. font-weight: bold;
  418. cursor: default;
  419. -moz-box-shadow: 4px 4px 10px 2px rgba( 80, 80, 80, 0.3 );
  420. -webkit-box-shadow: 4px 4px 10px 2px rgba( 80, 80, 80, 0.3 );
  421. box-shadow: 4px 4px 10px 2px rgba( 80, 80, 80, 0.3 );
  422. }
  423. .wiggleValueDisplay table {
  424. border-spacing: 0;
  425. }
  426. .wiggleValueDisplay td {
  427. padding: 0.2em 0.4em;
  428. }
  429. .wiggleValueDisplay td.count, .wiggleValueDisplay td.pct {
  430. text-align: right;
  431. }
  432. .wiggleValueDisplay tr.total > td {
  433. border-top: 1px solid #aaa;
  434. font-weight: bold;
  435. }
  436. .wigglePositionIndicator {
  437. background: #333;
  438. border: none;
  439. width: 1px;
  440. cursor: default;
  441. }
  442. .featureTooltip {
  443. background: #FFFEF0;
  444. border: 1px solid #aaa;
  445. padding: 2px;
  446. font-family: Courier New, monospace;
  447. font-weight: bold;
  448. cursor: default;
  449. -moz-box-shadow: 4px 4px 10px 2px rgba( 80, 80, 80, 0.3 );
  450. -webkit-box-shadow: 4px 4px 10px 2px rgba( 80, 80, 80, 0.3 );
  451. box-shadow: 4px 4px 10px 2px rgba( 80, 80, 80, 0.3 );
  452. }