turn #page > section into section.main so we can wrap things around it

This commit is contained in:
Chris Van 2012-12-19 15:32:20 -08:00
Родитель b4a49f6077
Коммит 86247d521e
18 изменённых файлов: 34 добавлений и 34 удалений

Просмотреть файл

@ -37,7 +37,7 @@
padding-bottom: 5px; padding-bottom: 5px;
} }
} }
#page > section.subheading { #page section.main.subheading {
padding-left: 10px; padding-left: 10px;
margin-top: -20px; margin-top: -20px;
position: relative; position: relative;

Просмотреть файл

@ -4,7 +4,7 @@
margin-bottom: 15px; margin-bottom: 15px;
} }
#page > section:only-child { #page section.main:only-child {
padding: 50px 0; padding: 50px 0;
} }

Просмотреть файл

@ -142,7 +142,7 @@ body[data-page-type='search'] #search {
display: none !important; display: none !important;
} }
.force-mobile #site-header > section, .force-mobile #site-header section.main,
#site-header nav, #site-header nav,
#search { #search {
height: 100%; height: 100%;

Просмотреть файл

@ -130,10 +130,10 @@ body {
} }
.force-mobile { .force-mobile {
#site-header > section { #site-header section.main {
max-width: @desktop-hdr; max-width: @desktop-hdr;
} }
#page > section { #page section.main {
max-width: @desktop-content; max-width: @desktop-content;
} }
#site-footer { #site-footer {

Просмотреть файл

@ -30,7 +30,7 @@
} }
#site-header, .classic-header { #site-header, .classic-header {
> section { section.main {
position: relative; position: relative;
} }
.gradient-two-color(#566773, #3e4e59); .gradient-two-color(#566773, #3e4e59);
@ -55,7 +55,7 @@
z-index: 10; z-index: 10;
} }
nav, nav,
> section { section.main {
position: relative; position: relative;
} }
} }
@ -267,7 +267,7 @@ body.login[data-page-type=notice] #site-header.no-consumer h1 {
@media (min-width: 614px) { @media (min-width: 614px) {
#site-header { #site-header {
> section { section.main {
max-width: 800px; max-width: 800px;
} }
} }

Просмотреть файл

@ -168,7 +168,7 @@
} }
} }
#page > section.popular { #page section.main.popular {
padding-left: 0; padding-left: 0;
padding-right: 0; padding-right: 0;
} }

Просмотреть файл

@ -154,7 +154,7 @@
} }
} }
.force-mobile #page > section#installed { .force-mobile #page section.main#installed {
margin: 15px auto; margin: 15px auto;
} }

Просмотреть файл

