! Copyright (C) 2007, 2010 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license.
-USING: accessors arrays colors fonts fry help.markup help.stylesheet
-io.styles kernel literals math math.ranges models namespaces parser
-sequences system ui ui.gadgets ui.gadgets.books ui.gadgets.panes
-ui.gestures ui.pens.gradient ui.pens.solid ;
+USING: accessors arrays colors fonts help.markup help.stylesheet
+io.styles kernel literals math models namespaces parser ranges
+sequences ui ui.gadgets ui.gadgets.books ui.gadgets.panes
+ui.gestures ui.pens.gradient ;
IN: slides
CONSTANT: stylesheet
H{
- { default-span-style
+ { default-style
H{
{ font-name $ default-sans-serif-font-name }
{ font-size $[ default-font-size 3 * ] }
- }
- }
- { default-block-style
- H{
{ wrap-margin $[ default-font-size 92 * ] }
}
}
- { code-char-style
+ { code-style
H{
{ font-name $ default-monospace-font-name }
{ font-size $[ default-font-size 3 * ] }
- }
- }
- { code-style
- H{
{ page-color T{ rgba f 0.4 0.4 0.4 0.3 } }
}
}
: prev-page ( book -- ) -1 change-page ;
: strip-tease ( data -- seq )
- first3 2 over length [a,b] [ head 3array ] with with with map ;
+ first3 2 over length [a..b] [ head 3array ] with with with map ;
SYNTAX: STRIP-TEASE:
parse-definition strip-tease append! ;