Tooltips
These styles define the look and feel of all contextual tooltips in the viewer.
Common styles
Common
All the tooltips inherit from these styles.
| Attribute | Type | Default | Description |
|---|---|---|---|
| integer | 4 | Vertical padding In pixels |
| integer | 4 | Horizontal padding In pixels |
| integer | 150 | Maximum width for a tooltip In pixels |
| integer | 8 | Size of the tip In pixels. Use 0 to remove tip completely. |
| float | 0.5 | Delay before displaying the tooltip In seconds |
Background
Inherits from common.theme.background
| Attribute | Type | Default | Description |
|---|---|---|---|
| color | Background color | |
| percent | 0 | Background opacity |
Border
Inherits from common.theme.border
| Attribute | Type | Default | Description |
|---|---|---|---|
| color | Border color | |
| integer | 0 | Border thickness In pixels |
| percent | 0 | Border opacity |
| integer | 0 | Corner radius In pixels |
Shadow
Inherits from common.theme.shadow
| Attribute | Type | Default | Description |
|---|---|---|---|
| color | Shadow color | |
| integer | 0 | Shadow size In pixels |
| integer | 0 | Shadow angle In degrees starting from the right and going clockwise |
| percent | 0 | Shadow opacity |
Label
Formats the tooltip label.
Inherits from common.text
| Attribute | Type | Default | Description |
|---|---|---|---|
| select | Text font | |
| integer | 11 | Text size |
| color | Text color | |
| percent | 0 | Text opacity |
| boolean | false | Use bold text |
| boolean | false | Use italic text |
Transition
Use these styles to configure the tooltip transitions.
| Attribute | Type | Default | Description |
|---|---|---|---|
| float | 0.5 | Duration of the transition In seconds. Use 0 to remove transition completely. |
| Attribute | Type | Default | Description |
|---|---|---|---|
| float | 0 | Duration of the transition In seconds. Use 0 to remove transition completely |
Actions
Action tooltips are shown when the user places the cursor over a <button>.
Common
Inherits from tooltips.common
| Attribute | Type | Default | Description |
|---|---|---|---|
| integer | 0 | Vertical padding In pixels |
| integer | 0 | Horizontal padding In pixels |
| integer | 0 | Maximum width In pixels |
| integer | 0 | Size of the tip In pixels. Use 0 to remove tip completely. |
Background
Inherits from tooltips.common.background
| Attribute | Type | Default | Description |
|---|---|---|---|
| color | Background color | |
| percent | 0 | Background opacity |
Border
Inherits from tooltips.common.border
| Attribute | Type | Default | Description |
|---|---|---|---|
| color | Border color | |
| integer | 0 | Border thickness In pixels |
| percent | 0 | Border opacity |
| integer | 0 | Corner radius In pixels |
Shadow
Inherits from tooltips.common.shadow
| Attribute | Type | Default | Description |
|---|---|---|---|
| color | Shadow color | |
| integer | 0 | Shadow size In pixels |
| integer | 0 | Shadow angle In degrees starting from the right and going clockwise |
| percent | 0 | Shadow opacity |
Label
Formats the label.
Inherits from tooltips.common.text
| Attribute | Type | Default | Description |
|---|---|---|---|
| select | Text font | |
| integer | 0 | Text size |
| color | Text color | |
| percent | 0.75 | Text opacity |
| boolean | false | Use bold text |
| boolean | false | Use italic text |
Page
Page preview tooltips are shown when the user places the cursor over an internal link or a <button> that triggers a page action (see Button actions ).
Common
Inherits from tooltips.common
| Attribute | Type | Default | Description |
|---|---|---|---|
| integer | 0 | Vertical padding In pixels |
| integer | 0 | Horizontal padding In pixels |
| integer | 0 | Maximum width In pixels |
| integer | 0 | Size of the tip In pixels. Use 0 to remove tip completely. |
Background
Inherits from tooltips.common.background
| Attribute | Type | Default | Description |
|---|---|---|---|
| color | Background color | |
| percent | 0 | Background opacity |
Border
Inherits from tooltips.common.border
| Attribute | Type | Default | Description |
|---|---|---|---|
| color | Border color | |
| integer | 0 | Border thickness In pixels |
| percent | 0 | Border opacity |
| integer | 0 | Corner radius In pixels |
Shadow
Inherits from tooltips.common.shadow
| Attribute | Type | Default | Description |
|---|---|---|---|
| color | Shadow color | |
| integer | 0 | Shadow size In pixels |
| integer | 0 | Shadow angle In degrees starting from the right and going clockwise |
| percent | 0 | Shadow opacity |
Thumbnail
Formats the page preview thumbnails.
| Attribute | Type | Default | Description |
|---|---|---|---|
| integer | 75 | Thumbnail width In pixels. The height of the thumbnail will be calculated according to the publication aspect ratio. |
Inherits from thumbs.border
| Attribute | Type | Default | Description |
|---|---|---|---|
| color | Border color | |
| integer | 0 | Border thickness In pixels |
| percent | 0 | Border opacity |
| integer | 0 | Corner radius In pixels |
Inherits from thumbs.background
| Attribute | Type | Default | Description |
|---|---|---|---|
| color | Background color | |
| percent | 0.1 | Background opacity |
Inherits from thumbs.text
| Attribute | Type | Default | Description |
|---|---|---|---|
| select | Text font | |
| integer | 0 | Text size |
| color | Text color | |
| percent | 0 | Text opacity |
| boolean | false | Use bold text |
| boolean | false | Use italic text |
Links
Links tooltips are shown when the user places the cursor over an external link or a <button> that triggers a URL action (see Button actions).
Common
Inherits from tooltips.common
| Attribute | Type | Default | Description |
|---|---|---|---|
| integer | 0 | Vertical margin In pixels |
| integer | 0 | Horizontal margin In pixels |
| integer | 0 | Maximum width In pixels |
| integer | 0 | Size of the tip In pixels. Use 0 to remove tip completely. |
Background
Inherits from tooltips.common.background
| Attribute | Type | Default | Description |
|---|---|---|---|
| color | Background color | |
| percent | 0 | Background opacity |
Border
Inherits from tooltips.common.border
| Attribute | Type | Default | Description |
|---|---|---|---|
| color | Border color | |
| integer | 0 | Border thickness In pixels |
| percent | 0 | Border opacity |
| integer | 0 | Corner radius In pixels |
Shadow
Inherits from tooltips.common.shadow
| Attribute | Type | Default | Description |
|---|---|---|---|
| color | Shadow color | |
| integer | 0 | Shadow size In pixels |
| integer | 0 | Shadow angle In degrees starting from the right and going clockwise |
| percent | 0 | Shadow opacity |
Label
Formats the external link label.
Inherits from tooltips.common.text
| Attribute | Type | Default | Description |
|---|---|---|---|
| select | Text font | |
| integer | 12 | Text size |
| color | Text color | |
| percent | 0 | Text opacity |
| boolean | true | Use bold text |
| boolean | false | Use italic text |
URL
Formats the external link URL.
Inherits from tooltips.common.text
| Attribute | Type | Default | Description |
|---|---|---|---|
| select | Text font | |
| integer | 0 | Text size |
| color | Text color | |
| percent | 0.75 | Text opacity |
| boolean | false | Use bold text |
| boolean | false | Use italic text |