Structure Structural and text related classes
This section contains a variety of styles related to the structural stage of elements within a webpage. The code is divided into three main sections: "SPACING", "DISPLAY" and "TEXT".
Classes
Under the "SPACING" module, there are several classes related to the space around an element's content. These classes include:
Copy /* PADDING */
.pa-0 { padding : 0 } .pa-1 { padding : 5 px } .pa-2 { padding : 10 px } .pa-3 { padding : 15 px }
.pa-4 { padding : 20 px } .pa-5 { padding : 25 px } .pa-6 { padding : 30 px } .pa-7 { padding : 35 px }
. . .
/* MARGIN */
.ma-0 { margin : 0 } .ma-1 { margin : 5 px } .ma-2 { margin : 10 px } .ma-3 { margin : 15 px }
.ma-4 { margin : 20 px } .ma-5 { margin : 25 px } .ma-6 { margin : 30 px } .ma-7 { margin : 35 px }
. . .
Additionally, there are several classes related to visibility and structure, which set the layout of the children of an element. These classes include:
Copy /* DISPLAY */
.invisible { visibility : hidden } .hidden { visibility : hidden } .block { display : block } .none { display : none }
.noverflow { overflow : hidden } .noverflow-x { overflow-x : hidden } .noverflow-y { overflow-y : hidden }
. . .
/* FLEX */
.flex { display : flex }
.flex-1 { flex : 1 } .flex-2 { flex : 2 } .flex-3 { flex : 3 }
.flex-center { display : flex ; justify-content : center ; align-items : center }
.flex-row { display : flex ; flex-direction : row ; justify-content : center ; align-items : center }
.flex-center { display : flex ; justify-content : center ; align-items : center }
.flex-col { display : flex ; flex-direction : column ; justify-content : center ; align-items : center }
. . .
/* FLEX GAP */
.gap-1 { gap : 5 px } .gap-2 { gap : 10 px } .gap-3 { gap : 15 px } .gap-4 { gap : 20 px } .gap-5 { gap : 25 px }
. . .
Finally, there are classes related the most common font style properties. These classes include:
Copy /* FAMILY */
.tx-sans { font-family : 'Open Sans' , sans-serif } .tx-roman { font-family : 'Times New Roman' , Times , serif }
/* SIZE */
.tx-xxs { font-size : 0.35 rem } .tx-xs { font-size : 0.55 rem } .tx-xsm { font-size : 0.725 rem } .tx-sm { font-size : 0.845 rem }
. . .