Skip to content

Commit

Permalink
fix: button hover, destination & hover behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
Joelheile committed May 20, 2024
1 parent 6cd1f77 commit 22109a8
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 12 deletions.
4 changes: 3 additions & 1 deletion docs/product/find-problem.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ Die Ursachen sind viel zu vielfältig und man würde rein gar nichts am Problem
</TwoColumns>

Eine Lösung sollte den Virus (Ursache) bekämpfen und nicht einfach nur die
Symptome (Schnupfen)
Symptome (Schnupfen).

(Ursachen können übrigens auch Symptome anderer Ursachen sein!)

## Finde die Ursache

Expand Down
2 changes: 1 addition & 1 deletion docs/start.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ Community Plattform von anderen Mitgliedern Unterstützung zu bekommen? [Hier](h
Dieses Wiki ist noch in der Beta-Version und wird stetig weiterentwickelt und verbessert.
Wir würden uns freuen, wenn du Feedback zum Inhalt sowie Ideen und Gedanken bei Insta an @youngfoundersnetwork schreibst oder einfach unten auf "Diese Seite bearbeiten" gehst 💛

<Button>Roadmap starten!</Button>
<Button destination="/roadmap/docs/startup-basics/product/find-problem">Roadmap starten!</Button>
9 changes: 8 additions & 1 deletion src/components/Button.tsx
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
export const Button = ({ children }) => <button>{children}</button>;
import Link from "@docusaurus/Link";
import React from "react";

export const Button = ({ children, destination }) => (
<Link to={destination} className="link-no-underline">
<button>{children}</button>
</Link>
);
6 changes: 3 additions & 3 deletions src/components/Tooltipp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ export const Tooltipp = ({
<p>{toolDescription}</p>
<div className="flex flex-row mt-4 justify-start gap-4">
{tutorialSource && (
<Link to={tutorialSource} className="no-underline">
<Link to={tutorialSource} className="link-no-underline">
<button>Tutorial anschauen</button>
</Link>
)}
<Link to={toolSource} className="no-underline">
<button>{buttonText}</button>
<Link to={toolSource} className="link-no-underline">
<button style={{textDecoration: "none"}}>{buttonText}</button>
</Link>
</div>
</div>
Expand Down
21 changes: 15 additions & 6 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ h1 {

h2 {
display: inline-block;
background-color: var(--color-contrast);
color: var(--color-on-contrast);
background-color: black;
color: white;
font-weight: bold;
padding: 0.25em;
padding-left: 0.5em;
Expand All @@ -70,6 +70,11 @@ h2 {
letter-spacing: -1px;
}

[data-theme="dark"] h2{
color: black;
background-color: white;
}

h2 a {
display: none;
}
Expand All @@ -81,6 +86,11 @@ h2 a {
a {
text-decoration: underline;
}
button, button a,
.button a {
text-decoration: none;
}

a:hover {
font-weight: bold;
color: var(--color-contrast);
Expand All @@ -93,7 +103,7 @@ a:hover {
a > button {
text-decoration: none;
}
button a {
.link-no-underline {
text-decoration: none !important;
}
button {
Expand All @@ -109,11 +119,10 @@ button {
width: 100%;
justify-content: center;
}

[data-theme="dark"] button:hover {
button:hover {
color: black;
background-color: var(--ifm-color-primary);
text-decoration-color: var(--ifm-color-primary);
text-decoration: none;
}

.menu__link,
Expand Down

0 comments on commit 22109a8

Please sign in to comment.