Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Bug 726853: It's Tabzilla Time for AMO #1030

Closed
wants to merge 1 commit into from

Conversation

l-hedgehog
Copy link
Contributor

Only the impala theme template and styles.

Works locally for the pages I manually checked.

[comments below from @ngokevin]:

This patch changes the AMO/devhub gray tab to be the new slide-down tab global across Mozilla sites (tabzilla).

Requirements

  • Adds required CSS/JS files.
  • Adds an outer-wrapper div to the base Zamboni and base impala templates.
  • Moves the background CSS rule from html to the wrapper so the background slides down with the page
  • Moves 2px border-top rule from the body to the wrapper as per requirements

screen shot 2013-10-08 at 7 39 02 pm

@chuckharmston
Copy link
Contributor

This is probably best for @ngokevin to review?

@@ -5,15 +5,12 @@
}

html, body {
.height-calc(~'100% - 2px', 100%);
height: 100%;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is to offset the 2px border

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please keep this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per http://bedrock.readthedocs.org/en/latest/tabzilla.html#requirements

An element other than the <body> should add a 2 pixel white border to the top of the page (border-top: 2px solid #fff;)

I move this border to #outer-wrapper

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's gotta be a better way to do this than adding another element - consider using :before/:after on html/body

@cvan
Copy link
Contributor

cvan commented Aug 22, 2013

please fix up all the indentation - not sure what changed in those blocks

@l-hedgehog
Copy link
Contributor Author

Also you can see https://github.com/mozilla/zamboni/pull/1030/files?w=1 for the non-whitespace changes

@cvan
Copy link
Contributor

cvan commented Aug 27, 2013

what about the Developer Hub pages?

@l-hedgehog
Copy link
Contributor Author

If adding extra #outer-wrapper is okay, I'll update the PR to include non-impala theme in a few days

@clouserw
Copy link
Member

@l-hedgehog do you have any open questions on this? Trying to make sure we're not holding this up

@l-hedgehog
Copy link
Contributor Author

@clouserw no, just got distracted from this, I'll update the PR before next week.

@@ -18,6 +18,9 @@
rel="search" type="application/opensearchdescription+xml"
href="{{ url('amo.opensearch') }}" />

{% block tabzilla_css %}
<link href="//mozorg.cdn.mozilla.net/media/css/tabzilla-min.css" rel="stylesheet" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't need the trailing slash.

<link href="//mozorg.cdn.mozilla.net/media/css/tabzilla-min.css" rel="stylesheet">

Also don't really need the tabzilla_css and tabzilla_js jinja blocks since there's no where right now where we are overriding.

@ngokevin
Copy link
Contributor

ngokevin commented Oct 9, 2013

Address the comments, fix the merge conflicts, and I'll merge it in. Thanks @l-hedgehog, safe travels.

@@ -1217,6 +1217,8 @@ def JINJA_CONFIG():
CSP_ALLOW = ("'self'",)
CSP_IMG_SRC = ("'self'", STATIC_URL,
"https://www.google.com", # Recaptcha comes from google
"https://mozorg.cdn.mozilla.net", # Tabzilla
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

two spaces, not one, before the #

@vinyll
Copy link
Contributor

vinyll commented Oct 11, 2013

Here's a proposal considering reviews: #1244

@l-hedgehog
Copy link
Contributor Author

@ngokevin, sorry, still recovering from jetlag ...

@ngokevin ngokevin closed this Oct 14, 2013
@l-hedgehog l-hedgehog deleted the bug-726853-tabzilla branch October 18, 2013 00:33
@l-hedgehog
Copy link
Contributor Author

Spent most of my spare time sleeping during the last week, thanks for stepping in and getting this done, @vinyll and @ngokevin.

@ngokevin
Copy link
Contributor

Np, thank you. And good morning 🌅

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
6 participants