Full fledged grid based framework no JS, just simple CSS . Preview
In order to solve the issues of robust CSS frameworks with many dependencies, our focus was on creating the framework for common basic CSS styling.
In order to use the framework, please add following line to the <head>
HTML file:
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/zlayabekrija/grid-based-framework/frame.css">
Reset of all the css values is included in the framework
-
common navbar with links placed vertically with classes for links or elements
v-nav-links
orv-nav-items
-
navbar with horizontally placed links
h-navbar
-
responsive navbar needs to have the class of
md
in order to respond on screen size -
themed navbar with palette of 17 colors accomplished by adding the name of the color as an class (example
h-navbar navy
)Working example can be found here .
Bootstrap-like 12 column based pattern
Each grid based system needs to have parent element of row
class
Type | Class Name | Range |
---|---|---|
Column Size | col- |
1-12 |
Column Offset | col- -offset |
1-6 |
Working example can be found here .
Common type of forms with elements horizontally and vertically aligned
-
each from starts with parent element of class of
form
-
themed form has additional class of
themed
-
inline forms (ex. search forms) are having
form-inline
as parent elementWorking example can be found here .
There are 17 common types of colors and themes. Themes will change the color on hover.
Working example can be found here .
Border classes will allow us to define border thikness and position (top,left...)
Type | Class Name | Range |
---|---|---|
border | b- |
1-10 |
no-border | b-0 |
n/a |
border-position | m- - |
[l,r,t,b ][1-10 ] |
Working example can be found here .
With padding classes we can set padding to the top,bottom,left and right
Type | Class Name | Range |
---|---|---|
padding | p- |
1-10 |
no-padding | p-0 |
n/a |
padding-position | p- - |
[l,r,t,b ][1-10 ] |
Working example can be found here .
With margin classes we can set margin to the top,bottom,left and right
Type | Class Name | Range |
---|---|---|
margin | m- |
1-10 |
no-margin | m-0 |
n/a |
margin-position | m- - |
[l,r,t,b ][1-10 ] |
Working example can be found here .
Display properties
Type | Class Name |
---|---|
Block | d-block or d-b |
Inline | d-inline or d-i |
Inline Block | d-inline-block or d-i |
Flex | d-flex or d-f |
None | d-none |
Float properties
Type | Class Name |
---|---|
Float left | f-left |
Float right | f-right |
Clear float | clearfix |
Text properties
Type | Class Name |
---|---|
Align left | left |
Align right | right |
Align center | center |
Flexbox properties
Type | Class Name |
---|---|
Justify center | jc-flex-center |
Justify start | jc-flex-start |
Justify end | jc-flex-end |
Justify space around | jc-space-around |
Justify space between | jc-space-between |
Flex direction properties
Type | Class Name |
---|---|
Flex directon row | fd-row |
Flex direction column | fd-col |
Flex wrap | f-wrap |
Flex no wrap | f-nowrap |
Flex grow | f-grow- [1 or 0] |
Flex shrink | f-shrink -[1 or 0] |
Border radius properties
Type | Class Name | Range |
---|---|---|
Border radius | br- |
1 - 5 |
Border round | b-round |
n/a |