-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(FEC-8671): add CVAA menu labels/ids to enable external CSS to cu…
…stomize it (#308) * add classes to the cvaa menu items add classes to the cvaa menu items background: initial, so it will be in the global style object. background initial will set the background to the default value of the browser. * docs * Update cvaa-override.md
- Loading branch information
1 parent
a987f2a
commit cd1f115
Showing
4 changed files
with
44 additions
and
7 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,27 @@ | ||
# Removing style settings from the captions menu | ||
|
||
The player enables viewers to modify the captions style using the "Advanced captions settings" in the language menu, and clicking the 'Set custom caption' button. | ||
|
||
To prevent viewers from using these modifications, simply overload the style option's class and add ```display: none``` to it. | ||
|
||
For example, adding the line below will remove the ability to change the captions color: | ||
|
||
``` | ||
.playkit-font-color { | ||
display: none | ||
} | ||
``` | ||
Refer to the list of caption settings classes below for detailed information on each class. | ||
|
||
## Captions settings class list | ||
|
||
|
||
| Class Name | Description | | ||
| -------------------------------------- | ---------------------------------------------------- | | ||
| `.playkit-font-size` | Changes the size of the captions | | ||
| `.playkit-font-color` | Changes the color of the captions | | ||
| `.playkit-font-family` | Changes the font family of the captions | | ||
| `.playkit-font-style` | Changes the weight of the captions | | ||
| `.playkit-font-opacity` | Changes the opacity of the captions | | ||
| `.playkit-background-color` | Changes the color of the captions background | | ||
| `.playkit-background-opacity` | Changes the opacity of the captions background | |
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