B
    p[                 @   sf   d Z ddlmZmZmZ ddlmZmZ ddlm	Z	 ddd	gZ
eG d
d deZG dd deZdS )zContains the Layout class    )UnicodeInstanceCaselessStrEnum   )Widgetregister   ) __jupyter_widgets_base_version__ZinheritinitialZunsetc               @   s  e Zd ZdZedjddZedjddZeejddZ	edjddZ
eddd	d
dddge dddjddZeddd	ddge dddjddZedddd	ddge dddjddZeddddjddZeddddjddZeddddjddZeddddjddZeddddjddZeddddjddZeddd	d
dge dddjddZeddddjddZeddddjddZeddddjddZeddddjddZeddd djddZeddd!djddZed"d#d$dge dd%djddZed"d#d$dge dd&djddZed"d#d$dge dd'djddZeddd(djddZ eddd)djddZ!eddd*djddZ"eddd+djddZ#ed"d#ge dd,djddZ$eddd-djddZ%eddd.djddZ&ed/d0d1d2ge dd3djddZ'eddd4djddZ(eddd5djddZ)eddd6djddZ*eddd7djddZ+eddd8djddZ,eddd9djddZ-eddd:djddZ.eddd;djddZ/dS )<Layouta  Layout specification

    Defines a layout that can be expressed using CSS.  Supports a subset of
    https://developer.mozilla.org/en-US/docs/Web/CSS/Reference

    When a property is also accessible via a shorthand property, we only
    expose the shorthand.

    For example:
    - ``flex-grow``, ``flex-shrink`` and ``flex-basis`` are bound to ``flex``.
    - ``flex-wrap`` and ``flex-direction`` are bound to ``flex-flow``.
    - ``margin-[top/bottom/left/right]`` values are bound to ``margin``, etc.
    Z
LayoutViewT)syncz@jupyter-widgets/baseZLayoutModelz
flex-startzflex-endcenterzspace-betweenzspace-aroundzspace-evenlyZstretchz The align-content CSS attribute.)Z
allow_nonehelpZbaselinezThe align-items CSS attribute.autozThe align-self CSS attribute.NzThe bottom CSS attribute.zThe border CSS attribute.zThe display CSS attribute.zThe flex CSS attribute.zThe flex-flow CSS attribute.zThe height CSS attribute.z"The justify-content CSS attribute.zThe left CSS attribute.zThe margin CSS attribute.zThe max-height CSS attribute.zThe max-width CSS attribute.zThe min-height CSS attribute.zThe min-width CSS attribute.ZvisibleZhiddenZscrollzThe overflow CSS attribute.zThe overflow-x CSS attribute.zThe overflow-y CSS attribute.zThe order CSS attribute.zThe padding CSS attribute.zThe right CSS attribute.zThe top CSS attribute.zThe visibility CSS attribute.zThe width CSS attribute.z$The grid-auto-columns CSS attribute.columnrowz	row densezcolumn densez!The grid-auto-flow CSS attribute.z!The grid-auto-rows CSS attribute.zThe grid-gap CSS attribute.z%The grid-template-rows CSS attribute.z(The grid-template-columns CSS attribute.z&The grid-template-areas CSS attribute.zThe grid-row CSS attribute.zThe grid-column CSS attribute.zThe grid-area CSS attribute.)0__name__
__module____qualname____doc__r   tagZ
_view_nameZ_view_moduler	   Z_view_module_versionZ_model_namer   CSS_PROPERTIESZalign_contentZalign_itemsZ
align_selfZbottomZborderZdisplayZflexZ	flex_flowZheightZjustify_contentleftZmarginZ
max_heightZ	max_widthZ
min_heightZ	min_widthZoverflowZ
overflow_xZ
overflow_yorderZpaddingrighttopZ
visibilitywidthZgrid_auto_columnsZgrid_auto_flowZgrid_auto_rowsZgrid_gapZgrid_template_rowsZgrid_template_columnsZgrid_template_areasZgrid_rowZgrid_columnZ	grid_area r   r   ?lib/python3.7/site-packages/ipywidgets/widgets/widget_layout.pyr      sX   
""""r   c                   s    e Zd ZeZ fddZ  ZS )LayoutTraitTypec                s:   t |tr$tt| || jf |S tt| ||S d S )N)
isinstancedictsuperr   validateklass)selfobjvalue)	__class__r   r   r#   P   s    
zLayoutTraitType.validate)r   r   r   r   r$   r#   __classcell__r   r   )r(   r   r   L   s   r   N)r   Z	traitletsr   r   r   Zwidgetr   r   Z_versionr	   r   r   r   r   r   r   r   <module>   s   
?