Skip to content

Instantly share code, notes, and snippets.

View louisebolden's full-sized avatar

Louise louisebolden

View GitHub Profile
@louisebolden
louisebolden / css-list-columns-with-break-inside.css
Created September 11, 2017 09:44
A List Element with CSS Columns and `column-break-inside: avoid;`, to display the border-bottom on each list item correctly.
ol, ul {
columns: 3;
-webkit-column-break-inside: avoid;
}
li {
border-bottom: 1px solid silver;
margin-bottom: 1rem;
padding-bottom: 1rem;
}
# a Person type declared in sig/person.rbs
class Person
@name: String
@contacts: Array[Email]
def initialize: (name: String) -> untyped
def name: -> String
def contacts: -> Array[Email]
end
# instead of:
def square(x); x * x end
# we can now have:
def square(x) = x * x