@@ -12,35 +12,62 @@ If you need to adapt the _look and feel_, two can use one of the following strat
12
12
13
13
You can use [ CSS custom properties] ( https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties ) to overwrite the default values:
14
14
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 />
24
23
25
24
## CSS Classes
26
25
27
26
When the microlink UI card is rendered, each subcomponent of the card has been assigned a [ BEM] ( http://getbem.com/introduction ) class name:
28
27
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.
42
66
43
67
For each SDK package there are some specific class names too:
44
68
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