You are here

examples.css in Slickgrid 6

@import url('slick-default-theme.css');

* {
    font-family: arial;
    font-size: 8pt;
}

body {
    background: beige;
}

h2 {
    font-size: 10pt;
    border-bottom: 1px dotted gray;
}

ul {
    margin-left: 0;
    padding: 0;
    cursor: default;
}

li {
    background: url("../images/arrow_right_spearmint.png") no-repeat center left;
    padding: 0 0 0 14px;

    list-style: none;
    margin: 0;
} 

#myGrid {
    background: white;
    outline: 0;
    border: 1px solid gray;
}

.grid-header {
	border: 1px solid gray;
	border-bottom: 0;
	border-top: 0;
	background: url('../images/header-bg.gif') repeat-x center top;
	color: black;
	height: 24px;
	line-height: 24px;
}	

.grid-header label {
	display: inline-block;
	font-weight: bold;
    margin: auto auto auto 6px;
}

.grid-header .ui-icon {
    margin: 4px 4px auto 6px;
    background-color: transparent;
    border-color: transparent;
}

.grid-header .ui-icon.ui-state-hover {
    background-color: white;
}

.grid-header #txtSearch {
	margin: 0 4px 0 4px;
	padding: 2px 2px;
	-moz-border-radius: 2px;
	-webkit-border-radius: 2px;
	border: 1px solid silver;
}

.options-panel {
	-moz-border-radius: 6px;
	-webkit-border-radius: 6px;
	border: 1px solid silver;
	background: #f0f0f0;	
	padding: 4px;		
	margin-bottom: 20px;
}

 

/* Individual cell styles */
.slick-cell.task-name {
	font-weight: bold;
	text-align: right;
}


.slick-cell.task-percent {
	text-align: right;
}


.slick-cell.cell-move-handle {
	font-weight: bold;
	text-align: right;
    border-right: solid gray;

    background: #efefef;
	cursor: move;
}

.cell-move-handle:hover {
	background: #b6b9bd;
}

.slick-row.selected .cell-move-handle {
	background: #D5DC8D;
}

.slick-row .cell-actions {
	text-align: left;
}

.slick-row.complete {
	background-color: #DFD;
	color: #555;
}

.percent-complete-bar {
	display: inline-block;
	height: 6px;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
}


/* TextCellEditor, DateCellEditor */
input.editor-text {
	width: 100%;
	height: 100%;
	border: 0;
	margin: 0;
	background: transparent;
	outline: 0;
    padding: 0;

}

.slick-cell .ui-datepicker-trigger {
	margin-top: 2px;
	padding: 0;
	vertical-align: top;
}

/* PercentCompleteCellEditor */
input.editor-percentcomplete {
	width: 100%;
	height: 100%;
	border: 0;
	margin: 0;
	background: transparent;
	outline: 0;
    padding: 0;

    float: left;
}

.editor-percentcomplete-picker {
	position: relative;
    display: inline-block;
    width: 16px;
    height: 100%;
    background: url("../images/pencil.gif") no-repeat center center;	
	overflow: visible;
	z-index: 1000;
	float: right;
}
	
.editor-percentcomplete-helper {
    border: 0 solid gray;
    position: absolute;
    top: -2px;
    left: -9px;
    background: url("../images/editor-helper-bg.gif") no-repeat top left;
    padding-left: 9px;

    width: 120px;
    height: 140px;
    display: none;	
	overflow: visible;
}


.editor-percentcomplete-wrapper {
	background:beige;
    padding: 20px 8px;

    width:100%;
	height:98px;
	border:1px solid gray;
	border-left:0;
}

.editor-percentcomplete-buttons {
	float: right;	
}

.editor-percentcomplete-buttons button {
	width: 80px;	
}


.editor-percentcomplete-slider {
	float: left;	
}

 .editor-percentcomplete-picker:hover .editor-percentcomplete-helper {
	display: block;
}

.editor-percentcomplete-helper:hover {
	display: block;
}



/* YesNoSelectCellEditor */
select.editor-yesno {
	width: 100%;
	margin: 0;
	vertical-align: middle;		
}

/* YesNoCheckboxCellEditor */
input.editor-checkbox {
	margin: 0;
	height: 100%;
	padding: 0;
	border: 0;
}


File

