cd

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: 2 Imported by: 0

Documentation

Overview

Package cd defines CSS declarations of CSS properties.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackgroundColor

type BackgroundColor struct {
	cv.Color
}

BackgroundColor is a CSS declaration of CSS property "background-color".

func (BackgroundColor) CSS

func (bc BackgroundColor) CSS() string

type BorderRadius

type BorderRadius struct {
	cv.Size
}

BorderRadius is a CSS declaration of CSS property "border-radius".

func (BorderRadius) CSS

func (br BorderRadius) CSS() string

type Color

type Color struct {
	cv.Color
}

Color is a CSS declaration of CSS property "color".

func (Color) CSS

func (c Color) CSS() string

type Display

type Display struct {
	cv.Display
}

Display is a CSS declaration of CSS property "display".

func (Display) CSS

func (d Display) CSS() string

type Fill

type Fill struct {
	cv.Color
}

Fill is a CSS declaration of CSS property "fill".

func (Fill) CSS

func (s Fill) CSS() string

type FontFamily

type FontFamily struct {
	cv.FontFamily
}

FontFamily is a CSS declaration of CSS property "font-family".

func (FontFamily) CSS

func (ff FontFamily) CSS() string

type FontSize

type FontSize struct {
	cv.Size
}

FontSize is a CSS declaration of CSS property "font-size".

func (FontSize) CSS

func (fs FontSize) CSS() string

type LineHeight

type LineHeight struct {
	cv.Size
}

LineHeight is a CSS declaration of CSS property "line-height".

func (LineHeight) CSS

func (lh LineHeight) CSS() string

type Padding

type Padding struct {
	// TODO: These should be factored into CSS values. Multiple ways of defining padding, which is 4 sizes.
	Size0 cv.Size
	Size1 cv.Size
}

Padding is a CSS declaration of CSS property "padding".

func (Padding) CSS

func (p Padding) CSS() string

type VerticalAlign

type VerticalAlign struct {
	cv.VerticalAlign
}

VerticalAlign is a CSS declaration of CSS property "vertical-align".

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