Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
b8b266ca
Commit
b8b266ca
authored
12 years ago
by
Mark Otto
Browse files
Options
Download
Email Patches
Plain Diff
popovers and tooltips vars
parent
e34b3730
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
docs/assets/css/bootstrap.css
+29
-29
docs/assets/css/bootstrap.css
less/popovers.less
+54
-54
less/popovers.less
less/tooltip.less
+14
-14
less/tooltip.less
less/variables.less
+10
-10
less/variables.less
with
107 additions
and
107 deletions
+107
-107
docs/assets/css/bootstrap.css
+
29
-
29
View file @
b8b266ca
...
...
@@ -4663,57 +4663,57 @@ input[type="button"].btn-block {
.popover
{
/*
&.top .arrow {
bottom: -@popover
A
rrow
W
idth;
bottom: -@popover
-a
rrow
-w
idth;
left: 50%;
margin-left: -@popover
A
rrow
W
idth;
border-width: @popover
A
rrow
W
idth @popover
A
rrow
W
idth 0;
//border-top-color: @popover
A
rrow
C
olor;
margin-left: -@popover
-a
rrow
-w
idth;
border-width: @popover
-a
rrow
-w
idth @popover
-a
rrow
-w
idth 0;
//border-top-color: @popover
-a
rrow
-c
olor;
border-top-color: blue;
&:after {
border-width: @popover
A
rrow
O
uter
W
idth @popover
A
rrow
O
uter
W
idth 0;
//border-top-color: @popover
A
rrow
O
uter
C
olor;
border-width: @popover
-a
rrow
-o
uter
-w
idth @popover
-a
rrow
-o
uter
-w
idth 0;
//border-top-color: @popover
-a
rrow
-o
uter
-c
olor;
border-top-color: red;
top: -@popover
A
rrow
W
idth;
top: -@popover
-a
rrow
-w
idth;
//bottom: -1px;
left: -@popover
A
rrow
O
uter
W
idth;
left: -@popover
-a
rrow
-o
uter
-w
idth;
}
}
&.right .arrow {
top: 50%;
left: -@popover
A
rrow
W
idth;
margin-top: -@popover
A
rrow
W
idth;
border-width: @popover
A
rrow
W
idth @popover
A
rrow
W
idth @popover
A
rrow
W
idth 0;
border-right-color: @popover
A
rrow
C
olor;
left: -@popover
-a
rrow
-w
idth;
margin-top: -@popover
-a
rrow
-w
idth;
border-width: @popover
-a
rrow
-w
idth @popover
-a
rrow
-w
idth @popover
-a
rrow
-w
idth 0;
border-right-color: @popover
-a
rrow
-c
olor;
&:after {
border-width: @popover
A
rrow
O
uter
W
idth @popover
A
rrow
O
uter
W
idth @popover
A
rrow
O
uter
W
idth 0;
border-right-color: @popover
A
rrow
O
uter
C
olor;
bottom: -@popover
A
rrow
O
uter
W
idth;
border-width: @popover
-a
rrow
-o
uter
-w
idth @popover
-a
rrow
-o
uter
-w
idth @popover
-a
rrow
-o
uter
-w
idth 0;
border-right-color: @popover
-a
rrow
-o
uter
-c
olor;
bottom: -@popover
-a
rrow
-o
uter
-w
idth;
left: -1px;
}
}
&.bottom .arrow {
top: -@popover
A
rrow
W
idth;
top: -@popover
-a
rrow
-w
idth;
left: 50%;
margin-left: -@popover
A
rrow
W
idth;
border-width: 0 @popover
A
rrow
W
idth @popover
A
rrow
W
idth;
border-bottom-color: @popover
A
rrow
C
olor;
margin-left: -@popover
-a
rrow
-w
idth;
border-width: 0 @popover
-a
rrow
-w
idth @popover
-a
rrow
-w
idth;
border-bottom-color: @popover
-a
rrow
-c
olor;
&:after {
border-width: 0 @popover
A
rrow
O
uter
W
idth @popover
A
rrow
O
uter
W
idth;
border-bottom-color: @popover
A
rrow
O
uter
C
olor;
border-width: 0 @popover
-a
rrow
-o
uter
-w
idth @popover
-a
rrow
-o
uter
-w
idth;
border-bottom-color: @popover
-a
rrow
-o
uter
-c
olor;
top: -1px;
left: -@popover
A
rrow
O
uter
W
idth;
left: -@popover
-a
rrow
-o
uter
-w
idth;
}
}
&.left .arrow {
top: 50%;
right: -@popover
A
rrow
W
idth;
margin-top: -@popover
A
rrow
W
idth;
border-width: @popover
A
rrow
W
idth 0 @popover
A
rrow
W
idth @popover
A
rrow
W
idth;
border-left-color: @popover
A
rrow
C
olor;
right: -@popover
-a
rrow
-w
idth;
margin-top: -@popover
-a
rrow
-w
idth;
border-width: @popover
-a
rrow
-w
idth 0 @popover
-a
rrow
-w
idth @popover
-a
rrow
-w
idth;
border-left-color: @popover
-a
rrow
-c
olor;
&:after {
border-width: @popover
A
rrow
O
uter
W
idth 0 @popover
A
rrow
O
uter
W
idth @popover
A
rrow
O
uter
W
idth;
border-left-color: @popover
A
rrow
O
uter
C
olor;
bottom: -@popover
A
rrow
O
uter
W
idth;
border-width: @popover
-a
rrow
-o
uter
-w
idth 0 @popover
-a
rrow
-o
uter
-w
idth @popover
-a
rrow
-o
uter
-w
idth;
border-left-color: @popover
-a
rrow
-o
uter
-c
olor;
bottom: -@popover
-a
rrow
-o
uter
-w
idth;
right: -1px;
}
}*/
...
...
This diff is collapsed.
Click to expand it.
less/popovers.less
+
54
-
54
View file @
b8b266ca
...
...
@@ -11,7 +11,7 @@
display: none;
width: 236px;
padding: 1px;
background-color: @popover
B
ackground;
background-color: @popover
-b
ackground;
-webkit-background-clip: padding-box;
-moz-background-clip: padding;
background-clip: padding-box;
...
...
@@ -36,8 +36,8 @@
font-size: 14px;
font-weight: normal;
line-height: 18px;
background-color: @popover
T
itle
B
ackground;
border-bottom: 1px solid darken(@popover
T
itle
B
ackground, 5%);
background-color: @popover
-t
itle
-b
ackground;
border-bottom: 1px solid darken(@popover
-t
itle
-b
ackground, 5%);
border-radius: 5px 5px 0 0;
}
...
...
@@ -62,69 +62,69 @@
border-style: solid;
}
.popover .arrow {
border-width: @popover
A
rrow
O
uter
W
idth;
border-width: @popover
-a
rrow
-o
uter
-w
idth;
}
.popover .arrow:after {
border-width: @popover
A
rrow
W
idth;
border-width: @popover
-a
rrow
-w
idth;
content: "";
}
.popover {
&.top .arrow {
left: 50%;
margin-left: -@popover
A
rrow
O
uter
W
idth;
margin-left: -@popover
-a
rrow
-o
uter
-w
idth;
border-bottom-width: 0;
border-top-color: #999; // IE8 fallback
border-top-color: @popover
A
rrow
O
uter
C
olor;
bottom: -@popover
A
rrow
O
uter
W
idth;
border-top-color: @popover
-a
rrow
-o
uter
-c
olor;
bottom: -@popover
-a
rrow
-o
uter
-w
idth;
&:after {
bottom: 1px;
margin-left: -@popover
A
rrow
W
idth;
margin-left: -@popover
-a
rrow
-w
idth;
border-bottom-width: 0;
border-top-color: @popover
A
rrow
C
olor;
border-top-color: @popover
-a
rrow
-c
olor;
}
}
&.right .arrow {
top: 50%;
left: -@popover
A
rrow
O
uter
W
idth;
margin-top: -@popover
A
rrow
O
uter
W
idth;
left: -@popover
-a
rrow
-o
uter
-w
idth;
margin-top: -@popover
-a
rrow
-o
uter
-w
idth;
border-left-width: 0;
border-right-color: #999; // IE8 fallback
border-right-color: @popover
A
rrow
O
uter
C
olor;
border-right-color: @popover
-a
rrow
-o
uter
-c
olor;
&:after {
left: 1px;
bottom: -@popover
A
rrow
W
idth;
bottom: -@popover
-a
rrow
-w
idth;
border-left-width: 0;
border-right-color: @popover
A
rrow
C
olor;
border-right-color: @popover
-a
rrow
-c
olor;
}
}
&.bottom .arrow {
left: 50%;
margin-left: -@popover
A
rrow
O
uter
W
idth;
margin-left: -@popover
-a
rrow
-o
uter
-w
idth;
border-top-width: 0;
border-bottom-color: #999; // IE8 fallback
border-bottom-color: @popover
A
rrow
O
uter
C
olor;
top: -@popover
A
rrow
O
uter
W
idth;
border-bottom-color: @popover
-a
rrow
-o
uter
-c
olor;
top: -@popover
-a
rrow
-o
uter
-w
idth;
&:after {
top: 1px;
margin-left: -@popover
A
rrow
W
idth;
margin-left: -@popover
-a
rrow
-w
idth;
border-top-width: 0;
border-bottom-color: @popover
A
rrow
C
olor;
border-bottom-color: @popover
-a
rrow
-c
olor;
}
}
&.left .arrow {
top: 50%;
right: -@popover
A
rrow
O
uter
W
idth;
margin-top: -@popover
A
rrow
O
uter
W
idth;
right: -@popover
-a
rrow
-o
uter
-w
idth;
margin-top: -@popover
-a
rrow
-o
uter
-w
idth;
border-right-width: 0;
border-left-color: #999; // IE8 fallback
border-left-color: @popover
A
rrow
O
uter
C
olor;
border-left-color: @popover
-a
rrow
-o
uter
-c
olor;
&:after {
right: 1px;
border-right-width: 0;
border-left-color: @popover
A
rrow
C
olor;
bottom: -@popover
A
rrow
W
idth;
border-left-color: @popover
-a
rrow
-c
olor;
bottom: -@popover
-a
rrow
-w
idth;
}
}
...
...
@@ -132,57 +132,57 @@
/*
&.top .arrow {
bottom: -@popover
A
rrow
W
idth;
bottom: -@popover
-a
rrow
-w
idth;
left: 50%;
margin-left: -@popover
A
rrow
W
idth;
border-width: @popover
A
rrow
W
idth @popover
A
rrow
W
idth 0;
//border-top-color: @popover
A
rrow
C
olor;
margin-left: -@popover
-a
rrow
-w
idth;
border-width: @popover
-a
rrow
-w
idth @popover
-a
rrow
-w
idth 0;
//border-top-color: @popover
-a
rrow
-c
olor;
border-top-color: blue;
&:after {
border-width: @popover
A
rrow
O
uter
W
idth @popover
A
rrow
O
uter
W
idth 0;
//border-top-color: @popover
A
rrow
O
uter
C
olor;
border-width: @popover
-a
rrow
-o
uter
-w
idth @popover
-a
rrow
-o
uter
-w
idth 0;
//border-top-color: @popover
-a
rrow
-o
uter
-c
olor;
border-top-color: red;
top: -@popover
A
rrow
W
idth;
top: -@popover
-a
rrow
-w
idth;
//bottom: -1px;
left: -@popover
A
rrow
O
uter
W
idth;
left: -@popover
-a
rrow
-o
uter
-w
idth;
}
}
&.right .arrow {
top: 50%;
left: -@popover
A
rrow
W
idth;
margin-top: -@popover
A
rrow
W
idth;
border-width: @popover
A
rrow
W
idth @popover
A
rrow
W
idth @popover
A
rrow
W
idth 0;
border-right-color: @popover
A
rrow
C
olor;
left: -@popover
-a
rrow
-w
idth;
margin-top: -@popover
-a
rrow
-w
idth;
border-width: @popover
-a
rrow
-w
idth @popover
-a
rrow
-w
idth @popover
-a
rrow
-w
idth 0;
border-right-color: @popover
-a
rrow
-c
olor;
&:after {
border-width: @popover
A
rrow
O
uter
W
idth @popover
A
rrow
O
uter
W
idth @popover
A
rrow
O
uter
W
idth 0;
border-right-color: @popover
A
rrow
O
uter
C
olor;
bottom: -@popover
A
rrow
O
uter
W
idth;
border-width: @popover
-a
rrow
-o
uter
-w
idth @popover
-a
rrow
-o
uter
-w
idth @popover
-a
rrow
-o
uter
-w
idth 0;
border-right-color: @popover
-a
rrow
-o
uter
-c
olor;
bottom: -@popover
-a
rrow
-o
uter
-w
idth;
left: -1px;
}
}
&.bottom .arrow {
top: -@popover
A
rrow
W
idth;
top: -@popover
-a
rrow
-w
idth;
left: 50%;
margin-left: -@popover
A
rrow
W
idth;
border-width: 0 @popover
A
rrow
W
idth @popover
A
rrow
W
idth;
border-bottom-color: @popover
A
rrow
C
olor;
margin-left: -@popover
-a
rrow
-w
idth;
border-width: 0 @popover
-a
rrow
-w
idth @popover
-a
rrow
-w
idth;
border-bottom-color: @popover
-a
rrow
-c
olor;
&:after {
border-width: 0 @popover
A
rrow
O
uter
W
idth @popover
A
rrow
O
uter
W
idth;
border-bottom-color: @popover
A
rrow
O
uter
C
olor;
border-width: 0 @popover
-a
rrow
-o
uter
-w
idth @popover
-a
rrow
-o
uter
-w
idth;
border-bottom-color: @popover
-a
rrow
-o
uter
-c
olor;
top: -1px;
left: -@popover
A
rrow
O
uter
W
idth;
left: -@popover
-a
rrow
-o
uter
-w
idth;
}
}
&.left .arrow {
top: 50%;
right: -@popover
A
rrow
W
idth;
margin-top: -@popover
A
rrow
W
idth;
border-width: @popover
A
rrow
W
idth 0 @popover
A
rrow
W
idth @popover
A
rrow
W
idth;
border-left-color: @popover
A
rrow
C
olor;
right: -@popover
-a
rrow
-w
idth;
margin-top: -@popover
-a
rrow
-w
idth;
border-width: @popover
-a
rrow
-w
idth 0 @popover
-a
rrow
-w
idth @popover
-a
rrow
-w
idth;
border-left-color: @popover
-a
rrow
-c
olor;
&:after {
border-width: @popover
A
rrow
O
uter
W
idth 0 @popover
A
rrow
O
uter
W
idth @popover
A
rrow
O
uter
W
idth;
border-left-color: @popover
A
rrow
O
uter
C
olor;
bottom: -@popover
A
rrow
O
uter
W
idth;
border-width: @popover
-a
rrow
-o
uter
-w
idth 0 @popover
-a
rrow
-o
uter
-w
idth @popover
-a
rrow
-o
uter
-w
idth;
border-left-color: @popover
-a
rrow
-o
uter
-c
olor;
bottom: -@popover
-a
rrow
-o
uter
-w
idth;
right: -1px;
}
}*/
...
...
This diff is collapsed.
Click to expand it.
less/tooltip.less
+
14
-
14
View file @
b8b266ca
...
...
@@ -23,10 +23,10 @@
.tooltip-inner {
max-width: 200px;
padding: 3px 8px;
color: @tooltip
C
olor;
color: @tooltip
-c
olor;
text-align: center;
text-decoration: none;
background-color: @tooltip
B
ackground;
background-color: @tooltip
-b
ackground;
border-radius: @border-radius-base;
}
...
...
@@ -42,29 +42,29 @@
&.top .tooltip-arrow {
bottom: 0;
left: 50%;
margin-left: -@tooltip
A
rrow
W
idth;
border-width: @tooltip
A
rrow
W
idth @tooltip
A
rrow
W
idth 0;
border-top-color: @tooltip
A
rrow
C
olor;
margin-left: -@tooltip
-a
rrow
-w
idth;
border-width: @tooltip
-a
rrow
-w
idth @tooltip
-a
rrow
-w
idth 0;
border-top-color: @tooltip
-a
rrow
-c
olor;
}
&.right .tooltip-arrow {
top: 50%;
left: 0;
margin-top: -@tooltip
A
rrow
W
idth;
border-width: @tooltip
A
rrow
W
idth @tooltip
A
rrow
W
idth @tooltip
A
rrow
W
idth 0;
border-right-color: @tooltip
A
rrow
C
olor;
margin-top: -@tooltip
-a
rrow
-w
idth;
border-width: @tooltip
-a
rrow
-w
idth @tooltip
-a
rrow
-w
idth @tooltip
-a
rrow
-w
idth 0;
border-right-color: @tooltip
-a
rrow
-c
olor;
}
&.left .tooltip-arrow {
top: 50%;
right: 0;
margin-top: -@tooltip
A
rrow
W
idth;
border-width: @tooltip
A
rrow
W
idth 0 @tooltip
A
rrow
W
idth @tooltip
A
rrow
W
idth;
border-left-color: @tooltip
A
rrow
C
olor;
margin-top: -@tooltip
-a
rrow
-w
idth;
border-width: @tooltip
-a
rrow
-w
idth 0 @tooltip
-a
rrow
-w
idth @tooltip
-a
rrow
-w
idth;
border-left-color: @tooltip
-a
rrow
-c
olor;
}
&.bottom .tooltip-arrow {
top: 0;
left: 50%;
margin-left: -@tooltip
A
rrow
W
idth;
border-width: 0 @tooltip
A
rrow
W
idth @tooltip
A
rrow
W
idth;
border-bottom-color: @tooltip
A
rrow
C
olor;
margin-left: -@tooltip
-a
rrow
-w
idth;
border-width: 0 @tooltip
-a
rrow
-w
idth @tooltip
-a
rrow
-w
idth;
border-bottom-color: @tooltip
-a
rrow
-c
olor;
}
}
This diff is collapsed.
Click to expand it.
less/variables.less
+
10
-
10
View file @
b8b266ca
...
...
@@ -229,19 +229,19 @@
// Tooltips and popovers
// -------------------------
@tooltip
C
olor: #fff;
@tooltip
B
ackground: rgba(0,0,0,.9);
@tooltip
A
rrow
W
idth:
5px;
@tooltip
A
rrow
C
olor:
@tooltip
B
ackground;
@tooltip
-c
olor: #fff;
@tooltip
-b
ackground: rgba(0,0,0,.9);
@tooltip
-a
rrow
-w
idth: 5px;
@tooltip
-a
rrow
-c
olor: @tooltip
-b
ackground;
@popover
B
ackground: #fff;
@popover
A
rrow
W
idth:
10px;
@popover
A
rrow
C
olor:
#fff;
@popover
T
itle
B
ackground:
darken(@popover
B
ackground, 3%);
@popover
-b
ackground: #fff;
@popover
-a
rrow
-w
idth: 10px;
@popover
-a
rrow
-c
olor: #fff;
@popover
-t
itle
-b
ackground: darken(@popover
-b
ackground, 3%);
// Special enhancement for popovers
@popover
A
rrow
O
uter
W
idth: @popover
A
rrow
W
idth + 1;
@popover
A
rrow
O
uter
C
olor: rgba(0,0,0,.25);
@popover
-a
rrow
-o
uter
-w
idth: @popover
-a
rrow
-w
idth + 1;
@popover
-a
rrow
-o
uter
-c
olor: rgba(0,0,0,.25);
// Miscellaneous
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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