Skip to content

Commit

Permalink
imp : bulleted and numbered lists formatting. Second line should be i…
Browse files Browse the repository at this point in the history
  • Loading branch information
nikeo committed Oct 13, 2017
1 parent bb9577d commit c9afd6c
Show file tree
Hide file tree
Showing 8 changed files with 103 additions and 23 deletions.
18 changes: 15 additions & 3 deletions assets/front/css/_dev/style-rtl-without-bootstrap.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/front/css/_dev/style-rtl-without-bootstrap.css.map

Large diffs are not rendered by default.

18 changes: 15 additions & 3 deletions assets/front/css/_dev/style-without-bootstrap.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/front/css/_dev/style-without-bootstrap.css.map

Large diffs are not rendered by default.

18 changes: 15 additions & 3 deletions assets/front/css/rtl.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 15 additions & 3 deletions assets/front/css/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/front/css/style.min.css

Large diffs are not rendered by default.

48 changes: 40 additions & 8 deletions assets/front/scss/0_4_layout/_content.scss
Expand Up @@ -27,27 +27,59 @@




//formatting //formatting
//http://www.456bereastreet.com/archive/201105/styling_ordered_list_numbers/
//https://css-tricks.com/almanac/properties/l/list-style/
//https://en.oxforddictionaries.com/punctuation/bullet-points
ol { ol {
counter-reset: item; counter-reset: item;
> li:before { > li {
content: counters(item, ".") "."; position: relative;
counter-increment: item; padding: 0.25rem 0.5rem;
padding-right: .5em; }
@if ( true == $is_rtl ) {
> li:before {
content: counters(item, ".") ".";
counter-increment: item;
margin-left: 0.5em;
right: -1em;
position: absolute;
width: 1em;
}
}
@else {
> li:before {
content: counters(item, ".") ".";
counter-increment: item;
margin-right: 0.5em;
left: -1em;
position: absolute;
width: 1em;
}
} }
} }
ul > li { padding: 0.25rem 0.5rem; }

ol, ul { ol, ul {
.tc-content-inner & { .tc-content-inner & {

@if ( true == $is_rtl ) { @if ( true == $is_rtl ) {
margin-right: 1em; padding: 0.5rem 3rem 1rem 0;
} }
@else { @else {
margin-left: 1em; padding: 0.5rem 0 1rem 3rem;;
} }
} }
@at-root .tc-content-inner ul { @at-root .tc-content-inner ul {
list-style: square inside; list-style: square outside;
} }

// @at-root .tc-content-inner ol li:before {
// left: 34px;
// position: absolute;
// top: 2px;
// counter-increment: li;
// content: counter(li,decimal) ". ";
// }
} }
ul.socials, ul.tags { ul.socials, ul.tags {
.tc-content-inner & { .tc-content-inner & {
Expand Down

1 comment on commit c9afd6c

@eri-trabiccolo
Copy link
Collaborator

@eri-trabiccolo eri-trabiccolo commented on c9afd6c Oct 16, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I guess I didn't get what was the important point here:
#1183
:(

Though not sure the commit here produces what we want.
That's what I get:
ul
lists

And even worse ol:
ols
(that absolute positioning and a width of 1em doesn't seem to be good)

Please sign in to comment.