Explorar o código

bugfix bs3 theme, added fonts

tubia %!s(int64=9) %!d(string=hai) anos
pai
achega
d94264a9f8

+ 1 - 0
pelicanconf.py

@@ -45,4 +45,5 @@ THEME = 'themes/bs3'
 
 # Pelican bootstrap 3 theme settings
 BOOTSTRAP_THEME = 'cyborg'
+
 HIDE_SIDEBAR = True

+ 24 - 0
themes/bs3/static/css/bootstrap.cyborg.min.css

@@ -1,3 +1,27 @@
+@font-face {
+  font-family: 'Roboto';
+  font-style: normal;
+  font-weight: 400;
+  src: local('Roboto'), local('Roboto-Regular'), url(../fonts/roboto-regular.ttf) format('truetype');
+}
+@font-face {
+  font-family: 'Roboto';
+  font-style: normal;
+  font-weight: 700;
+  src: local('Roboto Bold'), local('Roboto-Bold'), url(../fonts/roboto-bold.ttf) format('truetype');
+}
+@font-face {
+  font-family: 'HugFemmes';
+  font-style: normal;
+  font-weight: 400;
+  src: url(../fonts/hug-femmes.ttf) format('truetype');
+}
+@font-face {
+  font-family: 'HugFemmesBold';
+  font-style: normal;
+  font-weight: 700;
+  src: url(../fonts/hug-femmes-bold.ttf) format('truetype');
+}
 /*!
  * bootswatch v3.3.4+1
  * Homepage: http://bootswatch.com

+ 4 - 0
themes/bs3/static/css/custom.css

@@ -13,4 +13,8 @@
 }
 .navbar-default .navbar-nav > li > a {
 	color: #85CC95;
+}
+.navbar-brand {
+  font-family: HugFemmesBold;
+  font-weight: 700;
 }

BIN=BIN
themes/bs3/static/fonts/hug-femmes-bold.ttf


BIN=BIN
themes/bs3/static/fonts/hug-femmes.ttf


BIN=BIN
themes/bs3/static/fonts/roboto-bold.ttf


BIN=BIN
themes/bs3/static/fonts/roboto-regular.ttf


+ 103 - 101
themes/bs3/templates/base.html

@@ -73,109 +73,111 @@
 
 </head>
 <body>
-<div class="row">
-    <div class="col-sm-3 col-sm-offset-9"><svg
-   xmlns:dc="http://purl.org/dc/elements/1.1/"
-   xmlns:cc="http://creativecommons.org/ns#"
-   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
-   xmlns:svg="http://www.w3.org/2000/svg"
-   xmlns="http://www.w3.org/2000/svg"
-   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
-   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
-   width="133.91571"
-   height="113.3125"
-   id="svg5682"
-   version="1.1"
-   inkscape:version="0.48.4 r9939"
-   sodipodi:docname="Nuovo documento 9">
-  <defs
-     id="defs5684" />
-  <sodipodi:namedview
-     id="base"
-     pagecolor="#ffffff"
-     bordercolor="#666666"
-     borderopacity="1.0"
-     inkscape:pageopacity="0.0"
-     inkscape:pageshadow="2"
-     inkscape:zoom="0.35"
-     inkscape:cx="66.957853"
-     inkscape:cy="56.656255"
-     inkscape:document-units="px"
-     inkscape:current-layer="layer1"
-     showgrid="false"
-     fit-margin-top="0"
-     fit-margin-left="0"
-     fit-margin-right="0"
-     fit-margin-bottom="0"
-     inkscape:window-width="572"
-     inkscape:window-height="403"
-     inkscape:window-x="1"
-     inkscape:window-y="50"
-     inkscape:window-maximized="0" />
-  <metadata
-     id="metadata5687">
-    <rdf:RDF>
-      <cc:Work
-         rdf:about="">
-        <dc:format>image/svg+xml</dc:format>
-        <dc:type
-           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
-        <dc:title></dc:title>
-      </cc:Work>
-    </rdf:RDF>
-  </metadata>
-  <g
-     inkscape:label="Livello 1"
-     inkscape:groupmode="layer"
-     id="layer1"
-     transform="translate(-308.04215,-475.70593)">
+<div class="container-fluid">
+  <div class="row">
+      <div class="col-sm-3 col-sm-offset-9"><svg
+     xmlns:dc="http://purl.org/dc/elements/1.1/"
+     xmlns:cc="http://creativecommons.org/ns#"
+     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+     xmlns:svg="http://www.w3.org/2000/svg"
+     xmlns="http://www.w3.org/2000/svg"
+     xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+     xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+     width="133.91571"
+     height="113.3125"
+     id="svg5682"
+     version="1.1"
+     inkscape:version="0.48.4 r9939"
+     sodipodi:docname="Nuovo documento 9">
+    <defs
+       id="defs5684" />
+    <sodipodi:namedview
+       id="base"
+       pagecolor="#ffffff"
+       bordercolor="#666666"
+       borderopacity="1.0"
+       inkscape:pageopacity="0.0"
+       inkscape:pageshadow="2"
+       inkscape:zoom="0.35"
+       inkscape:cx="66.957853"
+       inkscape:cy="56.656255"
+       inkscape:document-units="px"
+       inkscape:current-layer="layer1"
+       showgrid="false"
+       fit-margin-top="0"
+       fit-margin-left="0"
+       fit-margin-right="0"
+       fit-margin-bottom="0"
+       inkscape:window-width="572"
+       inkscape:window-height="403"
+       inkscape:window-x="1"
+       inkscape:window-y="50"
+       inkscape:window-maximized="0" />
+    <metadata
+       id="metadata5687">
+      <rdf:RDF>
+        <cc:Work
+           rdf:about="">
+          <dc:format>image/svg+xml</dc:format>
+          <dc:type
+             rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+          <dc:title></dc:title>
+        </cc:Work>
+      </rdf:RDF>
+    </metadata>
     <g
-       transform="translate(-562.67967,444.69145)"
-       style="opacity:0.63999999"
-       id="g3682">
+       inkscape:label="Livello 1"
+       inkscape:groupmode="layer"
+       id="layer1"
+       transform="translate(-308.04215,-475.70593)">
       <g
-         id="g3684">
-        <path
-           style="fill:#b3d782"
-           inkscape:connector-curvature="0"
-           d="m 944.2,73.7 c -2.1,1.3 -4.2,2.6 -6.3,3.9 0,0 0,0 0,-0.1 0.2,-0.2 0.3,-0.4 0.5,-0.5 1.9,-1.2 3.7,-2.4 5.6,-3.6 0.1,0.2 0.2,0.2 0.2,0.3 z"
-           id="path3686" />
-        <path
-           style="fill:#b3d782"
-           inkscape:connector-curvature="0"
-           d="M 971.4,90.4 V 92 l 1.4,-1.6 h -1.4 z"
-           id="path3688" />
-        <polygon
-           style="fill:#b3d782"
-           points="971.4,90.4 972.8,90.4 971.4,92 "
-           id="polygon3690" />
-        <path
-           style="fill:#b3d782"
-           inkscape:connector-curvature="0"
-           d="m 1002.8,73.2 c -0.9,0 -1.3,0.4 -1.3,1.6 0,2.5 0,5 0,7.5 0,2.2 0,2.2 -1.8,2.2 -0.9,0 -1.2,0.5 -1.2,1.6 0,1 -0.1,2 0,3 0.1,1.1 -0.2,1.3 -1.1,1.3 -4.3,0 -10.9,0 -16.6,0 -0.9,-2.9 -3.6,-4.9 -6.8,-4.9 -0.9,0 -1.7,0.2 -2.5,0.4 -3.5,-5.2 -9.2,-14.5 -13.5,-20.8 4.7,-2.9 7.7,-4.8 7.9,-4.9 0.6,-0.4 1.2,-1.5 0.8,-2.1 -0.8,-1.2 -15.5,-24.9 -16,-25.7 -0.4,-0.6 -0.6,-1.7 -1.8,-1.3 -0.6,0.2 -65.1,40.6 -72.6,45.3 -0.4,0.2 -0.5,0.8 -0.3,1.2 0.2,0.4 0.4,0.7 0.6,1.1 0.2,0.3 0.2,0.7 -0.1,1 -0.4,0.4 -0.7,0.8 -1.1,1.1 -0.2,0.3 -0.3,0.6 -0.1,1 l 0.3,0.7 c 0.2,0.4 0,0.9 -0.3,1.1 -1.3,0.8 -2.5,1.6 -3.8,2.3 -0.9,0.5 -1,1.1 -0.4,2 0.7,0.9 4.5,7.1 5.9,9.3 0.2,0.4 0.8,0.5 1.2,0.3 1.5,-0.9 5.1,-2.9 5.3,-2.3 0.3,1 0.9,1.1 1.8,0.5 1,-0.6 2,-0.2 2.5,0.9 0.3,0.7 3.7,6 5,8.1 0.2,0.4 0.8,0.5 1.2,0.3 3.4,-2.1 18.3,-11.4 33.6,-20.9 3.6,1.1 9.8,4.5 11.5,8.3 1,2.4 1.7,2.7 3.9,1.3 3.5,-2.3 12.5,-8.9 13.6,-9.7 1.8,-1.4 4,-2.6 6.1,-0.7 1.1,1 3.1,4 4.8,6.4 -0.4,0.9 -0.7,1.9 -0.7,3 0,4 3.2,7.2 7.2,7.2 2.8,0 5.2,-1.6 6.4,-3.9 5.6,0 11.3,0 16.9,0 0.9,0 1.2,0.4 1.1,1.4 -0.1,1.6 0,3.3 0,5 h 3 v 1.2 c 0,2.3 0,4.6 0,6.9 0,0.8 0.3,1.3 0.8,1.4 0.7,0.2 1.5,0 2.3,0 v -1.7 c 0,-11.6 0,-23.1 0,-34.7 0.2,-2.7 0.5,-2.2 -1.7,-2.3 z m -50.3,11.5 c -1.8,1.4 -3.8,2.5 -5.7,3.8 -6.4,4.2 -5.6,3.9 -9.5,-2.2 -0.9,-1.4 -0.5,-7.3 0.6,-8.6 0,0 0,0 0,-0.1 0.2,-0.2 0.3,-0.4 0.5,-0.5 1.9,-1.2 3.7,-2.4 5.6,-3.6 0.1,0.1 0.1,0.1 0.2,0.2 3.3,3.1 5.3,6.6 4.8,11.5 3.3,-2.7 3.3,-4.6 0.1,-12.3 3,0.5 4.7,2 5.5,4.5 1,2.4 0,5.8 -2.1,7.3 z m 18.9,7.3 v -1.6 h 1.4 l -1.4,1.6 z"
-           id="path3692" />
-        <polygon
-           style="fill:#b3d782"
-           points="971.4,90.4 972.8,90.4 971.4,92 "
-           id="polygon3694" />
-      </g>
-      <g
-         id="g3696">
-        <text
-           style="font-size:27.1637001px;fill:#b3d782;font-family:HugFemmesBold"
-           transform="translate(905.523,130.0119)"
-           font-size="27.1637"
-           id="text3698">hackit</text>
-        <text
-           style="font-size:11.94110012px;fill:#b3d782;font-family:BankGothic-Regular"
-           transform="translate(905.3365,144.1579)"
-           font-size="11.9411"
-           id="text3700">0x12</text>
+         transform="translate(-562.67967,444.69145)"
+         style="opacity:0.63999999"
+         id="g3682">
+        <g
+           id="g3684">
+          <path
+             style="fill:#b3d782"
+             inkscape:connector-curvature="0"
+             d="m 944.2,73.7 c -2.1,1.3 -4.2,2.6 -6.3,3.9 0,0 0,0 0,-0.1 0.2,-0.2 0.3,-0.4 0.5,-0.5 1.9,-1.2 3.7,-2.4 5.6,-3.6 0.1,0.2 0.2,0.2 0.2,0.3 z"
+             id="path3686" />
+          <path
+             style="fill:#b3d782"
+             inkscape:connector-curvature="0"
+             d="M 971.4,90.4 V 92 l 1.4,-1.6 h -1.4 z"
+             id="path3688" />
+          <polygon
+             style="fill:#b3d782"
+             points="971.4,90.4 972.8,90.4 971.4,92 "
+             id="polygon3690" />
+          <path
+             style="fill:#b3d782"
+             inkscape:connector-curvature="0"
+             d="m 1002.8,73.2 c -0.9,0 -1.3,0.4 -1.3,1.6 0,2.5 0,5 0,7.5 0,2.2 0,2.2 -1.8,2.2 -0.9,0 -1.2,0.5 -1.2,1.6 0,1 -0.1,2 0,3 0.1,1.1 -0.2,1.3 -1.1,1.3 -4.3,0 -10.9,0 -16.6,0 -0.9,-2.9 -3.6,-4.9 -6.8,-4.9 -0.9,0 -1.7,0.2 -2.5,0.4 -3.5,-5.2 -9.2,-14.5 -13.5,-20.8 4.7,-2.9 7.7,-4.8 7.9,-4.9 0.6,-0.4 1.2,-1.5 0.8,-2.1 -0.8,-1.2 -15.5,-24.9 -16,-25.7 -0.4,-0.6 -0.6,-1.7 -1.8,-1.3 -0.6,0.2 -65.1,40.6 -72.6,45.3 -0.4,0.2 -0.5,0.8 -0.3,1.2 0.2,0.4 0.4,0.7 0.6,1.1 0.2,0.3 0.2,0.7 -0.1,1 -0.4,0.4 -0.7,0.8 -1.1,1.1 -0.2,0.3 -0.3,0.6 -0.1,1 l 0.3,0.7 c 0.2,0.4 0,0.9 -0.3,1.1 -1.3,0.8 -2.5,1.6 -3.8,2.3 -0.9,0.5 -1,1.1 -0.4,2 0.7,0.9 4.5,7.1 5.9,9.3 0.2,0.4 0.8,0.5 1.2,0.3 1.5,-0.9 5.1,-2.9 5.3,-2.3 0.3,1 0.9,1.1 1.8,0.5 1,-0.6 2,-0.2 2.5,0.9 0.3,0.7 3.7,6 5,8.1 0.2,0.4 0.8,0.5 1.2,0.3 3.4,-2.1 18.3,-11.4 33.6,-20.9 3.6,1.1 9.8,4.5 11.5,8.3 1,2.4 1.7,2.7 3.9,1.3 3.5,-2.3 12.5,-8.9 13.6,-9.7 1.8,-1.4 4,-2.6 6.1,-0.7 1.1,1 3.1,4 4.8,6.4 -0.4,0.9 -0.7,1.9 -0.7,3 0,4 3.2,7.2 7.2,7.2 2.8,0 5.2,-1.6 6.4,-3.9 5.6,0 11.3,0 16.9,0 0.9,0 1.2,0.4 1.1,1.4 -0.1,1.6 0,3.3 0,5 h 3 v 1.2 c 0,2.3 0,4.6 0,6.9 0,0.8 0.3,1.3 0.8,1.4 0.7,0.2 1.5,0 2.3,0 v -1.7 c 0,-11.6 0,-23.1 0,-34.7 0.2,-2.7 0.5,-2.2 -1.7,-2.3 z m -50.3,11.5 c -1.8,1.4 -3.8,2.5 -5.7,3.8 -6.4,4.2 -5.6,3.9 -9.5,-2.2 -0.9,-1.4 -0.5,-7.3 0.6,-8.6 0,0 0,0 0,-0.1 0.2,-0.2 0.3,-0.4 0.5,-0.5 1.9,-1.2 3.7,-2.4 5.6,-3.6 0.1,0.1 0.1,0.1 0.2,0.2 3.3,3.1 5.3,6.6 4.8,11.5 3.3,-2.7 3.3,-4.6 0.1,-12.3 3,0.5 4.7,2 5.5,4.5 1,2.4 0,5.8 -2.1,7.3 z m 18.9,7.3 v -1.6 h 1.4 l -1.4,1.6 z"
+             id="path3692" />
+          <polygon
+             style="fill:#b3d782"
+             points="971.4,90.4 972.8,90.4 971.4,92 "
+             id="polygon3694" />
+        </g>
+        <g
+           id="g3696">
+          <text
+             style="font-size:27.1637001px;fill:#b3d782;font-family:HugFemmesBold"
+             transform="translate(905.523,130.0119)"
+             font-size="27.1637"
+             id="text3698">hackit</text>
+          <text
+             style="font-size:11.94110012px;fill:#b3d782;font-family:BankGothic-Regular"
+             transform="translate(905.3365,144.1579)"
+             font-size="11.9411"
+             id="text3700">0x12</text>
+        </g>
       </g>
     </g>
-  </g>
-</svg>
-</div>
+  </svg>
+  </div>
+  </div>
 </div>
 <!-- Banner -->
 {% if BANNER and BANNER_ALL_PAGES %}
@@ -184,7 +186,7 @@
     {% block banner %}{% endblock %}
 {% endif %}
 <!-- End Banner -->
-<div class="container{% if BOOTSTRAP_FLUID %}-fluid{% endif %}">
+<div class="container">
     <div class="row">
         <div class="col-md-10 col-md-offset-2" id="main-block">
             <div class="row">
@@ -194,7 +196,7 @@
                 <div class="col-lg-12">
                 {% endif %}
 <div class="navbar {% if BOOTSTRAP_NAVBAR_INVERSE %}navbar-inverse{% else %}navbar-default{% endif %}" id="navbar-block" role="navigation">
-    <div class="container{% if BOOTSTRAP_FLUID %}-fluid{% endif %}">
+    <div class="container-fluid">
         <div class="navbar-header">
             <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
                 <span class="sr-only">Toggle navigation</span>