English
English language posts
Chrome custom stylesheet
0
A few days ago I changed my Gmail theme into Preview (dense). It is clean and it suits to other Google services. It fine except one thing: it’s “denceness” is not as good as I want to. The problem is space between mail groups in Inbox. The headers of the group have too big spacing between them (padding-top) and due to that, the page is stretched too much (look at the image attached).
The solution?
Since I cannot edit any CSS files from Gmail’s themes, I had to find a way to change it in the browser. Many apps have their own custom stylesheets that we can edit to make our favorite pages look better. Most of them let us access them from the menu. But not Google Chrome.
To define custom styles for our page we have to change file hidden in the Chrome app directory structure. In Windows it’s placed under: user_dir\AppData\Local\Google\Chrome\User Data\Default\User StyleSheets\Custom.css.
Update [Oct 20 2011]! In Linux OS it is ~/.config/google-chrome/Default/User StyleSheets.
In the file (empty by default) you need to put your custom CSS code. In my case it was:
.Wg{
padding-top:4px !important;
}
The !important directive is needed, since the CSS will be ignored as being less important than page stylesheet. Voila! Now we have really dense theme. You can see difference on the image.
Note that when you save the Custom.css file Chrome immediately changes the style for the page (if opened). It useful, when you want to try many options without reloading the page. Another option is running Developers Tools of course.
The last problem is how to make custom stylesheets for different pages. For now, I haven’t been looking for solution, since I don’t need one. If you know any, let me know in the comment.
Few words about new Jolicloud
2
Well. I’ve been thinking and suddenly I came up with an idea of writing a few sentences about new (1.1) version of Jolicloud. I must admit that it is really improved comparing to version 1.0. The upgrade brought us many interesting and pretty useful changes, that made this system working better.
I was attending in the two upgrade approaches. One on my computer and the second on the Asus Eee PC netbook of my friend. On none of them upgrade went well. In my case (Windows installation version) it crashed, when I went, following the advice displayed on the screen, to the kitchen for my coffee. When I got back there was black screen with shell and some error like: “Something went wrong. Dropping to shell”. Well, no chance of repair. After the reboot the system crushed. After the reinstall on my Windows, everything is fine.
On the netbook it was even funnier. It was clean install made from the ISO image, so it was like normal GNU/Linux distribution. Upgrade failed of course. My friend tried making an upgrade from the shell, which took us about 6 hours for all the packages download, install and configure. After then the system shown the message about error of the package manager, which could not install jolicloud-common package. After another hours of running some repairs the system started, but there was no program bar on the top. I still don’t know how it ended. So, if you can, just make clean install of Jolicloud, instead of counting on the upgrade system.
Now let’s see some improvements made in this new version. (more…)
Homepage like House – page creation hints for beginners
0Creating your own homepage is a great opportunity to check your abilities in creating web pages for the first time. Usually when you make your own webpage you are doing everything: from making a graphic design through writing HTML, CSS and JavaScript to programming the server-side apps. Many people, especially those, who start creating their own webpage make mistakes by putting everything into the layout. And by everything I mean really everything. People, mostly, those older (e.g. from the universities) think, that by placing more garish elements they will make the homepage more attractive. Obviously, it is huge mistake.
While creating your own homepage it is good to think about it like it would be your real home. I think it is perfect method of creating such a page in many aspects. With this in mind I will show you how should the work over your own homepage look like.
Build your house
Let’s analyze the steps of a house building. When you’re building such you:
- Choose and buy a plans
- Buy a terrain for a building
- Make a foundations
- Build the walls, floors, roof.
- Design interior of every room
The way you should build you homepage is similar to the description above. In the next points I will describe the connections between the house and webpage creation. (more…)
gvChart plugin – jQuery with Google Charts
82gvChart is a plugin for jQuery, that uses Google Charts to create interactive visualization by using data from the HTML table tag. It is easy in use and additionally it allows you to create five types of the charts.
Check out demo Download plugin from github
Important: Download link and Demo are up to date (version 1.0.1).
Some time ago I tried to find some JavaScript libraries, which would easily create nice charts. I have found two: jQuery Visualise and Google Charts. First one was interesting because of using table HTML tag as a data source for the chart, but it isn’t interactive and there are no labels with values of every chart node. Google Charts provide useful tools for creating interactive charts, but it uses JavaScript Array() as a source of data. So I decided to create my own hybrid of these features. (more…)