Ejemplo n.º 1
0
def divider(*content):
    ''' Returns a divider class for use to split breadcrumbs. Twitter Bootstrap
    examples all pass in a slash as the only content.

    '''

    return " " + classed_span(DIVIDER_CLASS, *content)
Ejemplo n.º 2
0
def divider(*content):
    ''' Returns a divider class for use to split breadcrumbs. Twitter Bootstrap
    examples all pass in a slash as the only content.

    '''

    return " " + classed_span(DIVIDER_CLASS, *content)
Ejemplo n.º 3
0
def icon_bar():
    ''' A visual "bar" in CSS. '''

    return classed_span(ICON_BAR_CLASS)
def caret_button():
    """ Returns the HTML code for a caret indicating a dropdown/dropup menu. """

    return classed_button([BUTTON_CLASS, DROPDOWN_TOGGLE_CLASS], toggle(DROPDOWN_CLASS), classed_span("caret"))
Ejemplo n.º 5
0
def caret_button():
    ''' Returns the HTML code for a caret indicating a dropdown/dropup menu. '''

    return classed_button([BUTTON_CLASS, DROPDOWN_TOGGLE_CLASS],
                          toggle(DROPDOWN_CLASS), classed_span("caret"))
Ejemplo n.º 6
0
def default_badge(*content):
    ''' Returns the HTML code for a grey-coloured badge. ''' 

    return classed_span(BADGE_CLASS, *content)
Ejemplo n.º 7
0
def default_label(*content):
    ''' Returns the HTML code for a grey-coloured label. ''' 

    return classed_span(LABEL_CLASS, *content)