making sure the styling works no matter where download link is clicked from

pull/1/head
Andromeda Yelton 2012-08-28 10:22:47 -04:00
parent 07c529a715
commit 13171f6472
6 changed files with 337 additions and 47 deletions

View File

@ -5,10 +5,6 @@
— Downloads for {{ work.title }}
{% endblock %}
{% block extra_css %}
<link type="text/css" rel="stylesheet" href="/static/css/download.css" />
{% endblock %}
{% block extra_js %}
<script type="text/javascript" src="/static/js/wishlist.js"></script>
{% endblock %}

View File

@ -400,23 +400,28 @@ ul.tabs li.active a {
width: 50%;
margin: auto;
}
#lightbox a {
#lightbox_content a {
color: #6994a3;
}
.ebook_download {
#lightbox_content h2,
#lightbox_content h3,
#lightbox_content h4 {
margin: 15px auto 5px auto;
}
#lightbox_content .ebook_download {
margin-bottom: 15px;
}
.ebook_download a {
#lightbox_content .ebook_download a {
margin: auto 5px auto 0;
font-size: 15px;
}
.ebook_download img {
#lightbox_content .ebook_download img {
vertical-align: middle;
}
.logo {
#lightbox_content .logo {
font-size: 15px;
}
.logo img {
#lightbox_content .logo img {
-moz-border-radius: 7px;
-webkit-border-radius: 7px;
border-radius: 7px;
@ -427,30 +432,30 @@ ul.tabs li.active a {
width: 50px;
margin-right: 5px;
}
.unglued {
#lightbox_content .unglued {
border: solid 2px #8dc63f;
margin-left: -2px;
padding: 5px;
}
.unglued h3 {
#lightbox_content .unglued h3 {
margin-top: 5px;
}
a.add-wishlist .on-wishlist,
a.success,
#lightbox_content a.add-wishlist .on-wishlist,
#lightbox_content a.success,
a.success:hover {
text-decoration: none;
color: #3d4e53;
}
ul {
padding-left: 50px;
}
ul li {
margin-bottom: 4px;
}
a.success,
#lightbox_content a.success,
a.success:hover {
cursor: default;
}
#lightbox_content ul {
padding-left: 50px;
}
#lightbox_content ul li {
margin-bottom: 4px;
}
/* Common elements of share links -- just swap in the background image */
/* Page layout */
#js-page-wrap {

View File

@ -94,23 +94,28 @@
width: 50%;
margin: auto;
}
#lightbox a {
#lightbox_content a {
color: #6994a3;
}
.ebook_download {
#lightbox_content h2,
#lightbox_content h3,
#lightbox_content h4 {
margin: 15px auto 5px auto;
}
#lightbox_content .ebook_download {
margin-bottom: 15px;
}
.ebook_download a {
#lightbox_content .ebook_download a {
margin: auto 5px auto 0;
font-size: 15px;
}
.ebook_download img {
#lightbox_content .ebook_download img {
vertical-align: middle;
}
.logo {
#lightbox_content .logo {
font-size: 15px;
}
.logo img {
#lightbox_content .logo img {
-moz-border-radius: 7px;
-webkit-border-radius: 7px;
border-radius: 7px;
@ -118,27 +123,27 @@
width: 50px;
margin-right: 5px;
}
.unglued {
#lightbox_content .unglued {
border: solid 2px #8dc63f;
margin-left: -2px;
padding: 5px;
}
.unglued h3 {
#lightbox_content .unglued h3 {
margin-top: 5px;
}
a.add-wishlist .on-wishlist,
a.success,
#lightbox_content a.add-wishlist .on-wishlist,
#lightbox_content a.success,
a.success:hover {
text-decoration: none;
color: #3d4e53;
}
ul {
padding-left: 50px;
}
ul li {
margin-bottom: 4px;
}
a.success,
#lightbox_content a.success,
a.success:hover {
cursor: default;
}
#lightbox_content ul {
padding-left: 50px;
}
#lightbox_content ul li {
margin-bottom: 4px;
}

View File

