--- /dev/null
+$module: ".tweets";
+
+#{$module} {
+
+ list-style-type: none;
+ margin: 0;
+ padding: 0;
+
+ &__tweet {
+
+ @include margin-bottom(1);
+
+ }
+
+ &__tweet-image {
+
+ width: 100%;
+ border-radius: 10px;
+
+ }
+
+ &__tweet-content {
+
+ text-align: left;
+
+ }
+
+ &__tweet-author {
+
+ margin: 0;
+ @include margin-bottom(.5);
+ color: white;
+ @include typeface(sans-serif);
+ @include font-size(m);
+ font-weight: weight(regular);
+
+ a {
+ display: inline-block;
+ @include margin-left(.5);
+ color: white;
+
+ &:hover {
+ color: $color-main;
+ }
+ }
+
+ span {
+ display: inline-block;
+ @include margin-left(.5);
+ font-weight: weight(light);
+ }
+
+ }
+
+ &__tweet-body {
+
+ @include typeface(sans-serif);
+ @include font-size(m);
+ font-weight: weight(light);
+ a {
+ display: inline-block;
+ @include margin-right(.25);
+ color: white;
+ font-weight: weight(regular);
+
+ &:hover {
+ color: $color-main;
+ }
+ }
+
+ }
+
+}
{% tweets_default as tweets %}
{% if tweets %}
-<h3>{% trans "Recent Tweets" %}</h3>
-<ul class="list-unstyled tweets">
+<ul class="tweets">
{% for tweet in tweets %}
- <li class="tweet">
- <img class="pull-left tweeter-image" src="{{ tweet.profile_image_url|cut:"http:" }}" alt="{{ tweet.full_name }}">
- <h4>{{ tweet.full_name }} <small><a href="http://twitter.com/{{ tweet.user_name }}" title="{{ tweet.full_name }}">@{{ tweet.user_name }}</a></small></h4>
- {% if tweet.is_retweet %}
- <h6><span class="glyphicon glyphicon-retweet"></span>
- <a href="http://twitter.com/{{ tweet.retweeter_user_name }}" title="{{ tweet.retweeter_full_name }}">{{ tweet.retweeter_full_name }}</a></h6>
- {% endif %}
- <p>{{ tweet.text|safe }}<br>
- <small class="timespan">
- {% blocktrans with sometime=tweet.created_at|timesince %}{{ sometime }} ago{% endblocktrans %}
- <a href="http://twitter.com/{{ tweet.user_name }}/status/{{ tweet.remote_id }}"><span class="glyphicon glyphicon-new-window"></span></a>
- </small></p>
+ <li class="tweets__tweet">
+ <div class="col-sm-3">
+ <img class="tweets__tweet-image" src="{{ tweet.profile_image_url|cut:"http:" }}" alt="{{ tweet.full_name }}">
+ </div>
+ <div class="col-sm-13 tweets__tweet-content">
+ <h4 class="tweets__tweet-author">
+ {{ tweet.full_name }} <a href="http://twitter.com/{{ tweet.user_name }}" title="{{ tweet.full_name }}">@{{ tweet.user_name }}</a>
+ <span>{% blocktrans with sometime=tweet.created_at|timesince %}{{ sometime }} ago{% endblocktrans %}</span>
+ </h4>
+ <p class="tweets__tweet-body">
+ {{ tweet.text|safe }}<br>
+ {% comment %}
+ <a href="http://twitter.com/{{ tweet.user_name }}/status/{{ tweet.remote_id }}"></a>
+ {% endcomment %}
+ </p>
+ </div>
</li>
{% endfor %}
</ul>