Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
b780034a
Commit
b780034a
authored
Jan 08, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean up some spacing on the dropdown for typeahead
parent
19986b3d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
12 deletions
+26
-12
bootstrap.css
bootstrap.css
+8
-2
bootstrap.min.css
bootstrap.min.css
+2
-1
lib/dropdowns.less
lib/dropdowns.less
+16
-9
No files found.
bootstrap.css
View file @
b780034a
...
...
@@ -6,7 +6,7 @@
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
* Date: Sun Jan 8 01:
45:29
PST 2012
* Date: Sun Jan 8 01:
50:02
PST 2012
*/
html
,
body
{
margin
:
0
;
...
...
@@ -1489,7 +1489,7 @@ i {
line-height
:
18px
;
color
:
#555555
;
}
.dropdown-menu
.typeahead
.active
a
,
.dropdown-menu
a
:hover
{
.dropdown-menu
a
:hover
,
.dropdown-menu
.active
>
a
{
color
:
#fff
;
text-decoration
:
none
;
text-shadow
:
0
-1px
0
rgba
(
0
,
0
,
0
,
0.25
);
...
...
@@ -1515,6 +1515,12 @@ i {
.dropdown.open
.dropdown-menu
{
display
:
block
;
}
.typeahead
{
margin-top
:
2px
;
-webkit-border-radius
:
4px
;
-moz-border-radius
:
4px
;
border-radius
:
4px
;
}
.well
{
min-height
:
20px
;
padding
:
19px
;
...
...
bootstrap.min.css
View file @
b780034a
...
...
@@ -305,9 +305,10 @@ i{background-image:url(docs/assets/img/glyphicons-halflings-sprite.png);backgrou
.dropdown
:hover
.caret
,
.open.dropdown
.caret
{
filter
:
alpha
(
opacity
=
100
);
-moz-opacity
:
1
;
opacity
:
1
;}
.dropdown-menu
{
position
:
absolute
;
top
:
40px
;
z-index
:
1000
;
float
:
left
;
display
:
none
;
min-width
:
160px
;
max-width
:
220px
;
_width
:
160px
;
padding
:
5px
0
;
margin
:
0
;
list-style
:
none
;
background-color
:
#ffffff
;
border-color
:
#999
;
border-color
:
rgba
(
0
,
0
,
0
,
0.1
);
border-style
:
solid
;
border-width
:
1px
;
-webkit-border-radius
:
0
0
5px
5px
;
-moz-border-radius
:
0
0
5px
5px
;
border-radius
:
0
0
5px
5px
;
-webkit-box-shadow
:
0
5px
10px
rgba
(
0
,
0
,
0
,
0.2
);
-moz-box-shadow
:
0
5px
10px
rgba
(
0
,
0
,
0
,
0.2
);
box-shadow
:
0
5px
10px
rgba
(
0
,
0
,
0
,
0.2
);
-webkit-background-clip
:
padding-box
;
-moz-background-clip
:
padding
;
background-clip
:
padding-box
;
zoom
:
1
;}
.dropdown-menu
.divider
{
height
:
1px
;
margin
:
5px
1px
;
overflow
:
hidden
;
background-color
:
#e5e5e5
;
border-bottom
:
1px
solid
#ffffff
;}
.dropdown-menu
a
{
display
:
block
;
padding
:
2px
15px
;
clear
:
both
;
font-weight
:
normal
;
line-height
:
18px
;
color
:
#555555
;}
.dropdown-menu
.typeahead
.active
a
,
.dropdown-menu
a
:hover
{
color
:
#fff
;
text-decoration
:
none
;
text-shadow
:
0
-1px
0
rgba
(
0
,
0
,
0
,
0.25
);
background-color
:
#0077b3
;
background-image
:
-khtml-gradient
(
linear
,
left
top
,
left
bottom
,
from
(
#0088cc
),
to
(
#0077b3
));
background-image
:
-moz-linear-gradient
(
top
,
#0088cc
,
#0077b3
);
background-image
:
-ms-linear-gradient
(
top
,
#0088cc
,
#0077b3
);
background-image
:
-webkit-gradient
(
linear
,
left
top
,
left
bottom
,
color-stop
(
0%
,
#0088cc
),
color-stop
(
100%
,
#0077b3
));
background-image
:
-webkit-linear-gradient
(
top
,
#0088cc
,
#0077b3
);
background-image
:
-o-linear-gradient
(
top
,
#0088cc
,
#0077b3
);
background-image
:
linear-gradient
(
top
,
#0088cc
,
#0077b3
);
background-repeat
:
repeat-x
;
filter
:
progid
:
DXImageTransform
.
Microsoft
.
gradient
(
startColorstr
=
'#0088cc'
,
endColorstr
=
'#0077b3'
,
GradientType
=
0
);
-webkit-box-shadow
:
inset
0
1px
0
rgba
(
0
,
0
,
0
,
0.075
),
inset
0
-1px
rgba
(
0
,
0
,
0
,
0.075
);
-moz-box-shadow
:
inset
0
1px
0
rgba
(
0
,
0
,
0
,
0.075
),
inset
0
-1px
rgba
(
0
,
0
,
0
,
0.075
);
box-shadow
:
inset
0
1px
0
rgba
(
0
,
0
,
0
,
0.075
),
inset
0
-1px
rgba
(
0
,
0
,
0
,
0.075
);}
.dropdown-menu
a
:hover
,
.dropdown-menu
.active
>
a
{
color
:
#fff
;
text-decoration
:
none
;
text-shadow
:
0
-1px
0
rgba
(
0
,
0
,
0
,
0.25
);
background-color
:
#0077b3
;
background-image
:
-khtml-gradient
(
linear
,
left
top
,
left
bottom
,
from
(
#0088cc
),
to
(
#0077b3
));
background-image
:
-moz-linear-gradient
(
top
,
#0088cc
,
#0077b3
);
background-image
:
-ms-linear-gradient
(
top
,
#0088cc
,
#0077b3
);
background-image
:
-webkit-gradient
(
linear
,
left
top
,
left
bottom
,
color-stop
(
0%
,
#0088cc
),
color-stop
(
100%
,
#0077b3
));
background-image
:
-webkit-linear-gradient
(
top
,
#0088cc
,
#0077b3
);
background-image
:
-o-linear-gradient
(
top
,
#0088cc
,
#0077b3
);
background-image
:
linear-gradient
(
top
,
#0088cc
,
#0077b3
);
background-repeat
:
repeat-x
;
filter
:
progid
:
DXImageTransform
.
Microsoft
.
gradient
(
startColorstr
=
'#0088cc'
,
endColorstr
=
'#0077b3'
,
GradientType
=
0
);
-webkit-box-shadow
:
inset
0
1px
0
rgba
(
0
,
0
,
0
,
0.075
),
inset
0
-1px
rgba
(
0
,
0
,
0
,
0.075
);
-moz-box-shadow
:
inset
0
1px
0
rgba
(
0
,
0
,
0
,
0.075
),
inset
0
-1px
rgba
(
0
,
0
,
0
,
0.075
);
box-shadow
:
inset
0
1px
0
rgba
(
0
,
0
,
0
,
0.075
),
inset
0
-1px
rgba
(
0
,
0
,
0
,
0.075
);}
.dropdown.open
.dropdown-toggle
{
color
:
#ffffff
;
background
:
#ccc
;
background
:
rgba
(
0
,
0
,
0
,
0.3
);}
.dropdown.open
.dropdown-menu
{
display
:
block
;}
.typeahead
{
margin-top
:
2px
;
-webkit-border-radius
:
4px
;
-moz-border-radius
:
4px
;
border-radius
:
4px
;}
.well
{
min-height
:
20px
;
padding
:
19px
;
margin-bottom
:
20px
;
background-color
:
#f5f5f5
;
border
:
1px
solid
#eee
;
border
:
1px
solid
rgba
(
0
,
0
,
0
,
0.05
);
-webkit-border-radius
:
4px
;
-moz-border-radius
:
4px
;
border-radius
:
4px
;
-webkit-box-shadow
:
inset
0
1px
1px
rgba
(
0
,
0
,
0
,
0.05
);
-moz-box-shadow
:
inset
0
1px
1px
rgba
(
0
,
0
,
0
,
0.05
);
box-shadow
:
inset
0
1px
1px
rgba
(
0
,
0
,
0
,
0.05
);}
.well
blockquote
{
border-color
:
#ddd
;
border-color
:
rgba
(
0
,
0
,
0
,
0.15
);}
.fade
{
-webkit-transition
:
opacity
0.15s
linear
;
-moz-transition
:
opacity
0.15s
linear
;
-ms-transition
:
opacity
0.15s
linear
;
-o-transition
:
opacity
0.15s
linear
;
transition
:
opacity
0.15s
linear
;
opacity
:
0
;}
.fade.in
{
opacity
:
1
;}
.collapse
{
-webkit-transition
:
height
0.35s
ease
;
-moz-transition
:
height
0.35s
ease
;
-ms-transition
:
height
0.35s
ease
;
-o-transition
:
height
0.35s
ease
;
transition
:
height
0.35s
ease
;
position
:
relative
;
overflow
:
hidden
;
height
:
0
;}
.collapse.in
{
height
:
auto
;}
...
...
lib/dropdowns.less
View file @
b780034a
...
...
@@ -69,16 +69,17 @@
line-height: 18px;
color: @gray;
}
}
// Hover state
&.typeahead .active a, a:hover {
color: #fff;
text-decoration: none
;
text-shadow: 0 -1px 0 rgba(0,0,0,.25)
;
#gradient > .vertical(@linkColor, darken(@linkColor, 5%)
);
@shadow: inset 0 1px 0 rgba(0,0,0,.075), inset 0 -1px rgba(0,0,0,.075
);
.box-shadow(@shadow
);
}
// Hover & Active states
.dropdown-menu a:hover,
.dropdown-menu .active > a {
color: #fff
;
text-decoration: none
;
text-shadow: 0 -1px 0 rgba(0,0,0,.25
);
#gradient > .vertical(@linkColor, darken(@linkColor, 5%)
);
@shadow: inset 0 1px 0 rgba(0,0,0,.075), inset 0 -1px rgba(0,0,0,.075
);
.box-shadow(@shadow);
}
// Open state for the dropdown
...
...
@@ -92,3 +93,9 @@
display: block;
}
}
// Typeahead
.typeahead {
margin-top: 2px; // give it some space to breathe
.border-radius(4px);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment