ソースを参照

Update the css to support bootstrap 2.

zhixin 11 年 前
コミット
9a7a6e3e69
1 ファイル変更49 行追加44 行削除
  1. 49 44
      src/bootstrap-table.css

+ 49 - 44
src/bootstrap-table.css

@@ -1,73 +1,73 @@
 .table {
 .table {
-	margin-bottom: 0;
-	border-bottom: 1px solid #dddddd;
-	border-collapse: separate;
-	*border-collapse: collapse;
+    margin-bottom: 0;
+    border-bottom: 1px solid #dddddd;
+    border-collapse: separate;
+    *border-collapse: collapse;
 }
 }
 
 
 .fixed-table-container {
 .fixed-table-container {
-	position: relative;
-	padding-top: 38px;
+    position: relative;
+    padding-top: 38px;
     clear: both;
     clear: both;
-	border: 1px solid #dddddd;
-	border-radius: 4px;
-	-webkit-border-radius: 4px;
-	-moz-border-radius: 4px;
+    border: 1px solid #dddddd;
+    border-radius: 4px;
+    -webkit-border-radius: 4px;
+    -moz-border-radius: 4px;
 }
 }
 
 
 .fixed-table-header {
 .fixed-table-header {
-	height: 38px;
-	position: absolute;
-	top: 0;
-	right: 0;
-	left: 0;
-	border-bottom: 1px solid #dddddd;
-	border-radius: 4px 4px 0 0;
-	-webkit-border-radius: 4px 4px 0 0;
-	-moz-border-radius: 4px 4px 0 0;
+    height: 38px;
+    position: absolute;
+    top: 0;
+    right: 0;
+    left: 0;
+    border-bottom: 1px solid #dddddd;
+    border-radius: 4px 4px 0 0;
+    -webkit-border-radius: 4px 4px 0 0;
+    -moz-border-radius: 4px 4px 0 0;
 }
 }
 
 
 .fixed-table-body {
 .fixed-table-body {
-	overflow-x: hidden;
-	overflow-y: auto;
-	height: 100%;
+    overflow-x: hidden;
+    overflow-y: auto;
+    height: 100%;
 }
 }
 
 
 .fixed-table-body table {
 .fixed-table-body table {
-	width: 100%;
-	overflow-x: hidden;
-	overflow-y: auto;
+    width: 100%;
+    overflow-x: hidden;
+    overflow-y: auto;
 }
 }
 
 
 .fixed-table-body thead th {
 .fixed-table-body thead th {
-	height: 0;
-	padding: 0;
-	margin: 0;
-	border: none;
+    height: 0;
+    padding: 0;
+    margin: 0;
+    border: none;
 }
 }
 
 
 .fixed-table-body thead th .th-inner {
 .fixed-table-body thead th .th-inner {
-	position: absolute;
-	top: 0;
-	padding: 8px;
-	line-height: 22px;
-	vertical-align: top;
-	border-left: 1px solid #dddddd;
+    position: absolute;
+    top: 0;
+    padding: 8px;
+    line-height: 22px;
+    vertical-align: top;
+    border-left: 1px solid #dddddd;
 }
 }
 
 
 .fixed-table-body thead th:first-child .th-inner {
 .fixed-table-body thead th:first-child .th-inner {
-	border-left: none;
-	border-top-left-radius: 4px;
-	-webkit-border-top-left-radius: 4px;
-	-moz-border-radius-topleft: 4px;
+    border-left: none;
+    border-top-left-radius: 4px;
+    -webkit-border-top-left-radius: 4px;
+    -moz-border-radius-topleft: 4px;
 }
 }
 
 
 .fixed-table-body tbody td {
 .fixed-table-body tbody td {
-	border-left: 1px solid #dddddd;
+    border-left: 1px solid #dddddd;
 }
 }
 
 
 .fixed-table-body tbody td:first-child {
 .fixed-table-body tbody td:first-child {
-	border-left: none;
+    border-left: none;
 }
 }
 
 
 .fixed-table-body .checkbox {
 .fixed-table-body .checkbox {
@@ -109,9 +109,14 @@
     cursor: default;
     cursor: default;
 }
 }
 
 
+/* support bootstrap 2 */
+.fixed-table-body thead th .th-inner {
+    box-sizing: border-box;
+}
+
 /* support bootstrap 3 */
 /* support bootstrap 3 */
 .table thead>tr>th {
 .table thead>tr>th {
-	padding: 0;
-	margin: 0;
-	border: none;
+    padding: 0;
+    margin: 0;
+    border: none;
 }
 }