@ -19,6 +19,9 @@
-moz-border-radius: 7px;
-webkit-border-radius: 7px;
border-radius: 7px;
-moz-border-radius: 7px;
-webkit-border-radius: 7px;
border-radius: 7px;
padding: 1px;
color: #fff;
margin: 0 8px 0 0;
@ -30,6 +33,9 @@
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
text-align: center;
display: inline-block;
}
@ -47,6 +53,8 @@
padding: 14px 0;
}
.google_signup_div div {
height: 24px;
line-height: 24px;
height: 24px;
line-height: 24px;
float: left;
@ -61,10 +69,15 @@
width: auto;
height: 36px;
line-height: 36px;
height: 36px;
line-height: 36px;
background: #8dc63f;
-moz-border-radius: 32px;
-webkit-border-radius: 32px;
border-radius: 32px;
-moz-border-radius: 32px;
-webkit-border-radius: 32px;
border-radius: 32px;
color: white;
cursor: pointer;
font-size: 13px;
@ -74,6 +87,9 @@
margin: 5px 0;
}
.errors {
-moz-border-radius: 16px 16px 0 0;
-webkit-border-radius: 16px 16px 0 0;
border-radius: 16px 16px 0 0;
-moz-border-radius: 16px 16px 0 0;
-webkit-border-radius: 16px 16px 0 0;
border-radius: 16px 16px 0 0;
@ -91,12 +107,183 @@
list-style: none;
border: none;
}
/* variables and mixins used in multiple less files go here */
.header-text {
height: 36px;
line-height: 36px;
display: block;
text-decoration: none;
font-weight: bold;
font-size: 13px;
letter-spacing: -0.05em;
}
.panelborders {
border-width: 1px 0px;
border-style: solid none;
border-color: #FFFFFF;
}
.roundedspan {
border: 1px solid #d4d4d4;
-moz-border-radius: 7px;
-webkit-border-radius: 7px;
border-radius: 7px;
-moz-border-radius: 7px;
-webkit-border-radius: 7px;
border-radius: 7px;
padding: 1px;
color: #fff;
margin: 0 8px 0 0;
display: inline-block;
}
.roundedspan > span {
padding: 7px 7px;
min-width: 15px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
text-align: center;
display: inline-block;
}
.roundedspan > span .hovertext {
display: none;
}
.roundedspan > span:hover .hovertext {
display: inline;
}
.mediaborder {
padding: 5px;
border: solid 5px #EDF3F4;
}
.google_signup_div {
padding: 14px 0;
}
.google_signup_div div {
height: 24px;
line-height: 24px;
height: 24px;
line-height: 24px;
float: left;
padding-left: 5px;
}
.google_signup_div img {
float: left;
height: 24px;
width: 24px;
}
.actionbuttons {
width: auto;
height: 36px;
line-height: 36px;
height: 36px;
line-height: 36px;
background: #8dc63f;
-moz-border-radius: 32px;
-webkit-border-radius: 32px;
border-radius: 32px;
-moz-border-radius: 32px;
-webkit-border-radius: 32px;
border-radius: 32px;
color: white;
cursor: pointer;
font-size: 13px;
font-weight: bold;
padding: 0 15px;
border: none;
margin: 5px 0;
}
.errors {
-moz-border-radius: 16px 16px 0 0;
-webkit-border-radius: 16px 16px 0 0;
border-radius: 16px 16px 0 0;
-moz-border-radius: 16px 16px 0 0;
-webkit-border-radius: 16px 16px 0 0;
border-radius: 16px 16px 0 0;
border: solid #e35351 3px;
clear: both;
width: 90%;
height: auto;
line-height: 16px;
padding: 7px 0;
font-weight: bold;
font-size: 13px;
text-align: center;
}
.errors li {
list-style: none;
border: none;
}
.download_container {
width: 50%;
margin: auto;
}
#lightbox_content a {
color: #6994a3;
}
#lightbox_content h2,
#lightbox_content h3,
#lightbox_content h4 {
margin: 15px auto 5px auto;
}
#lightbox_content .ebook_download {
margin-bottom: 15px;
}
#lightbox_content .ebook_download a {
margin: auto 5px auto 0;
font-size: 15px;
}
#lightbox_content .ebook_download img {
vertical-align: middle;
}
#lightbox_content .logo {
font-size: 15px;
}
#lightbox_content .logo img {
-moz-border-radius: 7px;
-webkit-border-radius: 7px;
border-radius: 7px;
-moz-border-radius: 7px;
-webkit-border-radius: 7px;
border-radius: 7px;
height: 50px;
width: 50px;
margin-right: 5px;
}
#lightbox_content .unglued {
border: solid 2px #8dc63f;
margin-left: -2px;
padding: 5px;
}
#lightbox_content .unglued h3 {
margin-top: 5px;
}
#lightbox_content a.add-wishlist .on-wishlist,
#lightbox_content a.success,
a.success:hover {
text-decoration: none;
color: #3d4e53;
}
#lightbox_content a.success,
a.success:hover {
cursor: default;
}
#lightbox_content ul {
padding-left: 50px;
}
#lightbox_content ul li {
margin-bottom: 4px;
}
/* remove before beta */
.preview {
border: solid 3px #e35351;
-moz-border-radius: 7px;
-webkit-border-radius: 7px;
border-radius: 7px;
-moz-border-radius: 7px;
-webkit-border-radius: 7px;
border-radius: 7px;
clear: both;
padding: 5px 10px;
font-size: 13px;
@ -110,6 +297,9 @@
-moz-border-radius: 7px;
-webkit-border-radius: 7px;
border-radius: 7px;
-moz-border-radius: 7px;
-webkit-border-radius: 7px;
border-radius: 7px;
clear: both;
padding: 5px 10px;
font-size: 13px;
@ -130,6 +320,9 @@
-moz-border-radius: 7px;
-webkit-border-radius: 7px;
border-radius: 7px;
-moz-border-radius: 7px;
-webkit-border-radius: 7px;
border-radius: 7px;
clear: both;
padding: 5px 10px;
font-size: 13px;
@ -187,6 +380,9 @@ body {
-moz-border-radius: 0 0 10px 10px;
-webkit-border-radius: 0 0 10px 10px;
border-radius: 0 0 10px 10px;
-moz-border-radius: 0 0 10px 10px;
-webkit-border-radius: 0 0 10px 10px;
border-radius: 0 0 10px 10px;
background: #8dc63f;
margin-bottom: 0;
text-align: center;
@ -233,6 +429,9 @@ a.fakeinput {
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
}
input:focus,
textarea:focus,
@ -247,6 +446,9 @@ a.fakeinput:hover {
-moz-border-radius: 0;
-webkit-border-radius: 0;
border-radius: 0;
-moz-border-radius: 0;
-webkit-border-radius: 0;
border-radius: 0;
}
h2.content-heading {
padding: 15px;
@ -261,6 +463,9 @@ h2.content-heading span {
font-style: italic;
}
h3.jsmod-title {
-moz-border-radius: 8px 8px 0 0;
-webkit-border-radius: 8px 8px 0 0;
border-radius: 8px 8px 0 0;
-moz-border-radius: 8px 8px 0 0;
-webkit-border-radius: 8px 8px 0 0;
border-radius: 8px 8px 0 0;
@ -300,6 +505,9 @@ ul.menu {
margin: 0;
}
.errorlist {
-moz-border-radius: 16px 16px 0 0;
-webkit-border-radius: 16px 16px 0 0;
border-radius: 16px 16px 0 0;
-moz-border-radius: 16px 16px 0 0;
-webkit-border-radius: 16px 16px 0 0;
border-radius: 16px 16px 0 0;
@ -312,6 +520,25 @@ ul.menu {
font-weight: bold;
font-size: 13px;
text-align: center;
-moz-border-radius: 16px 16px 0 0;
-webkit-border-radius: 16px 16px 0 0;
border-radius: 16px 16px 0 0;
-moz-border-radius: 16px 16px 0 0;
-webkit-border-radius: 16px 16px 0 0;
border-radius: 16px 16px 0 0;
border: solid #e35351 3px;
clear: both;
width: 90%;
height: auto;
line-height: 16px;
padding: 7px 0;
font-weight: bold;
font-size: 13px;
text-align: center;
}
.errorlist li {
list-style: none;
border: none;
}
.errorlist li {
list-style: none;
@ -367,6 +594,13 @@ ul.menu {
font-weight: bold;
font-size: 13px;
letter-spacing: -0.05em;
height: 36px;
line-height: 36px;
display: block;
text-decoration: none;
font-weight: bold;
font-size: 13px;
letter-spacing: -0.05em;
}
.js-topmenu ul li span#welcome {
color: #8dc63f;
@ -377,6 +611,13 @@ ul.menu {
font-weight: bold;
font-size: 13px;
letter-spacing: -0.05em;
height: 36px;
line-height: 36px;
display: block;
text-decoration: none;
font-weight: bold;
font-size: 13px;
letter-spacing: -0.05em;
overflow: auto;
max-width: 240px;
}
@ -385,6 +626,9 @@ ul.menu {
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
padding: 3px;
line-height: 16px;
width: 16px;
@ -406,6 +650,9 @@ ul.menu {
background: url("/static/images/bg.png") right top no-repeat;
}
.js-topmenu ul li.last a span {
-moz-border-radius: 32px 0 0 32px;
-webkit-border-radius: 32px 0 0 32px;
border-radius: 32px 0 0 32px;
-moz-border-radius: 32px 0 0 32px;
-webkit-border-radius: 32px 0 0 32px;
border-radius: 32px 0 0 32px;
@ -433,9 +680,14 @@ ul.menu {
-moz-border-radius: 50px 0 0 50px;
-webkit-border-radius: 50px 0 0 50px;
border-radius: 50px 0 0 50px;
-moz-border-radius: 50px 0 0 50px;
-webkit-border-radius: 50px 0 0 50px;
border-radius: 50px 0 0 50px;
outline: none;
height: 28px;
line-height: 28px;
height: 28px;
line-height: 28px;
width: 156px;
float: left;
color: #6994a3;
@ -482,6 +734,9 @@ a#readon.down {
background: url("/static/images/learnmore-uparrow.png") right center no-repeat;
}
a#readon span {
-moz-border-radius: 32px 0 0 32px;
-webkit-border-radius: 32px 0 0 32px;
border-radius: 32px 0 0 32px;
-moz-border-radius: 32px 0 0 32px;
-webkit-border-radius: 32px 0 0 32px;
border-radius: 32px 0 0 32px;
@ -490,6 +745,8 @@ a#readon span {
padding: 0 5px 0 20px;
height: 36px;
line-height: 36px;
height: 36px;
line-height: 36px;
display: block;
}
.spread_the_word {
@ -515,6 +772,9 @@ a#readon span {
-moz-border-radius: 0 0 10px 10px;
-webkit-border-radius: 0 0 10px 10px;
border-radius: 0 0 10px 10px;
-moz-border-radius: 0 0 10px 10px;
-webkit-border-radius: 0 0 10px 10px;
border-radius: 0 0 10px 10px;
}
#js-leftcol ul.level1 > li > a,
#js-leftcol ul.level1 > li > span {
@ -538,10 +798,15 @@ a#readon span {
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
}
#js-leftcol ul.level2 li .ungluer-name {
height: 30px;
line-height: 30px;
height: 30px;
line-height: 30px;
}
/* Main content area: top */
#js-topsection {
@ -665,6 +930,9 @@ a.nounderline {
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
border: solid 5px #d6dde0;
background: white;
z-index: 500;
@ -709,10 +977,15 @@ a.nounderline {
float: right;
height: 24px;
line-height: 24px;
height: 24px;
line-height: 24px;
width: 24px;
-moz-border-radius: 24px;
-webkit-border-radius: 24px;
border-radius: 24px;
-moz-border-radius: 24px;
-webkit-border-radius: 24px;
border-radius: 24px;
-moz-box-shadow: -1px 1px #3d4e53;
-webkit-box-shadow: -1px 1px #3d4e53;
box-shadow: -1px 1px #3d4e53;
@ -726,6 +999,9 @@ a.nounderline {
margin-right: -22px;
}
.signuptoday {
-moz-border-radius: 32px;
-webkit-border-radius: 32px;
border-radius: 32px;
-moz-border-radius: 32px;
-webkit-border-radius: 32px;
border-radius: 32px;
@ -733,6 +1009,8 @@ a.nounderline {
padding: 0 15px;
height: 36px;
line-height: 36px;
height: 36px;
line-height: 36px;
float: left;
clear: both;
margin: 10px auto;

View File

@ -5,11 +5,15 @@
margin: auto;
}
#lightbox a {
#lightbox_content a {
color: @medium-blue;
}
.ebook_download {
#lightbox_content h2, #lightbox_content h3, #lightbox_content h4 {
margin-top: 15px;
}
#lightbox_content .ebook_download {
a {
margin: auto 5px auto 0;
font-size: @font-size-larger;
@ -23,7 +27,7 @@
}
.logo {
#lightbox_content .logo {
img {
.one-border-radius(7px);
height: 50px;
@ -34,7 +38,7 @@
font-size: @font-size-larger;
}
.unglued {
#lightbox_content .unglued {
border: solid 2px @call-to-action;
margin-left: -2px;
padding: 5px;
@ -44,18 +48,19 @@
}
}
a.add-wishlist .on-wishlist, a.success, a.success:hover {
#lightbox_content a.add-wishlist .on-wishlist, #lightbox_content a.success, a.success:hover {
text-decoration: none;
color: @text-blue;
}
ul {
#lightbox_content a.success, a.success:hover {
cursor: default;
}
#lightbox_content ul {
padding-left: 50px;
li {
margin-bottom: 4px;
}
}
a.success, a.success:hover {
cursor: default;
}

View File

@ -1,6 +1,7 @@
/* For sitewide elements of unglue.it. */
@import "variables.less";
@import "download.less";
/* remove before beta */
.preview {