mirror of
https://github.com/gohugoio/hugo.git
synced 2025-03-22 08:22:38 +00:00
Some mobile and other fixes for docs
This commit is contained in:
parent
ad04f6c899
commit
532e2e7b93
8 changed files with 57 additions and 8 deletions
10
docs/layouts/chrome/analytics.html
Normal file
10
docs/layouts/chrome/analytics.html
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<script>
|
||||||
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||||
|
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||||
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||||
|
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
||||||
|
|
||||||
|
ga('create', 'UA-7131036-4', 'spf13.com');
|
||||||
|
ga('send', 'pageview');
|
||||||
|
|
||||||
|
</script>
|
|
@ -12,6 +12,7 @@
|
||||||
</div>
|
</div>
|
||||||
<script src="/static/js/jquery.js"></script>
|
<script src="/static/js/jquery.js"></script>
|
||||||
<script src="/static/js/bootstrap.min.js"></script>
|
<script src="/static/js/bootstrap.min.js"></script>
|
||||||
|
{{ template "chrome/analytics.html" . }}
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -24,9 +24,8 @@
|
||||||
<h1>Hugo</h1>
|
<h1>Hugo</h1>
|
||||||
<h3>The <em>Fast and Flexible</em> Static Site Generator</h3>
|
<h3>The <em>Fast and Flexible</em> Static Site Generator</h3>
|
||||||
<br>
|
<br>
|
||||||
<a href="#intro" class="btn btn-clear btn-lg">LEARN MORE</a>
|
<a href="#intro" class="btn btn-clear btn-lg">LEARN MORE</a>
|
||||||
<a href="https://github.com/spf13/hugo/releases" class="btn btn-success btn-lg">DOWNLOAD <i class="icon-arrow-down"></i></a><br>
|
<a href="https://github.com/spf13/hugo/releases" class="btn btn-success btn-lg">DOWNLOAD <i class="icon-arrow-down"></i></a><br>
|
||||||
<br>
|
|
||||||
<a href="/overview/quickstart/" class="btn btn-info btn-lg">DOCUMENTATION</a>
|
<a href="/overview/quickstart/" class="btn btn-info btn-lg">DOCUMENTATION</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -161,8 +160,8 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6 col-md-offset-3 text-center">
|
<div class="col-md-6 col-md-offset-3 text-center">
|
||||||
<h3>Get Started Today!</h3>
|
<h3>Get Started Today!</h3>
|
||||||
<a href="/overview/quickstart" class="btn btn-md btn-default">Documentation</a>
|
|
||||||
<a href="https://github.com/spf13/hugo/releases" class="btn btn-lg btn-primary">Download <i class="icon-arrow-down"></i></a>
|
<a href="https://github.com/spf13/hugo/releases" class="btn btn-lg btn-primary">Download <i class="icon-arrow-down"></i></a>
|
||||||
|
<a href="/overview/quickstart" style="color:white;font-weight:300;">Documentation</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -211,6 +210,7 @@
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
{{ template "chrome/analytics.html" . }}
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
48
docs/static/static/css/HPstyles.css
vendored
48
docs/static/static/css/HPstyles.css
vendored
|
@ -24,8 +24,9 @@ body {
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
display: table;
|
display: table;
|
||||||
height: 85%;
|
height: 70%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
min-height: 70%;
|
||||||
position: relative;
|
position: relative;
|
||||||
background: url(../img/converse-fields.jpg) no-repeat center center fixed;
|
background: url(../img/converse-fields.jpg) no-repeat center center fixed;
|
||||||
-webkit-background-size: cover;
|
-webkit-background-size: cover;
|
||||||
|
@ -36,6 +37,43 @@ body {
|
||||||
background-color: black;
|
background-color: black;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media only screen
|
||||||
|
and (min-device-width : 320px)
|
||||||
|
and (max-device-width : 1024px)
|
||||||
|
and (orientation : portrait)
|
||||||
|
{
|
||||||
|
.header {
|
||||||
|
display: table;
|
||||||
|
height: 70%;
|
||||||
|
width: 100%;
|
||||||
|
position: relative;
|
||||||
|
background: url(../img/converse-fields-mini.jpg) no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
z-index: 99999;
|
||||||
|
background-color: black;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen
|
||||||
|
and (min-device-width : 320px)
|
||||||
|
and (max-device-width : 1024px)
|
||||||
|
and (orientation : landscape) {
|
||||||
|
.header {
|
||||||
|
display: table;
|
||||||
|
height: 70%;
|
||||||
|
width: 100%;
|
||||||
|
position: relative;
|
||||||
|
background: url(../img/converse-fields-long.jpg) no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
z-index: 99999;
|
||||||
|
background-color: black;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.header .btn {
|
||||||
|
margin: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
#main {
|
#main {
|
||||||
z-index: 99999;
|
z-index: 99999;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@ -136,7 +174,7 @@ i.service-icon:hover {
|
||||||
display: table;
|
display: table;
|
||||||
height: 400px;
|
height: 400px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background: url(../img/section-two.JPG) no-repeat center center fixed;
|
background: url(/static/img/section-two.JPG) no-repeat center center fixed;
|
||||||
-webkit-background-size: cover;
|
-webkit-background-size: cover;
|
||||||
-moz-background-size: cover;
|
-moz-background-size: cover;
|
||||||
-o-background-size: cover;
|
-o-background-size: cover;
|
||||||
|
@ -168,7 +206,7 @@ i.service-icon:hover {
|
||||||
}
|
}
|
||||||
|
|
||||||
#action {
|
#action {
|
||||||
background: url(../img/gray.png);
|
background: url(/static/img/gray.png);
|
||||||
padding: 50px 0px 30px;
|
padding: 50px 0px 30px;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 130px;
|
bottom: 130px;
|
||||||
|
@ -219,8 +257,8 @@ div.point a {
|
||||||
|
|
||||||
|
|
||||||
.btn-clear {
|
.btn-clear {
|
||||||
color: #FFF;
|
color: #444;
|
||||||
background-color: rgba(255, 255, 255, 0.19);
|
background-color: rgba(255, 255, 255, 0.5);
|
||||||
border-color: #FFF;
|
border-color: #FFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
BIN
docs/static/static/img/converse-fields-long.jpg
vendored
Normal file
BIN
docs/static/static/img/converse-fields-long.jpg
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 421 KiB |
BIN
docs/static/static/img/converse-fields-mini.jpg
vendored
Normal file
BIN
docs/static/static/img/converse-fields-mini.jpg
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 91 KiB |
BIN
docs/static/static/img/converse-fields-sm.jpg
vendored
Normal file
BIN
docs/static/static/img/converse-fields-sm.jpg
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 229 KiB |
BIN
docs/static/static/img/converse-fields.jpg
vendored
BIN
docs/static/static/img/converse-fields.jpg
vendored
Binary file not shown.
Before Width: | Height: | Size: 1 MiB After Width: | Height: | Size: 681 KiB |
Loading…
Reference in a new issue