ElkArte Community

Elk Development => Theme development => Topic started by: Wizard on August 24, 2015, 03:26:40 am

Title: Smooth - ElkArte Theme
Post by: Wizard on August 24, 2015, 03:26:40 am
Anyone like to have this ?

(http://www.elkarte.net/community/index.php?action=dlattach;topic=2854.0;attach=2692;image)
Title: Re: Smooth - ElkArte Theme
Post by: Flavio93Zena on August 24, 2015, 03:40:09 am
You link to an attachment that is not visible to guests so...
Title: Re: Smooth - ElkArte Theme
Post by: Wizard on August 24, 2015, 03:43:48 am
Check now :)
Title: Re: Smooth - ElkArte Theme
Post by: Flavio93Zena on August 24, 2015, 03:48:20 am
I like that color!
Title: Re: Smooth - ElkArte Theme
Post by: Wizard on August 24, 2015, 05:53:59 am
Issue with author info. It seems the author name is listed globally as a menu which are used at other areas as well. How can we change the author area info without affecting other menu / listing levels ?
Title: Re: Smooth - ElkArte Theme
Post by: Wizard on August 24, 2015, 05:58:35 am
How would you like to have the boards in " Smooth " ? I guess it is better without a wrapper.


(http://www.elkarte.net/community/index.php?action=dlattach;topic=2854.0;attach=2704;image)
Title: Re: Smooth - ElkArte Theme
Post by: Wizard on August 24, 2015, 06:01:38 am
Without wrapper

(http://www.elkarte.net/community/index.php?action=dlattach;topic=2854.0;attach=2706;image)
Title: Re: Smooth - ElkArte Theme
Post by: Wizard on August 24, 2015, 06:17:29 am
Another thing to be dealt with,

icon_anchor is obscured. Not sure what happened. I have give a background colour = black to make sure that it exist ( even as obscured )

Title: Re: Smooth - ElkArte Theme
Post by: Wizard on August 24, 2015, 06:53:49 am
Need to fix author info and board icons. Everything else seems to be fine

(http://www.elkarte.net/community/index.php?action=dlattach;topic=2854.0;attach=2714;image)
Title: Re: Smooth - ElkArte Theme
Post by: emanuele on August 24, 2015, 08:38:33 am
Quote from: Wizard – Issue with author info. It seems the author name is listed globally as a menu which are used at other areas as well. How can we change the author area info without affecting other menu / listing levels ?
I guess you attached the color to some dropdown list class, right?
I think you can restrict it with the class .poster (or .poster_area, don't remember exactly).
Title: Re: Smooth - ElkArte Theme
Post by: Wizard on August 24, 2015, 08:54:13 am
What about board icons ? Hope you can see the very slight Black background which appears as  thin line.
Title: Re: Smooth - ElkArte Theme
Post by: Wizard on August 24, 2015, 09:18:46 am
Quote from: emanuele –
Quote from: Wizard – Issue with author info. It seems the author name is listed globally as a menu which are used at other areas as well. How can we change the author area info without affecting other menu / listing levels ?
I guess you attached the color to some dropdown list class, right?
I think you can restrict it with the class .poster (or .poster_area, don't remember exactly).

.linklevel1, .linklevel1:link, .linklevel1:visited {

is causing the issue. I even tried " background-color: white ! important"  for .poster, but didn't work.
Title: Re: Smooth - ElkArte Theme
Post by: Wizard on August 24, 2015, 09:22:12 am
Current set up is not bad. Can someone tell me how I can import these edits as a theme package ?


Title: Re: Smooth - ElkArte Theme
Post by: emanuele on August 24, 2015, 03:47:25 pm
If you can post the selector you used it would be easier.
If you have used .linklevel1, then, that's rather normal, linklevel1 and alike are meant to be generic and applicable to many things, just use .poster and .linklevel1 together as I suggested above:
Code: [Select]
.poster .linklevel1
Title: Re: Smooth - ElkArte Theme
Post by: Wizard on August 25, 2015, 02:29:57 pm
Quote from: emanuele – If you can post the selector you used it would be easier.
If you have used .linklevel1, then, that's rather normal, linklevel1 and alike are meant to be generic and applicable to many things, just use .poster and .linklevel1 together as I suggested above:
Code: [Select]
.poster .linklevel1

Any help possible with board icons and exporting this theme ?
Title: Re: Smooth - ElkArte Theme
Post by: Wizard on August 26, 2015, 02:03:10 am
Quote from: emanuele – If you can post the selector you used it would be easier.
If you have used .linklevel1, then, that's rather normal, linklevel1 and alike are meant to be generic and applicable to many things, just use .poster and .linklevel1 together as I suggested above:
Code: [Select]
.poster .linklevel1

No luck.
Title: Re: Smooth - ElkArte Theme
Post by: radu81 on August 26, 2015, 02:13:48 am
Quote from: Wizard – Any help possible with board icons ...

maybe this can be useful for you http://www.elkarte.net/community/index.php?topic=966.0
Title: Re: Smooth - ElkArte Theme
Post by: Wizard on August 26, 2015, 02:23:35 am
Attaching work so far. Can someone test it for me.

Title: Re: Smooth - ElkArte Theme
Post by: Wizard on August 26, 2015, 02:30:04 am
Quote from: radu81 –
Quote from: Wizard – Any help possible with board icons ...

maybe this can be useful for you http://www.elkarte.net/community/index.php?topic=966.0

@radu, the issue is the icons are obscured.
Title: Re: Smooth - ElkArte Theme
Post by: Flavio93Zena on August 26, 2015, 03:46:13 am
Live link...?
Title: Re: Smooth - ElkArte Theme
Post by: Wizard on August 26, 2015, 03:49:20 am

Using local host. Theme file attached in previous post.
Title: Re: Smooth - ElkArte Theme
Post by: emanuele on August 26, 2015, 08:36:18 am
Board icons what? ;)
Exporting (as I said somewhere else) is "just" tweak the theme-info.xml to replace your name/nick and name of the theme (and maybe something else, it's xml, should be somehow easy to read) and add files and folders to a zip. That should be it.
Title: Re: Smooth - ElkArte Theme
Post by: Wizard on October 09, 2015, 03:53:44 am
Fixed the board icon obscuring issue. Replaced it by font awesome using

Code: [Select]
.board_icon {
background-image: none;
}

.board_icon:before {
font-family: "FontAwesome";
content: '\f114';
position: relative;
top: 5px;
font-size: 2.7em;
opacity: 0.8;
color: #419EE3;

}
Title: Re: Smooth - ElkArte Theme
Post by: Wizard on October 09, 2015, 03:55:08 am
Here is what we have now

(http://www.elkarte.net/community/index.php?action=dlattach;topic=2854.0;attach=2862;image)
Title: Re: Smooth - ElkArte Theme
Post by: Wizard on October 09, 2015, 03:56:48 am
I have a small issue to solve. Now there is only one board icon changed. How to replace all 3 with font awesome icons ? I mean read, unread and redirection.
Title: Re: Smooth - ElkArte Theme
Post by: Wizard on October 09, 2015, 04:10:15 am
Thread listing

(http://www.elkarte.net/community/index.php?action=dlattach;topic=2854.0;attach=2864;image)
Title: Re: Smooth - ElkArte Theme
Post by: radu81 on October 09, 2015, 04:18:53 am
maybe this topic can be useful to you http://www.elkarte.net/community/index.php?topic=966
Title: Re: Smooth - ElkArte Theme
Post by: Wizard on October 09, 2015, 04:35:38 am
Thanks, I was referring to the same

(http://www.elkarte.net/community/index.php?action=dlattach;topic=2854.0;attach=2866;image)
Title: Re: Smooth - ElkArte Theme
Post by: Wizard on October 09, 2015, 04:41:07 am
I am still having problem with obscured board icons. Unless I use

Code: [Select]
.board_icon:before {
font-family: "FontAwesome";
content: '\f114';
position: relative;
top: 5px;
font-size: 2.7em;
opacity: 0.8;
color: #419EE3;
padding-right: 5px;
}

, it is like this

(http://www.elkarte.net/community/index.php?action=dlattach;topic=2854.0;attach=2868;image)
Title: Re: Smooth - ElkArte Theme
Post by: Wizard on October 09, 2015, 04:54:38 am
Another issue is with post bit

(http://www.elkarte.net/community/index.php?action=dlattach;topic=2854.0;attach=2870;image)
Title: Re: Smooth - ElkArte Theme
Post by: Wizard on October 09, 2015, 04:55:54 am
Only these two " issues ", I guess.
Title: Re: Smooth - ElkArte Theme
Post by: Wizard on October 09, 2015, 05:05:10 am
Quote from: emanuele – If you can post the selector you used it would be easier.
If you have used .linklevel1, then, that's rather normal, linklevel1 and alike are meant to be generic and applicable to many things, just use .poster and .linklevel1 together as I suggested above:
Code: [Select]
.poster .linklevel1

When I use

Code: [Select]
.poster .linklevel1 {

    background: #fff;
}

I get the following ( no user name visible, but visible at hover )

Title: Re: Smooth - ElkArte Theme
Post by: Wizard on October 09, 2015, 05:11:28 am
Fixed using

Code: [Select]
.poster .name {
  
   color: black;

}

Only 1 " issue " left, board icon obscuring

(http://www.elkarte.net/community/index.php?action=dlattach;topic=2854.0;attach=2874;image)
Title: Re: Smooth - ElkArte Theme
Post by: Wizard on October 09, 2015, 05:19:12 am
I guess I found out why the board icons are obscured. It is using class

Code: [Select]
class="board_icon off_board"

it should be

Code: [Select]
class="new_none_board"


How to change it ?
Title: Re: Smooth - ElkArte Theme
Post by: Wizard on October 09, 2015, 05:53:00 am
I changed the font awesome classes to default classes. Still board icons are not appearing.
Title: Re: Smooth - ElkArte Theme
Post by: Wizard on October 09, 2015, 06:17:23 am
Anybody who wish to use this theme can find it attached. Just spread good things about ElkArte in return. By the way, renamed the theme as Silk.

PS : I am still to fix the board icon issue. Will update it once I find out what went wrong
Title: Re: Smooth - ElkArte Theme
Post by: Wizard on October 09, 2015, 06:26:32 am
Fixed the footer green band

Title: Re: Smooth - ElkArte Theme
Post by: Wizard on October 09, 2015, 10:42:32 am
This is the part I need help with @TE

Code: [Select]
/*	$BOARDICONS	*/
/* ------------------------------------------------------- */
.board_icon {
display: block;
float: left;
width: 48px;
height: 48px;
       
}
.board_key:before {
display: block;
float: left;
height: 24px;
width: 26px;
content: "";
}
.category_boards .board_icon, .board_key:before {
background-repeat: no-repeat;
background-image: url(../../images/_light/board_icons.png);
}
.on_board {
background-position: 0 0;
}
.on2_board {
background-position: -72px 0;
}
.off_board {
background-position: -144px 0;
}
.redirect_board {
background-position: -216px 0;
}
.new_some_board:before {
background-position: -300px -14px;
}
.new_none_board:before {
background-position: -372px -14px;
}
.new_redirect_board:before {
background-position: -444px -14px;
}

Title: Re: Smooth - ElkArte Theme
Post by: Wizard on October 09, 2015, 10:45:57 am
I want to use f114 as on, f114 with another colour as off and f08E as redirect icon.
Title: Re: Smooth - ElkArte Theme
Post by: emanuele on October 09, 2015, 06:32:46 pm
If you are using fontawesome, you can just drop all the background-position since they refer to the images... actually, I think you can drop the entire block of css you posted there.

I see you are already using FA, so the problem is to switch the different icons on different conditions?
Title: Re: Smooth - ElkArte Theme
Post by: Wizard on October 09, 2015, 07:03:40 pm
Thanks for the suggestion @emanuele . This piece of code did the trick

Code: [Select]
.board_icon:before {
font-family: "FontAwesome";
content: '\f114';
position: relative;
top: 5px;
font-size: 2.7em;
opacity: 0.8;
color: #419EE3;
padding-right: 5px;
}

.on_board:before {
font-family: "FontAwesome";
content: '\f114';
position: relative;
top: 5px;
        font-size: 2.7em;
opacity: 0.8;
color: #419EE3;
}

.off_board:before {
font-family: "FontAwesome";
content: '\f114';
position: relative;
top: 5px;
        font-size: 2.7em;
opacity: 0.8;
color: #605E68;
}

.redirect_board:before {
font-family: "FontAwesome";
content: '\f08e';
position: relative;
top: 5px;
        font-size: 2.7em;
opacity: 0.8;
color: #419EE3;
}

.new_some_board:before {
font-family: "FontAwesome";
content: '\f114';
position: relative;
top: 5px;
font-size: 2.7em;
opacity: 0.8;
color: #419EE3;
padding-right: 5px;
}


.new_none_board:before {
font-family: "FontAwesome";
content: '\f114';
position: relative;
top: 5px;
font-size: 2.7em;
opacity: 0.8;
color: #605E68;
padding-right: 5px;
}

.new_redirect_board:before {
font-family: "FontAwesome";
content: '\f08e';
position: relative;
top: 5px;
font-size: 2.7em;
opacity: 0.8;
color: #419EE3;
        padding-right: 5px;

}
Title: Re: Smooth - ElkArte Theme
Post by: Wizard on October 09, 2015, 07:53:11 pm
How can I remove the variant option ?

(http://www.elkarte.net/community/index.php?action=dlattach;topic=2854.0;attach=2885;image)
Title: Re: Smooth - ElkArte Theme
Post by: Wizard on October 09, 2015, 09:34:07 pm
Just noticed, the icons on top does not appear in small screen view

Title: Re: Smooth - ElkArte Theme
Post by: Wizard on October 10, 2015, 02:08:06 am
Fixed the issue. data-icon in media query for small screens was not getting read. Moved to custom_light.css

(http://www.elkarte.net/community/index.php?action=dlattach;topic=2854.0;attach=2891;image)
Title: Re: Smooth - ElkArte Theme
Post by: Wizard on October 10, 2015, 02:16:38 am
Fixed the blue background

(http://www.elkarte.net/community/index.php?action=dlattach;topic=2854.0;attach=2893;image)
Title: Re: Smooth - ElkArte Theme
Post by: emanuele on October 10, 2015, 02:26:15 am
Quote from: Wizard – How can I remove the variant option ?
I though I could answer now, but there are a couple of things that require a bit of explanation...
This evening. ;D
Title: Re: Smooth - ElkArte Theme
Post by: Wizard on October 10, 2015, 02:27:43 am
Sure. Thanks.
Title: Re: Smooth - ElkArte Theme
Post by: emanuele on October 10, 2015, 03:48:43 pm
Okay, here I am.

First thing you have to remove the variants declaration from index.template.php: open it, search for:
Code: [Select]
'theme_variants' => array('light', 'besocial'),
and replace the string with:
Code: [Select]
'theme_variants' => array(),
This covers the "remove the option to select a variant.
Then, you can delete in the "css" folder the directories "_light" and "_besocial".

Actually, this morning I though it was more complex because I was thinking at another thing... :-[
Title: Re: Smooth - ElkArte Theme
Post by: Wizard on October 10, 2015, 04:10:35 pm
Actually " Silk " is a CSS mod of _light. So I would to rename it as Silk and get rid of _besocial.
Title: Re: Smooth - ElkArte Theme
Post by: Wizard on October 10, 2015, 04:18:05 pm
I changed it to

Code: [Select]
'theme_variants' => array('light'),

How can I rename " light " to " Silk " ? And which all templates to keep ?
Title: Re: Smooth - ElkArte Theme
Post by: emanuele on October 10, 2015, 04:30:02 pm
If you have just one, you don't need to have any variant at all (also because it may be slightly confusing, even though it may be nice to keep it in case you want to add in the future... oh well, up to you :P).
Anyway, to change light to silk you just have to change it and rename the "_light" directory and the files inside (e.g. indx_light.css) it to "_silk" (and "index_silk.css" and so on).
Title: Re: Smooth - ElkArte Theme
Post by: Wizard on October 10, 2015, 04:38:05 pm
Great ! So, only _silk and index.template.php ?
Title: Re: Smooth - ElkArte Theme
Post by: emanuele on October 10, 2015, 04:39:11 pm
I'm not sure what you mean, but I guess... yes. :P
Title: Re: Smooth - ElkArte Theme
Post by: Wizard on October 10, 2015, 04:42:41 pm
Let me try the new package.  ;)
Title: Re: Smooth - ElkArte Theme
Post by: Wizard on October 10, 2015, 04:59:15 pm
Works fine. Thanks.

But when I remove " Silk " from array, it was not loading any css at all. So left " Silk " inside the array ()

Will upload the latest package now.
Title: Re: Smooth - ElkArte Theme
Post by: Wizard on October 10, 2015, 05:19:43 pm
Is it possible to replace the main menu with this ? : http://cssmenumaker.com/menu/simple-responsive-menu
Title: Re: Smooth - ElkArte Theme
Post by: emanuele on October 10, 2015, 06:07:32 pm
It should be.
You'll have to drop some stuff (e.g. the initialization of superfish/click in theme.js and some css, but should e doable. ;)
Title: Re: Smooth - ElkArte Theme
Post by: Wizard on October 10, 2015, 06:29:13 pm
Help me :D
Title: Re: Smooth - ElkArte Theme
Post by: Wizard on October 11, 2015, 07:55:48 am
Ok, replaced the menu. But some button class is over riding menu listing.

Screen shot

(http://www.elkarte.net/community/index.php?action=dlattach;topic=2854.0;attach=2905;image)

(http://www.elkarte.net/community/index.php?action=dlattach;topic=2854.0;attach=2908;image)

Title: Re: Smooth - ElkArte Theme
Post by: Wizard on October 11, 2015, 08:00:54 am
However, responsive version has improved after new addition
Title: Re: Smooth - ElkArte Theme
Post by: Wizard on October 11, 2015, 08:32:18 am
Ok, it has come up nicely. The only issue now is the drop down shows white listing unless it is hovered. Attaching the work so far. Any help would be appreciated

(http://www.elkarte.net/community/index.php?action=dlattach;topic=2854.0;attach=2912;image)
Title: Re: Smooth - ElkArte Theme
Post by: Wizard on October 11, 2015, 04:56:31 pm
What should I give for content ?

Code: [Select]
#mainmenu ul:after {
  content: " ";
  display: block;
  font-size: 0;
  height: 0;
  clear: both;
  visibility: hidden;
}
Title: Re: Smooth - ElkArte Theme
Post by: Wizard on October 11, 2015, 05:58:35 pm
Was a CSS colour issue. Solved. :)
(http://www.elkarte.net/community/index.php?action=dlattach;topic=2854.0;attach=2915;image)
Title: Re: Smooth - ElkArte Theme
Post by: emanuele on October 11, 2015, 06:09:23 pm
I would, but it's not easy! xD

Anyway you are solving pretty much all the issues, right? Great!
Title: Re: Smooth - ElkArte Theme
Post by: Wizard on October 11, 2015, 06:21:55 pm
It's ok. No know issue at the moment. :)

If possible, help me with replacing icons in ACP with font awesome. Also a general idea on how to replace a non board icon with font awesome.
Title: Re: Smooth - ElkArte Theme
Post by: emanuele on October 18, 2015, 11:10:51 am
Honestly I'm not that informed on the theme to give you such suggestions...