css

package
v1.0.27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2024 License: BSD-3-Clause Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Alpha             = regexp.MustCompile(`^[a-z]+$`)
	Blur              = regexp.MustCompile(`^blur\([0-9]+px\)$`)
	BrightnessCont    = regexp.MustCompile(`^(brightness|contrast)\([0-9]+\%\)$`)
	Count             = regexp.MustCompile(`^[0-9]+[\.]?[0-9]*$`)
	CubicBezier       = regexp.MustCompile(`^cubic-bezier\(([ ]*(0(.[0-9]+)?|1(.0)?),){3}[ ]*(0(.[0-9]+)?|1)\)$`)
	Digits            = regexp.MustCompile(`^digits [2-4]$`)
	DropShadow        = regexp.MustCompile(`drop-shadow\(([-]?[0-9]+px) ([-]?[0-9]+px)( [-]?[0-9]+px)?( ([-]?[0-9]+px))?`)
	Font              = regexp.MustCompile(`^('[a-z \-]+'|[a-z \-]+)$`)
	Grayscale         = regexp.MustCompile(`^grayscale\(([0-9]{1,2}|100)%\)$`)
	GridTemplateAreas = regexp.MustCompile(`^['"]?[a-z ]+['"]?$`)
	HexRGB            = regexp.MustCompile(`^#([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$`)
	HSL               = regexp.MustCompile(`^hsl\([ ]*([012]?[0-9]{1,2}|3[0-5][0-9]|360),[ ]*([0-9]{0,2}|100)\%,[ ]*([0-9]{0,2}|100)\%\)$`)
	HSLA              = regexp.MustCompile(`^hsla\(([ ]*[012]?[0-9]{1,2}|3[0-5][0-9]|360),[ ]*([0-9]{0,2}|100)\%,[ ]*([0-9]{0,2}|100)\%,[ ]*(1|1\.0|0|(0\.[0-9]+))\)$`)
	HueRotate         = regexp.MustCompile(`^hue-rotate\(([12]?[0-9]{1,2}|3[0-5][0-9]|360)?\)$`)
	Invert            = regexp.MustCompile(`^invert\(([0-9]{1,2}|100)%\)$`)
	Length            = regexp.MustCompile(`^[\-]?([0-9]+|[0-9]*[\.][0-9]+)(%|cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|deg|rad|turn)?$`)
	Matrix            = regexp.MustCompile(`^matrix\(([ ]*[0-9]+[\.]?[0-9]*,){5}([ ]*[0-9]+[\.]?[0-9]*)\)$`)
	Matrix3D          = regexp.MustCompile(`^matrix3d\(([ ]*[0-9]+[\.]?[0-9]*,){15}([ ]*[0-9]+[\.]?[0-9]*)\)$`)
	NegTime           = regexp.MustCompile(`^[\-]?[0-9]+[\.]?[0-9]*(s|ms)?$`)
	Numeric           = regexp.MustCompile(`^[0-9]+$`)
	NumericDecimal    = regexp.MustCompile(`^[0-9\.]+$`)
	Opactiy           = regexp.MustCompile(`^opacity\(([0-9]{1,2}|100)%\)$`)
	Perspective       = regexp.MustCompile(`perspective\(`)
	Position          = regexp.MustCompile(`^[\-]*[0-9]+[cm|mm|in|px|pt|pc\%]* [[\-]*[0-9]+[cm|mm|in|px|pt|pc\%]*]*$`)
	Opacity           = regexp.MustCompile(`^(0[.]?[0-9]*)|(1.0)$`)
	QuotedAlpha       = regexp.MustCompile(`^["'][a-z]+["']$`)
	Quotes            = regexp.MustCompile(`^([ ]*["'][\x{0022}\x{0027}\x{2039}\x{2039}\x{203A}\x{00AB}\x{00BB}\x{2018}\x{2019}\x{201C}-\x{201E}]["'] ["'][\x{0022}\x{0027}\x{2039}\x{2039}\x{203A}\x{00AB}\x{00BB}\x{2018}\x{2019}\x{201C}-\x{201E}]["'])+$`)
	Rect              = regexp.MustCompile(`^rect\([0-9]+px,[ ]*[0-9]+px,[ ]*[0-9]+px,[ ]*[0-9]+px\)$`)
	RGB               = regexp.MustCompile(`^rgb\(([ ]*((([0-9]{1,2}|100)\%)|(([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))),){2}([ ]*((([0-9]{1,2}|100)\%)|(([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))))\)$`)
	RGBA              = regexp.MustCompile(`^rgba\(([ ]*((([0-9]{1,2}|100)\%)|(([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))),){3}[ ]*(1(\.0)?|0|(0\.[0-9]+))\)$`)
	Rotate            = regexp.MustCompile(`^rotate(x|y|z)?\(([12]?|3[0-5][0-9]|360)\)$`)
	Rotate3D          = regexp.MustCompile(`^rotate3d\(([ ]?(1(\.0)?|0\.[0-9]+),){3}([12]?|3[0-5][0-9]|360)\)$`)
	Saturate          = regexp.MustCompile(`^saturate\([0-9]+%\)$`)
	Sepia             = regexp.MustCompile(`^sepia\(([0-9]{1,2}|100)%\)$`)
	Skew              = regexp.MustCompile(`skew(x|y)?\(`)
	Span              = regexp.MustCompile(`^span [0-9]+$`)
	Steps             = regexp.MustCompile(`^steps\([ ]*[0-9]+([ ]*,[ ]*(start|end)?)\)$`)
	Time              = regexp.MustCompile(`^[0-9]+[\.]?[0-9]*(s|ms)?$`)
	TransitionProp    = regexp.MustCompile(`^([a-zA-Z]+,[ ]?)*[a-zA-Z]+$`)
	TranslateScale    = regexp.MustCompile(`(translate|translate3d|translatex|translatey|translatez|scale|scale3d|scalex|scaley|scalez)\(`)
	URL               = regexp.MustCompile(`^url\([\"\']?((https|http)[a-z0-9\.\\/_:]+[\"\']?)\)$`)
	ZIndex            = regexp.MustCompile(`^[\-]?[0-9]+$`)
)

Functions

func AlignContentHandler

func AlignContentHandler(value string) bool

func AlignItemsHandler

func AlignItemsHandler(value string) bool

func AlignSelfHandler

func AlignSelfHandler(value string) bool

func AllHandler

func AllHandler(value string) bool

func AnimationDelayHandler

func AnimationDelayHandler(value string) bool

func AnimationDirectionHandler

func AnimationDirectionHandler(value string) bool

func AnimationDurationHandler

func AnimationDurationHandler(value string) bool

func AnimationFillModeHandler

func AnimationFillModeHandler(value string) bool

func AnimationHandler

func AnimationHandler(value string) bool

func AnimationIterationCountHandler

func AnimationIterationCountHandler(value string) bool

func AnimationNameHandler

func AnimationNameHandler(value string) bool

func AnimationPlayStateHandler

func AnimationPlayStateHandler(value string) bool

func BackfaceVisibilityHandler

func BackfaceVisibilityHandler(value string) bool

func BackgroundAttachmentHandler

func BackgroundAttachmentHandler(value string) bool

func BackgroundBlendModeHandler

func BackgroundBlendModeHandler(value string) bool

func BackgroundClipHandler

func BackgroundClipHandler(value string) bool

func BackgroundHandler

func BackgroundHandler(value string) bool

func BackgroundOriginHandler

func BackgroundOriginHandler(value string) bool

func BackgroundPositionHandler

func BackgroundPositionHandler(value string) bool

func BackgroundRepeatHandler

func BackgroundRepeatHandler(value string) bool

func BackgroundSizeHandler

func BackgroundSizeHandler(value string) bool

func BaseHandler

func BaseHandler(value string) bool

func BorderCollapseHandler

func BorderCollapseHandler(value string) bool

func BorderHandler

func BorderHandler(value string) bool

func BorderImageHandler

func BorderImageHandler(value string) bool

func BorderImageOutsetHandler

func BorderImageOutsetHandler(value string) bool

func BorderImageRepeatHandler

func BorderImageRepeatHandler(value string) bool

func BorderImageSliceHandler

func BorderImageSliceHandler(value string) bool

func BorderImageWidthHandler

func BorderImageWidthHandler(value string) bool

func BorderRadiusHandler

func BorderRadiusHandler(value string) bool

func BorderSideHandler

func BorderSideHandler(value string) bool

func BorderSideRadiusHandler

func BorderSideRadiusHandler(value string) bool

func BorderSideStyleHandler

func BorderSideStyleHandler(value string) bool

func BorderSideWidthHandler

func BorderSideWidthHandler(value string) bool

func BorderSpacingHandler

func BorderSpacingHandler(value string) bool

func BorderStyleHandler

func BorderStyleHandler(value string) bool

func BorderWidthHandler

func BorderWidthHandler(value string) bool

func BoxDecorationBreakHandler

func BoxDecorationBreakHandler(value string) bool

func BoxShadowHandler

func BoxShadowHandler(value string) bool

