Skip to content

Instantly share code, notes, and snippets.

@nissoh
Created January 25, 2014 07:28
Show Gist options
  • Save nissoh/8613009 to your computer and use it in GitHub Desktop.
Save nissoh/8613009 to your computer and use it in GitHub Desktop.
ng-grid css
.ngGrid {
}
.ngGrid input {
vertical-align: top;
}
.ngGrid.unselectable {
-moz-user-select: none;
-khtml-user-select: none;
-webkit-user-select: none;
-o-user-select: none;
user-select: none;
}
.ngViewport {
overflow: auto;
min-height: 20px;
z-index: 1000;
}
.ngViewport:focus {
outline: none;
}
.ngCanvas {
position: relative;
}
.ngVerticalBar {
position: absolute;
right: 0;
width: 0;
}
.ngVerticalBarVisible {
display: block !important;
width: 1px;
background-color: #d4d4d4;
}
.ngHeaderContainer {
position: relative;
background-color: inherit;
overflow: hidden;
}
.ngHeaderContainer .ngVerticalBar {
display: none;
top: 5px;
bottom: 6px;
background-color: #9B9B9B !important;
height: auto !important;
border-right: 1px solid #EEE;
left: 1px;
width: 1px;
z-index: 1500;
}
.ngHeaderCell:hover {
}
.ngHeaderCell {
position: absolute;
top: 0;
bottom: 0;
}
.ngHeaderCell.pinned {
z-index: 1;
}
.ngHeaderSortColumn {
background-color: #C3C3C5;
position: absolute;
}
.ngTopPanel {
position: relative;
}
.ngHeaderContainer:hover {
}
.ngTopPanel.hovered .ngHeaderContainer {
height: 1000px !important;
}
.ngSortButtonDown {
display: inline-block;
top: 3px;
left: 0;
right: 0;
margin-left: auto;
margin-right: auto;
border-color: gray transparent;
border-style: solid;
border-width: 0 5px 5px 5px;
height: 0;
width: 0;
}
.ngNoSort {
cursor: default;
}
.ngHeaderButton {
position: absolute;
width: 29px;
z-index: 100;
cursor: pointer;
left: 0;
bottom: 0;
top: 0;
background: #C5C5C5;
}
.ngHeaderButton:hover {
background: #b7b7b7;
}
.ngSortButtonUp {
display: inline-block;
top: 3px;
left: 0;
right: 0;
margin-left: auto;
margin-right: auto;
border-color: gray transparent;
border-style: solid;
border-width: 5px 5px 0 5px;
height: 0;
width: 0;
}
.ngHeaderScroller {
position: absolute;
background: #C3C3C5;
}
.ngSortPriority {
position: absolute;
left: 44px;
font-size: 6pt;
font-weight: bold;
bottom: 5px;
background: white;
padding: 1px 5px;
display: none;
}
.ngHeaderGrip {
cursor: col-resize;
width: 10px;
left: -4px;
top: 0;
height: 100%;
position: absolute;
background-color: transparent;
z-index: 2000 !important;
}
.groupableCol {
background-color: rgba(147, 0, 107, 0.05);
}
.ngHeaderText {
}
.ngHeaderText:hover {
background-color: #c0b2bd;
}
.ngHeaderText {
padding: 9px 10px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
white-space: nowrap;
-ms-text-overflow: ellipsis;
-o-text-overflow: ellipsis;
text-overflow: ellipsis;
overflow: hidden;
padding-left: 30px;
}
.ngHeaderButtonArrow {
content: ''; width: 16px; height: 16px; background: url(../images/sprite.png) no-repeat -139px -24px;
left: 44%;
top: 9px;
display: block; margin: 0 0 0 -5px;
position: absolute;
}
.ngPinnedIcon {
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwgAADsIBFShKgAAAABp0RVh0U29mdHdhcmUAUGFpbnQuTkVUIHYzLjUuMTAw9HKhAAAAmElEQVQoU33PQapBURjA8UtkwJuaWYGSgfQWYBMvczPmTCzAAGVuaA228BZhRCkDGSmE31FucuRfvzq3vr5zT/JSjSU7DsypEPXDkDVn2hSIytJhw4kWGaLCxgHh2gt/RBuLzNhz5caWPjnSqqw4EraFfwznf8qklWjwy4IRTerkiQoPGtPl40OehcEJvcfXl8LglLfBJLkDcMgbgHlHhK8AAAAASUVORK5CYII=);
background-repeat: no-repeat;
position: absolute;
right: 5px;
top: 5px;
height: 10px;
width: 10px;
}
.ngUnPinnedIcon {
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwgAADsIBFShKgAAAABp0RVh0U29mdHdhcmUAUGFpbnQuTkVUIHYzLjUuMTAw9HKhAAAAlElEQVQoU33PPQrCQBRF4fFnI2KfZVi5ARvdgo1l6mwmkCJVOgluwd5OwUoDtnoOxAei8cLXTN7cvEl/skCNDCMPfsUPO5zQwOHIDEvYtMURHe6wOVLgigvOePRyeDkyR4ln7wZ//7XfFBu8B23+aDJjrHGAwza7hjtHJvDmHg7b7Bru7AMjK7Rw2ObBVHDY5oGk9AKQNB2zy8MBTgAAAABJRU5ErkJggg==);
background-repeat: no-repeat;
position: absolute;
height: 10px;
width: 10px;
right: 5px;
top: 5px;
}
.ngColMenu {
background-color: #D5D0D2;
border-top: 3px solid #92006B;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
padding: 15px;
top: 34px;
position: absolute;
left: 0;
z-index: 100;
}
.ngColListCheckbox {
position: relative;
right: 3px;
top: 4px;
}
.ngColList {
list-style-type: none;
}
.ngColListItem {
position: relative;
white-space: nowrap;
}
.ngMenuText {
position: relative;
top: 2px;
left: 2px;
}
.ngGroupPanel {
background-color: #C7C7C7;
overflow: hidden;
border-bottom: 1px solid #1A1414;
}
.ngGroupPanelDescription {
margin-top: 5px;
margin-left: 5px;
}
.ngGroupList {
list-style-type: none;
margin: 0;
padding: 0;
}
.ngAggHeader {
position: absolute;
border: none;
}
.ngGroupElement {
float: left;
height: 100%;
width: 100%;
}
.ngGroupIcon {
width: 15px;
height: 15px;
background-color: red;
display: inline-block;
}
.ngGroupedByIcon {
height: 15px;
width: 15px;
display: inline-block;
background-color: blue;
}
.ngGroupName {
background-color: #fdfdfd;
border: 1px solid #d4d4d4;
padding: 3px 10px;
float: right;
margin-left: 0;
margin-top: 2px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
font-weight: bold;
}
.ngGroupArrow {
width: 0;
height: 0;
border-top: 6px solid transparent;
border-bottom: 6px solid transparent;
border-left: 6px solid black;
margin-top: 10px;
margin-left: 5px;
margin-right: 5px;
float: right;
}
.ngGroupingNumber {
position: absolute;
right: -10px;
top: -2px;
}
.ngAggArrowCollapsed:before {
content: '[+]';
padding: 0 0 0 6px;
display: table-cell;
vertical-align: top;
float: right;
}
.ngAggArrowExpanded:before {
content: '[-]';
padding: 0 0 0 6px;
display: table-cell;
vertical-align: top;
float: right;
}
.ngGroupItem {
float: right;
}
.ngGroupItem:first-child {
margin-right: 2px;
}
.ngRemoveGroup {
width: 5px;
-moz-opacity: 0.4;
opacity: 0.4;
margin-top: -1px;
margin-left: 5px;
}
.ngRemoveGroup:hover {
color: black;
text-decoration: none;
cursor: pointer;
-moz-opacity: 0.7;
opacity: 0.7;
}
.ngAggregate {
position: absolute;
background-color: rgba(238, 238, 238, 1);
overflow: hidden;
top: 0;
bottom: 0;
right: -1px !important;
left: 0;
cursor: pointer;
padding-right: 6px;
}
.ngAggregateText {
position: absolute;
right: 27px;
top: 5px;
line-height: 20px;
white-space: nowrap;
}
.ngRow:hover {
background-color: #f9f7cc !important;
}
.ngRow {
position: absolute;
}
.ngRow .ngVerticalBarVisible {
width:0;
}
.ngRow.odd {
background-color: #FFFFFF;
}
.ngRow.even {
background-color: #FAFAFA;
}
.ngRow.selected {
background-color: #c9dde1;
}
.ngCell {
overflow: hidden;
position: absolute;
top: 0;
bottom: 0;
background-color: inherit;
border-top: 1px solid rgb(219, 219, 219);
}
.ngCell.pinned {
z-index: 1;
}
.ngCellText {
padding: 5px 10px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
white-space: nowrap;
-ms-text-overflow: ellipsis;
-o-text-overflow: ellipsis;
text-overflow: ellipsis;
overflow: hidden;
}
.ngSelectionCell {
margin-top: 9px;
margin-left: 6px;
}
.ngSelectionHeader {
position: absolute;
top: 11px;
left: 6px;
}
.ngCellElement:focus {
outline: 0;
background-color: #b3c4c7;
}
.ngRow.canSelect {
cursor: pointer;
}
.ngSelectionCheckbox {
margin-top: 9px;
margin-left: 6px;
}
.ngFooterPanel {
background-color: #d7d7d8;
padding: 0;
position: relative;
}
.nglabel {
display: block;
float: left;
font-weight: bold;
padding-right: 5px;
}
.ngTotalSelectContainer {
float: right;
margin: 5px;
margin-top: 7px;
width: 350px;
}
.ngFooterSelectedItems {
padding: 2px;
}
.ngFooterTotalItems.ngnoMultiSelect {
padding: 0 !important;
}
.ngPagerFirstBar {
width: 10px;
border-left: 2px solid #4d4d4d;
margin-top: -6px;
height: 12px;
margin-left: -3px;
}
.ngPagerButton {
height: 25px;
width: 24px; height: 23px; overflow: hidden;
margin: 1px 2px;
border: none;
text-align: center;
display: inline-block;
box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.16);
border-radius: 2px;
cursor: pointer;
}
.ngPagerButton:focus {
outline: 0;
}
.ngPagerButton[disabled] {
opacity: 0.3;
cursor: default;
}
.ngPagerFirstTriangle {
width: 0;
height: 0;
border-style: solid;
border-width: 5px 8.7px 5px 0;
border-color: transparent #4d4d4d transparent transparent;
margin-left: 2px;
}
.ngPagerNextTriangle {
margin-left: 1px;
}
.ngPagerPrevTriangle {
margin-left: 0;
}
.ngPagerLastTriangle {
width: 0;
height: 0;
border-style: solid;
border-width: 5px 0 5px 8.7px;
border-color: transparent transparent transparent #4d4d4d;
margin-left: 1px;
}
.ngPagerButton:hover .ngPagerLastTriangle {
border-color: rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) #4a8bd3;
}
.ngPagerLastBar {
width: 10px;
border-left: 2px solid #4d4d4d;
margin-top: -6px;
height: 12px;
margin-left: 1px;
}
.ngFooterTotalItems {
padding: 2px;
float: right;
}
.ngPagerContainer {
direction: ltr;
}
.ifat-header-cell .sort-icon {
content: '';
width: 17px;
height: 15px;
background: url(../images/sprite.png) no-repeat -163px -24px;
position: absolute;
left: 5px;
top: 10px;
cursor: pointer;
}
.ifat-header-cell .sort-icon:hover, .ifat-header-cell .sort-icon.active {
background: url(../images/sprite.png) no-repeat -163px -45px;
}
.ifat-header-cell {
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 29px;
background-color: #c5c5c6;
}
.ifat-header-cell .popover-content {
background-color: #d5d0d2;
border-top: 3px solid #92006b;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
padding: 15px;
}
.ifat-header-cell:hover .popover-wrapper {
display: block;
}
.popover-wrapper {
min-width: 210px;
position: absolute;
left: 0;
display: none;
top: 100%;
padding-top: 0px;
z-index: 333333;
}
.popover-wrapper.first {
right: 0;
left: auto;
}
.Popover:hover .cell-drop {
height: 34px;
background: #A7A7A7;
}
pre {
display: block;
padding: 9.5px;
margin: 0 0 10px;
font-size: 13px;
line-height: 20px;
word-break: break-all;
word-wrap: break-word;
white-space: pre;
white-space: pre-wrap;
background-color: #F5F5F5;
border: 1px solid #CCC;
border: 1px solid rgba(0, 0, 0, 0.15);
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
}
.gridStyle ::-webkit-scrollbar {
width: 5px;
height: 5px;
padding: 0 2px;
box-shadow: 2px 0px #F5F5F5 inset, 3px 0px #272727 inset;
}
.gridStyle ::-webkit-scrollbar-track {
padding: 10px; }
.gridStyle ::-webkit-scrollbar-thumb {
background-color: #555;
border-right: 7px;
}
.gridStyle ::-webkit-scrollbar-thumb:hover {
background-color: #656565; }
.grid-header-filterBox {}
.grid-header-filterBox .filter { margin-bottom: 5px}
.grid-header-filterBox-values {
max-height: 300px;
overflow-y: auto;
padding: 10px;
}
.gridStyle {
overflow: hidden;
width: 100%;
height: 75vh;
}
.ngCellText span:empty {
background-color: red !important;
}
.totalAggCell {
background: #FFF;
border: 1px solid rgba(0, 0, 0, 0.16);
box-shadow: 0 0 6px rgba(0, 0, 0, 0.18) inset;
margin: 0 5px;
padding: 0 7px;
}
.customAggBtn {
position: absolute;
top: 0;
right: 0;
z-index: 33;
}
.customAgg0 { }
.customAgg1 { right: 25px; }
.customAgg2 { right: 50px; }
.customAgg3 { right: 75px; }
.customAgg4 { right: 100px; }
.customAgg5 { right: 125px; }
.customAgg6 { right: 150px; }
.customAgg7 { right: 175px; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment