Last active
February 7, 2019 07:17
-
-
Save haifahrul/5d4e6b5c57134b08b30d1ac3b232d987 to your computer and use it in GitHub Desktop.
ngx-datatable SCSS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import "../../../shared/styles/colors"; | |
@import "../../../shared/styles/constants"; | |
/** | |
* Ngx-Datatable | |
*/ | |
:host /deep/ .ngx-datatable.bootstrap { | |
margin-bottom: 50px; | |
box-shadow: none; | |
font-size: 13px; | |
background: #fff; | |
.datatable-header { | |
height: unset !important; | |
font-size: 14px; | |
font-weight: bold; | |
font-style: normal; | |
font-stretch: normal; | |
letter-spacing: 0.4px; | |
color: rgba(0, 0, 0, 0.54); | |
.datatable-header-cell { | |
width: 100%; | |
background: #f6f6f6; | |
vertical-align: middle; | |
padding: 10px 0 10px 20px; | |
// border-bottom: 1px solid #d1d4d7; | |
box-shadow: 0 0.5px 0 0 rgba(0, 0, 0, 0.2); | |
.datatable-header-cell-label { | |
line-height: normal; | |
// line-height: 24px; | |
} | |
} | |
} | |
.datatable-body { | |
.datatable-body-row { | |
width: 100%; | |
padding: 10px 0 10px 20px; | |
// vertical-align: middle; | |
border-top: 1px solid #d1d4d7; | |
// &.datatable-row-even { | |
// background-color: rgba(0, 0, 0, 0.05); | |
// } | |
&.active { | |
background-color: #1483ff; | |
color: #fff; | |
} | |
.datatable-body-cell { | |
// height: auto; | |
// height: 100%; | |
// text-align: left; | |
// vertical-align: middle; | |
white-space: pre-wrap; | |
} | |
} | |
.empty-row { | |
padding: 10px 20px; | |
} | |
} | |
.datatable-footer { | |
color: rgba(0, 0, 0, 0.54); | |
border-top: 1px solid #eee; | |
margin-top: -1px; | |
.page-count { | |
line-height: 50px; | |
height: 50px; | |
padding: 0 1.2rem; | |
} | |
.datatable-pager { | |
margin: 0 10px; | |
vertical-align: top; | |
ul { | |
li { | |
margin: 10px 0px; | |
&:not(.disabled) { | |
&.active, | |
&:hover { | |
a { | |
font-weight: bold; | |
} | |
} | |
} | |
} | |
} | |
a { | |
height: 22px; | |
min-width: 24px; | |
line-height: 22px; | |
padding: 0; | |
border-radius: 3px; | |
margin: 0 3px; | |
text-align: center; | |
vertical-align: top; | |
text-decoration: none; | |
vertical-align: bottom; | |
color: rgba(0, 0, 0, 0.54); | |
} | |
.datatable-icon-left, | |
.datatable-icon-skip, | |
.datatable-icon-right, | |
.datatable-icon-prev { | |
font-size: 18px; | |
line-height: 27px; | |
padding: 0 3px; | |
color: rgba(0, 0, 0, 0.54); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment