diff --git a/src/App/App.css b/src/App/App.css index 66f993906c1dc3a8cea1d59d6fff6ec728228050..3f184b57dd943858346261dc86b3ed2a604b0e48 100644 --- a/src/App/App.css +++ b/src/App/App.css @@ -471,20 +471,44 @@ color: white; text-decoration: underline; } - - - - + /* * * * * * * * */ + /* * *BUTTONS* * */ /* * * * * * * * */ + .hp-more-button{ + padding: 5px; + border-radius: 10px; + padding-left: 10px; + padding-right: 10px; + margin-left: 5px; + margin-right: 5px; + } + + .hp-more-button :hover{ + filter: brightness(0.5); + } + + + button.tabbutton.Patient.active, button.tabbutton.All.active, + button.tabbutton.Industry.active, button.tabbutton.Academia.active, + button.tabbutton.Medical.active { + border-color: black; + } + + + .tabbutton { + padding: 5px; + border-radius: 10px; + padding-left: 10px; + padding-right: 10px; + margin-left: 5px; + margin-right: 5px; + } + /* * * * * * * * */ /*VILLAGE BUTTONS*/ - - - - /* * * * * * * * */ @@ -1040,11 +1064,7 @@ background-color: white; } - button.tabbutton.Patient.active, button.tabbutton.All.active, - button.tabbutton.Industry.active, button.tabbutton.Academia.active, - button.tabbutton.Medical.active { - border-color: black; - } + .Patient { background-color: var(--accen-secondary); @@ -2187,11 +2207,4 @@ display: none; } - .tabbutton { - padding: 5px; - border-radius: 10px; - padding-left: 10px; - padding-right: 10px; - margin-left: 5px; - margin-right: 5px; - } \ No newline at end of file + \ No newline at end of file diff --git a/src/components/Buttons.tsx b/src/components/Buttons.tsx index 9bb8c228d3c00a134ae52c7b874c483928b9f205..57dfbbad2837ee59959cf870771be9827b5116fc 100644 --- a/src/components/Buttons.tsx +++ b/src/components/Buttons.tsx @@ -1,5 +1,6 @@ import { Link } from "react-router-dom"; import { openTab } from "../contents"; +import { openCity } from "./HorizontalTimeline"; interface UrlButtonProps{ href: string, @@ -110,4 +111,10 @@ export function TabButton({classy, name, closing, opentype, type}:TabButtonProps <button className={classname} onClick={openTab({cityName: type, cla: opentype, weg: closing })}> {name}</button> </> ) +} + +export function HPMoreButton({name}: {name: string}){ + return( + <button className="tablinks hp-more-button" onClick={openCity({cityName: name})}> More</button> + ) } \ No newline at end of file diff --git a/src/components/HorizontalTimeline.tsx b/src/components/HorizontalTimeline.tsx index f2e73c9eb4f728d3ff5af75e085f710adb626aa8..b9d6efe4a634149c5882d69427f44b30b5065659 100644 --- a/src/components/HorizontalTimeline.tsx +++ b/src/components/HorizontalTimeline.tsx @@ -1,4 +1,4 @@ - +import { HPMoreButton } from "./Buttons"; function TimeItem({tag, title, children, pic, author, tabid}: ItemProps){ let cl = "t-tag " + tag; @@ -20,7 +20,7 @@ function TimeItem({tag, title, children, pic, author, tabid}: ItemProps){ <p>{children}</p> <div className="tab"> - <button className="tablinks" onClick={openCity({cityName: tabid})}>More</button> + <HPMoreButton name={tabid}/> </div> </div> </div>