Skip to content

Commit 8b72b76

Browse files
committed
Rounded corners in navbar dropdown
1 parent 463ac6b commit 8b72b76

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

css/flat-ui.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -781,6 +781,12 @@ address {
781781
-moz-box-shadow: none;
782782
box-shadow: none;
783783
}
784+
.navbar .nav > li:first-child {
785+
border-radius: 6px 6px 0 0;
786+
}
787+
.navbar .nav > li:last-child {
788+
border-radius: 0 0 6px 6px;
789+
}
784790
.navbar .nav > li > ul {
785791
padding-top: 13px;
786792
top: 80%;

less/modules/navbar.less

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@
6464
.box-shadow(none);
6565
}
6666
}
67+
&:first-child {
68+
border-radius: @border-radius-large @border-radius-large 0 0;
69+
}
70+
&:last-child {
71+
border-radius: 0 0 @border-radius-large @border-radius-large;
72+
}
6773

6874
// Second level nav
6975
> ul {
@@ -158,11 +164,11 @@
158164
position: relative;
159165

160166
&:first-child {
161-
border-radius: 6px 6px 0 0;
167+
border-radius: @border-radius-large @border-radius-large 0 0;
162168
padding-top: 3px;
163169
}
164170
&:last-child {
165-
border-radius: 0 0 6px 6px;
171+
border-radius: 0 0 @border-radius-large @border-radius-large;
166172
}
167173
&.active {
168174
> a,

0 commit comments

Comments
 (0)