You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
753 B
Racket

10 years ago
#lang racket/base
(require "core.rkt")
(provide (all-defined-out))
(define (make-css-columns #:count count #:gap [gap #f])
; shorthand for css column declaration
(join-css-strings (list*
(make-css-string "column-count" count)
10 years ago
(if gap
(list (make-css-string "column-gap" gap))
null))))
10 years ago
(define (make-css-avoid-column-break-inside)
; this gets applied to list items to keep them from breaking across columns
; however it doesn't work in Firefox due to bug; workaround is stupid
(join-css-strings (list
(make-css-string "column-break-inside" "avoid")
(make-css-string "break-inside" "avoid-column"))))
10 years ago