Skip to content

Instantly share code, notes, and snippets.

@rtivital
Last active October 24, 2015 17:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rtivital/121d09b7f9f4781fe59c to your computer and use it in GitHub Desktop.
Save rtivital/121d09b7f9f4781fe59c to your computer and use it in GitHub Desktop.
Список, разделенный запятыми
// Чтобы создать список, разделенный запятыми,
ul > li {
// достаточно присвоить всем элементам li свойство display: inline
display: inline;
// и добавить запятую после каждого элемента в списке,
// кроме последнего, с помощью after
&:not(:last-child)::after {
content: ',';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment