cv

package
v0.0.0-...-abfb1be Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2023 License: Unlicense Imports: 1 Imported by: 0

Documentation

Overview

Package cv defines CSS values.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSS

type CSS interface {
	CSS() string
}

CSS ...

type Color

type Color interface {
	CSS
}

Color is a CSS value describing color.

type CurrentColor

type CurrentColor struct{}

func (CurrentColor) CSS

func (CurrentColor) CSS() string

type Display

type Display string

Display is a CSS value for display property.

const (
	InlineBlock Display = "inline-block"
)

func (Display) CSS

func (d Display) CSS() string

type FontFamily

type FontFamily string

FontFamily is a CSS value for font-family property.

const (
	SansSerif FontFamily = "sans-serif"
)

func (FontFamily) CSS

func (ff FontFamily) CSS() string

type Hex

type Hex struct {
	RGB uint32
}

func (Hex) CSS

func (c Hex) CSS() string

type Percent

type Percent float32

Percent is in [0, 100] range.

func (Percent) CSS

func (p Percent) CSS() string

type Px

type Px uint

Px ...

func (Px) CSS

func (s Px) CSS() string

type RGB

type RGB struct {
	R, G, B uint8
}

func (RGB) CSS

func (c RGB) CSS() string

type Size

type Size interface {
	CSS
}

Size is a CSS value describing size.

type VerticalAlign

type VerticalAlign string

VerticalAlign is a CSS value for vertical-align property.

const (
	Top VerticalAlign = "top"
)

func (VerticalAlign) CSS

func (va VerticalAlign) CSS() string

Jump to

Keyboard shortcuts

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