* { border-sizing: border-box; margin: 0; padding: 0; } body { font-family: sans-serif; padding: 20px; } .visualization { height: 700px; margin: 0 auto; position: relative; width: 1100px; } .options { color: white; left: 900px; height: 100%; min-width: 200px; position: absolute; text-align: right; top: 0; width: 200px; } .option-divider { margin: 19px 0 19px 25%; width: 75%; } .option-item { background: teal; border-radius: 16px 0 0 16px; cursor: pointer; height: 24px; line-height: 24px; margin-bottom: 4px; padding: 4px 16px 4px 4px; } .option-item:hover { opacity: 0.7; } .option-item.inactive { opacity: 0.2; } .option-text { display: inline-block; font-size: 12px; } .option-toggle { display: inline-block; margin-left: 25px; } .events { display: table; height: 100%; left: 0; position: absolute; top: 0; width: 200px; } .event-item { /*background: #CBFFC0;*/ border-color: #fff; /*border-radius: 0 16px 16px 0;*/ border-style: solid; border-width: 1px 0; cursor: pointer; filter: grayscale(100%); height: 24px; margin-bottom: 4px; opacity: 0.2; padding: 4px 4px 4px 44px; position: relative; } .event-item.active, .event-item.active:hover { background: #fdfdfd; border-color: #aaa; filter: grayscale(0%); opacity: 1; } .event-item:hover { filter: grayscale(0%); opacity: 0.8; } .event-flag { font-size: 0; left: 4px; position: absolute; top: 4px; } .event-flag .flag-icon { font-size: 24px; } .event-location { font-size: 10px; line-height: 10px; } .event-year { font-size: 13px; line-height: 14px; } .diagram { font-size: 10px; height: 700px; left: 200px; position: absolute; top: 0; width: 800px; z-index: 0; } .group-tick line { stroke: #ddd; } .ribbon { fill-opacity: 0.4; stroke-width: 1; stroke-opacity: 0.1; } .ribbon:hover { fill-opacity: 1; stroke-opacity: 1; } .sort { position: absolute; right: 0; text-align: right; top: 0; width: 200px; z-index: 1; } .sort-item { border: 1px solid brickred; cursor: pointer; font-size: 13px; line-height: 34px; padding: 0 10px; } .sort-item:hover { background: yellow; } .sort-item.active { background: red; } .rounds { bottom: 0; color: #000; position: absolute; right: 0; text-align: right; width: 200px; z-index: 1; } .round-item { cursor: pointer; font-size: 13px; line-height: 34px; opacity: 0.2; padding: 0 10px; } .round-item.active { opacity: 1; } .round-item:hover { background: yellow; } .round-hide { display: inline-block; font-size: 9px; margin-left: 20px; text-align: right; text-transform: uppercase; width: 30px; } .round-text { display: inline-block; }