Only an idea

About the template and stylesheet - and changing the menu
Tata
Posts: 2121
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Only an idea

Postby Tata » Thu Jan 08, 2015 11:26 pm

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.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

cmb
Posts: 10267
Joined: Tue Jun 21, 2011 11:04 am
Location: Mü-Sa, RLP, DE
Contact:

Re: Only an idea

Postby cmb » Fri Jan 09, 2015 12:47 am

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 (= 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";
Christoph M. Becker –Plugins for CMSimple_XH, but not for CMSimple 4+

kayboard
Posts: 56
Joined: Mon May 26, 2008 9:15 am

Re: Only an idea

Postby kayboard » Fri Jan 09, 2015 9:04 am

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

Tata
Posts: 2121
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: Only an idea

Postby Tata » Fri Jan 09, 2015 10:26 am

I have just adjusted the template slightly. New version is both accessible and downloadable.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

lck
Posts: 666
Joined: Wed Mar 23, 2011 11:43 am
Location: Germany
Contact:

Re: Only an idea

Postby lck » Fri Jan 09, 2015 3:17 pm

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.
Last edited by lck on Fri Jan 09, 2015 4:11 pm, edited 1 time in total.
Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig ;)       ► CMSimple_XH Templates & OnePage-Templates ◄

Tata
Posts: 2121
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: Only an idea

Postby Tata » Fri Jan 09, 2015 4:05 pm

I'll try in next version, thank you for testing.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

Tata
Posts: 2121
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: Only an idea

Postby Tata » Fri Jan 09, 2015 9:36 pm

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.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

maeg
Posts: 525
Joined: Fri Feb 20, 2009 2:27 pm
Location: Agerbæk, Denmark
Contact:

Re: Only an idea

Postby maeg » Sat Jan 10, 2015 8:43 am

+1
I really like the fixed footer section

Tata
Posts: 2121
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: Only an idea

Postby Tata » Sat Jan 10, 2015 11:52 am

THX.
New small adjustments were made in all templates. Now they are actualized both on webpabes and in downloads.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

Tata
Posts: 2121
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: Only an idea

Postby Tata » Mon Oct 03, 2016 9:53 pm

I tried to use this hint viewtopic.php?f=8&t=8354&p=45632&hilit=jump#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.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.


Return to “Changing layout”

Who is online

Users browsing this forum: No registered users and 1 guest