0.0.21 • Published 5 years ago

angular-styled-components v0.0.21

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

An Angular module that provides styled components in Angular.

Installation

With npm: npm install angular-styled-components --save

or with yarn: yarn add angular-styled-components

Usage

Import StyledComponentsModule

import { NgModule } from '@angular/core';
import { StyledComponentsModule } from 'angular-styled-components';
import { HomeComponent } from '@app/modules/home/home.component';

@NgModule({
    imports: [
        StyledComponentsModule,
    ],
    exports: [],
    declarations: [HomeComponent],
    providers: []
})
export class HomeModule {}

Use in HTML tag

<div fdr jcc aic>
    <div color="grey" margin="32" flex="1">
        Left side
    </div>
    <div backgroundColor="red" padding="2em" flexGrow="2">
        Right side
    </div>
</div>

Style properties

Background properties


PropertyCss propertyDefaultInput type
backgroundbackgroundnonestring
backgroundColorbackground-colorinitialstring
backgroundSizebackground-sizeinitialstring

Border properties


PropertyCss propertyDefaultInput type
borderColorborder-colorinitialstring
borderTopColorborder-top-colorinitialstring
borderBottomColorborder-bottom-colorinitialstring
borderLeftColorborder-left-colorinitialstring
borderRightColorborder-top-colorinitialstring
borderWidthborder-widthinitialstring or integer
borderTopWidthborder-top-widthinitialstring or integer
borderBottomWidthborder-bottom-widthinitialstring or integer
borderLeftWidthborder-left-widthinitialstring or integer
borderRightWidthborder-right-widthinitialstring or integer
borderRadiusborder-radiusinitialstring
borderTopLeftRadiusborder-top-left-radiusinitialstring
borderTopRightRadiusborder-top-right-radiusinitialstring
borderBottomLeftRadiusborder-bottom-left-radiusinitialstring
borderBottomRightRadiusborder-bottom-right-radiusinitialstring

Extra properties


PropertyCss propertyDefaultInput type
cursorcursorinitialstring
blurblurinitialstring
opacityopacity1string
box-shadowbox-shadowinitialstring
transformtransformnonestring

Flex properties


PropertyCss propertyDefaultInput type
fdrflex-directionrownone
fdcflex-directioncolumnnone
fdrrflex-directionrow-reversenone
fdcrflex-directioncolumn-reversenone
fwflex-wrapwrapnone
fnwflex-wrapnowrapnone
fwrflex-wrapwrap-reversenone
fffdflex-flowflex-directionnone
fffwflex-flowflex-wrapnone
fbflex-basisautointeger
jcsajustify-contentspace-aroundnone
jcsbjustify-contentspace-betweennone
jccjustify-contentcenternone
jcfejustify-contentflex-endnone
jcfsjustify-contentflex-startnone
jcsejustify-contentspace-evenlynone
aibalign-itemsbaselinenone
aicalign-itemscenternone
aifealign-itemsflex-endnone
aifsalign-itemsflex-startnone
aisalign-itemsstretchnone
acbalign-contentbaselinenone
accalign-contentcenternone
acfealign-contentflex-endnone
acfsalign-contentflex-startnone
asaalign-selfautonone
assalign-selfstretchnone
ascalign-selfcenternone
asfsalign-selfflex-startnone
asfealign-selfflex-endnone
asbalign-selfbaselinenone
asialign-selfinitialnone
flexflex1integer
flexGrowflex-grow1integer
flexShrinkflex-shrink1integer
orderorder1integer

Font properties


PropertyCss propertyDefaultInput type
colorcolorinitialstring
fontWeightfont-weightnormalstring or integer
underlinetext-decorationunderlinenone
italicfont-styleitalicnone
lineHeightline-height1string or integer
lineThroughtext-decorationline-throughnone
whiteSpacewhite-spaceinitialstring
textOverflowtext-overflowinitialstring

Height properties


PropertyCss propertyDefaultInput type
heightheightinitialstring or integer
maxHeightmax-heightinitialstring or integer
minHeightmin-heightinitialstring or integer

Margin properties


PropertyCss propertyDefaultInput type
marginmargin0string or integer
marginLeftmargin-left0string or integer
marginRightmargin-right0string or integer
marginTopmargin-top0string or integer
marginBottommargin-bottom0string or integer

Overflow properties


PropertyCss propertyDefaultInput type
overflowoverflownonestring
overflowXoverflow-xnonestring
overflowYoverflow-ynonestring

Padding properties


PropertyCss propertyDefaultInput type
paddingpadding0string or integer
paddingLeftpadding-left0string or integer
paddingRightpadding-right0string or integer
paddingToppadding-top0string or integer
paddingBottompadding-bottom0string or integer

Position properties


PropertyCss propertyDefaultInput type
positionpositioninitialstring
displaydisplayblockstring
zIndexz-index1integer
leftleft0integer
rightright0integer
toptop0integer
bottombottom0integer

TextAlign properties


PropertyCss propertyDefaultInput type
tactext-aligncenternone
tartext-alignrightnone
taltext-alignleftnone

Width properties


PropertyCss propertyDefaultInput type
widthwidthinitialstring or integer
maxWidthmax-widthinitialstring or integer
minWidthmin-widthinitialstring or integer

Override style properties

Inline style properties can be extended or overriden using class name. In order to override a style already defined in an inline style property, the css tag !important has to be used.

0.0.21

5 years ago

0.0.20

5 years ago

0.0.19

5 years ago

0.0.18

5 years ago

0.0.17

5 years ago

0.0.16

6 years ago

0.0.15

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago