UNPKG

phylotree

Version:

A JavaScript library for developing applications and interactive visualizations involving [phylogenetic trees](https://en.wikipedia.org/wiki/Phylogenetic_tree), written as an extension of the [D3](http://d3js.org) [hierarchy layout](https://github.com/d3/

94 lines (84 loc) 1.92 kB
/** * phylotree-menus.css - Standalone menu styles (no Bootstrap dependency) * * This file provides native styling for phylotree context menus. * Include this CSS file to use menus without Bootstrap. */ .phylotree-context-menu { position: absolute; display: none; min-width: 160px; padding: 8px 0; margin: 0; background-color: #ffffff; border: 1px solid rgba(0, 0, 0, 0.15); border-radius: 4px; box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); z-index: 1000; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 14px; color: #212529; list-style: none; } .phylotree-menu-item { display: block; padding: 6px 20px; color: #212529; text-decoration: none; cursor: pointer; white-space: nowrap; background-color: transparent; border: none; width: 100%; text-align: left; box-sizing: border-box; } .phylotree-menu-item:hover, .phylotree-menu-item:focus { background-color: #f8f9fa; color: #16181b; outline: none; } .phylotree-menu-item:active { background-color: #e9ecef; } .phylotree-menu-divider { height: 0; margin: 8px 0; overflow: hidden; border-top: 1px solid #e9ecef; } .phylotree-menu-header { display: block; padding: 6px 20px; margin-bottom: 0; font-size: 12px; font-weight: 600; color: #6c757d; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.5px; } /* Selection set color indicators */ .phylotree-set-indicator { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: middle; } /* Animation for menu appearance */ .phylotree-context-menu[style*="display: block"] { animation: phylotree-menu-fade-in 0.15s ease-out; } @keyframes phylotree-menu-fade-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }