" white-space: pre-wrap; line-height: 125%;" append
] re-replace-with
- { "font-family: monospace;" "background-color:" } [ find-subseq? ] with all?[
+ { "font-family: monospace;" "background-color:" } [ subsequence? ] with all?[
" margin: 10px 0px;" append
] when
- dup { "border:" "background-color:" } [ find-subseq? ] with all? [
+ dup { "border:" "background-color:" } [ subsequence? ] with all? [
" border-radius: 5px;" append
] when ;
: fix-help-header ( classes -- classes )
dup [
- [ ".a" head? ] [ "#f4efd9;" find-subseq? ] bi and
+ [ ".a" head? ] [ "#f4efd9;" subsequence? ] bi and
] find [
"padding: 10px;" "padding: 0px;" replace
"background-color: #f4efd9;" "background-color: white;" replace
] re-replace-with
] map " " join "{ " " }" surround
] re-replace-with " " prepend
- dup "{ }" find-subseq? [ drop f ] when
+ dup "{ }" subsequence? [ drop f ] when
] map harvest append "}" suffix ;
: css-classes ( classes -- stylesheet )
] each classes sort-values css-classes body ;
: retina-image ( path -- path' )
- dup "@2x" find-subseq? [ "." split1-last "@2x." glue ] unless ;
+ dup "@2x" subsequence? [ "." split1-last "@2x." glue ] unless ;
: ?copy-file ( from to -- )
dup file-exists? [ 2drop ] [ copy-file ] if ;