Coverage for khufu/scaffolding/row_adjustable.py : 40%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1# encoding: utf-8
2from . import *
4def row_adjustable(
5 span=12,
6 offset=0,
7 content='',
8 htmlId=False,
9 htmlClass=False,
10 onPhone=True,
11 onTablet=True,
12 onDesktop=True
13):
14 """
15 *row adjustable*
17 **Key Arguments**
19 - ``span`` -- the relative width of the column
20 - ``offset`` -- increase the left margin of the column by this amount
21 - ``content`` -- content for the row
22 - ``htmlId`` -- the id of the column
23 - ``htmlClass`` -- the class of the column
24 - ``onPhone`` -- does this column get displayed on a phone sized screen
25 - ``onTablet`` -- does this column get displayed on a tablet sized screen
26 - ``onDesktop`` -- does this column get displayed on a desktop sized screen
29 **Return**
31 - ``row`` -- the adjustable row
33 """
35 column = grid_column(
36 span=span, # 1-12
37 offset=offset, # 1-12
38 content=content
39 )
41 row = grid_row(
42 responsive=True,
43 columns=column,
44 htmlId=htmlId,
45 htmlClass=htmlClass,
46 onPhone=onPhone,
47 onTablet=onTablet,
48 onDesktop=onDesktop
49 )
51 return row