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
f4e5bc1c
Commit
f4e5bc1c
authored
Jan 30, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
namespace popover values
parent
db31efb9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
32 deletions
+32
-32
docs/assets/bootstrap.zip
docs/assets/bootstrap.zip
+0
-0
docs/assets/css/bootstrap.css
docs/assets/css/bootstrap.css
+4
-4
js/bootstrap-popover.js
js/bootstrap-popover.js
+3
-3
less/popovers.less
less/popovers.less
+25
-25
No files found.
docs/assets/bootstrap.zip
View file @
f4e5bc1c
No preview for this file type
docs/assets/css/bootstrap.css
View file @
f4e5bc1c
...
@@ -2928,7 +2928,7 @@ button.btn.small, input[type="submit"].btn.small {
...
@@ -2928,7 +2928,7 @@ button.btn.small, input[type="submit"].btn.small {
width
:
0
;
width
:
0
;
height
:
0
;
height
:
0
;
}
}
.popover
.
inner
{
.popover
-
inner
{
padding
:
3px
;
padding
:
3px
;
width
:
280px
;
width
:
280px
;
overflow
:
hidden
;
overflow
:
hidden
;
...
@@ -2941,7 +2941,7 @@ button.btn.small, input[type="submit"].btn.small {
...
@@ -2941,7 +2941,7 @@ button.btn.small, input[type="submit"].btn.small {
-moz-box-shadow
:
0
3px
7px
rgba
(
0
,
0
,
0
,
0.3
);
-moz-box-shadow
:
0
3px
7px
rgba
(
0
,
0
,
0
,
0.3
);
box-shadow
:
0
3px
7px
rgba
(
0
,
0
,
0
,
0.3
);
box-shadow
:
0
3px
7px
rgba
(
0
,
0
,
0
,
0.3
);
}
}
.popover
.
title
{
.popover
-
title
{
padding
:
9px
15px
;
padding
:
9px
15px
;
line-height
:
1
;
line-height
:
1
;
background-color
:
#f5f5f5
;
background-color
:
#f5f5f5
;
...
@@ -2950,7 +2950,7 @@ button.btn.small, input[type="submit"].btn.small {
...
@@ -2950,7 +2950,7 @@ button.btn.small, input[type="submit"].btn.small {
-moz-border-radius
:
3px
3px
0
0
;
-moz-border-radius
:
3px
3px
0
0
;
border-radius
:
3px
3px
0
0
;
border-radius
:
3px
3px
0
0
;
}
}
.popover
.
content
{
.popover
-
content
{
padding
:
14px
;
padding
:
14px
;
background-color
:
#ffffff
;
background-color
:
#ffffff
;
-webkit-border-radius
:
0
0
3px
3px
;
-webkit-border-radius
:
0
0
3px
3px
;
...
@@ -2960,7 +2960,7 @@ button.btn.small, input[type="submit"].btn.small {
...
@@ -2960,7 +2960,7 @@ button.btn.small, input[type="submit"].btn.small {
-moz-background-clip
:
padding-box
;
-moz-background-clip
:
padding-box
;
background-clip
:
padding-box
;
background-clip
:
padding-box
;
}
}
.popover
.content
p
,
.popover
.content
ul
,
.popover
.
content
ol
{
.popover
-content
p
,
.popover-content
ul
,
.popover-
content
ol
{
margin-bottom
:
0
;
margin-bottom
:
0
;
}
}
.thumbnails
{
.thumbnails
{
...
...
js/bootstrap-popover.js
View file @
f4e5bc1c
...
@@ -38,8 +38,8 @@
...
@@ -38,8 +38,8 @@
,
title
=
this
.
getTitle
()
,
title
=
this
.
getTitle
()
,
content
=
this
.
getContent
()
,
content
=
this
.
getContent
()
$tip
.
find
(
'
.title
'
)[
$
.
type
(
title
)
==
'
object
'
?
'
append
'
:
'
html
'
](
title
)
$tip
.
find
(
'
.
popover-
title
'
)[
$
.
type
(
title
)
==
'
object
'
?
'
append
'
:
'
html
'
](
title
)
$tip
.
find
(
'
.content > *
'
)[
$
.
type
(
content
)
==
'
object
'
?
'
append
'
:
'
html
'
](
content
)
$tip
.
find
(
'
.
popover-
content > *
'
)[
$
.
type
(
content
)
==
'
object
'
?
'
append
'
:
'
html
'
](
content
)
$tip
.
removeClass
(
'
fade top bottom left right in
'
)
$tip
.
removeClass
(
'
fade top bottom left right in
'
)
}
}
...
@@ -89,7 +89,7 @@
...
@@ -89,7 +89,7 @@
$
.
fn
.
popover
.
defaults
=
$
.
extend
({}
,
$
.
fn
.
tooltip
.
defaults
,
{
$
.
fn
.
popover
.
defaults
=
$
.
extend
({}
,
$
.
fn
.
tooltip
.
defaults
,
{
placement
:
'
right
'
placement
:
'
right
'
,
content
:
''
,
content
:
''
,
template
:
'
<div class="popover"><div class="arrow"></div><div class="
inner"><h3 class="title"></h3><div class="
content"><p></p></div></div></div>
'
,
template
:
'
<div class="popover"><div class="arrow"></div><div class="
popover-inner"><h3 class="popover-title"></h3><div class="popover-
content"><p></p></div></div></div>
'
})
})
}(
window
.
jQuery
)
}(
window
.
jQuery
)
less/popovers.less
View file @
f4e5bc1c
...
@@ -21,29 +21,29 @@
...
@@ -21,29 +21,29 @@
width: 0;
width: 0;
height: 0;
height: 0;
}
}
.inner {
}
padding: 3px;
.popover-inner {
width: 280px;
padding: 3px;
overflow: hidden;
width: 280px;
background: @black; // has to be full background declaration for IE fallback
overflow: hidden;
background: rgba(0,0,0,.8);
background: @black; // has to be full background declaration for IE fallback
.border-radius(6px);
background: rgba(0,0,0,.8);
.box-shadow(0 3px 7px rgba(0,0,0,0.3));
.border-radius(6px);
.box-shadow(0 3px 7px rgba(0,0,0,0.3));
}
.popover-title {
padding: 9px 15px;
line-height: 1;
background-color: #f5f5f5;
border-bottom:1px solid #eee;
.border-radius(3px 3px 0 0);
}
.popover-content {
padding: 14px;
background-color: @white;
.border-radius(0 0 3px 3px);
.background-clip(padding-box);
p, ul, ol {
margin-bottom: 0;
}
}
.title {
}
padding: 9px 15px;
line-height: 1;
background-color: #f5f5f5;
border-bottom:1px solid #eee;
.border-radius(3px 3px 0 0);
}
.content {
padding: 14px;
background-color: @white;
.border-radius(0 0 3px 3px);
.background-clip(padding-box);
p, ul, ol {
margin-bottom: 0;
}
}
}
\ No newline at end of file
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