Skip to content
This repository has been archived by the owner on Dec 22, 2021. It is now read-only.

Commit

Permalink
Merge pull request #107 from mozilla/development
Browse files Browse the repository at this point in the history
Image alignment and float fixes
  • Loading branch information
rossbruniges committed Oct 23, 2012
2 parents 0641fc5 + b031f5a commit 457e8d8
Show file tree
Hide file tree
Showing 11 changed files with 47 additions and 45 deletions.
26 changes: 13 additions & 13 deletions media/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

.page-block {
margin-bottom: 2em;
overflow: hidden;
}

footer {
Expand Down Expand Up @@ -242,7 +243,7 @@ h4 {
font-weight: normal;
font-size: .9em;
margin-top: 0px;
margin-bottom: 30px;
margin-bottom: 1em;
line-height: 1.3em;
color: rgba(163,163,163,1);
}
Expand Down Expand Up @@ -437,8 +438,10 @@ a:hover {

h1.maintopic {
text-align: right;
margin-right: 185px;
width: 550px;
margin-right: 0;
margin-top: -20px;
margin-bottom: 2em;
}

.twitter-bio {
Expand Down Expand Up @@ -503,7 +506,7 @@ img.list-thumbnail,
img.list-thumbnail {
float: left;
width: 150px;
margin: 0 .67em .5em 0;
margin: 0 .67em .25em 0;
}

.map-inset-right {
Expand Down Expand Up @@ -611,7 +614,7 @@ article.homepage, article.search-results {
}

aside.homepage, aside.search-results {
padding: 5px 0 0 20px;
padding: 0 0 0 20px;
width: 200px;
float: right;
border-left: 1px solid #cdcdcd;
Expand Down Expand Up @@ -782,12 +785,11 @@ span.category {
margin-bottom: 10px;
}

img#main-logo {
width: 550px;
h1 span.category {
line-height: inherit;
}

h1.maintopic {
margin-right: 0px;
img#main-logo {
width: 550px;
}

Expand Down Expand Up @@ -862,6 +864,8 @@ h1.maintopic {

h1.maintopic {
width: 100%;
margin-right: 0px;
margin-bottom: 1.5em;
}

p.tagline {
Expand Down Expand Up @@ -928,10 +932,6 @@ h1.maintopic {
-moz-columns:1;
}

h1.maintopic {
margin-right: 0px;
}

h2 {
font-size: .9em;
}
Expand Down Expand Up @@ -990,9 +990,9 @@ h1.maintopic {

h1.maintopic {
font-size: .9em;
margin-bottom: 1em;
}


#topbar {
position: relative;
}
Expand Down
2 changes: 1 addition & 1 deletion source/articles/templates/articles/_article_list_item.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{# standard presentation block for an article in list and search results pages #}
<div class="page-block">
<h2>{% include "articles/_article_category_and_tags_overline.html" %}<a href="{{ article.get_absolute_url() }}">{{ article.title }}</a></h2>
{% if article.image %}<img class="list-thumbnail" src="{{ MEDIA_URL }}{{ thumbnail(article.image, "300x200", crop="center") }}" alt="{{ article.title }}">{% endif %}
{% if article.image %}<img class="list-thumbnail" src="{{ MEDIA_URL }}{{ thumbnail(article.image, "300x240", crop="center") }}" alt="{{ article.title }}">{% endif %}
<ul class="link-list link-list-inline">
{% if article.get_live_author_set().exists() %}<li>{% with author_list = article.get_live_author_set() %}{% include "articles/_article_author_list.html" %}{% endwith %}</li>{% endif %}
{% with person_link_list = article.get_live_people_set() %}
Expand Down
3 changes: 2 additions & 1 deletion source/articles/templates/articles/article_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@

{% block article_class %}article-detail{% endblock %}
{% block content %}
<h2>{% include "articles/_article_category_and_tags_overline.html" %}{{ article.title }}</h2>
{% if article.image %}
<div class="image-full-width-wrapper">
<img src="{{ MEDIA_URL }}{{ thumbnail(article.image, "800") }}" alt="{{ article.title }}">
{% if article.pretty_caption %}<p class="caption">{{ article.pretty_caption }}</p>{% endif %}
</div>
{% endif %}

<h2>{% include "articles/_article_category_and_tags_overline.html" %}{{ article.title }}</h2>
<h4>{{ article.subhead }}</h4>

<aside>
Expand Down
4 changes: 1 addition & 3 deletions source/articles/templates/articles/article_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

{% block content %}
{% if section %}
<div class="page-block">
<h1 class="maintopic"><a href="{{ url('article_list_by_section', section.slug) }}">{{ section.name }}</a>{% if category %} / <span class="category">{{ category }}</span>{% endif %}{% if tag %} / <span class="category">{{ tag.name }}</span>{% endif %}</h1>
</div>
<h1 class="maintopic"><a href="{{ url('article_list_by_section', section.slug) }}">{{ section.name }}</a>{% if category %} / <span class="category">{{ category }}</span>{% endif %}{% if tag %} / <span class="category">{{ tag.name }}</span>{% endif %}</h1>
{% endif %}

{% for article in page.object_list %}
Expand Down
4 changes: 1 addition & 3 deletions source/base/templates/search/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
{% block article_class %}search-results{% if page.object_list|length <= 2 or not (person_results or organization_results) %} search-results-single-col{% endif %}{% endblock %}

{% block base_above_article %}
<div class="page-block">
<h1 class="maintopic"><a href="{{ url('haystack_search') }}">Search</a></h1>
</div>
<h1 class="maintopic"><a href="{{ url('haystack_search') }}">Search</a></h1>

<form class="search-form" method="get" action=".">
{{ form.q }}
Expand Down
4 changes: 1 addition & 3 deletions source/code/templates/code/code_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
{% block page_title %}{{ code.name }} - {{ super() }}{% endblock %}

{% block content %}
<div class="page-block">
<h1 class="maintopic"><a href="{{ url('code_list') }}">Code</a></h1>
</div>
<h1 class="maintopic"><a href="{{ url('code_list') }}">Code</a></h1>

<div class="page-block">
<h2 id="code-name">{% include "code/_code_category_and_tags_overline.html" %}{{ code.name }}</h2>
Expand Down
25 changes: 20 additions & 5 deletions source/code/templates/code/code_list.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
{% extends "code/_base_code.html" %}

{% block content %}
<div class="page-block">
<h1 class="maintopic"><a href="{{ url('code_list') }}">Code</a>{% if tag %} / <span class="category">{{ tag.name }}</span>{% endif %}</h1>
</div>
<h1 class="maintopic"><a href="{{ url('code_list') }}">Code</a>{% if tag %} / <span class="category">{{ tag.name }}</span>{% endif %}</h1>

<div id="filterable-list">
{% for alpha in object_list|groupby('sort_letter') %}
{% if tag %}
<div class="grouper-block filter-block">
<h2 class="grouper-header"><span class="category">Code index entries tagged: {{ tag.name }}</span></h2>
{% for code in object_list %}
<div class="grid-box">
<h3><a href="{{ code.get_absolute_url() }}">{{ code.name }}</a></h3>
{% if code.summary_or_description %}<p>{{ code.summary_or_description|safe }}</p>{% endif %}
<ul class="link-list">
{% if code.get_live_organization_set().exists() %}<li><i class="icon-cogs small"></i>{% for organization in code.get_live_organization_set() %}<a class="small" href="{{ organization.get_absolute_url() }}">{{ organization.name }}</a>{% if not loop.last %}, {% endif %}{% endfor %}</li>{% endif %}
{% if code.tags.all().exists() %}<li><i class="icon-tags small"></i>{% for tag in code.tags.all() %}<a class="small" href="{{ url('code_list_by_tag', tag.slug) }}">{{ tag }}</a>{% if not loop.last %}, {% endif %}{% endfor %}</li>{% endif %}
</ul>
</div>
{% endfor %}
</div>
{% else %}
{% for alpha in object_list|groupby('sort_letter') %}
<div class="grouper-block filter-block">
<h2 class="grouper-header"><span class="category">{{ alpha.grouper }}</span></h2>
{% for code in alpha.list %}
Expand All @@ -20,7 +33,9 @@ <h3><a href="{{ code.get_absolute_url() }}">{{ code.name }}</a></h3>
</div>
{% endfor %}
</div>
{% endfor %}
{% endfor %}

{% endif %}
</div>
{% endblock content %}

Expand Down
4 changes: 1 addition & 3 deletions source/people/templates/people/organization_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
{% block page_title %}{{ organization.name }} - {{ super() }}{% endblock %}

{% block content %}
<div class="page-block">
<h1 class="maintopic"><a href="{{ url('organization_list') }}">Organizations</a></h1>
</div>
<h1 class="maintopic"><a href="{{ url('organization_list') }}">Organizations</a></h1>

<div class="page-block item-detail">
<h2>{{ organization.name }}</h2>
Expand Down
8 changes: 3 additions & 5 deletions source/people/templates/people/organization_list.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
{% extends "people/_base_organizations.html" %}

{% block content %}
<div class="page-block">
<h1 class="maintopic">
<a href="{{ url('person_list') }}">People</a> / <span class="category">Organizations</span>
</h1>
</div>
<h1 class="maintopic">
<a href="{{ url('person_list') }}">People</a> / <span class="category">Organizations</span>
</h1>

<div id="filterable-list">
{% for alpha in object_list|groupby('sort_letter') %}
Expand Down
4 changes: 1 addition & 3 deletions source/people/templates/people/person_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
{% block page_title %}{{ person.name() }} - {{ super() }}{% endblock %}

{% block content %}
<div class="page-block">
<h1 class="maintopic"><a href="{{ url('person_list') }}">People</a></h1>
</div>
<h1 class="maintopic"><a href="{{ url('person_list') }}">People</a></h1>

<div class="page-block">
<h2 id="person-name">{{ person.name() }}</h2>
Expand Down
8 changes: 3 additions & 5 deletions source/people/templates/people/person_list.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
{% extends "people/_base_people.html" %}

{% block content %}
<div class="page-block">
<h1 class="maintopic">
<span class="category">People</span> / <a href="{{ url('organization_list') }}">Organizations</a>
</h1>
</div>
<h1 class="maintopic">
<span class="category">People</span> / <a href="{{ url('organization_list') }}">Organizations</a>
</h1>

<div id="filterable-list">
{% for alpha in object_list|groupby('sort_letter') %}
Expand Down

0 comments on commit 457e8d8

Please sign in to comment.