File tree 5 files changed +55
-28
lines changed
5 files changed +55
-28
lines changed Original file line number Diff line number Diff line change 586
586
}
587
587
}
588
588
589
+ // Typography
590
+ // -------------------------
591
+ .text-emphasis-variant (@color ) {
592
+ color : @color ;
593
+ a& :hover {
594
+ color : darken (@color , 10% );
595
+ }
596
+ }
597
+
589
598
// Navbar vertical align
590
599
// -------------------------
591
600
// Vertically center elements in the navbar.
Original file line number Diff line number Diff line change 124
124
125
125
// Automatically set modal's width for larger viewports
126
126
.modal-dialog {
127
- width : 600 px ;
127
+ width : @modal-md ;
128
128
margin : 30px auto ;
129
129
}
130
130
.modal-content {
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 ;
Original file line number Diff line number Diff line change @@ -92,34 +92,19 @@ cite { font-style: normal; }
92
92
color : @text-muted ;
93
93
}
94
94
.text-primary {
95
- color : @brand-primary ;
96
- & :hover {
97
- color : darken (@brand-primary , 10% );
98
- }
95
+ .text-emphasis-variant (@brand-primary );
99
96
}
100
97
.text-success {
101
- color : @state-success-text ;
102
- & :hover {
103
- color : darken (@state-success-text , 10% );
104
- }
98
+ .text-emphasis-variant (@state-success-text );
105
99
}
106
100
.text-info {
107
- color : @state-info-text ;
108
- & :hover {
109
- color : darken (@state-info-text , 10% );
110
- }
101
+ .text-emphasis-variant (@state-info-text );
111
102
}
112
103
.text-warning {
113
- color : @state-warning-text ;
114
- & :hover {
115
- color : darken (@state-warning-text , 10% );
116
- }
104
+ .text-emphasis-variant (@state-warning-text );
117
105
}
118
106
.text-danger {
119
- color : @state-danger-text ;
120
- & :hover {
121
- color : darken (@state-danger-text , 10% );
122
- }
107
+ .text-emphasis-variant (@state-danger-text );
123
108
}
124
109
125
110
// Contextual backgrounds
Original file line number Diff line number Diff line change 561
561
@modal-footer-border-color : @modal-header-border-color ;
562
562
563
563
@modal-lg : 900px ;
564
+ @modal-md : 600px ;
564
565
@modal-sm : 300px ;
565
566
566
567
You can’t perform that action at this time.
0 commit comments