definition module htmlStyleDef import htmlDataDef // a Clean data structure representing a subset of html Style :: Style = Style String [StyleOpt] :: StyleOpt = // Background Style Background [BackgroundOpt] // background : A shorthand property for setting all background properties in one declaration | BgAttach AttachOpt // background-attachment : sets whether a background image is fixed or scrolls with the rest of the page | BgColor ColorOpt // background-color : set the background color of an element | BgImage ImageOpt // background-image : sets the background image of an element | BgPosition BgPosOpt // background-position : initial position of the background image | BgRepeat RepeatOpt // background-repeat : Sets if/how a background image will be repeated // Border Style | Border [BorderOpt] // border : shorthand property for setting all of the properties for the four borders in one declaration | BdBottom BorderOpt // border-bottom : shorthand property for setting the width, style, and color of the bottom border of a box | BdBottomColor ColorOption // border-bottom-color : sets the color of the bottom border of a box | BdBottomStyle BorderStyle // border-bottom-style : sets the style of the bottom border of a box | BdBottomWidth BorderWidth // border-bottom-width : sets the width of the bottom border of a box | BdColor ColorOpt // border-color : color of the four borders | BdLeft BorderOpt // border-left : shorthand property for setting the width, style, and color of the left border of a box | BdLeftColor ColorOption // border-left-color : sets the color of the left border of a box | BdLeftStyle BorderStyle // border-left-style : sets the style of the left border of a box | BdLeftWidth BorderWidth // border-left-width : sets the width of the left border of a box | BdRight BorderOpt // border-right : shorthand property for setting the width, style, and color of the right border of a box | BdRightColor ColorOption // border-right-color : sets the color of the right border of a box | BdRightStyle BorderStyle // border-right-style : sets the style of the right border of a box | BdRightWidth BorderWidth // border-right-width : sets the width of the right border of a box | BdStyle BorderStyle // border-style : sets the style of the four borders. It can have from one to four values (top, right, bottom, left) | BdTop BorderOpt // border-top : shorthand property for setting the width, style, and color of the top border of a box | BdTopColor ColorOption // border-top-color : sets the color of the top border of a box | BdTopStyle BorderStyle // border-top-style : sets the style of the top border of a box | BdTopWidth BorderWidth // border-top-width : sets the width of the top border of a box | BdWidth BorderWidth // border-width : shorthand property for setting 'border-top-width', 'border-right-width', 'border-bottom-width', and 'border-left-width' at the same place in the style sheet // Classification Style | ClassClear ClearOpt // clear : sets the sides of an element where other floating elements are not allowed | ClassCursor CursorOpt // cursor : specifies the type of cursor to be displayed | ClassDisplay DisplayOpt // display : sets how/if an element is displayed | ClassFloat FloatOpt // float : sets where an image or a text will appear in another element | ClassPos PosOpt // position : places an element in a static, relative, absolute or fixed position | ClassVisibility VisibOpt // visibility : sets if an element should be visible or invisible // Dimension Style | DimHeight SizeOpt // height : sets the height of an element | DimLineHeight LineSizeOpt // line-height : sets the distance between lines | DimMaxHeight MaxSizeOpt // max-height : sets the maximum height of an element | DimMaxWidth MaxSizeOpt // max-width : sets the maximum width of an element | DimMinHeight LengthOpt // min-height : sets the minimum height of an element | DimMinWidth LengthOpt // min-width : sets the minimum width of an element | DimWidth SizeOpt // width : sets the width of an element // Font Style | FntFont [FontOpt] // font : shorthand property for setting all of the properties for a font in one declaration | FntFamily String // font-family : prioritized list of font family names and/or generic family names for an element | FntSize FntSizeOpt // font-size : sets the size of a font | FntSizeAdj FntSizeAdjOpt // font-size-adjust : specifies an aspect value for an element that will preserve the x-height of the first-choice font | FntStretch StretchOpt // font-stretch : condenses or expands the current font-family | FntStyle FntStyleOpt // font-style : sets the style of the font | FntVariant VariantOpt // font-variant : displays text in a small-caps font or a normal font | FntWeight FntWeightOpt // font-weight : sets the weight of a font // Generated Content Style // | GenContent ContentOpt // content : generates content in a document. Used with the :before and :after pseudo-elements | GenCounterIncr CounterOpt // counter-increment : sets how much the counter increments on each occurrence of a selector | GenCounterReset CounterOpt // counter-reset : sets the value the counter is set to on each occurrence of a selector | GenQuotes QuotesOpt // quotes : sets the type of quotation marks // List and Marker Style | LstStyle [LstStyleOpt] // list-style : shorthand property for setting all of the properties for a list in one declaration | LstStyleImg LstImgOpt // list-style-image : sets an image as the list-item marker | LstStylePos LstPosOpt // list-style-position : sets where the list-item marker is placed in the list | LstStyleType LstTypeOpt // list-style-type : sets the type of the list-item marker | MarketOffset MktOffsetOpt // market-offset // Margin Style | MrgMargin [MarginOpt] // margin : shorthand property for setting the margin properties in one declaration | MrgBottom SizeOpt // margin-bottom : sets the bottom margin of an element | MrgLeft SizeOpt // margin-left : sets the left margin of an element | MrgRight SizeOpt // margin-right : sets the right margin of an element | MrgTop SizeOpt // margin-top : sets the top margin of an element // Outline Style | OlnOutline [OutlineOpt] // outline : shorthand property for setting all the outline properties in one declaration | OlnColor OlnColorOpt // outline-color : sets the color of the outline around an element | OlnStyle OlnStyleOpt // outline-style : sets the style of the outline around an element | OlnWidth OlnWidthOpt // outline-width : sets the width of the outline around an element // Padding Style | PadPadding [LengthOpt] // padding : shorthand property for setting all of the padding properties in one declaration | PadBottom LengthOpt // padding-bottom : sets the bottom padding of an element | PadLeft LengthOpt // padding-left : sets the left padding of an element | PadRight LengthOpt // padding-right : sets the right padding of an element | PadTop LengthOpt // padding-top : sets the top padding of an element // Positioning Style | PosBottom SizeOpt // bottom : sets how far the bottom edge of an element is above/below the bottom edge of the parent element | PosClip ClipOpt // clip : sets the shape of an element. The element is clipped into this shape, and displayed | PosLeft SizeOpt // left : sets how far the left edge of an element is to the right/left of the left edge of the parent element | PosOverflow OverflowOpt // overflow : sets what happens if the content of an element overflow its area | PosRight SizeOpt // right : sets how far the right edge of an element is to the left/right of the right edge of the parent element | PosTop SizeOpt // top : sets how far the top edge of an element is above/below the top edge of the parent element | PosVertAlign VertAlignOpt // vertical-align : sets the vertical alignment of an element | PosZIndex ZIndexOpt // z-index : sets the stack order of an element // Table Style | TblBdCollapse CollapseOpt // border-collapse : sets the border model of a table | TblBdSpacing [Int] // border-spacing : sets the distance between the borders of adjacent cells (only for the "separated borders" model) | TblCaptSide SideOpt // caption-side : sets the position of the caption according to the table | TblEmptyCells ShowHideOpt // empty-cells : sets whether cells with no visible content should have borders or not (only for the "separated borders" model) | TblLayout LayoutOpt // table-layout : sets the algorithm used to lay out the table // Text Style | TxtColor ColorOption // color : sets the color of a text | TxtDirection TxtDir // direction : sets the text direction | TxtLetterSpacing SpacingOpt // letter-spacing : increase or decrease the space between characters | TxtAlign AlignOpt // text-align : aligns the text in an element | TxtDecoration DecoraOpt // text-decoration : adds decoration to text | TxtIndent LengthOpt // text-indent : indents the first line of text in an element | TxtShadow ShadowOpt // text-shadow | TxtTransform TransformOpt // text-transform : controls the letters in an element | TxtUnicodeBidi UnicodeOpt // unicode-bidi | TxtWhiteSpace WhiteSpaceOpt // white-space : sets how white space inside an element is handled | TxtWordSpacing SpacingOpt // word-spacing : increase or decrease the space between words // Order by type name :: AlignOpt = Alt_Left | Alt_Right | Alt_Center | Alt_Justify :: AttachOpt = Ato_Fixed | Ato_Scroll :: BackgroundOpt= `Bg_Attach AttachOpt // background-attachment | `Bg_Color ColorOption // background-color | `Bg_Image ImageOpt // background-image | `Bg_Position BgPosOpt // background-position | `Bg_Repeat RepeatOpt // background-repeat :: BgPosOpt = `Bgp_Position BgVPosOpt BgHPosOpt | `Bgp_Percent Int Int // x-% y-% - first value is the horizontal position and the second value is the vertical | `Bgp_Pixel Int Int // x-pos y-pos - first value is the horizontal position and the second value is the vertical :: BgHPosOpt = Bgh_Left | Bgh_Center | Bgh_Right | Bgh_NoPos // when it's not specified :: BgVPosOpt = Bgv_Top | Bgv_Center | Bgv_Bottom :: BorderOpt = `Bd_Color ColorOption // border-color | `Bd_Style [BorderStyle] // border-style | `Bd_Width BorderWidth // border-width :: BorderStyle = Bds_Dashed // dashed border. Renders as solid in most browsers | Bds_Dotted // dotted border. Renders as solid in most browsers | Bds_Double // two borders. The width of the two borders are the same as the border-width value | Bds_Groove // 3D grooved border. The effect depends on the border-color value | Bds_Hidden // same as "none", except in border conflict resolution for table elements | Bds_Inset // 3D inset border. The effect depends on the border-color value | Bds_None // no border | Bds_Outset // 3D outset border. The effect depends on the border-color value | Bds_Ridge // 3D ridged border. The effect depends on the border-color value | Bds_Solid // solid border :: BorderWidth = Bdw_Medium // medium border | Bdw_Thick // thick border | Bdw_Thin // thin border | `Bdw_Length Int // define the thickness of the borders :: ClearOpt = Clo_Both // no floating elements allowed on either the left or the right side | Clo_Left // no floating elements allowed on the left side | Clo_None // allows floating elements on both sides | Clo_Right // no floating elements allowed on the right side :: ClipOpt = Cli_Auto // browser sets the shape of the element | Cli_Shape Int Int Int Int // sets the shape of the element. The valid shape value is: rect (top, right, bottom, left) :: CollapseOpt = Coo_Collapse // selects the collapsing borders model | Coo_Separate // selects the separated borders model :: ColorOpt = `Color ColorOption | Col_Transparent // takes the background-color of the body element :: CounterOpt = Cto_Ident String // string defines a selector, id, or class that should reset the counter. | Cto_IdentInt String Int // string defines a selector, id, or class that should reset the counter. Int sets the value the counter is set to on each occurrence of the selector | Cto_None :: CursorOpt = Cuo_Auto // auto : browser sets a cursor | Cuo_Crosshair // crosshair : cursor render as a crosshair | Cuo_Default // default : default cursor (often an arrow) | Cuo_Eresize // e-resize : cursor indicates that an edge of a box is to be moved right (east) | Cuo_Help // help : cursor indicates that help is available (often a question mark or a balloon) | Cuo_Move // move : cursor indicates something that should be moved | Cuo_Ne_Resize // ne-resize : cursor indicates that an edge of a box is to be moved up and right (north/east) | Cuo_N_Resize // n-resize : cursor indicates that an edge of a box is to be moved up (north) | Cuo_Nw_Resize // nw-resize : cursor indicates that an edge of a box is to be moved up and left (north/west) | Cuo_Pointer // pointer : cursor render as a pointer (a hand) that indicates a link | Cuo_Se_Resize // se-resize : cursor indicates that an edge of a box is to be moved down and right (south/east) | Cuo_S_Resize // s-resize : cursor indicates that an edge of a box is to be moved down (south) | Cuo_Sw_Resize // sw-resize : cursor indicates that an edge of a box is to be moved down and left (south/west) | Cuo_Text // text : cursor indicates text | `Cuo_Url Url // url of a custom cursor to be used | Cuo_Wait // wait : cursor indicates that the program is busy (often a watch or an hourglass) | Cuo_W_Resize // w-resize : cursor indicates that an edge of a box is to be moved left (west) :: DecoraOpt = Dec_Blink // blinking text | Dec_Line_Through // line through the text | Dec_None // normal text | Dec_Overline // line over the text | Dec_Underline // line under the text :: DisplayOpt = Dio_Block // displayed as a block-level element, with a line break before and after the element | Dio_Compact // displayed as block-level or inline element depending on context | Dio_Inline // displayed as an inline element, with no line break before or after the element | Dio_Inline_Table // displayed as an inline table (like
and | )
| Dio_Table_Caption // displayed as a table caption (like tag is encountered | Wso_Pre // white-space is preserved by the browser. Acts like the tag in HTML :: ZIndexOpt = Zio_Auto // stack order is equal to its parents | `Zio_Number Int // sets the stack order of the element derive gHpr Style |
---|