Skip to content

Revert "feat(): Add additional styles of ordered lists" #537

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 9 additions & 49 deletions src/_sass/components/_markdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -158,64 +158,28 @@
& > ul, ol {
margin-top: 0;
}
}
}

@for $i from 1 through 10 {
ol[start="#{$i}"] {
@if $i > 1 {
counter-reset: section #{$i - 1};
} @else {
counter-reset: section #{$i};
}
}
}

ol {
list-style-type: none;
counter-reset: section;
counter-reset: list-items;
padding-left: 25px;

&.lower-roman {
li {
&::before {
content: counters(section, ".", lower-roman) ". ";
}
}
}

&.upper-roman {
li {
&::before {
content: counters(section, ".", upper-roman) ". ";
}
}
}

&.lower-alpha {
li {
&::before {
content: counters(section, ".", lower-alpha) ". ";
}
}
}

&.upper-alpha {
li {
&::before {
content: counters(section, ".", upper-alpha) ". ";
}
}
}

li {
& > li {
counter-increment: list-items;
line-height: 30px;
position: relative;

&::before {
counter-increment: section;
content: counters(section, ".") ". ";
content: counter(list-items) ". ";
display: block;
top: 0;
color: color(primary-dark);
font-weight: 500;
position: absolute;
left: -20px;
}

& > ul, ol {
Expand All @@ -224,10 +188,6 @@
}
}

& > ol {
padding-left: 0;
}

table {
border-collapse: collapse;
text-align: left;
Expand Down
94 changes: 7 additions & 87 deletions src/styleguide.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,100 +41,20 @@ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor

## Lists

#### unordered
1. one
1. nested
2. two
1. nested
3. three
1. nested

* Item
* First Subitem
* Second Subitem
* Item
- Subitem
- Subitem

#### ordered

1. one
2. two
3. three


#### nested ordered

1. one
1. nested
2. nested
2. two
1. nested
2. nested
3. three
1. nested
2. nested
3. more nested
4. more nested


#### ordered with start number = 6

{: start="6"}
1. lorem
2. ipsum
3. ipsum

#### lower roman

{:.lower-roman}
1. lorem
2. ipsum
3. nested
4. nested

#### upper roman

{:.upper-roman}
1. lorem
2. ipsum

#### lower alpha

{:.lower-alpha}
1. lorem
2. lorem nested
3. lorem nested
2. ipsum
3. ipsum nested
4. ipsum nested
5. ipsum nested
5. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
6. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud.

#### upper alpha

{:.upper-alpha}
1. lorem
2. ipsum
3. nested
4. nested

### 2. Definitions

For purposes of this Addendum, the terms below have the meanings set
forth below. Capitalized terms that are used but not defined in this
Addendum have the meanings given in the Agreement.

{: start="2"}
1. "**Affiliate**" means any entity that directly or indirectly controls, is controlled by or is under common control with the subject entity, where "control" refers to the power to direct or cause the direction of the subject entity, whether through ownership of voting securities, by contract or otherwise.
2. "**CCPA**" means the California Consumer Privacy Act of 2018, as amended from time to time.
3. "**Customer Personal Data**" means any Customer Data (as defined in theAgreement) that is Personal Data. For purposes of this Addendum, Customer Personal Data does not include personal information of employees or other representatives of Customer with whom Segment has a direct business relationship.
4. "**Data Protection Laws**" means, with respect to a party, all privacy,data protection and information security-related laws and regulations applicable to such party's Processing of Personal Data, including, where applicable, EU Data Protection Law and the CCPA.
5. Lorem
6. ipsum

### 3. General Termination

{:.lower-alpha}
1. This Addendum forms part of the Agreement and except as expressly set forth in this Addendum, the Agreement remains unchanged and in full force and effect. If there is any conflict between this Addendum and the Agreement, this Addendum shall govern.
2. Any liabilities arising under this Addendum are subject to the limitations of liability in the Agreement.
3. This Addendum will be governed by and construed in accordance with governing law and jurisdiction provisions in the Agreement, unless required otherwise by applicable Data Protection Laws.
4. This Addendum will automatically terminate upon expiration or termination of the Agreement.
* Item

{% include components/list-steps.html number="1" heading="Totally new here?" content="Not sure what to track or why? Check out Segment's Analytics Academy to learn more about the wide world of analytics, including the what and why and some stories about beautiful stacks." %}
{% include components/list-steps.html number="2" heading="Totally new here?" content="Not sure what to track or why? Check out Segment's Analytics Academy to learn more about the wide world of analytics, including the what and why and some stories about beautiful stacks." %}
Expand Down