Switch the twitter view to use a carousel
This commit is contained in:
parent
4480d2d8e2
commit
ad8b72b3aa
3 changed files with 163 additions and 22 deletions
|
@ -1351,8 +1351,15 @@ i.toggle-icon:hover {
|
|||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.tweet-row {
|
||||
min-height: 300px;
|
||||
.landing-page .twitter-tweet {
|
||||
width: 100%;
|
||||
margin: 0px;
|
||||
border: 0px;
|
||||
}
|
||||
|
||||
|
||||
.landing-page .twitter-tweet .author:before {
|
||||
content: "-";
|
||||
}
|
||||
|
||||
.follow-button {
|
||||
|
@ -3936,4 +3943,87 @@ pre.command:before {
|
|||
.form-change input {
|
||||
margin-top: 12px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
/*
|
||||
This is the visible area of you carousel.
|
||||
Set a width here to define how much items are visible.
|
||||
The width can be either fixed in px or flexible in %.
|
||||
Position must be relative!
|
||||
*/
|
||||
.jcarousel {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
margin-left: 30px;
|
||||
margin-right: 30px;
|
||||
}
|
||||
|
||||
.jcarousel-wrapper {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.jcarousel-wrapper .jcarousel-control {
|
||||
font-size: 64px;
|
||||
position: absolute;
|
||||
top: -16px;
|
||||
text-decoration: none !important;
|
||||
}
|
||||
|
||||
.jcarousel-wrapper .jcarousel-control-prev {
|
||||
left: 0px;
|
||||
}
|
||||
|
||||
.jcarousel-wrapper .jcarousel-control-next {
|
||||
right: 0px;
|
||||
}
|
||||
|
||||
/*
|
||||
This is the container of the carousel items.
|
||||
You must ensure that the position is relative or absolute and
|
||||
that the width is big enough to contain all items.
|
||||
*/
|
||||
.jcarousel ul {
|
||||
width: 20000em;
|
||||
position: relative;
|
||||
|
||||
/* Optional, required in this case since it's a <ul> element */
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/*
|
||||
These are the item elements. jCarousel works best, if the items
|
||||
have a fixed width and height (but it's not required).
|
||||
*/
|
||||
.jcarousel li {
|
||||
/* Required only for block elements like <li>'s */
|
||||
float: left;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.jcarousel-page {
|
||||
padding: 10px;
|
||||
text-decoration: none !important;
|
||||
font-size: 18px;
|
||||
color: #aaa;
|
||||
}
|
||||
|
||||
.jcarousel-page.active {
|
||||
color: #428bca;
|
||||
}
|
||||
|
||||
.jcarousel-page:before {
|
||||
content: "\f10c";
|
||||
font-family: FontAwesome;
|
||||
}
|
||||
|
||||
.jcarousel-page.active:before {
|
||||
content: "\f111";
|
||||
font-family: FontAwesome;
|
||||
}
|
||||
|
||||
.jcarousel-pagination {
|
||||
display: block;
|
||||
text-align: center;
|
||||
}
|
Reference in a new issue