Skip to content

Commit

Permalink
build(docs): add sdk styling with variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jun 18, 2020
1 parent daac3bd commit 5ead6df
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions src/pages/docs/sdk/getting-started/styling.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,29 @@
title: 'Styling'
---

<!-- ## CSS Classnames -->

We don't inject any CSS into your application.

The card previsualization is shipped with a default minimal inline style.
Instead, the card previsualization is shipped with a default minimal inline style.

If you need to adapt the _look and feel_, two can use one of the following strategies

## CSS Variables

You can use [CSS custom properties](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties) to overwrite the default values:

**--microlink-hover-background-color**: `#f5f8fa`
**--microlink-hover-border-color**: `#8899A680`
**--microlink-background-color**: `#fff`
**--microlink-border-style**: `solid`
**--microlink-border-width**: `1px`
**--microlink-border**: `1px solid #e1e8ed`
**--microlink-color**: `#181919`
**--microlink-color**: `#e1e8ed`
**--microlink-max-width**: `500px`

## CSS Classes

If you need to adapt the _look and feel_, each component of the card has been assigned a [BEM](http://getbem.com/introduction) class name:
When the microlink UI card is rendered, each subcomponent of the card has been assigned a [BEM](http://getbem.com/introduction) class name:

- **microlink_card**: The root element of the card.
- **microlink_card\_\_content_description**: The `p` tag of the card description.
Expand Down

0 comments on commit 5ead6df

Please sign in to comment.