From be15da34afca67d39547a8c336d09995c9e54b4a Mon Sep 17 00:00:00 2001 From: David Fischer Date: Fri, 25 May 2018 16:28:08 -0700 Subject: [PATCH 1/5] Small footer rework --- media/css/core.css | 12 ++++++++-- readthedocs/templates/base.html | 42 ++++++++++++++++++++++++++------- 2 files changed, 43 insertions(+), 11 deletions(-) diff --git a/media/css/core.css b/media/css/core.css index d37ab4d7823..50c67416459 100644 --- a/media/css/core.css +++ b/media/css/core.css @@ -654,8 +654,9 @@ p.build-missing { font-size: .8em; color: #9d9a55; margin: 0 0 3px; } #footer a:hover, #footer a:active { color: white; text-decoration: underline; } /* Social icons */ -#footer .social { font-family: FontAwesome; margin-left: 25px; } -#footer .social li { float: left; } +#footer .social { font-family: FontAwesome; text-align: center; margin-top: 30px; } +#footer .social:after { clear: both; content: ''; display: table; } +#footer .social li { width: 50px; display: inline-block; } #footer .social a { text-decoration: none; opacity: 0.5; } #footer .social a:hover, #footer .social a:visited { opacity: 1; } #footer .social .icon { display: inline-block; width: 36px; height: 36px; font-size: 24px;} @@ -667,6 +668,13 @@ p.build-missing { font-size: .8em; color: #9d9a55; margin: 0 0 3px; } #footer select { float: left; width: 175px; padding: 2px; height: 24px; font-size: 12px; margin-right: 10px; } #footer input[type="submit"] { margin-top: 0; padding: 4px; height: 24px; font-size: 12px; line-height: 16px; } +/* Other footer forms */ +#footer #email-signup { margin-bottom: 20px; } +#footer #email-signup:after { clear: both; content:''; display: table; } +#footer #email-signup p { padding-right: 10px; font-size: 14px; color: #BCC1C3; } +#footer label { color: #BCC1C3; font-weight: normal; } +#footer input[type="text"], #footer input[type="email"] { padding: 4px; font-size: 12px; line-height: 16px; margin-bottom: 5px } + /* utils */ diff --git a/readthedocs/templates/base.html b/readthedocs/templates/base.html index 1b37b68b1c3..ff15e826e9e 100644 --- a/readthedocs/templates/base.html +++ b/readthedocs/templates/base.html @@ -105,12 +105,25 @@ {% block footer-content %}
@@ -133,6 +146,7 @@

{% trans "About Us" %}

{% trans "Privacy Policy" %} +
@@ -168,13 +182,23 @@

{% trans "Read the Docs" %}

+ + +
+