definicao de layout
This commit is contained in:
127
public/assets/scss/datatable-extension/_autofill-datatable.scss
Normal file
127
public/assets/scss/datatable-extension/_autofill-datatable.scss
Normal file
@@ -0,0 +1,127 @@
|
||||
/*autofill datatable css*/
|
||||
|
||||
$autofill-define-button: true !default;
|
||||
$autofill-outline: #4989de !default;
|
||||
$autofill-handle-border: 1px solid #316ad1 !default;
|
||||
$autofill-handle-background: linear-gradient(to bottom, #abcffb 0%, #4989de 100%) !default;
|
||||
|
||||
|
||||
div.dt-autofill-handle {
|
||||
position: absolute;
|
||||
height: 8px;
|
||||
width: 8px;
|
||||
z-index: 102;
|
||||
|
||||
box-sizing: border-box;
|
||||
border: $autofill-handle-border;
|
||||
background: $autofill-handle-background;
|
||||
}
|
||||
|
||||
div.dt-autofill-select {
|
||||
position: absolute;
|
||||
z-index: 1001;
|
||||
|
||||
background-color: $autofill-outline;
|
||||
background-image: repeating-linear-gradient(45deg,
|
||||
transparent,
|
||||
transparent 5px,
|
||||
rgba(255,255,255,.5) 5px,
|
||||
rgba(255,255,255,.5) 10px
|
||||
);
|
||||
|
||||
&.top,
|
||||
&.bottom {
|
||||
height: 3px;
|
||||
margin-top: -1px;
|
||||
}
|
||||
|
||||
&.left,
|
||||
&.right {
|
||||
width: 3px;
|
||||
margin-left: -1px;
|
||||
}
|
||||
}
|
||||
|
||||
div.dt-autofill-list {
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
width: 500px;
|
||||
margin-left: -250px;
|
||||
// margin-top is set by JS
|
||||
background-color: white;
|
||||
border-radius: 6px;
|
||||
box-shadow: 0 0 5px #555;
|
||||
border: 2px solid #444;
|
||||
z-index: 11;
|
||||
box-sizing: border-box;
|
||||
padding: 1.5em 2em;
|
||||
|
||||
ul {
|
||||
display: table;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
width: 100%;
|
||||
|
||||
li {
|
||||
display: table-row;
|
||||
|
||||
&:last-child div.dt-autofill-question,
|
||||
&:last-child div.dt-autofill-button {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background-color: #f6f6f6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
div.dt-autofill-question {
|
||||
display: table-cell;
|
||||
padding: 0.5em 0;
|
||||
border-bottom: 1px solid #ccc;
|
||||
|
||||
input[type=number] {
|
||||
padding: 6px;
|
||||
width: 30px;
|
||||
margin: -2px 0;
|
||||
}
|
||||
}
|
||||
|
||||
div.dt-autofill-button {
|
||||
display: table-cell;
|
||||
padding: 0.5em 0;
|
||||
border-bottom: 1px solid #ccc;
|
||||
|
||||
@if $autofill-define-button {
|
||||
button {
|
||||
color: white;
|
||||
margin: 0;
|
||||
padding: 6px 12px;
|
||||
text-align: center;
|
||||
border: 1px solid #2e6da4;
|
||||
background-color: #337ab7;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
div.dt-autofill-background {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
background: rgba(0, 0, 0, 0.7); // fallback
|
||||
background: radial-gradient(ellipse farthest-corner at center, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
|
||||
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
/*autofill datatable css*/
|
||||
@@ -0,0 +1,54 @@
|
||||
/*button bootstrap4 css*/
|
||||
@import 'mixins.scss';
|
||||
@import 'common.scss';
|
||||
|
||||
ul.dt-button-collection.dropdown-menu {
|
||||
display: block;
|
||||
z-index: 2002;
|
||||
|
||||
@include dtb-fixed-collection();
|
||||
}
|
||||
|
||||
ul.dt-button-collection {
|
||||
@include dtb-fixed-collection();
|
||||
|
||||
&.fixed {
|
||||
max-width: none;
|
||||
|
||||
&:before,
|
||||
&:after {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
div.dt-button-background {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 767px) {
|
||||
div.dt-buttons {
|
||||
float: none;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
margin-bottom: 0.5em;
|
||||
|
||||
a.btn {
|
||||
float: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
div.dt-buttons {
|
||||
button.btn.processing,
|
||||
div.btn.processing,
|
||||
a.btn.processing {
|
||||
@include dtb-processing();
|
||||
}
|
||||
}
|
||||
/*button bootstrap4 css*/
|
||||
143
public/assets/scss/datatable-extension/_buttons.dataTables.scss
Normal file
143
public/assets/scss/datatable-extension/_buttons.dataTables.scss
Normal file
@@ -0,0 +1,143 @@
|
||||
/*buttons datatable css*/
|
||||
@import 'mixins.scss';
|
||||
@import 'common.scss';
|
||||
|
||||
button.dt-button,
|
||||
div.dt-button,
|
||||
a.dt-button {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
box-sizing: border-box;
|
||||
margin-right: 0.333em;
|
||||
margin-bottom: 0.333em;
|
||||
padding: 0.5em 1em;
|
||||
border: 1px solid #999;
|
||||
border-radius: 2px;
|
||||
cursor: pointer;
|
||||
font-size: 0.88em;
|
||||
line-height: 1.6em;
|
||||
color: black;
|
||||
//box-shadow: 1px 1px 3px #ccc;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
@include dtb-two-stop-gradient(white, #e9e9e9);
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
text-decoration: none;
|
||||
outline: none;
|
||||
|
||||
&.disabled {
|
||||
color: #999;
|
||||
border: 1px solid #d0d0d0;
|
||||
cursor: default;
|
||||
@include dtb-two-stop-gradient(#ffffff, #f9f9f9);
|
||||
}
|
||||
|
||||
&:active:not(.disabled),
|
||||
&.active:not(.disabled) {
|
||||
@include dtb-two-stop-gradient(#f3f3f3, #e2e2e2);
|
||||
box-shadow: inset 1px 1px 3px #999999;
|
||||
|
||||
&:hover:not(.disabled) {
|
||||
box-shadow: inset 1px 1px 3px #999999;
|
||||
@include dtb-two-stop-gradient(#eaeaea, #cccccc);
|
||||
}
|
||||
}
|
||||
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
&:hover:not(.disabled) {
|
||||
border: 1px solid #666;
|
||||
@include dtb-two-stop-gradient(#f9f9f9, #e0e0e0);
|
||||
}
|
||||
|
||||
&:focus:not(.disabled) {
|
||||
border: 1px solid #426c9e;
|
||||
text-shadow: 0 1px 0 #c4def1;
|
||||
outline: none;
|
||||
@include dtb-two-stop-gradient(#bddef4, #79ace9);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.dt-button embed {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
|
||||
div.dt-buttons {
|
||||
position: relative;
|
||||
float: left;
|
||||
|
||||
&.buttons-right {
|
||||
float: right;
|
||||
}
|
||||
}
|
||||
|
||||
div.dt-button-collection {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 150px;
|
||||
margin-top: 3px;
|
||||
padding: 8px 8px 4px 8px;
|
||||
border: 1px solid #ccc;
|
||||
border: 1px solid rgba( 0, 0, 0, 0.4 );
|
||||
background-color: white;
|
||||
overflow: hidden;
|
||||
z-index: 2002;
|
||||
border-radius: 5px;
|
||||
box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
|
||||
|
||||
button.dt-button,
|
||||
div.dt-button,
|
||||
a.dt-button {
|
||||
position: relative;
|
||||
left: 0;
|
||||
right: 0;
|
||||
width: 100%;
|
||||
|
||||
display: block;
|
||||
float: none;
|
||||
margin-bottom: 4px;
|
||||
margin-right: 0;
|
||||
|
||||
&:active:not(.disabled),
|
||||
&.active:not(.disabled) {
|
||||
@include dtb-two-stop-gradient(#f0f0f0, #dadada);
|
||||
box-shadow: inset 1px 1px 3px #666;
|
||||
}
|
||||
}
|
||||
|
||||
@include dtb-fixed-collection();
|
||||
}
|
||||
|
||||
div.dt-button-background {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
@include dtb-radial-gradient( rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7) );
|
||||
|
||||
z-index: 2001;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 640px) {
|
||||
div.dt-buttons {
|
||||
float: none !important;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
button.dt-button.processing,
|
||||
div.dt-button.processing,
|
||||
a.dt-button.processing {
|
||||
@include dtb-processing();
|
||||
}
|
||||
/*buttons datatable css*/
|
||||
@@ -0,0 +1,97 @@
|
||||
/*buttons jqueryui css*/
|
||||
@import 'mixins.scss';
|
||||
@import 'common.scss';
|
||||
|
||||
div.dt-buttons {
|
||||
position: relative;
|
||||
float: left;
|
||||
|
||||
.dt-button {
|
||||
margin-right: 0;
|
||||
|
||||
span.ui-icon {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
margin-top: -2px;
|
||||
}
|
||||
|
||||
&:active {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
&:hover > span {
|
||||
background-color: rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
div.dt-button-collection {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 150px;
|
||||
margin-top: 3px;
|
||||
padding: 8px 8px 4px 8px;
|
||||
border: 1px solid #ccc;
|
||||
border: 1px solid rgba( 0, 0, 0, 0.4 );
|
||||
background-color: #f3f3f3;
|
||||
background-color: rgba( 255, 255, 255, 0.3 );
|
||||
overflow: hidden;
|
||||
z-index: 2002;
|
||||
border-radius: 5px;
|
||||
box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
|
||||
|
||||
z-index: 2002;
|
||||
|
||||
.dt-button {
|
||||
position: relative;
|
||||
left: 0;
|
||||
right: 0;
|
||||
width: 100%;
|
||||
|
||||
display: block;
|
||||
float: none;
|
||||
margin-right: 0;
|
||||
margin-bottom: 4px;
|
||||
|
||||
&:hover > span {
|
||||
background-color: rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
}
|
||||
|
||||
@include dtb-fixed-collection();
|
||||
|
||||
-webkit-column-gap: 0;
|
||||
-moz-column-gap: 0;
|
||||
-ms-column-gap: 0;
|
||||
-o-column-gap: 0;
|
||||
column-gap: 0;
|
||||
}
|
||||
|
||||
div.dt-button-background {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
@include dtb-radial-gradient( rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7) );
|
||||
|
||||
z-index: 2001;
|
||||
}
|
||||
|
||||
|
||||
@media screen and (max-width: 640px) {
|
||||
div.dt-buttons {
|
||||
float: none !important;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
button.dt-button.processing,
|
||||
div.dt-button.processing,
|
||||
a.dt-button.processing {
|
||||
@include dtb-processing();
|
||||
}
|
||||
/*buttons jqueryui css*/
|
||||
@@ -0,0 +1,54 @@
|
||||
/*buttons semanticui css*/
|
||||
@import 'mixins.scss';
|
||||
@import 'common.scss';
|
||||
|
||||
div.dt-button-collection {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 150px;
|
||||
margin-top: 3px !important;
|
||||
z-index: 2002;
|
||||
background: white;
|
||||
|
||||
@include dtb-fixed-collection();
|
||||
}
|
||||
|
||||
button.buttons-collection.ui.button span:after {
|
||||
display: inline-block;
|
||||
content: "▾";
|
||||
padding-left: 0.5em;
|
||||
}
|
||||
|
||||
div.dt-button-background {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 2001;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 767px) {
|
||||
div.dt-buttons {
|
||||
float: none;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
margin-bottom: 0.5em;
|
||||
|
||||
a.btn {
|
||||
float: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
div.dt-buttons {
|
||||
button.button.processing,
|
||||
div.button.processing,
|
||||
a.button.processing {
|
||||
position: relative;
|
||||
|
||||
@include dtb-processing();
|
||||
}
|
||||
}
|
||||
/*buttons semanticui css*/
|
||||
26
public/assets/scss/datatable-extension/_common.scss
Normal file
26
public/assets/scss/datatable-extension/_common.scss
Normal file
@@ -0,0 +1,26 @@
|
||||
div.dt-button-info {
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
width: 400px;
|
||||
margin-top: -100px;
|
||||
margin-left: -200px;
|
||||
background-color: white;
|
||||
border: 2px solid #111;
|
||||
box-shadow: 3px 3px 8px rgba( 0, 0, 0, 0.3);
|
||||
border-radius: 3px;
|
||||
text-align: center;
|
||||
z-index: 21;
|
||||
|
||||
h2 {
|
||||
padding: 0.5em;
|
||||
margin: 0;
|
||||
font-weight: normal;
|
||||
border-bottom: 1px solid #ddd;
|
||||
background-color: #f3f3f3;
|
||||
}
|
||||
|
||||
> div {
|
||||
padding: 1em;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
/*Fixed columns datatable css*/
|
||||
// Block out what is behind the fixed column's header and footer
|
||||
table.DTFC_Cloned thead,
|
||||
table.DTFC_Cloned tfoot {
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
// Block out the gap above the scrollbar on the right, when there is a fixed
|
||||
// right column
|
||||
div.DTFC_Blocker {
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
div.DTFC_LeftWrapper table.dataTable,
|
||||
div.DTFC_RightWrapper table.dataTable {
|
||||
margin-bottom: 0;
|
||||
z-index: 2;
|
||||
|
||||
&.no-footer {
|
||||
border-bottom: none;
|
||||
}
|
||||
}
|
||||
/*Fixed columns datatable css*/
|
||||
@@ -0,0 +1,17 @@
|
||||
/*fixed haeder datatable css*/
|
||||
|
||||
table.fixedHeader-floating {
|
||||
position: fixed !important;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
table.fixedHeader-floating.no-footer {
|
||||
border-bottom-width: 0;
|
||||
}
|
||||
|
||||
table.fixedHeader-locked {
|
||||
position: absolute !important;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
/*fixed haeder datatable css*/
|
||||
@@ -0,0 +1,9 @@
|
||||
$keytable-focus: 3px solid #3366FF !default;
|
||||
|
||||
table.dataTable {
|
||||
th.focus,
|
||||
td.focus {
|
||||
outline: $keytable-focus;
|
||||
outline-offset: -1px;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
/*keytable css*/
|
||||
$keytable-focus: 3px solid #0275d8 !default;
|
||||
|
||||
@import 'keyTable.dataTables.scss';
|
||||
/*keytable css*/
|
||||
140
public/assets/scss/datatable-extension/_mixins.scss
Normal file
140
public/assets/scss/datatable-extension/_mixins.scss
Normal file
@@ -0,0 +1,140 @@
|
||||
@mixin dtb-two-stop-gradient($fromColor, $toColor) {
|
||||
background-color: $toColor; /* Fallback */
|
||||
background-image: -webkit-linear-gradient(top, $fromColor 0%, $toColor 100%); /* Chrome 10+, Saf5.1+, iOS 5+ */
|
||||
background-image: -moz-linear-gradient(top, $fromColor 0%, $toColor 100%); /* FF3.6 */
|
||||
background-image: -ms-linear-gradient(top, $fromColor 0%, $toColor 100%); /* IE10 */
|
||||
background-image: -o-linear-gradient(top, $fromColor 0%, $toColor 100%); /* Opera 11.10+ */
|
||||
background-image: linear-gradient(to bottom, $fromColor 0%, $toColor 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,StartColorStr='#{nth( $fromColor, 1 )}', EndColorStr='#{nth( $toColor, 1 )}');
|
||||
}
|
||||
|
||||
@mixin dtb-radial-gradient ($fromColor, $toColor ) {
|
||||
background: $toColor; /* Fallback */
|
||||
background: -ms-radial-gradient(center, ellipse farthest-corner, $fromColor 0%, $toColor 100%); /* IE10 Consumer Preview */
|
||||
background: -moz-radial-gradient(center, ellipse farthest-corner, $fromColor 0%, $toColor 100%); /* Firefox */
|
||||
background: -o-radial-gradient(center, ellipse farthest-corner, $fromColor 0%, $toColor 100%); /* Opera */
|
||||
background: -webkit-gradient(radial, center center, 0, center center, 497, color-stop(0, $fromColor), color-stop(1, $toColor)); /* Webkit (Safari/Chrome 10) */
|
||||
background: -webkit-radial-gradient(center, ellipse farthest-corner, $fromColor 0%, $toColor 100%); /* Webkit (Chrome 11+) */
|
||||
background: radial-gradient(ellipse farthest-corner at center, $fromColor 0%, $toColor 100%); /* W3C Markup, IE10 Release Preview */
|
||||
}
|
||||
|
||||
|
||||
@mixin dtb-fixed-collection {
|
||||
// Fixed positioning feature
|
||||
&.fixed {
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
margin-left: -75px;
|
||||
border-radius: 0;
|
||||
|
||||
&.two-column {
|
||||
margin-left: -150px;
|
||||
}
|
||||
|
||||
&.three-column {
|
||||
margin-left: -225px;
|
||||
}
|
||||
|
||||
&.four-column {
|
||||
margin-left: -300px;
|
||||
}
|
||||
}
|
||||
|
||||
// Multi-column layout feature
|
||||
-webkit-column-gap: 8px;
|
||||
-moz-column-gap: 8px;
|
||||
-ms-column-gap: 8px;
|
||||
-o-column-gap: 8px;
|
||||
column-gap: 8px;
|
||||
|
||||
> * {
|
||||
-webkit-column-break-inside: avoid;
|
||||
break-inside: avoid;
|
||||
}
|
||||
|
||||
&.two-column {
|
||||
width: 300px;
|
||||
padding-bottom: 1px;
|
||||
|
||||
-webkit-column-count: 2;
|
||||
-moz-column-count: 2;
|
||||
-ms-column-count: 2;
|
||||
-o-column-count: 2;
|
||||
column-count: 2;
|
||||
}
|
||||
|
||||
&.three-column {
|
||||
width: 450px;
|
||||
padding-bottom: 1px;
|
||||
|
||||
-webkit-column-count: 3;
|
||||
-moz-column-count: 3;
|
||||
-ms-column-count: 3;
|
||||
-o-column-count: 3;
|
||||
column-count: 3;
|
||||
}
|
||||
|
||||
&.four-column {
|
||||
width: 600px;
|
||||
padding-bottom: 1px;
|
||||
|
||||
-webkit-column-count: 4;
|
||||
-moz-column-count: 4;
|
||||
-ms-column-count: 4;
|
||||
-o-column-count: 4;
|
||||
column-count: 4;
|
||||
}
|
||||
|
||||
// Chrome fix - 531528
|
||||
.dt-button {
|
||||
border-radius: 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@mixin dtb-processing {
|
||||
color: rgba(0, 0, 0, 0.2);
|
||||
|
||||
&:after {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
margin: -8px 0 0 -8px;
|
||||
box-sizing: border-box;
|
||||
|
||||
display: block;
|
||||
content: ' ';
|
||||
border: 2px solid rgb(40,40,40);
|
||||
border-radius: 50%;
|
||||
border-left-color: transparent;
|
||||
border-right-color: transparent;
|
||||
animation: dtb-spinner 1500ms infinite linear;
|
||||
-o-animation: dtb-spinner 1500ms infinite linear;
|
||||
-ms-animation: dtb-spinner 1500ms infinite linear;
|
||||
-webkit-animation: dtb-spinner 1500ms infinite linear;
|
||||
-moz-animation: dtb-spinner 1500ms infinite linear;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes dtb-spinner {
|
||||
100%{ transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
@-o-keyframes dtb-spinner {
|
||||
100%{ -o-transform: rotate(360deg); transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
@-ms-keyframes dtb-spinner {
|
||||
100%{ -ms-transform: rotate(360deg); transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
@-webkit-keyframes dtb-spinner {
|
||||
100%{ -webkit-transform: rotate(360deg); transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
@-moz-keyframes dtb-spinner {
|
||||
100%{ -moz-transform: rotate(360deg); transform: rotate(360deg); }
|
||||
}
|
||||
@@ -0,0 +1,243 @@
|
||||
/*Responsive datatable css*/
|
||||
|
||||
//
|
||||
// Variables
|
||||
//
|
||||
|
||||
$control-button-top: 9px !default;
|
||||
$control-button-size: 14px !default;
|
||||
$control-button-color: white !default;
|
||||
$open-button-background: #31b131 !default;
|
||||
$close-button-background: #d33333 !default;
|
||||
|
||||
|
||||
//
|
||||
// Mixins
|
||||
//
|
||||
@mixin control() {
|
||||
display: block;
|
||||
position: absolute;
|
||||
color: $control-button-color;
|
||||
border: 2px solid white;
|
||||
border-radius: 14px;
|
||||
box-shadow: 0 0 3px #444;
|
||||
box-sizing: content-box;
|
||||
text-align: center;
|
||||
text-indent: 0 !important;
|
||||
|
||||
// Use Courier New because it is common and consistent
|
||||
font-family: 'Courier New', Courier, monospace;
|
||||
line-height: 14px;
|
||||
}
|
||||
|
||||
@mixin control-open() {
|
||||
content: '+';
|
||||
background-color: $open-button-background;
|
||||
}
|
||||
|
||||
@mixin control-close() {
|
||||
content: '-';
|
||||
background-color: $close-button-background;
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// Table styles
|
||||
//
|
||||
table.dataTable {
|
||||
// Styling for the `inline` type
|
||||
&.dtr-inline.collapsed > tbody {
|
||||
> tr {
|
||||
> td.child,
|
||||
> th.child,
|
||||
> td.dataTables_empty {
|
||||
cursor: default !important;
|
||||
|
||||
&:before {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
> tr[role="row"] > td:first-child,
|
||||
> tr[role="row"] > th:first-child {
|
||||
position: relative;
|
||||
padding-left: 30px;
|
||||
cursor: pointer;
|
||||
|
||||
&:before {
|
||||
top: $control-button-top;
|
||||
left: 4px;
|
||||
height: $control-button-size;
|
||||
width: $control-button-size;
|
||||
@include control;
|
||||
@include control-open;
|
||||
}
|
||||
}
|
||||
|
||||
> tr.parent {
|
||||
> td:first-child:before,
|
||||
> th:first-child:before {
|
||||
@include control-close;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// DataTables' `compact` styling
|
||||
&.dtr-inline.collapsed.compact > tbody {
|
||||
> tr > td:first-child,
|
||||
> tr > th:first-child {
|
||||
padding-left: 27px;
|
||||
|
||||
&:before {
|
||||
top: 5px;
|
||||
left: 4px;
|
||||
height: 14px;
|
||||
width: 14px;
|
||||
border-radius: 14px;
|
||||
line-height: 14px;
|
||||
text-indent: 3px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Styling for the `column` type
|
||||
&.dtr-column > tbody {
|
||||
> tr > td.control,
|
||||
> tr > th.control {
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
|
||||
&:before {
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
height: 16px;
|
||||
width: 16px;
|
||||
margin-top: -10px;
|
||||
margin-left: -10px;
|
||||
@include control;
|
||||
@include control-open;
|
||||
}
|
||||
}
|
||||
|
||||
> tr.parent {
|
||||
td.control:before,
|
||||
th.control:before {
|
||||
@include control-close;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Child row styling
|
||||
> tbody > tr.child {
|
||||
padding: 0.5em 1em;
|
||||
|
||||
&:hover {
|
||||
background: transparent !important;
|
||||
}
|
||||
|
||||
ul.dtr-details {
|
||||
display: inline-block;
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
||||
> li {
|
||||
border-bottom: 1px solid #efefef;
|
||||
padding: 0.5em 0;
|
||||
|
||||
&:first-child {
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
span.dtr-title {
|
||||
display: inline-block;
|
||||
min-width: 75px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
span.dtr-data {}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
div.dtr-modal {
|
||||
position: fixed;
|
||||
box-sizing: border-box;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
|
||||
z-index: 100;
|
||||
padding: 10em 1em;
|
||||
|
||||
div.dtr-modal-display {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
width: 50%;
|
||||
height: 50%;
|
||||
overflow: auto;
|
||||
margin: auto;
|
||||
z-index: 102;
|
||||
overflow: auto;
|
||||
background-color: #f5f5f7;
|
||||
border: 1px solid black;
|
||||
border-radius: 0.5em;
|
||||
box-shadow: 0 12px 30px rgba(0,0,0,0.6);
|
||||
}
|
||||
|
||||
div.dtr-modal-content {
|
||||
position: relative;
|
||||
padding: 1em;
|
||||
}
|
||||
|
||||
div.dtr-modal-close {
|
||||
position: absolute;
|
||||
top: 6px;
|
||||
right: 6px;
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
border: 1px solid #eaeaea;
|
||||
background-color: #f9f9f9;
|
||||
text-align: center;
|
||||
border-radius: 3px;
|
||||
cursor: pointer;
|
||||
z-index: 12;
|
||||
|
||||
&:hover {
|
||||
background-color: #eaeaea;
|
||||
}
|
||||
}
|
||||
|
||||
div.dtr-modal-background {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
z-index: 101;
|
||||
|
||||
background: rgba(0,0,0,0.6);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@media screen and (max-width: 767px) {
|
||||
div.dtr-modal div.dtr-modal-display {
|
||||
width: 95%;
|
||||
}
|
||||
}
|
||||
|
||||
/*Responsive datatable css*/
|
||||
@@ -0,0 +1,27 @@
|
||||
/*Row reorder css*/
|
||||
$move-outline: 2px solid #888 !default;
|
||||
$moved-outline: 2px solid #555 !default;
|
||||
|
||||
table.dt-rowReorder-float {
|
||||
position: absolute !important;
|
||||
opacity: 0.8;
|
||||
table-layout: fixed;
|
||||
outline: $move-outline;
|
||||
outline-offset: -2px;
|
||||
z-index: 2001;
|
||||
}
|
||||
|
||||
tr.dt-rowReorder-moving {
|
||||
outline: $moved-outline;
|
||||
outline-offset: -2px;
|
||||
}
|
||||
|
||||
body.dt-rowReorder-noOverflow {
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
table.dataTable td.reorder {
|
||||
text-align: center;
|
||||
cursor: move;
|
||||
}
|
||||
/*Row reorder css*/
|
||||
@@ -0,0 +1,38 @@
|
||||
/*scroller css*/
|
||||
|
||||
// Scroller adds the class `DTS` to the DataTabes wrapper div
|
||||
div.DTS {
|
||||
display: block !important;
|
||||
|
||||
tbody th,
|
||||
tbody td {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
// Show the loading message behind the table
|
||||
div.DTS_Loading {
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
div.dataTables_scrollBody {
|
||||
background: repeating-linear-gradient(
|
||||
45deg,
|
||||
#edeeff,
|
||||
#edeeff 10px,
|
||||
white 10px,
|
||||
white 20px
|
||||
);
|
||||
|
||||
table {
|
||||
z-index: 2;
|
||||
}
|
||||
}
|
||||
|
||||
// Hide the paging control as it shouldn't be used with Scroller, but
|
||||
// paging must be enabled
|
||||
div.dataTables_paginate,
|
||||
div.dataTables_length {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
/*scroller css*/
|
||||
144
public/assets/scss/datatable-extension/_select-datatable.scss
Normal file
144
public/assets/scss/datatable-extension/_select-datatable.scss
Normal file
@@ -0,0 +1,144 @@
|
||||
/*select datatable css*/
|
||||
// Row colour, when selected
|
||||
$table-selected: #B0BED9 !default;
|
||||
|
||||
// Colour to use when shading
|
||||
$table-shade: black !default;
|
||||
|
||||
@function shade( $color, $percent ) {
|
||||
@return mix($table-shade, $color, $percent);
|
||||
}
|
||||
|
||||
|
||||
table.dataTable {
|
||||
// Body styles
|
||||
tbody > tr.selected,
|
||||
tbody > tr > .selected {
|
||||
background-color: $table-selected;
|
||||
}
|
||||
|
||||
|
||||
// Stripe classes - add "stripe" class to the table to activate
|
||||
&.stripe tbody,
|
||||
&.display tbody {
|
||||
> tr.odd.selected,
|
||||
> tr.odd > .selected {
|
||||
background-color: shade($table-selected, 2.35%);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Hover classes - add "hover" class to the table to activate
|
||||
&.hover tbody,
|
||||
&.display tbody {
|
||||
> tr.selected:hover,
|
||||
> tr > .selected:hover {
|
||||
background-color: shade($table-selected, 3.6%);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Sort column highlighting - add "order-column" class to the table to activate
|
||||
&.order-column tbody,
|
||||
&.display tbody {
|
||||
> tr.selected > .sorting_1,
|
||||
> tr.selected > .sorting_2,
|
||||
> tr.selected > .sorting_3,
|
||||
> tr > .selected {
|
||||
background-color: shade($table-selected, 2%);
|
||||
}
|
||||
}
|
||||
|
||||
&.display tbody,
|
||||
&.order-column.stripe tbody {
|
||||
> tr.odd.selected {
|
||||
>.sorting_1 { background-color: shade($table-selected, 5.4%); }
|
||||
>.sorting_2 { background-color: shade($table-selected, 4.7%); }
|
||||
>.sorting_3 { background-color: shade($table-selected, 3.9%); }
|
||||
}
|
||||
|
||||
> tr.even.selected {
|
||||
>.sorting_1 { background-color: shade($table-selected, 2%); }
|
||||
>.sorting_2 { background-color: shade($table-selected, 1.2%); }
|
||||
>.sorting_3 { background-color: shade($table-selected, 0.4%); }
|
||||
}
|
||||
|
||||
> tr.odd > .selected { background-color: shade($table-selected, 5.4%); }
|
||||
> tr.even > .selected { background-color: shade($table-selected, 2%); }
|
||||
}
|
||||
|
||||
&.display tbody,
|
||||
&.order-column.hover tbody {
|
||||
> tr.selected:hover {
|
||||
>.sorting_1 { background-color: shade($table-selected, 8.2%); }
|
||||
>.sorting_2 { background-color: shade($table-selected, 7.5%); }
|
||||
>.sorting_3 { background-color: shade($table-selected, 6.3%); }
|
||||
}
|
||||
|
||||
> tr:hover > .selected,
|
||||
> tr > .selected:hover {
|
||||
background-color: shade($table-selected, 8.2%);
|
||||
}
|
||||
}
|
||||
|
||||
tbody td.select-checkbox,
|
||||
tbody th.select-checkbox {
|
||||
position: relative;
|
||||
|
||||
&:before,
|
||||
&:after {
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 1.2em; // Should be 50% but IE doesn't like it
|
||||
left: 50%;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
&:before {
|
||||
content: ' ';
|
||||
margin-top: -6px;
|
||||
margin-left: -6px;
|
||||
border: 1px solid black;
|
||||
border-radius: 3px;
|
||||
}
|
||||
}
|
||||
|
||||
tr.selected {
|
||||
td.select-checkbox,
|
||||
th.select-checkbox {
|
||||
&:after {
|
||||
content: '\2714';
|
||||
|
||||
margin-top: -11px;
|
||||
margin-left: -4px;
|
||||
|
||||
text-align: center;
|
||||
text-shadow:
|
||||
1px 1px #B0BED9,
|
||||
-1px -1px #B0BED9,
|
||||
1px -1px #B0BED9,
|
||||
-1px 1px #B0BED9;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
div.dataTables_wrapper {
|
||||
span.select-info,
|
||||
span.select-item {
|
||||
margin-left: 0.5em;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 640px) {
|
||||
div.dataTables_wrapper {
|
||||
span.select-info,
|
||||
span.select-item {
|
||||
margin-left: 0;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
/*select datatable css*/
|
||||
Reference in New Issue
Block a user