mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-20 20:00:36 +03:00
use variablef or wells background-color, update docs for glyphicons license mention, update popovers to remove that thick border and make them look mo betta
This commit is contained in:
+42
-10
@@ -509,37 +509,69 @@
|
||||
// -------------------------
|
||||
// For tipsies and popovers
|
||||
#popoverArrow {
|
||||
.top(@arrowWidth: 5px, @color: @black) {
|
||||
bottom: 0;
|
||||
.top(@arrowWidth: 10px, @color: rgba(0,0,0,.2)) {
|
||||
bottom: -@arrowWidth;
|
||||
left: 50%;
|
||||
margin-left: -@arrowWidth;
|
||||
border-left: @arrowWidth solid transparent;
|
||||
border-right: @arrowWidth solid transparent;
|
||||
border-top: @arrowWidth solid #ccc;
|
||||
border-top: @arrowWidth solid @color;
|
||||
&:after {
|
||||
border-left: @arrowWidth - 1 solid transparent;
|
||||
border-right: @arrowWidth - 1 solid transparent;
|
||||
border-top: @arrowWidth - 1 solid #fff;
|
||||
bottom: 1px;
|
||||
left: -@arrowWidth + 1;
|
||||
}
|
||||
}
|
||||
.left(@arrowWidth: 5px, @color: @black) {
|
||||
.right(@arrowWidth: 10px, @color: rgba(0,0,0,.2)) {
|
||||
top: 50%;
|
||||
right: 0;
|
||||
left: -@arrowWidth;
|
||||
margin-top: -@arrowWidth;
|
||||
border-top: @arrowWidth solid transparent;
|
||||
border-bottom: @arrowWidth solid transparent;
|
||||
border-left: @arrowWidth solid @color;
|
||||
border-right: @arrowWidth solid #ccc;
|
||||
border-right: @arrowWidth solid @color;
|
||||
&:after {
|
||||
border-top: @arrowWidth - 1 solid transparent;
|
||||
border-bottom: @arrowWidth - 1 solid transparent;
|
||||
border-right: @arrowWidth - 1 solid #fff;
|
||||
bottom: -@arrowWidth + 1;
|
||||
left: 1px;
|
||||
}
|
||||
}
|
||||
.bottom(@arrowWidth: 5px, @color: @black) {
|
||||
top: 0;
|
||||
.bottom(@arrowWidth: 10px, @color: rgba(0,0,0,.2)) {
|
||||
top: -@arrowWidth;
|
||||
left: 50%;
|
||||
margin-left: -@arrowWidth;
|
||||
border-left: @arrowWidth solid transparent;
|
||||
border-right: @arrowWidth solid transparent;
|
||||
border-bottom: @arrowWidth solid #ccc;
|
||||
border-bottom: @arrowWidth solid @color;
|
||||
&:after {
|
||||
border-left: @arrowWidth - 1 solid transparent;
|
||||
border-right: @arrowWidth - 1 solid transparent;
|
||||
border-bottom: @arrowWidth - 1 solid #f5f5f5;
|
||||
top: 1px;
|
||||
left: -@arrowWidth + 1;
|
||||
}
|
||||
}
|
||||
.right(@arrowWidth: 5px, @color: @black) {
|
||||
.left(@arrowWidth: 10px, @color: rgba(0,0,0,.2)) {
|
||||
top: 50%;
|
||||
left: 0;
|
||||
right: -@arrowWidth;
|
||||
margin-top: -@arrowWidth;
|
||||
border-top: @arrowWidth solid transparent;
|
||||
border-bottom: @arrowWidth solid transparent;
|
||||
border-right: @arrowWidth solid @color;
|
||||
border-left: @arrowWidth solid #ccc;
|
||||
border-left: @arrowWidth solid @color;
|
||||
&:after {
|
||||
border-top: @arrowWidth - 1 solid transparent;
|
||||
border-bottom: @arrowWidth - 1 solid transparent;
|
||||
border-left: @arrowWidth - 1 solid #fff;
|
||||
bottom: -@arrowWidth + 1;
|
||||
right: 1px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user