Skip to content
This repository has been archived by the owner on May 12, 2019. It is now read-only.

Commit

Permalink
improved mobile experience
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Feb 15, 2015
1 parent b64489e commit ca5cc5b
Show file tree
Hide file tree
Showing 12 changed files with 59 additions and 18 deletions.
2 changes: 1 addition & 1 deletion assets/css/uno.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/uno.css.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions assets/js/src/__init.coffee
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"use strict"
'use strict'

$(document).ready ->
$ ->
window.Uno = Uno =
version: '1.3.1'
version: '1.3.2'

cover:
width: -> $(".panel-cover").width()
Expand Down
23 changes: 19 additions & 4 deletions assets/js/src/cover.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@

$(document).ready ->

unless Uno.cover.isCollapsed()
$(".navigation--social").css "margin-left", "1.5em"
el = document.body

if not Uno.cover.isCollapsed()
if el.dataset.device is 'desktop'
$(".navigation--social").css "margin-left", "1.5em"
Uno.loadingBar 'hide'
Uno.search.form 'hide'

Expand All @@ -28,10 +31,22 @@ $(document).ready ->
$(".panel-cover").addClass "panel-cover--collapsed"
Uno.search.form 'show'

if window.location.pathname isnt "/"
if location.pathname isnt "/"
Uno.search.form 'show'

if document.body.dataset.page is 'tag'
checkMobileLocation = ->
isHome = location.pathname is "/"
isOpen = location.hash is "#open"
console.log isHome
console.log isOpen
if isHome
action = if isOpen then 'show' else 'hide'
$(".content-wrapper")[action]()

do checkMobileLocation
$(window).on 'hashchange', checkMobileLocation

if el.dataset.page is 'tag'
$(".panel-cover").addClass "panel-cover--collapsed"

$(".btn-mobile-menu").click ->
Expand Down
6 changes: 3 additions & 3 deletions assets/js/uno.js

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions assets/scss/components/_media-queries.scss
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,37 @@
margin: 15px auto;
}

.panel-cover__description {
font-size: 14px;
padding: 0 .85rem;
}

.mayday {
width: 100%;
> h1 {
font-size: 20px;
line-height: 25px;
}
}

.pagination__page-number {
display: none;
}

.pagination {
margin: 0 0 2em;
}

.pagination__newer,
.pagination__older {
padding: 1rem;
}

.pagination__newer {
margin: 0 0 25px 0;
}

.pagination__older {
margin: 0 0 10px 0;
}
}
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "uno-zen",
"description": "Minimalist and Elegant theme for Ghost",
"version": "1.3.1",
"version": "1.3.2",
"authors": [
"Kiko Beats <josefrancisco.verdu@gmail.com>"
],
Expand Down
2 changes: 1 addition & 1 deletion default.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<meta name="MobileOptimized" content="320">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="viewport" content="width=device-width, initial-scale=1">

<meta name="description" content="{{meta_description}}">

Expand Down
2 changes: 1 addition & 1 deletion error.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<meta name="MobileOptimized" content="320">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="viewport" content="width=device-width, initial-scale=1">

<meta name="description" content="{{meta_description}}">

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "uno-zen",
"description": "Minimalist and Elegant theme for Ghost",
"version": "1.3.1",
"version": "1.3.2",
"author": {
"name": "Kiko Beats",
"url": "https://github.com/kikobeats"
Expand Down
2 changes: 1 addition & 1 deletion partials/comments.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div id="disqus_thread"></div>
<script type="text/javascript">
// required: replace example with your forum shortname
var disqus_shortname = 'yourDisqusShorcut';
var disqus_shortname = 'kikobeats';
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
Expand Down
2 changes: 1 addition & 1 deletion partials/side-panel.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

<nav class="cover-navigation cover-navigation--primary">
<ul class="navigation">
<li class="navigation__item"><a href="http://kikobeats.com" title="link to website of Kikobeats" class="blog-button">Website</a></li>
{{!-- <li class="navigation__item"><a href="http://kikobeats.com" title="link to website of Kikobeats" class="blog-button">Website</a></li> --}}
<li class="navigation__item"><a href="/#open" title="link to {{@blog.title}} blog" class="blog-button">Blog</a></li>
</ul>
</nav>
Expand Down

0 comments on commit ca5cc5b

Please sign in to comment.