func BoxSizingHandler

func BoxSizingHandler(value string) bool

func BreakBeforeAfterHandler

func BreakBeforeAfterHandler(value string) bool

func BreakInsideHandler

func BreakInsideHandler(value string) bool

func CaptionSideHandler

func CaptionSideHandler(value string) bool

func CaretColorHandler

func CaretColorHandler(value string) bool

func ClearHandler

func ClearHandler(value string) bool

func ClipHandler

func ClipHandler(value string) bool

func ColorHandler

func ColorHandler(value string) bool

func ColumnCountHandler

func ColumnCountHandler(value string) bool

func ColumnFillHandler

func ColumnFillHandler(value string) bool

func ColumnGapHandler

func ColumnGapHandler(value string) bool

func ColumnRuleHandler

func ColumnRuleHandler(value string) bool

func ColumnRuleWidthHandler

func ColumnRuleWidthHandler(value string) bool

func ColumnSpanHandler

func ColumnSpanHandler(value string) bool

func ColumnWidthHandler

func ColumnWidthHandler(value string) bool

func ColumnsHandler

func ColumnsHandler(value string) bool

func CursorHandler

func CursorHandler(value string) bool

func DirectionHandler

func DirectionHandler(value string) bool

func DisplayHandler

func DisplayHandler(value string) bool

func EmptyCellsHandler

func EmptyCellsHandler(value string) bool

func FilterHandler

func FilterHandler(value string) bool

func FlexBasisHandler

func FlexBasisHandler(value string) bool

func FlexDirectionHandler

func FlexDirectionHandler(value string) bool

func FlexFlowHandler

func FlexFlowHandler(value string) bool

func FlexGrowHandler

func FlexGrowHandler(value string) bool

func FlexHandler

func FlexHandler(value string) bool

func FlexWrapHandler

func FlexWrapHandler(value string) bool

func FloatHandler

func FloatHandler(value string) bool

func FontFamilyHandler

func FontFamilyHandler(value string) bool

func FontHandler

func FontHandler(value string) bool

func FontKerningHandler

func FontKerningHandler(value string) bool

func FontLanguageOverrideHandler

func FontLanguageOverrideHandler(value string) bool

func FontSizeAdjustHandler

func FontSizeAdjustHandler(value string) bool

func FontSizeHandler

func FontSizeHandler(value string) bool

func FontStretchHandler

func FontStretchHandler(value string) bool

func FontStyleHandler

func FontStyleHandler(value string) bool

func FontSynthesisHandler

func FontSynthesisHandler(value string) bool

func FontVariantCapsHandler

func FontVariantCapsHandler(value string) bool

func FontVariantHandler

func FontVariantHandler(value string) bool

func FontVariantPositionHandler

func FontVariantPositionHandler(value string) bool

func FontWeightHandler

func FontWeightHandler(value string) bool

func GetDefaultHandler

func GetDefaultHandler(attr string) func(string) bool

func GridAreaHandler

func GridAreaHandler(value string) bool

func GridAutoColumnsHandler

func GridAutoColumnsHandler(value string) bool

func GridAutoFlowHandler

func GridAutoFlowHandler(value string) bool

func GridAxisStartEndHandler

func GridAxisStartEndHandler(value string) bool

func GridColumnGapHandler

func GridColumnGapHandler(value string) bool

func GridColumnHandler

func GridColumnHandler(value string) bool

func GridGapHandler

func GridGapHandler(value string) bool

func GridHandler

func GridHandler(value string) bool

func GridRowHandler

func GridRowHandler(value string) bool

func GridTemplateAreasHandler

func GridTemplateAreasHandler(value string) bool

func GridTemplateColumnsHandler

func GridTemplateColumnsHandler(value string) bool

func GridTemplateHandler

func GridTemplateHandler(value string) bool

func GridTemplateRowsHandler

func GridTemplateRowsHandler(value string) bool

func HangingPunctuationHandler

func HangingPunctuationHandler(value string) bool

func HeightHandler

func HeightHandler(value string) bool

func HyphensHandler

func HyphensHandler(value string) bool

func ImageHandler

func ImageHandler(value string) bool

func ImageRenderingHandler

func ImageRenderingHandler(value string) bool

func IsolationHandler

func IsolationHandler(value string) bool

func JustifyContentHandler

func JustifyContentHandler(value string) bool

func LengthHandler

func LengthHandler(value string) bool

func LetterSpacingHandler

func LetterSpacingHandler(value string) bool

func LineBreakHandler

func LineBreakHandler(value string) bool

func LineHeightHandler

func LineHeightHandler(value string) bool

