Creating a Custom Bullet
Greetings!
I am trying to create a custom bullet that I can use for one-step instructions. It would be an unordered list with the bullet graphic I created.
I opened the style sheet in RH2020 and added the style. When I open the style sheet in Notepad++, the code looks like this:
ul.OneStep {
list-style: none;
--prefix-size: 40px;
--prefix-fixed-size: false;
--prefix-gap: 4px;
--list-indent: 40px;
--vertical-spacing: 0px;
counter-reset: item1;
padding-left: var(--prefix-size);
margin-left: calc(var(--list-indent) - var(--prefix-size));
}
ul.OneStep>li:before {
counter-increment: item1;
content: counter(item1, none)url('../../IconImages/OneStep.png');
text-align: right;
position: absolute;
left: calc(-1 * var(--prefix-size) - var(--prefix-gap));
margin-right: var(--prefix-gap);
width: var(--prefix-size);
overflow: hidden;
}
ul.OneStep>li {
--prefix-size: 40px;
--prefix-fixed-size: false;
--prefix-gap: 4px;
--list-indent: 40px;
--vertical-spacing: 0px;
position: relative;
margin-top: calc(var(--vertical-spacing) / 2);
margin-bottom: calc(var(--vertical-spacing) / 2);
}
I have not done this before, and I have questions:
- Why are there seemingly three styles? What do those entries mean?
- Is there any way to get the text centered to the bullet?
This is my first try at adding something "complicated" to the style sheet, and I appreciate any guidance!
Cindy


