table.scss 2.2 KB
Newer Older
mntmn's avatar
mntmn committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
@import "vars";
@import "mixins";

.table-wrap {
  // margin-left: -40px;
  // margin-right: -40px;
  margin-bottom: 30px;
}
.table {
  width: 100%;
  color: $medium;;
  font-family: $main-font;
  // border-radius: $radius;
  // border: 2px solid rgba(0,0,0,0.0125) !important;
}

.table thead > tr > th:first-child, 
.table tbody > tr > th:first-child, 
.table tfoot > tr > th:first-child, 
.table thead > tr > td:first-child, 
.table tbody > tr > td:first-child, 
.table tfoot > tr > td:first-child {
  width:1%;
  padding-left: 25px;
  text-align: left !important;
}

.table thead > tr > th:last-child, 
.table tbody > tr > th:last-child, 
.table tfoot > tr > th:last-child, 
.table thead > tr > td:last-child, 
.table tbody > tr > td:last-child, 
.table tfoot > tr > td:last-child {
  padding-right: 25px;
  text-align: right;
  width: 1%;
}


.table thead > tr > td,
.table tbody > tr > td,
.table tfoot > tr > td {
  padding: 10px;
  border: none;
  font-size: 16px;
  line-height: inherit;
  //white-space: nowrap;
  vertical-align: middle;
  height: 60px;

  &.no-p {padding: 0px; }
  &.max {width: 100%; }
  &.min {width: 1%; }

  border-bottom: 2px solid rgba(0,0,0,0.0125) !important;
}

.table thead > tr > th,
.table tbody > tr > th,
.table tfoot > tr > th {
  border: none;
  line-height: inherit;
  //white-space: nowrap;
  vertical-align: middle;
  padding: 10px 20px;

  font-size: 10px;
  text-transform: uppercase;
  text-align: left;
}

.table tbody > tr:nth-child(odd) > td {
  background-color: rgba(0,0,0,0.025);  
}

.table thead > tr:first-child > td:first-child,
.table tbody > tr:first-child > td:first-child,
.table tfoot > tr:first-child > td:first-child {
  border-top-left-radius: 3px;
}
.table thead > tr:first-child > td:last-child,
.table tbody > tr:first-child > td:last-child,
.table tfoot > tr:first-child > td:last-child {
  border-top-right-radius: 3px;
}

.table thead > tr:last-child > td:first-child,
.table tbody > tr:last-child > td:first-child,
.table tfoot > tr:last-child > td:first-child {
  border-bottom-left-radius: 3px;
}

.table thead > tr:last-child > td:last-child,
.table tbody > tr:last-child > td:last-child,
.table tfoot > tr:last-child > td:last-child  {
  border-bottom-right-radius: 3px;
}