js/slickgrid/examples/examples.css
View source
  1. @import url('slick-default-theme.css');
  2. * {
  3. font-family: arial;
  4. font-size: 8pt;
  5. }
  6. body {
  7. background: beige;
  8. }
  9. h2 {
  10. font-size: 10pt;
  11. border-bottom: 1px dotted gray;
  12. }
  13. ul {
  14. margin-left: 0;
  15. padding: 0;
  16. cursor: default;
  17. }
  18. li {
  19. background: url("../images/arrow_right_spearmint.png") no-repeat center left;
  20. padding: 0 0 0 14px;
  21. list-style: none;
  22. margin: 0;
  23. }
  24. #myGrid {
  25. background: white;
  26. outline: 0;
  27. border: 1px solid gray;
  28. }
  29. .grid-header {
  30. border: 1px solid gray;
  31. border-bottom: 0;
  32. border-top: 0;
  33. background: url('../images/header-bg.gif') repeat-x center top;
  34. color: black;
  35. height: 24px;
  36. line-height: 24px;
  37. }
  38. .grid-header label {
  39. display: inline-block;
  40. font-weight: bold;
  41. margin: auto auto auto 6px;
  42. }
  43. .grid-header .ui-icon {
  44. margin: 4px 4px auto 6px;
  45. background-color: transparent;
  46. border-color: transparent;
  47. }
  48. .grid-header .ui-icon.ui-state-hover {
  49. background-color: white;
  50. }
  51. .grid-header #txtSearch {
  52. margin: 0 4px 0 4px;
  53. padding: 2px 2px;
  54. -moz-border-radius: 2px;
  55. -webkit-border-radius: 2px;
  56. border: 1px solid silver;
  57. }
  58. .options-panel {
  59. -moz-border-radius: 6px;
  60. -webkit-border-radius: 6px;
  61. border: 1px solid silver;
  62. background: #f0f0f0;
  63. padding: 4px;
  64. margin-bottom: 20px;
  65. }
  66. /* Individual cell styles */
  67. .slick-cell.task-name {
  68. font-weight: bold;
  69. text-align: right;
  70. }
  71. .slick-cell.task-percent {
  72. text-align: right;
  73. }
  74. .slick-cell.cell-move-handle {
  75. font-weight: bold;
  76. text-align: right;
  77. border-right: solid gray;
  78. background: #efefef;
  79. cursor: move;
  80. }
  81. .cell-move-handle:hover {
  82. background: #b6b9bd;
  83. }
  84. .slick-row.selected .cell-move-handle {
  85. background: #D5DC8D;
  86. }
  87. .slick-row .cell-actions {
  88. text-align: left;
  89. }
  90. .slick-row.complete {
  91. background-color: #DFD;
  92. color: #555;
  93. }
  94. .percent-complete-bar {
  95. display: inline-block;
  96. height: 6px;
  97. -moz-border-radius: 3px;
  98. -webkit-border-radius: 3px;
  99. }
  100. /* TextCellEditor, DateCellEditor */
  101. input.editor-text {
  102. width: 100%;
  103. height: 100%;
  104. border: 0;
  105. margin: 0;
  106. background: transparent;
  107. outline: 0;
  108. padding: 0;
  109. }
  110. .slick-cell .ui-datepicker-trigger {
  111. margin-top: 2px;
  112. padding: 0;
  113. vertical-align: top;
  114. }
  115. /* PercentCompleteCellEditor */
  116. input.editor-percentcomplete {
  117. width: 100%;
  118. height: 100%;
  119. border: 0;
  120. margin: 0;
  121. background: transparent;
  122. outline: 0;
  123. padding: 0;
  124. float: left;
  125. }
  126. .editor-percentcomplete-picker {
  127. position: relative;
  128. display: inline-block;
  129. width: 16px;
  130. height: 100%;
  131. background: url("../images/pencil.gif") no-repeat center center;
  132. overflow: visible;
  133. z-index: 1000;
  134. float: right;
  135. }
  136. .editor-percentcomplete-helper {
  137. border: 0 solid gray;
  138. position: absolute;
  139. top: -2px;
  140. left: -9px;
  141. background: url("../images/editor-helper-bg.gif") no-repeat top left;
  142. padding-left: 9px;
  143. width: 120px;
  144. height: 140px;
  145. display: none;
  146. overflow: visible;
  147. }
  148. .editor-percentcomplete-wrapper {
  149. background:beige;
  150. padding: 20px 8px;
  151. width:100%;
  152. height:98px;
  153. border:1px solid gray;
  154. border-left:0;
  155. }
  156. .editor-percentcomplete-buttons {
  157. float: right;
  158. }
  159. .editor-percentcomplete-buttons button {
  160. width: 80px;
  161. }
  162. .editor-percentcomplete-slider {
  163. float: left;
  164. }
  165. .editor-percentcomplete-picker:hover .editor-percentcomplete-helper {
  166. display: block;
  167. }
  168. .editor-percentcomplete-helper:hover {
  169. display: block;
  170. }
  171. /* YesNoSelectCellEditor */
  172. select.editor-yesno {
  173. width: 100%;
  174. margin: 0;
  175. vertical-align: middle;
  176. }
  177. /* YesNoCheckboxCellEditor */
  178. input.editor-checkbox {
  179. margin: 0;
  180. height: 100%;
  181. padding: 0;
  182. border: 0;
  183. }