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)
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)
Example #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"))
Example #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"))
Example #6
0
def default_badge(*content):
    ''' Returns the HTML code for a grey-coloured badge. ''' 

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

    return classed_span(LABEL_CLASS, *content)