mirror of https://github.com/twbs/ratchet.git
Build mobile apps with simple HTML, CSS, and JS components.
http://goratchet.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
99 lines
2.0 KiB
99 lines
2.0 KiB
11 years ago
|
//
|
||
|
// Popovers (to be used with popovers.js)
|
||
|
// --------------------------------------------------
|
||
12 years ago
|
|
||
|
.popover {
|
||
|
position: fixed;
|
||
|
top: 55px;
|
||
|
left: 50%;
|
||
|
z-index: 20;
|
||
|
display: none;
|
||
|
width: 280px;
|
||
11 years ago
|
margin-left: -140px;
|
||
11 years ago
|
background-color: $chrome-color;
|
||
11 years ago
|
border-radius: $border-radius;
|
||
12 years ago
|
opacity: 0;
|
||
11 years ago
|
box-shadow: 0 0 15px rgba(0, 0, 0, .1);
|
||
11 years ago
|
@include transform(translate3d(0, -15px, 0));
|
||
11 years ago
|
@include transition(all .25s linear);
|
||
12 years ago
|
|
||
11 years ago
|
// Caret on top of popover using CSS triangles (thanks to @chriscoyier for solution)
|
||
11 years ago
|
&:before {
|
||
11 years ago
|
position: absolute;
|
||
11 years ago
|
top: -15px;
|
||
11 years ago
|
left: 50%;
|
||
|
width: 0;
|
||
|
height: 0;
|
||
11 years ago
|
margin-left: -15px;
|
||
|
border-right: 15px solid transparent;
|
||
|
border-bottom: 15px solid $chrome-color;
|
||
|
border-left: 15px solid transparent;
|
||
11 years ago
|
content: '';
|
||
11 years ago
|
}
|
||
12 years ago
|
|
||
11 years ago
|
// Popover transition
|
||
11 years ago
|
// --------------------------------------------------
|
||
12 years ago
|
|
||
11 years ago
|
&.visible {
|
||
|
opacity: 1;
|
||
11 years ago
|
@include transform(translate3d(0, 0, 0));
|
||
11 years ago
|
}
|
||
11 years ago
|
|
||
|
.bar ~ .table-view {
|
||
|
padding-top: $bar-base-height;
|
||
|
}
|
||
12 years ago
|
}
|
||
|
|
||
11 years ago
|
// Backdrop (used as invisible touch escape)
|
||
|
// --------------------------------------------------
|
||
12 years ago
|
|
||
|
.backdrop {
|
||
|
position: fixed;
|
||
|
top: 0;
|
||
|
right: 0;
|
||
|
bottom: 0;
|
||
|
left: 0;
|
||
11 years ago
|
z-index: 15;
|
||
|
background-color: none;
|
||
11 years ago
|
}
|
||
11 years ago
|
|
||
|
// Block level buttons in popovers
|
||
|
// --------------------------------------------------
|
||
|
|
||
|
.popover .btn-block {
|
||
|
margin-bottom: 5px;
|
||
|
|
||
|
// Remove extra margin on bottom of last button
|
||
|
&:last-child {
|
||
|
margin-bottom: 0;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
11 years ago
|
// Popovers with nav bars
|
||
|
// --------------------------------------------------
|
||
|
|
||
|
.popover .bar-nav {
|
||
|
border-bottom: $border-default;
|
||
|
border-radius: 12px 12px 0 0;
|
||
|
@include box-shadow(none);
|
||
|
}
|
||
|
|
||
|
|
||
11 years ago
|
// Table views in popovers
|
||
|
// --------------------------------------------------
|
||
|
|
||
|
.popover .table-view {
|
||
|
width: auto;
|
||
|
max-height: 300px;
|
||
|
margin-right: 0;
|
||
|
margin-bottom: 0;
|
||
|
margin-left: 0;
|
||
|
overflow: auto;
|
||
|
background-color: #fff;
|
||
11 years ago
|
border-top: 0;
|
||
|
border-bottom: 0;
|
||
11 years ago
|
border-radius: $border-radius;
|
||
|
-webkit-overflow-scrolling: touch;
|
||
|
}
|