@ -116,7 +116,7 @@ body .loading-fragment {
#site-header, #page { #site-header, #page {
min-width: 320px; min-width: 320px;
> section { section.main {
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
&:after { &:after {
@ -136,7 +136,7 @@ body .loading-fragment {
#page { #page {
position: relative; position: relative;
> section { section.main {
&:only-child { &:only-child {
padding-top: 24px; padding-top: 24px;
padding-bottom: 12px; padding-bottom: 12px;
@ -186,8 +186,8 @@ body .loading-fragment {
} }
.force-mobile { .force-mobile {
#site-header > section, #site-header section.main,
#page > section, #page section.main,
#site-footer { #site-footer {
margin: 0 auto; margin: 0 auto;
} }

Просмотреть файл

@ -4,7 +4,7 @@
{% set page_parent = '/' %} {% set page_parent = '/' %}
{% block content %} {% block content %}
<section class="account"> <section class="main account">
{% if request.user.is_authenticated() %} {% if request.user.is_authenticated() %}
{% include 'account/includes/nav.html' %} {% include 'account/includes/nav.html' %}

Просмотреть файл

@ -5,7 +5,7 @@
{% set page_parent = '/' %} {% set page_parent = '/' %}
{% block content %} {% block content %}
<section class="account full"> <section class="main account full">
{% include 'account/includes/nav.html' %} {% include 'account/includes/nav.html' %}
{% if not request.MOBILE %} {% if not request.MOBILE %}
<h2>{{ pagetitle }}</h2> <h2>{{ pagetitle }}</h2>

Просмотреть файл

@ -6,7 +6,7 @@
{% set page_parent = '/' %} {% set page_parent = '/' %}
{% block content %} {% block content %}
<section id="account-settings" class="account"> <section class="main account" id="account-settings">
{% include 'account/includes/nav.html' %} {% include 'account/includes/nav.html' %}
{% if not request.MOBILE %} {% if not request.MOBILE %}
<h2>{{ pagetitle }}</h2> <h2>{{ pagetitle }}</h2>

Просмотреть файл

@ -1,4 +1,4 @@
<section class="categories"> <section class="main categories">
<h2>{{ _('Categories') }}</h2> <h2>{{ _('Categories') }}</h2>
<ul class="grid"> <ul class="grid">
{% for category in categories %} {% for category in categories %}

Просмотреть файл

@ -19,7 +19,7 @@
{% block content %} {% block content %}
{{ mkt_breadcrumbs(product, crumbs, cls='dark') }} {{ mkt_breadcrumbs(product, crumbs, cls='dark') }}
<section id="browse-featured" class="featured full"> <section id="browse-featured" class="main featured full">
<div> <div>
{% if not category %} {% if not category %}
<h1 class="hidden">{{ _('Apps') }}</h1> <h1 class="hidden">{{ _('Apps') }}</h1>
@ -27,11 +27,11 @@
<h2 class="sticky">{{ title if category else _('Featured') }}</h2> <h2 class="sticky">{{ title if category else _('Featured') }}</h2>
</div> </div>
</section> </section>
<section class="featured full slider"> <section class="main featured full slider">
{{ featured|promo_slider(feature=True, src='mkt-category-featured') }} {{ featured|promo_slider(feature=True, src='mkt-category-featured') }}
</section> </section>
{% if popular %} {% if popular %}
<section class="popular subheading full"> <section class="main popular subheading full">
<div> <div>
<h2 class="see-all c"> <h2 class="see-all c">
<a href="{{ request.path|urlparams(category=category.slug or None, <a href="{{ request.path|urlparams(category=category.slug or None,
@ -40,7 +40,7 @@
</h2> </h2>
</div> </div>
</section> </section>
<section class="popular grid full"> <section class="main popular grid full">
{{ popular|promo_grid(src='mkt-category') }} {{ popular|promo_grid(src='mkt-category') }}
</section> </section>
{% else %} {% else %}

Просмотреть файл

@ -44,13 +44,13 @@
{{ notification(product, amo, mkt, is_dev, unrated_brazil_game) }} {{ notification(product, amo, mkt, is_dev, unrated_brazil_game) }}
{% else %} {% else %}
<section class="product-details listing expanded c"> <section class="main product-details listing expanded c">
{{ market_tile(product, link=False, src=request.GET.get('src', 'mkt-detail')) }} {{ market_tile(product, link=False, src=request.GET.get('src', 'mkt-detail')) }}
</section> </section>
{{ notification(product, amo, mkt, is_dev, unrated_brazil_game) }} {{ notification(product, amo, mkt, is_dev, unrated_brazil_game) }}
<section id="installed"> <section class="main" id="installed">
<div> <div>
<p> <p>
{{ _('Installed!') }} {{ _('Installed!') }}
@ -80,7 +80,7 @@
{% set descr_len = product.description.__unicode__()|length if product.description else 0 %} {% set descr_len = product.description.__unicode__()|length if product.description else 0 %}
{% set comments_len = product.developer_comments.__unicode__()|length if product.developer_comments else 0 %} {% set comments_len = product.developer_comments.__unicode__()|length if product.developer_comments else 0 %}
{% set super_long = (summary_len + descr_len + comments_len) > 700 %} {% set super_long = (summary_len + descr_len + comments_len) > 700 %}
<section class="blurbs infobox"> <section class="main blurbs infobox">
<div> <div>
<p class="summary"> <p class="summary">
{{ product.summary|nl2br }} {{ product.summary|nl2br }}
@ -116,7 +116,7 @@
{% include "detail/includes/ratings.html" %} {% include "detail/includes/ratings.html" %}
{% endwith %} {% endwith %}
<section id="support" class="infobox support c"> <section id="support" class="main infobox support c">
<div> <div>
<ul class="c"> <ul class="c">
{% if product.support_email %} {% if product.support_email %}
@ -170,7 +170,7 @@
</section> </section>
{% if content_ratings %} {% if content_ratings %}
<div class="content-ratings infobox c"> <div class="main content-ratings infobox c">
<div> <div>
<h3> <h3>
{% trans DEJUS=mkt.ratingsbodies.DJCTQ.full_name, {% trans DEJUS=mkt.ratingsbodies.DJCTQ.full_name,
@ -190,7 +190,7 @@
{% endif %} {% endif %}
{% if is_dev or is_reviewer %} {% if is_dev or is_reviewer %}
<section class="actions infobox"> <section class="main actions infobox">
<div> <div>
{% if is_dev %} {% if is_dev %}
<p><a href="{{ product.get_dev_url() }}" class="button manage" rel="external">{{ _('Manage') }}</a></p> <p><a href="{{ product.get_dev_url() }}" class="button manage" rel="external">{{ _('Manage') }}</a></p>

Просмотреть файл

@ -2,7 +2,7 @@
{% if not can_review %} {% if not can_review %}
{% set can_review = product.is_persona() and product.is_public() %} {% set can_review = product.is_persona() and product.is_public() %}
{% endif %} {% endif %}
<section class="reviews c"> <section class="main reviews c">
<div id="{% if reviews %}reviews-detail{% else %}reviews{% endif %}"> <div id="{% if reviews %}reviews-detail{% else %}reviews{% endif %}">
{% if reviews %} {% if reviews %}
<ul data-edit-url="{{ product.get_ratings_url('add') }}"> <ul data-edit-url="{{ product.get_ratings_url('add') }}">

Просмотреть файл

@ -39,7 +39,7 @@
{% block content %} {% block content %}
{{ mkt_breadcrumbs(product, crumbs) }} {{ mkt_breadcrumbs(product, crumbs) }}
<section id="filters" class="{{ 'overlay' if mobile }}{{ ' alt' if show_paid }}"> <section id="filters" class="main{{ ' overlay' if mobile }}{{ ' alt' if show_paid }}">
{% if mobile %} {% if mobile %}
<header class="classic-header"> <header class="classic-header">
<a href="#" class="header-button icon back left dismiss"><b></b></a> <a href="#" class="header-button icon back left dismiss"><b></b></a>
@ -103,7 +103,7 @@
</form> </form>
</div> </div>
</section> </section>
<section id="featured" class="creatured full c"> <section id="featured" class="main creatured full c">
{% if featured %} {% if featured %}
<ol class="grid c"> <ol class="grid c">
{% for app in featured %} {% for app in featured %}
@ -114,7 +114,7 @@
</ol> </ol>
{% endif %} {% endif %}
</section> </section>
<section id="search-results" class="full c"> <section id="search-results" class="main full c">
{% if not mobile and not browse and query.q %} {% if not mobile and not browse and query.q %}
<h1>{{ _('Search:') }} {{ query.q }}</h1> <h1>{{ _('Search:') }} {{ query.q }}</h1>
{% endif %} {% endif %}

Просмотреть файл

@ -1,5 +1,5 @@
{% if messages %} {% if messages %}
<section class="notification-box full"> <section class="main notification-box full">
{% for message in messages %} {% for message in messages %}
<div class="{{ message.tags }}"> <div class="{{ message.tags }}">
{# The message is actually formatted inside of `message_content.html`. #} {# The message is actually formatted inside of `message_content.html`. #}

Просмотреть файл

@ -1,5 +1,5 @@
<header id="site-header" class="c{{ ' no-consumer' if not request.can_view_consumer }}"> <header id="site-header" class="c{{ ' no-consumer' if not request.can_view_consumer }}">
<section> <section class="main">
{% if not request.MOBILE %} {% if not request.MOBILE %}
<h1 class="site"><a href="{{ url('home') }}">Firefox Marketplace</a></h1> <h1 class="site"><a href="{{ url('home') }}">Firefox Marketplace</a></h1>
{% endif %} {% endif %}