Skip to content

Commit 350282b

Browse files
committed
docs: refactor
1 parent 7a14d4d commit 350282b

File tree

1 file changed

+51
-24
lines changed

1 file changed

+51
-24
lines changed

src/pages/docs/sdk/getting-started/styling.md

+51-24
Original file line numberDiff line numberDiff line change
@@ -12,35 +12,62 @@ If you need to adapt the _look and feel_, two can use one of the following strat
1212

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

15-
**--microlink-hover-background-color**: `#f5f8fa`
16-
**--microlink-hover-border-color**: `#8899A680`
17-
**--microlink-background-color**: `#fff`
18-
**--microlink-border-style**: `solid`
19-
**--microlink-border-width**: `1px`
20-
**--microlink-border**: `1px solid #e1e8ed`
21-
**--microlink-color**: `#181919`
22-
**--microlink-color**: `#e1e8ed`
23-
**--microlink-max-width**: `500px`
15+
--microlink-background-color: <Color>#fff</Color><br/>
16+
--microlink-border-style: solid<br/>
17+
--microlink-border-width: 1px<br/>
18+
--microlink-border: 1px solid <Color>#e1e8ed</Color><br/>
19+
--microlink-color: <Color>#181919</Color><br/>
20+
--microlink-hover-background-color: <Color>#f5f8fa</Color><br/>
21+
--microlink-hover-border-color: <Color>#8899A680</Color><br/>
22+
--microlink-max-width: 500px<br/>
2423

2524
## CSS Classes
2625

2726
When the microlink UI card is rendered, each subcomponent of the card has been assigned a [BEM](http://getbem.com/introduction) class name:
2827

29-
- **microlink_card**: The root element of the card.
30-
- **microlink_card\_\_content_description**: The `p` tag of the card description.
31-
- **microlink_card\_\_content_title**: The `p` tag of the card title.
32-
- **microlink_card\_\_content_url**: The `span` tag of the card url link.
33-
- **microlink_card\_\_content**: The wrapper `div` around the content preview.
34-
- **microlink_card\_\_media_audio_wrapper**: The wrapper `div` around the audio preview.
35-
- **microlink_card\_\_media_audio**: The `audio` element for the audio preview.
36-
- **microlink_card\_\_media_image**: The `div` holding the `background-image` of the image preview.
37-
- **microlink_card\_\_media_video_wrapper**: The wrapper `div` around the video preview.
38-
- **microlink_card\_\_media_video**: The `video` element for the video preview.
39-
- **microlink_card\_\_media**: The media element, regardless of the media type (`video`, `image`, etc.).
40-
- **microlink_card\_\_progress_bar**: The `div` tag of the card progress.
41-
- **microlink_card\_\_spinner**: The `div` tag of the loading spinner in the card.
28+
- **microlink_card** <br/>
29+
The root element of the card.
30+
31+
- **microlink_card\_\_content_description** <br/>
32+
The `p` tag of the card description.
33+
34+
- **microlink_card\_\_content_title** <br/>
35+
The `p` tag of the card title.
36+
37+
- **microlink_card\_\_content_url** <br/>
38+
The `span` tag of the card url link.
39+
40+
- **microlink_card\_\_content** <br/>
41+
The wrapper `div` around the content preview.
42+
43+
- **microlink_card\_\_media_audio_wrapper** <br/>
44+
The wrapper `div` around the audio preview.
45+
46+
- **microlink_card\_\_media_audio** <br/>
47+
The `audio` element for the audio preview.
48+
49+
- **microlink_card\_\_media_image** <br/>
50+
The `div` holding the `background-image` of the image preview.
51+
52+
- **microlink_card\_\_media_video_wrapper** <br/>
53+
The wrapper `div` around the video preview.
54+
55+
- **microlink_card\_\_media_video** <br/>
56+
The `video` element for the video preview.
57+
58+
- **microlink_card\_\_media** <br/>
59+
The media element, regardless of the media type (`video`, `image`, etc.).
60+
61+
- **microlink_card\_\_progress_bar** <br/>
62+
The `div` tag of the card progress.
63+
64+
- **microlink_card\_\_spinner** <br/>
65+
The `div` tag of the loading spinner in the card.
4266

4367
For each SDK package there are some specific class names too:
4468

45-
- **microlink_vanilla**: A root `div` used in [Vanilla](/docs/sdk/integrations/vanilla) to render the virtual DOM.
46-
- **microlink_vue**: A root `div` used in [Vue](/docs/sdk/integrations/vue) to render the virtual DOM.
69+
- **microlink_vanilla** <br/>
70+
A root `div` used in [Vanilla](/docs/sdk/integrations/vanilla) to render the virtual DOM.
71+
72+
- **microlink_vue** <br/>
73+
A root `div` used in [Vue](/docs/sdk/integrations/vue) to render the virtual DOM.

0 commit comments

Comments
 (0)