copy dari repo om Irfan
This commit is contained in:
@@ -0,0 +1,193 @@
|
||||
// GENERAL FIXES
|
||||
// -----------------------------------------------------------------------------
|
||||
/* Common Fixes */
|
||||
.dataTables_wrapper {
|
||||
position:relative;
|
||||
|
||||
.DTTT.btn-group {
|
||||
display: inline-block !important;
|
||||
}
|
||||
|
||||
.datatables-header {
|
||||
margin-bottom: 15px;
|
||||
|
||||
label {
|
||||
font-weight: normal;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// prevent sort arrows to overlap text
|
||||
table {
|
||||
thead {
|
||||
th {
|
||||
padding-right: 21px !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// PER PAGE
|
||||
// -----------------------------------------------------------------------------
|
||||
.dataTables_wrapper {
|
||||
.dataTables_length {
|
||||
.select2-container {
|
||||
margin-right: 10px;
|
||||
width: 75px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 991px) {
|
||||
.dataTables_wrapper {
|
||||
.dataTables_length {
|
||||
margin-bottom: 15px;
|
||||
|
||||
label {
|
||||
float: none;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// FILTER
|
||||
// -----------------------------------------------------------------------------
|
||||
/* Filter */
|
||||
.dataTables_wrapper {
|
||||
.dataTables_filter {
|
||||
label {
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
input {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 991px) {
|
||||
.dataTables_wrapper {
|
||||
.dataTables_filter {
|
||||
label {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// FOOTER
|
||||
// -----------------------------------------------------------------------------
|
||||
/* Footer */
|
||||
.dataTables_wrapper {
|
||||
.datatables-footer {
|
||||
margin-top: 15px;
|
||||
|
||||
.dataTables_info {
|
||||
font-size: 11px;
|
||||
padding-top: 0;
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
.dataTables_paginate {
|
||||
.pagination {
|
||||
display: block;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 991px) {
|
||||
.dataTables_wrapper {
|
||||
.datatables-footer {
|
||||
.dataTables_info {
|
||||
margin-bottom: 15px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.dataTables_paginate {
|
||||
float: none;
|
||||
text-align: center;
|
||||
|
||||
.pagination {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// DATATABLES EMPTY
|
||||
// -----------------------------------------------------------------------------
|
||||
/* Empty Row */
|
||||
.dataTables_wrapper {
|
||||
.dataTables_empty {
|
||||
padding: 50px 0;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
// DATATABLES LOADER
|
||||
// -----------------------------------------------------------------------------
|
||||
.dataTables_processing {
|
||||
background: $color-primary;
|
||||
border-radius: 100px;
|
||||
box-shadow: 0 1px 1px -1px rgba(0, 0, 0, 0.3);
|
||||
color: #FFF;
|
||||
left: 50%;
|
||||
margin-left: -36px;
|
||||
padding: 5px 10px;
|
||||
position: absolute;
|
||||
top: 3px;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 991px) {
|
||||
.dataTables_processing {
|
||||
left: auto;
|
||||
margin-left: 0;
|
||||
right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// DATATABLES PRINT
|
||||
// -----------------------------------------------------------------------------
|
||||
.DTTT_Print {
|
||||
&,
|
||||
.inner-wrapper,
|
||||
.content-body,
|
||||
.panel {
|
||||
background: #FFF !important;
|
||||
margin: 0 !important;
|
||||
padding: 0 !important;
|
||||
top: 0 !important;
|
||||
}
|
||||
|
||||
.dataTables_wrapper {
|
||||
.DTTT.btn-group {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
.DTTT_print_info {
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
display: block;
|
||||
left: 0;
|
||||
height: 100px;
|
||||
line-height: 100px;
|
||||
position: fixed;
|
||||
font-size: 14px;
|
||||
text-align: center;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
// DARK - DATATABLES
|
||||
// -----------------------------------------------------------------------------
|
||||
/* Dark Fixes */
|
||||
html.dark {
|
||||
div.DTTT .btn {
|
||||
color: #EEE !important;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,139 @@
|
||||
// PRICING TABLES
|
||||
// -----------------------------------------------------------------------------
|
||||
.pricing-table {
|
||||
margin: 25px 0;
|
||||
padding-left: 0;
|
||||
text-align: center;
|
||||
ul {
|
||||
list-style: none;
|
||||
margin: 20px 0 0 0;
|
||||
padding: 0;
|
||||
}
|
||||
li {
|
||||
border-top: 1px solid #ddd;
|
||||
padding: 10px 0;
|
||||
}
|
||||
h3 {
|
||||
background-color: #eee;
|
||||
border-radius: 2px 2px 0 0;
|
||||
font-size: 20px;
|
||||
font-weight: normal;
|
||||
margin: -20px -20px 50px -20px;
|
||||
padding: 20px;
|
||||
span {
|
||||
background: #FFF;
|
||||
border: 5px solid #FFF;
|
||||
border-radius: 100px;
|
||||
box-shadow: 0 5px 20px #ddd inset, 0 3px 0 #999 inset;
|
||||
color: $color-primary;
|
||||
display: block;
|
||||
font: bold 25px / 100px Georgia, Serif;
|
||||
height: 100px;
|
||||
margin: 20px auto -65px;
|
||||
width: 100px;
|
||||
}
|
||||
}
|
||||
.most-popular {
|
||||
border: 3px solid #CCC;
|
||||
box-shadow: 11px 0 10px -10px rgba(0, 0, 0, 0.1), -11px 0 10px -10px rgba(0, 0, 0, 0.1);
|
||||
padding: 30px 20px;
|
||||
top: -10px;
|
||||
z-index: 2;
|
||||
h3 {
|
||||
background-color: $color-primary;
|
||||
color: #FFF;
|
||||
padding-top: 30px;
|
||||
}
|
||||
}
|
||||
.plan-ribbon-wrapper {
|
||||
height: 88px;
|
||||
overflow: hidden;
|
||||
position: absolute;
|
||||
right: -5px;
|
||||
top: -5px;
|
||||
width: 85px;
|
||||
}
|
||||
|
||||
.plan-ribbon {
|
||||
@include transform(rotate(45deg));
|
||||
@include background-image(linear-gradient(top, #bfdc7a, #8ebf45));
|
||||
background-color: #bfdc7a;
|
||||
box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.3);
|
||||
color: #333;
|
||||
font-size: 14px;
|
||||
left: -5px;
|
||||
padding: 7px 0;
|
||||
position: relative;
|
||||
text-align: center;
|
||||
top: 15px;
|
||||
width: 120px;
|
||||
&:before {
|
||||
left: 0;
|
||||
border-left: 3px solid transparent;
|
||||
border-right: 3px solid transparent;
|
||||
bottom: -3px;
|
||||
content: "";
|
||||
position: absolute;
|
||||
}
|
||||
&:after {
|
||||
border-left: 3px solid transparent;
|
||||
border-right: 3px solid transparent;
|
||||
bottom: -3px;
|
||||
content: "";
|
||||
position: absolute;
|
||||
right: 0;
|
||||
}
|
||||
}
|
||||
.plan {
|
||||
background: #FFF;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 5px;
|
||||
color: #333;
|
||||
margin-bottom: 35px;
|
||||
margin-right: 0;
|
||||
padding: 20px;
|
||||
position: relative;
|
||||
}
|
||||
.btn {
|
||||
margin-top: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
// DARK
|
||||
// -----------------------------------------------------------------------------
|
||||
/* dark */
|
||||
html.dark {
|
||||
.pricing-table {
|
||||
li {
|
||||
border-top-color: $dark-color-2;
|
||||
}
|
||||
h3 {
|
||||
background-color: $dark-color-2;
|
||||
text-shadow: none;
|
||||
span {
|
||||
background: $dark-color-4;
|
||||
border-color: $dark-color-5;
|
||||
box-shadow: 0 5px 20px $dark-color-5 inset, 0 3px 0 $dark-color-3 inset;
|
||||
color: $color-default;
|
||||
}
|
||||
}
|
||||
.most-popular {
|
||||
border-color: $dark-color-3;
|
||||
h3 {
|
||||
background-color: $dark-color-3;
|
||||
color: $dark-default-text;
|
||||
text-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
.plan-ribbon {
|
||||
background-color: $dark-color-3;
|
||||
}
|
||||
.plan {
|
||||
background: $dark-color-3;
|
||||
border: 1px solid $dark-color-3;
|
||||
color: $dark-default-text;
|
||||
text-shadow: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,212 @@
|
||||
// BASIC
|
||||
// -----------------------------------------------------------------------------
|
||||
/* Tables - Basic */
|
||||
.table {
|
||||
width: 100%;
|
||||
|
||||
.table {
|
||||
background: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
/* Bootstrap uses important, we need to force it here */
|
||||
.table.mb-none {
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
|
||||
/* In case you dont want a border in some row */
|
||||
.table .b-top-none td {
|
||||
border-top: none;
|
||||
}
|
||||
|
||||
// ACTIONS
|
||||
// -----------------------------------------------------------------------------
|
||||
/* Tables - Actions */
|
||||
.table {
|
||||
.actions,
|
||||
.actions-hover {
|
||||
vertical-align: middle;
|
||||
|
||||
a {
|
||||
display: inline-block;
|
||||
margin-right: 5px;
|
||||
color: #666;
|
||||
|
||||
&:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: #333;
|
||||
}
|
||||
}
|
||||
|
||||
.actions-hover {
|
||||
a {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
tr:hover {
|
||||
.actions-hover {
|
||||
a {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.actions-fade {
|
||||
a {
|
||||
@include transition (all .2s linear);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// NO MORE TABLES
|
||||
// -----------------------------------------------------------------------------
|
||||
/* Tables - No More Tables technique (991px is the bootstrap SM max-width) */
|
||||
@media only screen and (max-width: 991px) {
|
||||
.table.table-no-more {
|
||||
&,
|
||||
thead,
|
||||
tbody,
|
||||
tr,
|
||||
th,
|
||||
td {
|
||||
display: block;
|
||||
}
|
||||
|
||||
thead tr {
|
||||
left: -9999px;
|
||||
position: absolute;
|
||||
top: -9999px;
|
||||
}
|
||||
|
||||
tr {
|
||||
border-bottom: 1px solid #DDD;
|
||||
}
|
||||
|
||||
td {
|
||||
border: none;
|
||||
|
||||
position: relative;
|
||||
padding-left: 50%;
|
||||
text-align: left;
|
||||
white-space: normal;
|
||||
|
||||
&:before {
|
||||
content: attr(data-title);
|
||||
font-weight: bold;
|
||||
left: 6px;
|
||||
padding-right: 10px;
|
||||
position: absolute;
|
||||
text-align:left;
|
||||
top: 8px;
|
||||
white-space: nowrap;
|
||||
width: 45%;
|
||||
}
|
||||
}
|
||||
|
||||
&.table-bordered {
|
||||
td {
|
||||
border-bottom: 1px solid #EFEFEF;
|
||||
}
|
||||
}
|
||||
|
||||
&.table-condensed {
|
||||
td {
|
||||
&:before {
|
||||
top: 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// DARK
|
||||
// -----------------------------------------------------------------------------
|
||||
/* Dark - Tables */
|
||||
html.dark {
|
||||
.table > thead > tr > th,
|
||||
.table > tbody > tr > th,
|
||||
.table > tfoot > tr > th,
|
||||
.table > thead > tr > td,
|
||||
.table > tbody > tr > td,
|
||||
.table > tfoot > tr > td,
|
||||
.table-bordered {
|
||||
border-color: darken($dark-color-3, 1%);
|
||||
}
|
||||
|
||||
.table-striped > tbody > tr:nth-child(2n+1) > td,
|
||||
.table-striped > tbody > tr:nth-child(2n+1) > th {
|
||||
background-color: darken($dark-color-4, 3%);
|
||||
}
|
||||
|
||||
.table-hover > tbody > tr:hover > td,
|
||||
.table-hover > tbody > tr:hover > th {
|
||||
background-color: darken($dark-color-4, 3.5%);
|
||||
}
|
||||
|
||||
.table {
|
||||
.actions,
|
||||
.actions-hover {
|
||||
a {
|
||||
color: $dark-default-text;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 991px) {
|
||||
html.dark .table-responsive {
|
||||
border-color: darken($dark-color-3, 1%);
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 991px) {
|
||||
html.dark {
|
||||
.table.table-no-more tr,
|
||||
.table.table-no-more.table-bordered td {
|
||||
border-bottom-color: darken($dark-color-3, 1%);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// STATES
|
||||
// -----------------------------------------------------------------------------
|
||||
/* Tables - States */
|
||||
@each $state in $states {
|
||||
|
||||
.table > thead > tr > td.#{nth($state,1)},
|
||||
.table > tbody > tr > td.#{nth($state,1)},
|
||||
.table > tfoot > tr > td.#{nth($state,1)},
|
||||
.table > thead > tr > th.#{nth($state,1)},
|
||||
.table > tbody > tr > th.#{nth($state,1)},
|
||||
.table > tfoot > tr > th.#{nth($state,1)},
|
||||
.table > thead > tr.#{nth($state,1)} > td,
|
||||
.table > tbody > tr.#{nth($state,1)} > td,
|
||||
.table > tfoot > tr.#{nth($state,1)} > td,
|
||||
.table > thead > tr.#{nth($state,1)} > th,
|
||||
.table > tbody > tr.#{nth($state,1)} > th,
|
||||
.table > tfoot > tr.#{nth($state,1)} > th {
|
||||
color: #FFF;
|
||||
background-color: nth($state,2);
|
||||
}
|
||||
}
|
||||
|
||||
.table > thead > tr > td.dark,
|
||||
.table > tbody > tr > td.dark,
|
||||
.table > tfoot > tr > td.dark,
|
||||
.table > thead > tr > th.dark,
|
||||
.table > tbody > tr > th.dark,
|
||||
.table > tfoot > tr > th.dark,
|
||||
.table > thead > tr.dark > td,
|
||||
.table > tbody > tr.dark > td,
|
||||
.table > tfoot > tr.dark > td,
|
||||
.table > thead > tr.dark > th,
|
||||
.table > tbody > tr.dark > th,
|
||||
.table > tfoot > tr.dark > th {
|
||||
background-color: lighten($color-dark, 20%);
|
||||
color: $color-dark-inverse;
|
||||
}
|
||||
Reference in New Issue
Block a user