File tree 1 file changed +39
-7
lines changed
1 file changed +39
-7
lines changed Original file line number Diff line number Diff line change 27
27
.panel {
28
28
> .list-group {
29
29
margin-bottom : 0 ;
30
-
31
30
.list-group-item {
32
31
border-width : 1px 0 ;
33
-
34
- // Remove border radius for top one
32
+ border-radius : 0 ;
35
33
& :first-child {
36
- . border-top-radius ( 0 ) ;
34
+ border-top : 0 ;
37
35
}
38
- // But keep it for the last one
39
36
& :last-child {
40
37
border-bottom : 0 ;
41
38
}
42
39
}
40
+ // Add border top radius for first one
41
+ & :first-child {
42
+ .list-group-item :first-child {
43
+ .border-top-radius ((@panel-border-radius - 1 ));
44
+ }
45
+ }
46
+ // Add border bottom radius for last one
47
+ & :last-child {
48
+ .list-group-item :last-child {
49
+ .border-bottom-radius ((@panel-border-radius - 1 ));
50
+ }
51
+ }
43
52
}
44
53
}
45
54
// Collapse space between when there's no additional content.
59
68
> .table ,
60
69
> .table-responsive > .table {
61
70
margin-bottom : 0 ;
62
-
71
+ }
72
+ // Add border top radius for first one
73
+ > .table :first-child ,
74
+ > .table-responsive :first-child > .table :first-child {
75
+ > thead :first-child ,
76
+ > tbody :first-child {
77
+ > tr :first-child {
78
+ td :first-child ,
79
+ th :first-child {
80
+ border-top-left-radius : (@panel-border-radius - 1 );
81
+ }
82
+ td :last-child ,
83
+ th :last-child {
84
+ border-top-right-radius : (@panel-border-radius - 1 );
85
+ }
86
+ }
87
+ }
88
+ }
89
+ // Add border bottom radius for last one
90
+ > .table :last-child ,
91
+ > .table-responsive :last-child > .table :last-child {
63
92
> tbody :last-child ,
64
93
> tfoot :last-child {
65
94
> tr :last-child {
97
126
> td :last-child {
98
127
border-right : 0 ;
99
128
}
100
-
129
+ & :first-child > th ,
130
+ & :first-child > td {
131
+ border-top : 0 ;
132
+ }
101
133
& :last-child > th ,
102
134
& :last-child > td {
103
135
border-bottom : 0 ;
You can’t perform that action at this time.
0 commit comments