[meta-freescale] [Documentation][PATCH] RN: footer styling

Lucas Dutra Nunes ldnunes at ossystems.com.br
Wed Oct 1 13:18:19 PDT 2014


The Creative Commons license styling on the footer is ugly. This change
alters the HTML slightly and centers the text.

Signed-off-by: Lucas Dutra Nunes <ldnunes at ossystems.com.br>
---
 release-notes/source/_static/release-notes.css |  7 +++++
 release-notes/source/_templates/layout.html    | 37 +++++++++++++-------------
 2 files changed, 26 insertions(+), 18 deletions(-)

diff --git a/release-notes/source/_static/release-notes.css b/release-notes/source/_static/release-notes.css
index 7953891..a0b05ab 100644
--- a/release-notes/source/_static/release-notes.css
+++ b/release-notes/source/_static/release-notes.css
@@ -95,3 +95,10 @@ table.docutils td:last-child {
     color: orange;
     font-weight: bold;
 }
+
+#creative-commons-licence {
+    margin-left: auto;
+    margin-right: auto;
+    text-align: center;
+    width: 800px;
+}
diff --git a/release-notes/source/_templates/layout.html b/release-notes/source/_templates/layout.html
index 5121b1d..ffea555 100644
--- a/release-notes/source/_templates/layout.html
+++ b/release-notes/source/_templates/layout.html
@@ -80,25 +80,26 @@
           {%- endif %}
         </div>
 
-        <div class="right">
+        <div id="creative-commons-licence">
+          <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">
+            <img alt="Creative Commons License" style="border-width:0"
+                 src="https://i.creativecommons.org/l/by-sa/4.0/88x31.png" /></a>
+          <br />
+          <span xmlns:dct="http://purl.org/dc/terms/" href="http://purl.org/dc/dcmitype/Text"
+                property="dct:title" rel="dct:type">FSL Community BSP Release Notes</span> by
+          <a xmlns:cc="http://creativecommons.org/ns#" href="http://freescale.github.io/doc/release-notes/current/"
+             property="cc:attributionName" rel="cc:attributionURL">http://freescale.github.io/doc/release-notes/current/</a>
+          is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">
+            Creative Commons Attribution-ShareAlike 4.0 International License</a>.
+          <br />
+          Based on a work at
+          <a xmlns:dct="http://purl.org/dc/terms/"
+             href="https://github.com/Freescale/Documentation"
+             rel="dct:source">https://github.com/Freescale/Documentation</a>.
+        </div>
+        <div class="clearer"></div>
+        <div class="align-center line-block">
           {{ super() }}
-          <span class="creativecommons">
-              <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">
-              <img alt="Creative Commons License" style="border-width:0"
-                   src="https://i.creativecommons.org/l/by-sa/4.0/88x31.png" /></a>
-              <br />
-              <span xmlns:dct="http://purl.org/dc/terms/" href="http://purl.org/dc/dcmitype/Text"
-                    property="dct:title" rel="dct:type">FSL Community BSP Release Notes</span> by
-              <a xmlns:cc="http://creativecommons.org/ns#" href="http://freescale.github.io/doc/release-notes/current/"
-                 property="cc:attributionName" rel="cc:attributionURL">http://freescale.github.io/doc/release-notes/current/</a>
-              is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">
-              Creative Commons Attribution-ShareAlike 4.0 International License</a>.
-              <br />
-              Based on a work at
-              <a xmlns:dct="http://purl.org/dc/terms/"
-                 href="https://github.com/Freescale/Documentation"
-                 rel="dct:source">https://github.com/Freescale/Documentation</a>.
-          </span>
         </div>
         <div class="clearer"></div>
       </div>
-- 
2.1.0



More information about the meta-freescale mailing list