-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b3c6a13
commit cd5f89d
Showing
11 changed files
with
128 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from "react" | ||
import ThemedImage from '@theme/ThemedImage' | ||
import clsx from 'clsx' | ||
import styles from './styles.module.css' | ||
|
||
export default function BorderedIcon ({ icon, wrapperClassName, iconClassName }) { | ||
return ( | ||
<span className={clsx(styles.iconWrapper, 'no-zoom-img', wrapperClassName)}> | ||
<ThemedImage sources={{ | ||
light: icon.light, | ||
dark: icon.dark || icon.light | ||
}} className={clsx(styles.icon, iconClassName)} /> | ||
</span> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.iconWrapper { | ||
display: inline-flex; | ||
justify-content: center; | ||
align-items: center; | ||
padding: 2px; | ||
border: 1px solid var(--medusa-border-strong); | ||
border-radius: var(--ifm-global-radius); | ||
margin-right: 16px; | ||
width: fit-content; | ||
} | ||
|
||
.icon { | ||
background-color: var(--medusa-bg-component); | ||
height: 24px; | ||
width: 24px; | ||
padding: 2px; | ||
border-radius: var(--ifm-global-radius); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,49 @@ | ||
.cardContainer { | ||
--ifm-link-hover-decoration: none; | ||
--ifm-background-color: #fff; | ||
--ifm-background-color-hover: #F9FAFB; | ||
--ifm-border-color: #E5E7EB; | ||
|
||
background-color: var(--ifm-background-color); | ||
border: 1px solid var(--ifm-border-color) !important; | ||
border-radius: 8px; | ||
box-shadow: none !important; | ||
transition: all var(--ifm-transition-fast) ease; | ||
transition-property: border, box-shadow; | ||
|
||
display: flex; | ||
flex-direction: row; | ||
padding: 16px 24px; | ||
padding: 24px; | ||
height: 100%; | ||
} | ||
|
||
[data-theme="dark"] .cardContainer { | ||
--ifm-background-color-hover: #2D2D2D; | ||
--ifm-background-color: #222222; | ||
--ifm-border-color: #393939; | ||
} | ||
|
||
.cardContainer:hover { | ||
background-color: var(--ifm-background-color-hover); | ||
} | ||
|
||
.cardContainer *:last-child { | ||
margin-bottom: 0; | ||
} | ||
|
||
.cardTitle { | ||
font-size: 14px; | ||
line-height: 24px; | ||
margin-bottom: 4px; | ||
font-size: var(--medusa-body-regular-size); | ||
line-height: var(--medusa-body-regular-line-height); | ||
font-weight: 500; | ||
color: var(--ifm-color-primary); | ||
margin-bottom: 8px; | ||
display: block; | ||
} | ||
|
||
.cardDescription { | ||
font-size: 14px; | ||
line-height: 24px; | ||
font-size: var(--medusa-label-regular-size); | ||
line-height: var(--medusa-label-regular-line-height); | ||
font-weight: var(--medusa-label-regular-font-weight); | ||
color: var(--ifm-color-content); | ||
} | ||
|
||
.contentContainer { | ||
width: calc(100% - 20px); | ||
} | ||
|
||
.cardTitle img { | ||
vertical-align: bottom; | ||
margin-right: 2px; | ||
.image { | ||
background-color: var(--medusa-bg-component); | ||
height: 24px; | ||
width: 24px; | ||
padding: 2px; | ||
border-radius: var(--ifm-global-radius); | ||
} | ||
|
||
.imageContainer { | ||
width: 20px; | ||
height: 20px; | ||
display: inline-flex; | ||
justify-content: center; | ||
align-items: center; | ||
padding: 2px; | ||
border: 1px solid var(--medusa-border-strong); | ||
border-radius: var(--ifm-global-radius); | ||
margin-right: 16px; | ||
margin-top: 3px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.