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
b8b266ca
Commit
b8b266ca
authored
Nov 30, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
popovers and tooltips vars
parent
e34b3730
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
107 additions
and
107 deletions
+107
-107
docs/assets/css/bootstrap.css
docs/assets/css/bootstrap.css
+29
-29
less/popovers.less
less/popovers.less
+54
-54
less/tooltip.less
less/tooltip.less
+14
-14
less/variables.less
less/variables.less
+10
-10
No files found.
docs/assets/css/bootstrap.css
View file @
b8b266ca
...
...
@@ -4663,57 +4663,57 @@ input[type="button"].btn-block {
.popover
{
/*
&.top .arrow {
bottom: -@popover
ArrowW
idth;
bottom: -@popover
-arrow-w
idth;
left: 50%;
margin-left: -@popover
ArrowW
idth;
border-width: @popover
ArrowWidth @popoverArrowW
idth 0;
//border-top-color: @popover
ArrowC
olor;
margin-left: -@popover
-arrow-w
idth;
border-width: @popover
-arrow-width @popover-arrow-w
idth 0;
//border-top-color: @popover
-arrow-c
olor;
border-top-color: blue;
&:after {
border-width: @popover
ArrowOuterWidth @popoverArrowOuterW
idth 0;
//border-top-color: @popover
ArrowOuterC
olor;
border-width: @popover
-arrow-outer-width @popover-arrow-outer-w
idth 0;
//border-top-color: @popover
-arrow-outer-c
olor;
border-top-color: red;
top: -@popover
ArrowW
idth;
top: -@popover
-arrow-w
idth;
//bottom: -1px;
left: -@popover
ArrowOuterW
idth;
left: -@popover
-arrow-outer-w
idth;
}
}
&.right .arrow {
top: 50%;
left: -@popover
ArrowW
idth;
margin-top: -@popover
ArrowW
idth;
border-width: @popover
ArrowWidth @popoverArrowWidth @popoverArrowW
idth 0;
border-right-color: @popover
ArrowC
olor;
left: -@popover
-arrow-w
idth;
margin-top: -@popover
-arrow-w
idth;
border-width: @popover
-arrow-width @popover-arrow-width @popover-arrow-w
idth 0;
border-right-color: @popover
-arrow-c
olor;
&:after {
border-width: @popover
ArrowOuterWidth @popoverArrowOuterWidth @popoverArrowOuterW
idth 0;
border-right-color: @popover
ArrowOuterC
olor;
bottom: -@popover
ArrowOuterW
idth;
border-width: @popover
-arrow-outer-width @popover-arrow-outer-width @popover-arrow-outer-w
idth 0;
border-right-color: @popover
-arrow-outer-c
olor;
bottom: -@popover
-arrow-outer-w
idth;
left: -1px;
}
}
&.bottom .arrow {
top: -@popover
ArrowW
idth;
top: -@popover
-arrow-w
idth;
left: 50%;
margin-left: -@popover
ArrowW
idth;
border-width: 0 @popover
ArrowWidth @popoverArrowW
idth;
border-bottom-color: @popover
ArrowC
olor;
margin-left: -@popover
-arrow-w
idth;
border-width: 0 @popover
-arrow-width @popover-arrow-w
idth;
border-bottom-color: @popover
-arrow-c
olor;
&:after {
border-width: 0 @popover
ArrowOuterWidth @popoverArrowOuterW
idth;
border-bottom-color: @popover
ArrowOuterC
olor;
border-width: 0 @popover
-arrow-outer-width @popover-arrow-outer-w
idth;
border-bottom-color: @popover
-arrow-outer-c
olor;
top: -1px;
left: -@popover
ArrowOuterW
idth;
left: -@popover
-arrow-outer-w
idth;
}
}
&.left .arrow {
top: 50%;
right: -@popover
ArrowW
idth;
margin-top: -@popover
ArrowW
idth;
border-width: @popover
ArrowWidth 0 @popoverArrowWidth @popoverArrowW
idth;
border-left-color: @popover
ArrowC
olor;
right: -@popover
-arrow-w
idth;
margin-top: -@popover
-arrow-w
idth;
border-width: @popover
-arrow-width 0 @popover-arrow-width @popover-arrow-w
idth;
border-left-color: @popover
-arrow-c
olor;
&:after {
border-width: @popover
ArrowOuterWidth 0 @popoverArrowOuterWidth @popoverArrowOuterW
idth;
border-left-color: @popover
ArrowOuterC
olor;
bottom: -@popover
ArrowOuterW
idth;
border-width: @popover
-arrow-outer-width 0 @popover-arrow-outer-width @popover-arrow-outer-w
idth;
border-left-color: @popover
-arrow-outer-c
olor;
bottom: -@popover
-arrow-outer-w
idth;
right: -1px;
}
}*/
...
...
less/popovers.less
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
TitleB
ackground;
border-bottom: 1px solid darken(@popover
TitleB
ackground, 5%);
background-color: @popover
-title-b
ackground;
border-bottom: 1px solid darken(@popover
-title-b
ackground, 5%);
border-radius: 5px 5px 0 0;
}
...
...
@@ -62,69 +62,69 @@
border-style: solid;
}
.popover .arrow {
border-width: @popover
ArrowOuterW
idth;
border-width: @popover
-arrow-outer-w
idth;
}
.popover .arrow:after {
border-width: @popover
ArrowW
idth;
border-width: @popover
-arrow-w
idth;
content: "";
}
.popover {
&.top .arrow {
left: 50%;
margin-left: -@popover
ArrowOuterW
idth;
margin-left: -@popover
-arrow-outer-w
idth;
border-bottom-width: 0;
border-top-color: #999; // IE8 fallback
border-top-color: @popover
ArrowOuterC
olor;
bottom: -@popover
ArrowOuterW
idth;
border-top-color: @popover
-arrow-outer-c
olor;
bottom: -@popover
-arrow-outer-w
idth;
&:after {
bottom: 1px;
margin-left: -@popover
ArrowW
idth;
margin-left: -@popover
-arrow-w
idth;
border-bottom-width: 0;
border-top-color: @popover
ArrowC
olor;
border-top-color: @popover
-arrow-c
olor;
}
}
&.right .arrow {
top: 50%;
left: -@popover
ArrowOuterW
idth;
margin-top: -@popover
ArrowOuterW
idth;
left: -@popover
-arrow-outer-w
idth;
margin-top: -@popover
-arrow-outer-w
idth;
border-left-width: 0;
border-right-color: #999; // IE8 fallback
border-right-color: @popover
ArrowOuterC
olor;
border-right-color: @popover
-arrow-outer-c
olor;
&:after {
left: 1px;
bottom: -@popover
ArrowW
idth;
bottom: -@popover
-arrow-w
idth;
border-left-width: 0;
border-right-color: @popover
ArrowC
olor;
border-right-color: @popover
-arrow-c
olor;
}
}
&.bottom .arrow {
left: 50%;
margin-left: -@popover
ArrowOuterW
idth;
margin-left: -@popover
-arrow-outer-w
idth;
border-top-width: 0;
border-bottom-color: #999; // IE8 fallback
border-bottom-color: @popover
ArrowOuterC
olor;
top: -@popover
ArrowOuterW
idth;
border-bottom-color: @popover
-arrow-outer-c
olor;
top: -@popover
-arrow-outer-w
idth;
&:after {
top: 1px;
margin-left: -@popover
ArrowW
idth;
margin-left: -@popover
-arrow-w
idth;
border-top-width: 0;
border-bottom-color: @popover
ArrowC
olor;
border-bottom-color: @popover
-arrow-c
olor;
}
}
&.left .arrow {
top: 50%;
right: -@popover
ArrowOuterW
idth;
margin-top: -@popover
ArrowOuterW
idth;
right: -@popover
-arrow-outer-w
idth;
margin-top: -@popover
-arrow-outer-w
idth;
border-right-width: 0;
border-left-color: #999; // IE8 fallback
border-left-color: @popover
ArrowOuterC
olor;
border-left-color: @popover
-arrow-outer-c
olor;
&:after {
right: 1px;
border-right-width: 0;
border-left-color: @popover
ArrowC
olor;
bottom: -@popover
ArrowW
idth;
border-left-color: @popover
-arrow-c
olor;
bottom: -@popover
-arrow-w
idth;
}
}
...
...
@@ -132,57 +132,57 @@
/*
&.top .arrow {
bottom: -@popover
ArrowW
idth;
bottom: -@popover
-arrow-w
idth;
left: 50%;
margin-left: -@popover
ArrowW
idth;
border-width: @popover
ArrowWidth @popoverArrowW
idth 0;
//border-top-color: @popover
ArrowC
olor;
margin-left: -@popover
-arrow-w
idth;
border-width: @popover
-arrow-width @popover-arrow-w
idth 0;
//border-top-color: @popover
-arrow-c
olor;
border-top-color: blue;
&:after {
border-width: @popover
ArrowOuterWidth @popoverArrowOuterW
idth 0;
//border-top-color: @popover
ArrowOuterC
olor;
border-width: @popover
-arrow-outer-width @popover-arrow-outer-w
idth 0;
//border-top-color: @popover
-arrow-outer-c
olor;
border-top-color: red;
top: -@popover
ArrowW
idth;
top: -@popover
-arrow-w
idth;
//bottom: -1px;
left: -@popover
ArrowOuterW
idth;
left: -@popover
-arrow-outer-w
idth;
}
}
&.right .arrow {
top: 50%;
left: -@popover
ArrowW
idth;
margin-top: -@popover
ArrowW
idth;
border-width: @popover
ArrowWidth @popoverArrowWidth @popoverArrowW
idth 0;
border-right-color: @popover
ArrowC
olor;
left: -@popover
-arrow-w
idth;
margin-top: -@popover
-arrow-w
idth;
border-width: @popover
-arrow-width @popover-arrow-width @popover-arrow-w
idth 0;
border-right-color: @popover
-arrow-c
olor;
&:after {
border-width: @popover
ArrowOuterWidth @popoverArrowOuterWidth @popoverArrowOuterW
idth 0;
border-right-color: @popover
ArrowOuterC
olor;
bottom: -@popover
ArrowOuterW
idth;
border-width: @popover
-arrow-outer-width @popover-arrow-outer-width @popover-arrow-outer-w
idth 0;
border-right-color: @popover
-arrow-outer-c
olor;
bottom: -@popover
-arrow-outer-w
idth;
left: -1px;
}
}
&.bottom .arrow {
top: -@popover
ArrowW
idth;
top: -@popover
-arrow-w
idth;
left: 50%;
margin-left: -@popover
ArrowW
idth;
border-width: 0 @popover
ArrowWidth @popoverArrowW
idth;
border-bottom-color: @popover
ArrowC
olor;
margin-left: -@popover
-arrow-w
idth;
border-width: 0 @popover
-arrow-width @popover-arrow-w
idth;
border-bottom-color: @popover
-arrow-c
olor;
&:after {
border-width: 0 @popover
ArrowOuterWidth @popoverArrowOuterW
idth;
border-bottom-color: @popover
ArrowOuterC
olor;
border-width: 0 @popover
-arrow-outer-width @popover-arrow-outer-w
idth;
border-bottom-color: @popover
-arrow-outer-c
olor;
top: -1px;
left: -@popover
ArrowOuterW
idth;
left: -@popover
-arrow-outer-w
idth;
}
}
&.left .arrow {
top: 50%;
right: -@popover
ArrowW
idth;
margin-top: -@popover
ArrowW
idth;
border-width: @popover
ArrowWidth 0 @popoverArrowWidth @popoverArrowW
idth;
border-left-color: @popover
ArrowC
olor;
right: -@popover
-arrow-w
idth;
margin-top: -@popover
-arrow-w
idth;
border-width: @popover
-arrow-width 0 @popover-arrow-width @popover-arrow-w
idth;
border-left-color: @popover
-arrow-c
olor;
&:after {
border-width: @popover
ArrowOuterWidth 0 @popoverArrowOuterWidth @popoverArrowOuterW
idth;
border-left-color: @popover
ArrowOuterC
olor;
bottom: -@popover
ArrowOuterW
idth;
border-width: @popover
-arrow-outer-width 0 @popover-arrow-outer-width @popover-arrow-outer-w
idth;
border-left-color: @popover
-arrow-outer-c
olor;
bottom: -@popover
-arrow-outer-w
idth;
right: -1px;
}
}*/
...
...
less/tooltip.less
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
ArrowW
idth;
border-width: @tooltip
ArrowWidth @tooltipArrowW
idth 0;
border-top-color: @tooltip
ArrowC
olor;
margin-left: -@tooltip
-arrow-w
idth;
border-width: @tooltip
-arrow-width @tooltip-arrow-w
idth 0;
border-top-color: @tooltip
-arrow-c
olor;
}
&.right .tooltip-arrow {
top: 50%;
left: 0;
margin-top: -@tooltip
ArrowW
idth;
border-width: @tooltip
ArrowWidth @tooltipArrowWidth @tooltipArrowW
idth 0;
border-right-color: @tooltip
ArrowC
olor;
margin-top: -@tooltip
-arrow-w
idth;
border-width: @tooltip
-arrow-width @tooltip-arrow-width @tooltip-arrow-w
idth 0;
border-right-color: @tooltip
-arrow-c
olor;
}
&.left .tooltip-arrow {
top: 50%;
right: 0;
margin-top: -@tooltip
ArrowW
idth;
border-width: @tooltip
ArrowWidth 0 @tooltipArrowWidth @tooltipArrowW
idth;
border-left-color: @tooltip
ArrowC
olor;
margin-top: -@tooltip
-arrow-w
idth;
border-width: @tooltip
-arrow-width 0 @tooltip-arrow-width @tooltip-arrow-w
idth;
border-left-color: @tooltip
-arrow-c
olor;
}
&.bottom .tooltip-arrow {
top: 0;
left: 50%;
margin-left: -@tooltip
ArrowW
idth;
border-width: 0 @tooltip
ArrowWidth @tooltipArrowW
idth;
border-bottom-color: @tooltip
ArrowC
olor;
margin-left: -@tooltip
-arrow-w
idth;
border-width: 0 @tooltip
-arrow-width @tooltip-arrow-w
idth;
border-bottom-color: @tooltip
-arrow-c
olor;
}
}
less/variables.less
View file @
b8b266ca
...
...
@@ -229,19 +229,19 @@
// Tooltips and popovers
// -------------------------
@tooltip
C
olor: #fff;
@tooltip
B
ackground: rgba(0,0,0,.9);
@tooltip
ArrowWidth:
5px;
@tooltip
ArrowColor: @tooltipB
ackground;
@tooltip
-c
olor: #fff;
@tooltip
-b
ackground: rgba(0,0,0,.9);
@tooltip
-arrow-width:
5px;
@tooltip
-arrow-color: @tooltip-b
ackground;
@popover
B
ackground: #fff;
@popover
ArrowWidth:
10px;
@popover
ArrowColor:
#fff;
@popover
TitleBackground: darken(@popoverB
ackground, 3%);
@popover
-b
ackground: #fff;
@popover
-arrow-width:
10px;
@popover
-arrow-color:
#fff;
@popover
-title-background: darken(@popover-b
ackground, 3%);
// Special enhancement for popovers
@popover
ArrowOuterWidth: @popoverArrowW
idth + 1;
@popover
ArrowOuterC
olor: rgba(0,0,0,.25);
@popover
-arrow-outer-width: @popover-arrow-w
idth + 1;
@popover
-arrow-outer-c
olor: rgba(0,0,0,.25);
// Miscellaneous
...
...
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