gijgo
Version:
Gijgo is a set of free open source javascript controls distributed under MIT License. All widgets are high performance, built on top of the jQuery JavaScript Library with built-in support for Bootstrap, Material Design and Font Awesome. They are designed
563 lines (485 loc) • 12.4 kB
CSS
.gj-button {
background-color: #f5f5f5;
border: 1px solid #ddd;
color: #000;
border-radius: 3px;
padding: 6px 10px;
cursor: pointer;
}
.gj-unselectable {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.gj-margin-left-5 {
margin-left: 5px;
}
.gj-margin-left-10 {
margin-left: 10px;
}
.gj-width-full {
width: 100%;
}
.gj-cursor-pointer {
cursor: pointer;
}
.gj-text-align-center {
text-align: center;
}
.gj-font-size-16 {
font-size: 16px;
}
.gj-hidden {
display: none;
}
.gj-mdl-icon-plus::after {
content: "\E145";
}
.gj-mdl-icon-minus::after {
content: "\E15B";
}
/** Material Design */
.gj-button-md {
background: 0 0;
border: none;
border-radius: 2px;
color: #000;
position: relative;
height: 36px;
margin: 0;
min-width: 64px;
padding: 0 16px;
display: inline-block;
font-family: "Roboto","Helvetica","Arial",sans-serif;
font-size: 1rem;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0;
overflow: hidden;
will-change: box-shadow;
transition: box-shadow .2s cubic-bezier(.4,0,1,1),background-color .2s cubic-bezier(.4,0,.2,1),color .2s cubic-bezier(.4,0,.2,1);
outline: none;
cursor: pointer;
text-decoration: none;
text-align: center;
line-height: 36px;
vertical-align: middle;
overflow: hidden;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.gj-button-md:hover {
background-color: rgba(158,158,158,.2);
}
.gj-button-md:disabled {
color: rgba(0,0,0,.26);
}
.gj-button-md .material-icons {
vertical-align: middle;
font-size: 1.3rem;
margin-right: 4px;
}
.gj-button-md.gj-button-md-icon {
width: 24px;
height: 24px;
min-width: 24px;
padding: 0px;
}
.gj-button-md.gj-button-md-icon .material-icons {
vertical-align: baseline;
margin-right: 0px;
}
.gj-button-md.active {
background-color: rgba(158,158,158,.4);
}
.gj-button-md-group {
position: relative;
display: inline-block;
vertical-align: middle;
}
.gj-textbox-md {
border: none;
border-bottom: 1px solid rgba(0,0,0,.12);
display: block;
font-size: 16px;
font-family: "Helvetica","Arial",sans-serif;
margin: 0;
padding: 4px 0;
width: 100%;
background: 0 0;
text-align: left;
color: inherit;
}
.gj-textbox-md:focus {
border-bottom: 2px solid rgba(158,158,158,.4);
outline: none;
}
.gj-md-spacer-24 {
min-width: 24px;
width: 24px;
display: inline-block;
}
.gj-md-spacer-32 {
min-width: 32px;
width: 32px;
display: inline-block;
}
DIV.gj-grid-wrapper {
margin: auto;
position: relative;
clear:both;
}
TABLE.gj-grid-table {
margin: auto;
border-collapse: collapse;
width: 100%;
table-layout: fixed;
}
TABLE.gj-grid-table THEAD TH [data-role="selectAll"] {
margin: auto;
}
TABLE.gj-grid-table THEAD TH [data-role="title"] {
display: inline-block;
}
TABLE.gj-grid-table THEAD TH [data-role="sorticon"] {
display: inline-block;
}
TABLE.gj-grid-table > thead > tr > th,
TABLE.gj-grid-table > tbody > tr > td {
overflow: hidden;
}
TABLE.gj-grid-table DIV[data-role="display"], TABLE.gj-grid-table DIV[data-role="display"] DIV {
vertical-align: middle;
text-indent: 0;
display: inline-block;
white-space: pre-wrap;
-ms-word-break: break-word;
word-break: break-word;
}
TABLE.gj-grid-table .fa {
padding: 2px;
}
TABLE.gj-grid-table > tbody > tr > td > div
{
padding: 2px;
overflow: hidden;
}
DIV.gj-grid-wrapper DIV.gj-grid-loading-cover
{
background: #BBBBBB;
opacity: 0.5;
position: absolute;
vertical-align: middle;
}
DIV.gj-grid-wrapper DIV.gj-grid-loading-text
{
position: absolute;
font-weight: bold;
}
.gj-dirty {
position: absolute;
width: 0;
height: 0;
border-style: solid;
border-width: 3px;
border-color: #f00 transparent transparent #f00;
padding: 0;
overflow: hidden;
vertical-align: top;
}
table.gj-grid-table .gj-grid-icon
{
margin: 0 2px;
cursor: pointer;
overflow: visible;
width: 16px;
height: 16px;
}
/* Bootstrap Theme */
table.gj-grid-bootstrap-table thead th {
background-color: #f5f5f5;
vertical-align:middle;
}
table.gj-grid-bootstrap-table thead th [data-role="sorticon"] {
margin-left: 5px;
}
table.gj-grid-bootstrap-table thead th [data-role="sorticon"] i.material-icons {
position: absolute;
font-size: 20px;
top: 15px;
}
table.gj-grid-bootstrap-table tbody tr td div[data-role="display"] {
padding: 0px;
}
/* Material Design Theme */
.gj-grid-md-table {
position: relative;
border: 1px solid rgba(0,0,0,.12);
border-collapse: collapse;
white-space: nowrap;
font-size: 13px;
font-family: "Helvetica","Arial",sans-serif;
background-color: #fff;
}
.gj-grid-md-table td:first-of-type, .gj-grid-md-table th:first-of-type {
padding-left: 24px;
}
.gj-grid-md-table th {
position: relative;
vertical-align: bottom;
text-overflow: ellipsis;
font-weight: 700;
line-height: 24px;
letter-spacing: 0;
height: 48px;
font-size: 12px;
color: rgba(0,0,0,.54);
padding-bottom: 8px;
box-sizing: border-box;
padding: 0 18px 12px 18px;
text-align: right;
}
.gj-grid-md-table tbody tr {
position: relative;
height: 48px;
transition-duration: .28s;
transition-timing-function: cubic-bezier(.4,0,.2,1);
transition-property: background-color;
}
.gj-grid-md-table tbody tr:hover {
background-color: #EEEEEE; /* Gray 200 */
}
.gj-grid-md-table td {
position: relative;
height: 48px;
border-top: 1px solid rgba(0,0,0,.12);
border-bottom: 1px solid rgba(0,0,0,.12);
padding: 12px 18px;
box-sizing: border-box;
text-align: left;
}
.gj-grid-md-table tbody tr.gj-grid-md-select {
background-color: #F5F5F5; /* Grey 100 */
}
table.gj-grid-md-table thead th [data-role="sorticon"] {
margin-left: 5px;
}
table.gj-grid-md-table thead th [data-role="sorticon"] i.material-icons {
position: absolute;
font-size: 18px;
top: 13px;
}
table.gj-grid-md-table thead th.gj-grid-select-all {
padding-bottom: 3px;
}
.gj-grid-table .gj-grid-md-limit-select {
text-align: right;
display: inline-block;
width: 50px;
padding: 0px 5px;
margin-left: 10px;
font-size: 13px;
}
/* Hide all prioritized columns by default */
@media only all {
th.display-1120,
td.display-1120,
th.display-960,
td.display-960,
th.display-800,
td.display-800,
th.display-640,
td.display-640,
th.display-480,
td.display-480,
th.display-320,
td.display-320 {
display: none;
}
}
/* Show at 320px (20em x 16px) */
@media screen and (min-width: 20em) {
TABLE.gj-grid-table th.display-320,
TABLE.gj-grid-table td.display-320 {
display: table-cell;
}
}
/* Show at 480px (30em x 16px) */
@media screen and (min-width: 30em) {
TABLE.gj-grid-table th.display-480,
TABLE.gj-grid-table td.display-480 {
display: table-cell;
}
}
/* Show at 640px (40em x 16px) */
@media screen and (min-width: 40em) {
TABLE.gj-grid-table th.display-640,
TABLE.gj-grid-table td.display-640 {
display: table-cell;
}
}
/* Show at 800px (50em x 16px) */
@media screen and (min-width: 50em) {
TABLE.gj-grid-table th.display-800,
TABLE.gj-grid-table td.display-800 {
display: table-cell;
}
}
/* Show at 960px (60em x 16px) */
@media screen and (min-width: 60em) {
TABLE.gj-grid-table th.display-960,
TABLE.gj-grid-table td.display-960 {
display: table-cell;
}
}
/* Show at 1,120px (70em x 16px) */
@media screen and (min-width: 70em) {
TABLE.gj-grid-table th.display-1120,
TABLE.gj-grid-table td.display-1120 {
display: table-cell;
}
}
/* Material Design Theme */
.gj-grid-md-table tfoot tr th {
padding-right: 14px;
}
.gj-grid-md-table tfoot tr th .gj-button-md {
height: 24px;
}
.gj-grid-md-table tfoot tr th .gj-grid-mdl-pager-label {
padding-left: 5px;
padding-right: 5px;
}
/* Bootstrap */
table.gj-grid-table tfoot tr th.gj-grid-bootstrap-tfoot-cell {
line-height: 30px;
background-color: #f5f5f5;
}
table.gj-grid-table tfoot tr th.gj-grid-bootstrap-tfoot-cell > div > div {
margin-right: 5px;
}
table.gj-grid-table tfoot tr th.gj-grid-bootstrap-tfoot-cell > div > button {
margin-right: 5px;
}
.gj-grid-table thead tr th div.gj-grid-column-resizer-wrapper {
position: relative;
width: 100%;
height: 0px;
top: 0px;
left: 0px;
padding: 0px;
}
span.gj-grid-column-resizer {
position: absolute;
right: 0px;
width: 5px;
top: -100px;
height: 300px;
z-index: 100;
cursor: e-resize;
}
.gj-grid-resize-cursor {
cursor: e-resize;
}
.gj-grid-table tbody tr.gj-grid-base-top-border td {
border-top: 2px solid #777;
}
.gj-grid-table tbody tr.gj-grid-base-bottom-border td {
border-bottom: 2px solid #777;
}
.gj-grid-md-table thead tr th.gj-grid-left-border,
.gj-grid-md-table tbody tr td.gj-grid-left-border
{
border-left: 2px solid #777;
}
.gj-grid-md-table thead tr th.gj-grid-right-border,
.gj-grid-md-table tbody tr td.gj-grid-right-border
{
border-right: 2px solid #777;
}
.gj-grid-bootstrap-table thead tr th.gj-grid-left-border,
.gj-grid-bootstrap-table tbody tr td.gj-grid-left-border
{
border-left: 2px solid #ddd;
}
.gj-grid-bootstrap-table thead tr th.gj-grid-right-border,
.gj-grid-bootstrap-table tbody tr td.gj-grid-right-border
{
border-right: 2px solid #ddd;
}
table.gj-grid-table div[data-role="edit"] {
display: inline;
}
table.gj-grid-table div[data-role="edit"] label.gj-checkbox-md,
table.gj-grid-table div[data-role="edit"] label.gj-checkbox-bootstrap {
display: inline-block;
}
.gj-grid-md-table thead tr[data-role="filter"] th {
border-top: 1px solid rgba(0,0,0,.12);
}
div.gj-grid-wrapper div.gj-grid-bootstrap-toolbar {
background-color: #f5f5f5;
padding: 8px;
font-weight: bold;
border: 1px solid #ddd;
}
div.gj-grid-wrapper div.gj-grid-bootstrap-4-toolbar {
background-color: #f5f5f5;
padding: 12px;
font-weight: bold;
border: 1px solid #ddd;
}
div.gj-grid-wrapper div.gj-grid-md-toolbar {
font-weight: bold;
font-size: 24px;
font-family: "Helvetica","Arial",sans-serif;
background-color: rgb(255, 255, 255);
border-top: 1px solid rgba(0,0,0,.12);
border-left: 1px solid rgba(0,0,0,.12);
border-right: 1px solid rgba(0,0,0,.12);
border-bottom: 0px;
border-collapse: collapse;
padding: 0 18px 0px 18px;
line-height: 56px;
}
table.gj-grid-scrollable tbody {
overflow-y: auto;
overflow-x: hidden;
display: block;
}
/* Material Design */
table.gj-grid-md-table.gj-grid-scrollable {
border-bottom: 0px;
}
table.gj-grid-md-table.gj-grid-scrollable tbody {
border-right: 1px solid rgba(0,0,0,.12);
border-bottom: 1px solid rgba(0,0,0,.12);
}
table.gj-grid-md-table.gj-grid-scrollable tfoot {
border-bottom: 1px solid rgba(0,0,0,.12);
}
/* Bootstrap 3 */
table.gj-grid-bootstrap-table.gj-grid-scrollable {
border-bottom: 0px;
}
table.gj-grid-bootstrap-table.gj-grid-scrollable tbody {
border-right: 1px solid #ddd;
border-bottom: 1px solid #ddd;
}
table.gj-grid-bootstrap-table.gj-grid-scrollable tbody tr[data-role="row"]:first-child td {
border-top: 0px;
}
table.gj-grid-bootstrap-table.gj-grid-scrollable tbody tr[data-role="row"] td:first-child {
border-left: 0px;
}
table.gj-grid-bootstrap-table.gj-grid-scrollable tbody tr[data-role="row"] td:last-child {
border-right: 0px;
}
table.gj-grid-bootstrap-table.gj-grid-scrollable tfoot {
border-bottom: 1px solid #ddd;
}