diff --git a/webapp/src/app/modules/person-overview/components/research-timeline/research-timeline.component.scss b/webapp/src/app/modules/person-overview/components/research-timeline/research-timeline.component.scss index f01026db..435fc47e 100644 --- a/webapp/src/app/modules/person-overview/components/research-timeline/research-timeline.component.scss +++ b/webapp/src/app/modules/person-overview/components/research-timeline/research-timeline.component.scss @@ -6,6 +6,32 @@ background: #ffffff; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04); box-sizing: border-box; + + button { + font-family: inherit; + } + + button:not(.topic-chip):not(.mini-topic-chip) { + border: 0; + background: transparent; + padding: 0; + cursor: pointer; + } + + button:hover:not(:disabled) { + color: #0057ff; + text-decoration: underline; + } + + button:focus-visible { + outline: 2px solid #0057ff; + outline-offset: 2px; + border-radius: 3px; + } + + button:disabled { + cursor: default; + } } .timeline-header { @@ -49,13 +75,10 @@ background: #ffffff; button { - border: none; border-radius: 8px; padding: 9px 18px; - background: transparent; color: #3f4b66; font-size: 14px; - cursor: pointer; transition: all 0.2s ease; &:hover { @@ -103,21 +126,12 @@ font-weight: 700; } -.reset-range-button, -.phase-toggle { - border: none; - background: transparent; - color: #0057ff; - cursor: pointer; - padding: 0; -} - .reset-range-button { + color: #0057ff; font-size: 11px; &:disabled { color: #9aa5bc; - cursor: default; } } @@ -143,7 +157,6 @@ position: relative; height: 22px; - margin: 0; } .range-track { @@ -168,56 +181,44 @@ .range-input { position: absolute; - top: 0; - left: 0; + inset: 0; width: 100%; height: 22px; margin: 0; appearance: none; background: transparent; pointer-events: none; +} - &::-webkit-slider-runnable-track { - height: 5px; - background: transparent; - border: none; - } +.range-input::-webkit-slider-runnable-track, +.range-input::-moz-range-track { + height: 5px; + background: transparent; + border: none; +} - &::-moz-range-track { - height: 5px; - background: transparent; - border: none; - } +.range-input::-webkit-slider-thumb { + appearance: none; + width: 15px; + height: 15px; + margin-top: -5px; + border: 2px solid #ffffff; + border-radius: 50%; + background: #0057ff; + box-shadow: 0 0 0 1px #9ab7ff, 0 2px 6px rgba(0, 87, 255, 0.22); + cursor: pointer; + pointer-events: auto; +} - &::-webkit-slider-thumb { - appearance: none; - width: 15px; - height: 15px; - margin-top: -5px; - border: 2px solid #ffffff; - border-radius: 50%; - background: #0057ff; - box-shadow: 0 0 0 1px #9ab7ff, 0 2px 6px rgba(0, 87, 255, 0.22); - cursor: pointer; - pointer-events: auto; - } - - &::-moz-range-thumb { - width: 15px; - height: 15px; - border: 2px solid #ffffff; - border-radius: 50%; - background: #0057ff; - box-shadow: 0 0 0 1px #9ab7ff, 0 2px 6px rgba(0, 87, 255, 0.22); - cursor: pointer; - pointer-events: auto; - } - - &:focus-visible::-webkit-slider-thumb, - &:focus-visible::-moz-range-thumb { - outline: 2px solid #07163d; - outline-offset: 2px; - } +.range-input::-moz-range-thumb { + width: 15px; + height: 15px; + border: 2px solid #ffffff; + border-radius: 50%; + background: #0057ff; + box-shadow: 0 0 0 1px #9ab7ff, 0 2px 6px rgba(0, 87, 255, 0.22); + cursor: pointer; + pointer-events: auto; } .range-input-start { @@ -253,8 +254,6 @@ position: absolute; top: -5px; right: -10px; - width: 0; - height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 12px solid #23395d; @@ -296,7 +295,6 @@ .timeline-content { display: grid; - gap: 0; margin-top: 8px; } @@ -323,35 +321,6 @@ font-size: 12px; } -button.year-button, -button.main-topic-button, -button.publication-count-button, -button.phase-publications-button, -button.phase-year-publication-button, -button.phase-year-button, -button.phase-years-button { - border: 0; - background: transparent; - font-family: inherit; - cursor: pointer; - padding: 0; - - &:hover:not(:disabled) { - color: #0057ff; - text-decoration: underline; - } - - &:focus-visible { - outline: 2px solid #0057ff; - outline-offset: 2px; - border-radius: 3px; - } - - &:disabled { - cursor: default; - } -} - .publication-count-button { width: fit-content; margin: 0 auto 14px; @@ -394,11 +363,7 @@ button.phase-years-button { &:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12); - } - - &:focus-visible { - outline: 2px solid #0057ff; - outline-offset: 2px; + text-decoration: none; } &:disabled { @@ -406,8 +371,8 @@ button.phase-years-button { } } -.topic-name { - min-width: 0; +.topic-name, +.mini-topic-chip span { overflow-wrap: anywhere; } @@ -514,6 +479,7 @@ button.phase-years-button { .phase-toggle { margin-top: 13px; + color: #0057ff; font-size: 12px; font-weight: 700; } @@ -528,21 +494,6 @@ button.phase-years-button { border-top: 1px solid #dbe5f6; overflow-y: auto; overflow-x: hidden; - scrollbar-gutter: stable; - overscroll-behavior: contain; - - &::-webkit-scrollbar { - width: 8px; - } - - &::-webkit-scrollbar-thumb { - border-radius: 999px; - background: #c8d4e8; - } - - &::-webkit-scrollbar-track { - background: transparent; - } } .phase-year-row { @@ -605,21 +556,13 @@ button.phase-years-button { &:hover:not(:disabled) { color: #0057ff; - } - - &:focus-visible { - outline: 2px solid #0057ff; - outline-offset: 2px; + text-decoration: none; } &:disabled { cursor: default; } - span { - overflow-wrap: anywhere; - } - strong { color: #0057ff; font-size: 10px;