Utilities
Gralig provides few utility classes for help you a little bit faster development.
Text
| Class Name | Contains |
|---|---|
.gra-center-text | text-align: center |
.gra-right-text | text-align: right |
.gra-left-text | text-align: left |
.gra-bold-text | text-weight: bold |
.gra-normal-text | text-weight: normal |
.gra-thin-text | text-weight: lighter |
Display
| Class Name | Contains |
|---|---|
.gra-none | display: none |
.gra-block | display: block |
.gra-inline | display: inline |
.gra-inline-block | display: inline-block |
.gra-flex | display: flex |
.gra-flex-col | flex-direction: column |
.gra-flex-row | flex-direction: row |
.gra-flex-ai-c | align-items: center |
.gra-flex-ai-start | align-items: flex-start |
.gra-flex-ai-end | align-items: flex-end |
.gra-flex-ai-sb | align-items: space-between |
.gra-flex-jc-c | justify-content: center |
.gra-flex-jc-start | justify-content: flex-start |
.gra-flex-jc-end | justify-content: flex-end |
Position
| Class Name | Contains |
|---|---|
.gra-absolute | position: absolute |
.gra-relative | position: relative |
.gra-fixed | position: fixed |
.gra-sticky | position: sticky |
Spacing
Paddings
| Class Name | Contains |
|---|---|
.gra-pd-left-xxs | padding-left: $space-xxs |
.gra-pd-left-xs | padding-left: $space-xs |
.gra-pd-left-s | padding-left: $space-s |
.gra-pd-left-m | padding-left: $space-m |
.gra-pd-left-l | padding-left: $space-l |
.gra-pd-left-xl | padding-left: $space-xl |
.gra-pd-left-xxl | padding-left: $space-xxl |
.gra-pd-right-xxs | padding-right: $space-xxs |
.gra-pd-right-xs | padding-right: $space-xs |
.gra-pd-right-s | padding-right: $space-s |
.gra-pd-right-m | padding-right: $space-m |
.gra-pd-right-l | padding-right: $space-l |
.gra-pd-right-xl | padding-right: $space-xl |
.gra-pd-right-xxl | padding-right: $space-xxl |
.gra-pd-top-xxs | padding-top: $space-xxs |
.gra-pd-top-xs | padding-top: $space-xs |
.gra-pd-top-s | padding-top: $space-s |
.gra-pd-top-m | padding-top: $space-m |
.gra-pd-top-l | padding-top: $space-l |
.gra-pd-top-xl | padding-top: $space-xl |
.gra-pd-top-xxl | padding-top: $space-xxl |
.gra-pd-bottom-xxs | padding-bottom: $space-xxs |
.gra-pd-bottom-xs | padding-bottom: $space-xs |
.gra-pd-bottom-s | padding-bottom: $space-s |
.gra-pd-bottom-m | padding-bottom: $space-m |
.gra-pd-bottom-l | padding-bottom: $space-l |
.gra-pd-bottom-xl | padding-bottom: $space-xl |
.gra-pd-bottom-xxl | padding-bottom: $space-xxl |
.gra-pd-inline-xxs | padding-left: $space-xxspadding-right: $space-xxs |
.gra-pd-inline-xs | padding-left: $space-xspadding-right: $space-xs |
.gra-pd-inline-s | padding-left: $space-spadding-right: $space-s |
.gra-pd-inline-m | padding-left: $space-mpadding-right: $space-m |
.gra-pd-inline-l | padding-left: $space-lpadding-right: $space-l |
.gra-pd-inline-xl | padding-left: $space-xlpadding-right: $space-xl |
.gra-pd-inline-xxl | padding-left: $space-xxlpadding-right: $space-xxl |
.gra-pd-block-xxs | padding-top: $space-xxspadding-bottom: $space-xxs |
.gra-pd-block-xs | padding-top: $space-xspadding-bottom: $space-xs |
.gra-pd-block-s | padding-top: $space-spadding-bottom: $space-s |
.gra-pd-block-m | padding-top: $space-mpadding-bottom: $space-m |
.gra-pd-block-l | padding-top: $space-lpadding-bottom: $space-l |
.gra-pd-block-xl | padding-top: $space-xlpadding-bottom: $space-xl |
.gra-pd-block-xxl | padding-top: $space-xxlpadding-bottom: $space-xxl |
.gra-pd-all-xxs | padding-top: $space-xxspadding-right: $space-xxspadding-bottom: $space-xxspadding-left: $space-xxs |
.gra-pd-all-xs | padding-top: $space-xspadding-right: $space-xspadding-bottom: $space-xspadding-left: $space-xs |
.gra-pd-all-s | padding-top: $space-spadding-right: $space-spadding-bottom: $space-spadding-left: $space-s |
.gra-pd-all-m | padding-top: $space-mpadding-right: $space-mpadding-bottom: $space-mpadding-left: $space-m |
.gra-pd-all-l | padding-top: $space-lpadding-right: $space-lpadding-bottom: $space-lpadding-left: $space-l |
.gra-pd-all-xl | padding-top: $space-xlpadding-right: $space-xlpadding-bottom: $space-xlpadding-left: $space-xl |
.gra-pd-all-xxl | padding-top: $space-xxlpadding-right: $space-xxlpadding-bottom: $space-xxlpadding-left: $space-xxl |
Margins
| Class Name | Contains |
|---|---|
.gra-mg-left-xxs | margin-left: $space-xxs |
.gra-mg-left-xs | margin-left: $space-xs |
.gra-mg-left-s | margin-left: $space-s |
.gra-mg-left-m | margin-left: $space-m |
.gra-mg-left-l | margin-left: $space-l |
.gra-mg-left-xl | margin-left: $space-xl |
.gra-mg-left-xxl | margin-left: $space-xxl |
.gra-mg-right-xxs | margin-right: $space-xxs |
.gra-mg-right-xs | margin-right: $space-xs |
.gra-mg-right-s | margin-right: $space-s |
.gra-mg-right-m | margin-right: $space-m |
.gra-mg-right-l | margin-right: $space-l |
.gra-mg-right-xl | margin-right: $space-xl |
.gra-mg-right-xxl | margin-right: $space-xxl |
.gra-mg-top-xxs | margin-top: $space-xxs |
.gra-mg-top-xs | margin-top: $space-xs |
.gra-mg-top-s | margin-top: $space-s |
.gra-mg-top-m | margin-top: $space-m |
.gra-mg-top-l | margin-top: $space-l |
.gra-mg-top-xl | margin-top: $space-xl |
.gra-mg-top-xxl | margin-top: $space-xxl |
.gra-mg-bottom-xxs | margin-bottom: $space-xxs |
.gra-mg-bottom-xs | margin-bottom: $space-xs |
.gra-mg-bottom-s | margin-bottom: $space-s |
.gra-mg-bottom-m | margin-bottom: $space-m |
.gra-mg-bottom-l | margin-bottom: $space-l |
.gra-mg-bottom-xl | margin-bottom: $space-xl |
.gra-mg-bottom-xxl | margin-bottom: $space-xxl |
.gra-mg-inline-xxs | margin-left: $space-xxsmargin-right: $space-xxs |
.gra-mg-inline-xs | margin-left: $space-xsmargin-right: $space-xs |
.gra-mg-inline-s | margin-left: $space-smargin-right: $space-s |
.gra-mg-inline-m | margin-left: $space-mmargin-right: $space-m |
.gra-mg-inline-l | margin-left: $space-lmargin-right: $space-l |
.gra-mg-inline-xl | margin-left: $space-xlmargin-right: $space-xl |
.gra-mg-inline-xxl | margin-left: $space-xxlmargin-right: $space-xxl |
.gra-mg-block-xxs | margin-top: $space-xxsmargin-bottom: $space-xxs |
.gra-mg-block-xs | margin-top: $space-xsmargin-bottom: $space-xs |
.gra-mg-block-s | margin-top: $space-smargin-bottom: $space-s |
.gra-mg-block-m | margin-top: $space-mmargin-bottom: $space-m |
.gra-mg-block-l | margin-top: $space-lmargin-bottom: $space-l |
.gra-mg-block-xl | margin-top: $space-xlmargin-bottom: $space-xl |
.gra-mg-block-xxl | margin-top: $space-xxlmargin-bottom: $space-xxl |
.gra-mg-all-xxs | margin-top: $space-xxsmargin-right: $space-xxsmargin-bottom: $space-xxsmargin-left: $space-xxs |
.gra-mg-all-xs | margin-top: $space-xsmargin-right: $space-xsmargin-bottom: $space-xsmargin-left: $space-xs |
.gra-mg-all-s | margin-top: $space-smargin-right: $space-smargin-bottom: $space-smargin-left: $space-s |
.gra-mg-all-m | margin-top: $space-mmargin-right: $space-mmargin-bottom: $space-mmargin-left: $space-m |
.gra-mg-all-l | margin-top: $space-lmargin-right: $space-lmargin-bottom: $space-lmargin-left: $space-l |
.gra-mg-all-xl | margin-top: $space-xlmargin-right: $space-xlmargin-bottom: $space-xlmargin-left: $space-xl |
.gra-mg-all-xxl | margin-top: $space-xxlmargin-right: $space-xxlmargin-bottom: $space-xxlmargin-left: $space-xxl |
Colors
| Class Name | Contains |
|---|---|
.gra-blue-color | color: $color-blue |
.gra-green-color | color: $color-green |
.gra-yellow-color | color: $color-yellow |
.gra-red-color | color: $color-red |
.gra-blue-bg | background-color: $color-blue |
.gra-green-bg | background-color: $color-green |
.gra-yellow-bg | background-color: $color-yellow |
.gra-red-bg | background-color: $color-red |
Others
| Class Name | Contains |
|---|---|
.gra-width-100 | width: 100% |
.gra-height-100 | height: 100% |
.gra-bg-cover | background-size: cover |
.gra-bg-contain | background-size: contain |
.gra-bg-norepeat | background-repeat: no-repeat |