From 04b264e371ec82491877c0489954c8abaef6aa8e Mon Sep 17 00:00:00 2001 From: Liliana Sanfilippo <lsanfilippo@techfak.uni-bielefeld.de> Date: Thu, 14 Nov 2024 17:22:24 +0100 Subject: [PATCH] more css --- src/App/App.css | 9 ++------- src/components/Buttons.tsx | 15 ++------------- 2 files changed, 4 insertions(+), 20 deletions(-) diff --git a/src/App/App.css b/src/App/App.css index 7cc1be7a..ee90c40e 100644 --- a/src/App/App.css +++ b/src/App/App.css @@ -470,13 +470,6 @@ margin-bottom: 10vw !important; margin-bottom: 20px !important; } -.h2-box{ - max-width: 100%; - margin-top: 8vh !important; - margin-bottom: 8vh !important; - height: auto; -} - h1, h2, h3, h4, h5{ padding-top: var(--small-padding) !important; @@ -3010,6 +3003,8 @@ button { } .btn-one { border-style: none; + height: 100px; + width: 200px; padding: var(--small-padding) var(--simple-padding) !important; background: var(--ourgradient); color: var(--ourbeige); diff --git a/src/components/Buttons.tsx b/src/components/Buttons.tsx index 14ff58e1..ccf9743d 100644 --- a/src/components/Buttons.tsx +++ b/src/components/Buttons.tsx @@ -179,17 +179,13 @@ export function ButtonOne({text, open, openclass}: {text:string, open:string, op const { goToPagesAndOpenTab } = useNavigation(); if (openclass) { return( - <div className="boxy-1"> - - </div> + <button className="btn-one" onClick={() => goToPagesAndOpenTab(open, "")}>{text}</button> ) } else{ return( - <div className="boxy-1"> <button className="btn-one" onClick={() => openFromOtherPage(open)}>{text}</button> - </div> ) } } @@ -198,9 +194,7 @@ export function ButtonOneWithScroll({text, open, openclass, scrollId}: {text:str const { goToPageWithTabAndScroll } = useNavigation(); if (openclass) { return( - <div className="boxy-1"> <button className="btn-one" onClick={() => goToPageWithTabAndScroll({ path: "", tabId: open, scrollToId: scrollId })}>{text}</button> - </div> ) } else{ @@ -218,12 +212,7 @@ export function ButtonOneWithScroll({text, open, openclass, scrollId}: {text:str export function ButtonOneEngineering({label, open, scrollToId}: {label:string, open:string, scrollToId: string}){ return( - <div className="boxy-1"> - <span typeof="button" onClick={openThem({it: open, scrollToId})}> - <div className="btn-new btn-one"> - {label} - </div></span> - </div> + <button className="btn-one" onClick={openThem({it: open, scrollToId})}>{label}</button> ) } -- GitLab