-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Policy Numbering): Policy numbering moved to its own component fo…
…r now until style can be completed
- Loading branch information
1 parent
0277e4f
commit 7547543
Showing
3 changed files
with
94 additions
and
93 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
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,93 @@ | ||
// Policy numbering style | ||
.content ol.policy-numbering { | ||
counter-reset: section; | ||
list-style-type: none; | ||
line-height: 1.5; | ||
|
||
p { | ||
font-size: 0.9rem; | ||
margin-bottom: 1rem; | ||
margin-top: 1rem; | ||
} | ||
|
||
li { | ||
position: relative; | ||
padding-left: 4rem; | ||
margin-top: 1rem; | ||
margin-bottom: 1rem; | ||
font-size: 0.9rem; | ||
|
||
&::before { | ||
counter-increment: section; | ||
content: counters(section, ".") ".0 "; | ||
position: absolute; | ||
left: 0; | ||
} | ||
} | ||
|
||
// Reset the counter for nested lists | ||
ol { | ||
counter-reset: section; | ||
list-style-type: none; | ||
|
||
li { | ||
padding-left: 4rem; | ||
margin-top: 1rem; | ||
margin-bottom: 1rem; | ||
font-size: 0.9rem; | ||
} | ||
|
||
li::before { | ||
counter-increment: section; | ||
content: counters(section, ".") " "; | ||
} | ||
} | ||
// Avoid incremeting ul bullets | ||
ul { | ||
counter-reset: section; | ||
|
||
li { | ||
padding-left: 2rem; | ||
margin-top: 1rem; | ||
margin-bottom: 1rem; | ||
font-size: 0.9rem; | ||
list-style-type: lower-alpha; | ||
} | ||
|
||
li::before { | ||
display: none; | ||
} | ||
} | ||
|
||
ul li ul { | ||
li { | ||
padding-left: 2rem; | ||
margin-top: 1rem; | ||
margin-bottom: 1rem; | ||
font-size: 0.9rem; | ||
list-style-type: lower-roman; | ||
} | ||
|
||
li::before { | ||
display: none; | ||
} | ||
} | ||
|
||
// Third level | ||
ol li ol li { | ||
padding-left: 4rem; | ||
margin-top: 1rem; | ||
margin-bottom: 1rem; | ||
font-size: 0.9rem; | ||
list-style-type: none; | ||
} | ||
|
||
// Fourth level | ||
ol li ol li ol li { | ||
padding-left: 4rem; | ||
margin-top: 1rem; | ||
margin-bottom: 1rem; | ||
font-size: 0.9rem; | ||
list-style-type: none; | ||
} | ||
} |
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