Skip to content

Commit eb06719

Browse files
committed
(less) Merge branch 'master' into bg-variant
Conflicts: less/mixins.less
2 parents 7d5cefe + 5a48e90 commit eb06719

File tree

5 files changed

+55
-28
lines changed

5 files changed

+55
-28
lines changed

mixins.less

+9
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,15 @@
586586
}
587587
}
588588

589+
// Typography
590+
// -------------------------
591+
.text-emphasis-variant(@color) {
592+
color: @color;
593+
a&:hover {
594+
color: darken(@color, 10%);
595+
}
596+
}
597+
589598
// Navbar vertical align
590599
// -------------------------
591600
// Vertically center elements in the navbar.

modals.less

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124

125125
// Automatically set modal's width for larger viewports
126126
.modal-dialog {
127-
width: 600px;
127+
width: @modal-md;
128128
margin: 30px auto;
129129
}
130130
.modal-content {

panels.less

+39-7
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,28 @@
2727
.panel {
2828
> .list-group {
2929
margin-bottom: 0;
30-
3130
.list-group-item {
3231
border-width: 1px 0;
33-
34-
// Remove border radius for top one
32+
border-radius: 0;
3533
&:first-child {
36-
.border-top-radius(0);
34+
border-top: 0;
3735
}
38-
// But keep it for the last one
3936
&:last-child {
4037
border-bottom: 0;
4138
}
4239
}
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+
}
4352
}
4453
}
4554
// Collapse space between when there's no additional content.
@@ -59,7 +68,27 @@
5968
> .table,
6069
> .table-responsive > .table {
6170
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 {
6392
> tbody:last-child,
6493
> tfoot:last-child {
6594
> tr:last-child {
@@ -97,7 +126,10 @@
97126
> td:last-child {
98127
border-right: 0;
99128
}
100-
129+
&:first-child > th,
130+
&:first-child > td {
131+
border-top: 0;
132+
}
101133
&:last-child > th,
102134
&:last-child > td {
103135
border-bottom: 0;

type.less

+5-20
Original file line numberDiff line numberDiff line change
@@ -92,34 +92,19 @@ cite { font-style: normal; }
9292
color: @text-muted;
9393
}
9494
.text-primary {
95-
color: @brand-primary;
96-
&:hover {
97-
color: darken(@brand-primary, 10%);
98-
}
95+
.text-emphasis-variant(@brand-primary);
9996
}
10097
.text-success {
101-
color: @state-success-text;
102-
&:hover {
103-
color: darken(@state-success-text, 10%);
104-
}
98+
.text-emphasis-variant(@state-success-text);
10599
}
106100
.text-info {
107-
color: @state-info-text;
108-
&:hover {
109-
color: darken(@state-info-text, 10%);
110-
}
101+
.text-emphasis-variant(@state-info-text);
111102
}
112103
.text-warning {
113-
color: @state-warning-text;
114-
&:hover {
115-
color: darken(@state-warning-text, 10%);
116-
}
104+
.text-emphasis-variant(@state-warning-text);
117105
}
118106
.text-danger {
119-
color: @state-danger-text;
120-
&:hover {
121-
color: darken(@state-danger-text, 10%);
122-
}
107+
.text-emphasis-variant(@state-danger-text);
123108
}
124109

125110
// Contextual backgrounds

variables.less

+1
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,7 @@
561561
@modal-footer-border-color: @modal-header-border-color;
562562

563563
@modal-lg: 900px;
564+
@modal-md: 600px;
564565
@modal-sm: 300px;
565566

566567

0 commit comments

Comments
 (0)