Saturday 24 October 2015

Changing text font sizes on Blogger's "Simple" template

As you may have noticed most of my blogs use the "Simple" template (this one currently uses "Picture Window"). With various upgrades to Google's blogger posting system over the years we can set some of the text sizes without having to directly hack the template's HTML code.

One of the changes I have been making recently to some of my blogs is to change the body text in a post to a different font and size. Unfortunately while it is possible to set these indirectly there is no direct way of setting the size.

The font of the post body is affected by the setting in the Template Designer called Page Text which sets a font for the whole of the page, and a base font size. This size does not directly set the size of the text in the post body.

Once you have set the above setting then customise the template HTML to adjust the body text size. The full section you are looking for is as below:

/* Posts
----------------------------------------------- */
h2.date-header {
  font: $(date.header.font);
}
.date-header span {
  background-color: $(date.header.background.color);
  color: $(date.header.color);
  padding: $(date.header.padding);
  letter-spacing: $(date.header.letterspacing);
  margin: $(date.header.margin);
}
.main-inner {
  padding-top: $(main.padding.top);
  padding-bottom: $(main.padding.bottom);
}
.main-inner .column-center-inner {
  padding: 0 $(main.padding);
}
.main-inner .column-center-inner .section {
  margin: 0 $(main.section.margin);
}
.post {
  margin: 0 0 $(post.margin.bottom) 0;
}
h3.post-title, .comments h4 {
  font: $(post.title.font);
  margin: .75em 0 0;
}
.post-body {
  font-size: 120%;
  line-height: 1.4;
  position: relative;

}
I have bolded the part that is important. This is line 389 of the template at the time of writing. In the line font-size: 120%  change that number to whatever suits you. This will step up or down the body text size in the post.



Wednesday 7 October 2015

Using Android

Well after a few days of setting things up and testing (with a prepay account) I have finally switched my phone to my regular on account plan. I have a couple of coloured backs on order for it too, although they are difficult to get in NZ; fortunately it doesn't cost too much to have Amazon post one across to NZ. 

The built in email app works fine with Exchange, and the Gmail app works fine with Gmail, and the Outlook app from Microsoft works fine with Live accounts. The advantage of using the Outlook app instead of setting up my Live account from my Windows phone as IMAP, is that it immediately brought down my address book from Windows Phone, which includes all the phone numbers I previously had stored. However it doesn't look like the app can access IMAP accounts which means I will have to use the Gmail app; fortunately it isn't as messy to use multiple email apps as it is on a PC because their notifications are all integrated into the notification centre that comes up on the lock screen and when you pull down from the top. 

Live tiles are all the rage in Windows Phone of course, but they are limited, and the notification centre in Android is probably just as good overall, although I will miss having the visible calendar that showed everything by default, and will have to make sure I keep up with what is in my calendars by some means. I am guessing the Outlook app should be able to do calendar notifications.

The biggest issue for any Android user is apps that will only work in the phone's internal memory, which is most of them. You can disable many of the built-in apps that you don't use and free up some space, or a small number of apps can be moved to the SD card. The problem is that an old trick of using the Android Device Bridge application running on a PC to force move apps to the SD card is not possible in the latest versions of Android (this is running 5.1, which it was easily updated to soon after I started using it). So Google is not making it easy for people with lower priced phones to make the best use of the onboard memory as a lot of apps will not be installable. For me I am just OK with using the Chrome browser to view Facebook and Trademe and some other sites.