Page 1 of 4

Only an idea

Posted: Thu Jan 08, 2015 11:26 pm
by Tata
See the result of playing with new webpage architecture.
http://www.164xh.cmsimple.sk/
I would appreciate any comment. Esp. how to set bigger size for fonts in edit mode and how to achieve a jump to the content when clicking the menu.

Re: Only an idea

Posted: Fri Jan 09, 2015 12:47 am
by cmb
Tata wrote:See the result of playing with new webpage architecture.
Awesome! :)
Tata wrote:how to set bigger size for fonts in edit mode
Your template has <body class="body">, so you can add rules for body and/or .body. It's important to note that .body is usually not available in edit mode, but body is. Furthermore one should note that TinyMCE (currently) sets the font size of body to 10px. So in your case the following addition to the template's stylesheet should help:

Code: Select all

body {
  font-size: 1em;
}
Tata wrote:how to achieve a jump to the content when clicking the menu
The best solution would be to use a customized toc(). However, it might be simpler (and also sufficient) to add some JavaScript just before the closing </body> tag:

Code: Select all

<script type="text/javascript">/* <![CDATA[ */
(function () {
    "use strict";

    var navigation = document.getElementById("navigation"),
        anchors = navigation.getElementsByTagName("a"),
        i,
        n;

    for (i = 0, n = anchors.length; i < n; i += 1) {
        anchors[i].href += "#navigation";
    }
}());
/* ]]> */</script>
PS: Um, the code above jumps to the top of the navigation. To jump to the content, you would have to set an id attribute on div.wrapper_content, say wrapper_content, and change the respective line:

Code: Select all

anchors[i].href += "#wrapper_content";

Re: Only an idea

Posted: Fri Jan 09, 2015 9:04 am
by kayboard
Dear Tata,

a fresh new, brilliant idea.

Regarding coding I´m not able to give any comment.
Regarding the idea and styling: TOP!

Cheers

Kay

Re: Only an idea

Posted: Fri Jan 09, 2015 10:26 am
by Tata
I have just adjusted the template slightly. New version is both accessible and downloadable.

Re: Only an idea

Posted: Fri Jan 09, 2015 3:17 pm
by lck
Hallo Tata,

Nice template, I like it.
Have tested it with my Smartphone.
IMHO, for mobile Browser/Smartphones would be better a smaller font for the menu items. Also a smaller menu background and footer.

Re: Only an idea

Posted: Fri Jan 09, 2015 4:05 pm
by Tata
I'll try in next version, thank you for testing.

Re: Only an idea

Posted: Fri Jan 09, 2015 9:36 pm
by Tata
After testing on a smartphone I don't see any serious problem. Everybody is free to modify the template. Please, let me know if you will use the template and/or send me evtl. modified version.

Here find more new templates.
Download links and the templateswitch find on Templates page.

Re: Only an idea

Posted: Sat Jan 10, 2015 8:43 am
by maeg
+1
I really like the fixed footer section

Re: Only an idea

Posted: Sat Jan 10, 2015 11:52 am
by Tata
THX.
New small adjustments were made in all templates. Now they are actualized both on webpabes and in downloads.

Re: Only an idea

Posted: Mon Oct 03, 2016 9:53 pm
by Tata
I tried to use this hint http://cmsimpleforum.com/viewtopic.php? ... ump#p45632 with standard template (no onepage). But there this doesn't work. Have a look at http://ukastelana.cmsimple.sk with a window of less than 900px width. There are nowsboxes above the content. So jumping to the content would be very helpful.