func ListStyleHandler

func ListStyleHandler(value string) bool

func ListStylePositionHandler

func ListStylePositionHandler(value string) bool

func ListStyleTypeHandler

func ListStyleTypeHandler(value string) bool

func MarginHandler

func MarginHandler(value string) bool

func MarginSideHandler

func MarginSideHandler(value string) bool

func MaxHeightWidthHandler

func MaxHeightWidthHandler(value string) bool

func MinHeightWidthHandler

func MinHeightWidthHandler(value string) bool

func MixBlendModeHandler

func MixBlendModeHandler(value string) bool

func ObjectFitHandler

func ObjectFitHandler(value string) bool

func ObjectPositionHandler

func ObjectPositionHandler(value string) bool

func OpacityHandler

func OpacityHandler(value string) bool

func OrderHandler

func OrderHandler(value string) bool

func OrphansHandler

func OrphansHandler(value string) bool

func OutlineHandler

func OutlineHandler(value string) bool

func OutlineOffsetHandler

func OutlineOffsetHandler(value string) bool

func OutlineStyleHandler

func OutlineStyleHandler(value string) bool

func OutlineWidthHandler

func OutlineWidthHandler(value string) bool

func OverflowHandler

func OverflowHandler(value string) bool

func OverflowWrapHandler

func OverflowWrapHandler(value string) bool

func OverflowXYHandler

func OverflowXYHandler(value string) bool

func PaddingHandler

func PaddingHandler(value string) bool

func PaddingSideHandler

func PaddingSideHandler(value string) bool

func PageBreakBeforeAfterHandler

func PageBreakBeforeAfterHandler(value string) bool

func PageBreakInsideHandler

func PageBreakInsideHandler(value string) bool

func PerspectiveHandler

func PerspectiveHandler(value string) bool

func PerspectiveOriginHandler

func PerspectiveOriginHandler(value string) bool

func PointerEventsHandler

func PointerEventsHandler(value string) bool

func PositionHandler

func PositionHandler(value string) bool

func QuotesHandler

func QuotesHandler(value string) bool

func ResizeHandler

func ResizeHandler(value string) bool

func ScrollBehaviorHandler

func ScrollBehaviorHandler(value string) bool

func SideHandler

func SideHandler(value string) bool

func TabSizeHandler

func TabSizeHandler(value string) bool

func TableLayoutHandler

func TableLayoutHandler(value string) bool

func TextAlignHandler

func TextAlignHandler(value string) bool

func TextAlignLastHandler

func TextAlignLastHandler(value string) bool

func TextCombineUprightHandler

func TextCombineUprightHandler(value string) bool

func TextDecorationHandler

func TextDecorationHandler(value string) bool

func TextDecorationLineHandler

func TextDecorationLineHandler(value string) bool

func TextDecorationStyleHandler

func TextDecorationStyleHandler(value string) bool

func TextIndentHandler

func TextIndentHandler(value string) bool

func TextJustifyHandler

func TextJustifyHandler(value string) bool

func TextOrientationHandler

func TextOrientationHandler(value string) bool

func TextOverflowHandler

func TextOverflowHandler(value string) bool

func TextShadowHandler

func TextShadowHandler(value string) bool

func TextTransformHandler

func TextTransformHandler(value string) bool

func TimingFunctionHandler

func TimingFunctionHandler(value string) bool

func TransformHandler

func TransformHandler(value string) bool

func TransformOriginHandler

func TransformOriginHandler(value string) bool

func TransformStyleHandler

func TransformStyleHandler(value string) bool

func TransitionDelayHandler

func TransitionDelayHandler(value string) bool

func TransitionDurationHandler

func TransitionDurationHandler(value string) bool

func TransitionHandler

func TransitionHandler(value string) bool

func TransitionPropertyHandler

func TransitionPropertyHandler(value string) bool

func UnicodeBidiHandler

func UnicodeBidiHandler(value string) bool

func UserSelectHandler

func UserSelectHandler(value string) bool

func VerticalAlignHandler

func VerticalAlignHandler(value string) bool

func VisiblityHandler

func VisiblityHandler(value string) bool

func WhiteSpaceHandler

func WhiteSpaceHandler(value string) bool

func WidthHandler

func WidthHandler(value string) bool

func WordBreakHandler

func WordBreakHandler(value string) bool

func WordSpacingHandler

func WordSpacingHandler(value string) bool

func WordWrapHandler

func WordWrapHandler(value string) bool

func WritingModeHandler

func WritingModeHandler(value string) bool

func ZIndexHandler

func ZIndexHandler(value string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL