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.
101 lines
2.1 KiB
101 lines
2.1 KiB
11 years ago
|
//
|
||
|
// Table views
|
||
|
// --------------------------------------------------
|
||
12 years ago
|
|
||
11 years ago
|
.table-view {
|
||
11 years ago
|
padding: 0;
|
||
11 years ago
|
margin: 0 0 15px 0;
|
||
11 years ago
|
list-style: none; // Remove usual bullet styles from table view
|
||
12 years ago
|
background-color: #fff;
|
||
11 years ago
|
border-top: $border-default;
|
||
|
border-bottom: $border-default;
|
||
11 years ago
|
|
||
|
// Pad each table view item and add dividers
|
||
11 years ago
|
.table-view-cell {
|
||
11 years ago
|
position: relative;
|
||
11 years ago
|
overflow: hidden;
|
||
11 years ago
|
padding: 11px 65px 11px 15px;
|
||
11 years ago
|
border-bottom: $border-default;
|
||
11 years ago
|
|
||
11 years ago
|
// Remove the border from the last table view item
|
||
11 years ago
|
&:last-child {
|
||
|
border-bottom: 0;
|
||
11 years ago
|
}
|
||
11 years ago
|
// If it's a table view of links, make sure the child <a> takes up full table view item tap area (want to avoid selecting child buttons though)
|
||
11 years ago
|
> a:not(.btn) {
|
||
11 years ago
|
position: relative;
|
||
|
display: block;
|
||
11 years ago
|
overflow: hidden;
|
||
11 years ago
|
padding: inherit;
|
||
11 years ago
|
margin: -11px -65px -11px -15px; // Make the entire list item tappable.
|
||
11 years ago
|
color: inherit;
|
||
11 years ago
|
|
||
|
&:active {
|
||
|
background-color: #eee;
|
||
|
}
|
||
11 years ago
|
}
|
||
11 years ago
|
p {
|
||
|
margin: 0;
|
||
|
}
|
||
11 years ago
|
}
|
||
|
|
||
|
// Table view dividers
|
||
|
// --------------------------------------------------
|
||
|
|
||
|
.table-view-divider {
|
||
|
padding-top: 6px;
|
||
|
padding-bottom: 6px;
|
||
11 years ago
|
padding-left: 15px;
|
||
|
margin-top: -1px; // Hides the border of the previous list item
|
||
11 years ago
|
margin-left: 0;
|
||
11 years ago
|
color: #999;
|
||
11 years ago
|
font-weight: $font-weight;
|
||
11 years ago
|
border-top: $border-default;
|
||
|
border-bottom: $border-default;
|
||
11 years ago
|
background-color: #fafafa;
|
||
11 years ago
|
}
|
||
11 years ago
|
}
|
||
|
|
||
11 years ago
|
|
||
11 years ago
|
// Table-views with media (images,avatars, icons)
|
||
11 years ago
|
// --------------------------------------------------
|
||
|
|
||
11 years ago
|
.table-view .media,
|
||
|
.table-view .media-body {
|
||
|
overflow: hidden;
|
||
|
zoom: 1;
|
||
|
}
|
||
|
.table-view .media-object {
|
||
|
&.pull-left {
|
||
|
margin-right: 10px;
|
||
11 years ago
|
}
|
||
11 years ago
|
&.pull-right {
|
||
|
margin-left: 10px;
|
||
11 years ago
|
}
|
||
|
}
|
||
|
|
||
11 years ago
|
|
||
11 years ago
|
// Table-views with buttons, badges and toggles
|
||
11 years ago
|
// --------------------------------------------------
|
||
11 years ago
|
.table-view-cell,
|
||
|
.table-view-cell > a {
|
||
|
> .btn,
|
||
|
> .badge,
|
||
|
> .toggle {
|
||
|
position: absolute;
|
||
|
top: 50%;
|
||
|
right: 15px;
|
||
|
@include transform(translateY(-50%));
|
||
11 years ago
|
}
|
||
|
|
||
11 years ago
|
// If the cell has a chevron, give some more room.
|
||
|
.push-left,
|
||
|
.push-right {
|
||
|
> .btn,
|
||
|
> .badge,
|
||
|
> .toggle {
|
||
|
right: 35px;
|
||
|
}
|
||
|
}
|
||
11 years ago
|
}
|