Upcoming Theme - Elegance - WORKSHOP

Upcoming Theme - Elegance - WORKSHOP

by Julian Ridden -
Number of replies: 73

Jonny Ive is famous for saying "True elegance comes from simplicity" and my next theme tries to convey this. And while the design tries to say simplicity, it is still packed with features not found in standard themes.

This two column theme is targeted at those who put visual appearance at the top of their list of requirements. While the code is all mine, many of the ideas are taken from various sites that have impressed me over the past 12 months.

Here are some sneak peak screenshots to whet the appetite.

Features include:

  • Responsive slideshow on the homepage
  • New course "tiles" to display resources and activities
  • Theme colors can be set.
  • Built on Bootstrap 3 (with huge kudos to Bas Brands)
  • Redesigned "my" page
  • Messages now show in header dropdown
  • All user options show in header dropdown
  • more to come...

It is not quite finished yet, but for those who like to tinker, it is in Github now.

Frontpage

 

Dashboard

 

Course Page

Julian

(Edited by Mary Evans - original submission Tuesday, 7 January 2014, 11:53 AM)

ADDED WORKSHOP TO SUBJECT TITLE THEN PEOPLE WILL NOT BE AS CONFUSED AS I WAS THINKING THIS WAS A REASONABLY STABLE THEME WHICH IT ISN'T

(Edited by Michael Blake - original submission Thursday, 9 January 2014, 11:37 PM)

Average of ratings: Useful (9)
In reply to Julian Ridden

Re: Upcoming Theme - Elegance

by Stuart Lamour -
Picture of Plugin developers

ace work - glad to see another modern moodle theme taking advantage of jquery/modernizr etc

found a bug though - Hartnell is from London, England ;)

p.s. the next and previous looks familiar smile

 

 

 

 

 

In reply to Julian Ridden

Re: Upcoming Theme - Elegance

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Hi Julian,

Cool!

In 'core_renderer.php' what are the significant changes of 'print_single_section_page' to the topics format please?  So that I / we / you could make one for the Weeks, Grid, Collapsed Topics.... course formats.

Gareth

In reply to Gareth J Barnard

Re: Upcoming Theme - Elegance

by Julian Ridden -

Gareth.

Probably easiest you hit up the code I have posted in github so you can see what was done rather than me trying to explain it all here smile

JR

In reply to Julian Ridden

Re: Upcoming Theme - Elegance

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Hi Julian,

Will do when I get a mo.  Been working on MDL-43112 - if you get a chance and are near Damyon Wiese, could persuade him to hit the integrate button because its so important to get it done smile.

Cheers,

Gareth

In reply to Gareth J Barnard

Re: Upcoming Theme - Elegance

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Hi Julian,

I've been thinking about this and I have an elegant but slightly technical solution.  As some users will not have Collapsed Topics and Grid installed (can't think why!), then their rendering classes will not exist, therefore the overridden code needs to be in separate files and only included when the formats exist.  Secondly, the print single section code is complex, so I'll look at refactoring the formats such that they call a protected method containing the code to be overridden in your theme, then you only have to override a very small portion of code and there is much less maintenance for you.  This will force the requirement of certain versions of CT and Grid etc. but is worth it in the long term.

Please can you let me know when you are happy with the stability of the overridden methods before I start work.

Cheers,

Gareth

In reply to Julian Ridden

Re: Upcoming Theme - Elegance

by Hartmut Scherer -

Hi Julian,

I am excited about your latest theme elegance and downloaded it from GitHub, renamed and installed it on a local installation of Moodle 2.6. I probably overlooked something or missed to do it properly as home looks like this:

Elegance (screenshot of home)In config.php I saw that elegance uses two other theme sheets: moodle and nprogress. From where can I download these themes? Or will both themes be included in Moodle 2.6.1?

Thanks again for your investment of time.

With kind regards,

Hartmut

In reply to Hartmut Scherer

Re: Upcoming Theme - Elegance

by Richard Oelmann -
Picture of Core developers Picture of Plugin developers Picture of Testers

Hartmut,

Those are not separate themes, they are css style sheets within the theme itself - they are already in the theme's style folder

Richard

In reply to Richard Oelmann

Re: Upcoming Theme - Elegance

by Hartmut Scherer -

Hi Richard,

Thanks for your reply and for helping me understanding style sheets. I still haven't found out why it doesn't display properly. 

With kind regards,

Hartmut

In reply to Hartmut Scherer

Re: Upcoming Theme - Elegance

by Mary Evans -

just check to see that you don't have a theme within a theme so to speak. You say you downloaded the zip file, and renamed that folder. So just check that that folder IS the folder where all the files are?

I think you will find that the ZIP file extracts the Elegance theme into a folder called moodle-theme_elegance-master WHICH IS ACTUALLY INSIDE a folder called called moodle-theme_elegance-master.

So you have probably got ...

moodle/theme/elegance/moodle-theme_elegance-master

So you need to

  1. COPY the inner folder 'moodle-theme_elegance-master' and paste that folder into your moodle/theme/ directory
  2. Next DELETE the elegance folder you originally renamed.
  3. Next RENAME the correct folder.

I hope this helps?

Mary

Average of ratings: Useful (1)
In reply to Mary Evans

Re: Upcoming Theme - Elegance

by Hartmut Scherer -

Hi Mary,

Thank you for your reply. I am not sure whether I should report the error message here or in the Moodle Tracker

I installed a fresh Bitnami-Moodle 2.6, added the theme Essential which displays properly and also added Elegance (Build: 20140109). When I tried to select Elegance, I got this error message:

Coding error detected, it must be fixed by a programmer: block_manager has not yet loaded the blocks, to it is too soon to request the information you asked for.

With kind regards,

Hartmut

In reply to Hartmut Scherer

Re: Upcoming Theme - Elegance

by Julian Ridden -

Hi Hartmut.

Elegance is in "Beta" status and is receiving updates on a daily basis. I would not recommend this for any live site.

When most of the bugs are cleared I will make it a "stable" release, add it to the plugins DB and from that point you should stop getting errors. And if you do find any then use the tracker to report them.

For now, as I am still working on it, different things will probably break daily. Sorry about that. smile

Before you ask, it should be completed in the next two weeks as I am presenting n it at the German Moodle Moot as well as delivering a two day workshop on how to build Bootstrap themes in Moodle. Cant have buggy code making me look like I don't know what I am doing by then :P

Julian

In reply to Julian Ridden

Re: Upcoming Theme - Elegance

by Hartmut Scherer -

Thanks, Julian, for your response. I am not in a hurry. I am looking forward to the release of the stable version and will wait for it.

With kind regards,

Hartmut

In reply to Hartmut Scherer

Re: Upcoming Theme - Elegance

by Mary Evans -

That's interesting...sounds like a layout problem. Can you remember which page you were on at the time?

In reply to Mary Evans

Re: Upcoming Theme - Elegance

by Hartmut Scherer -

This happened when I selected Elegance on the Theme select page. 

Attachment Debug info-end.jpg
In reply to Hartmut Scherer

Re: Upcoming Theme - Elegance

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Hi Hartmut,

I can replicate the issue on that screen too, but on Bas's Bootstrap V3 M2.6 branch.  But only if '/theme/index.php' has parameters.  As soon as you remove the parameters, everything is fine.

Cheers,

Gareth

In reply to Gareth J Barnard

Re: Upcoming Theme - Elegance

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Ok, coding fault fix is:

In 'default.php', change:

$regions = bootstrap_grid();

to

$regions = bootstrap_grid($hassidepre, $hassidepost);

In 'lib.php' change:

function bootstrap_grid() {

to

function bootstrap_grid($hassidepre, $hassidepost) {

and remove the first three lines in the function, being the global and the $hassidepre and $hassidepost.

Average of ratings: Useful (1)
In reply to Gareth J Barnard

Re: Upcoming Theme - Elegance

by Julian Ridden -

Many thanks Gareth.

A variation on this is now in the Github version.

Julian

In reply to Julian Ridden

Re: Upcoming Theme - Elegance

by Mary Evans -

HI Julian,

After cloning this theme direct into the latest Moodle (master) branch on my localhost server, all was well until I selected the theme and found that the font's don't show up, so I went hunting for the CSS that governs them, with not much success.

Any ideas?

Also there does not appear to be a [[settings:css]] in any of the stylesheets. I can't see that as being this intentional, otherwise why have a CSS settings box? Or did I miss something?

I can't comment on the theme yet until I get it working as it is supposed to.

Thanks

Mary

In reply to Julian Ridden

Re: Upcoming Theme - Elegance

by Nadav Kavalerchik -
Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators

Beautiful theme!

(Is it RTL ready? bootstrap-wise?)

In reply to Nadav Kavalerchik

Re: Upcoming Theme - Elegance

by David Scotson -
RTL in Bootstrap 3 is targeted for 3.1 (which isn't out yet) and seems to be one of the outstanding TODO items:

https://github.com/twbs/bootstrap/issues/9397 (3.1 Planning)

https://github.com/twbs/bootstrap/issues/11734 (3.1.0 Ship List)
Average of ratings: Useful (1)
In reply to David Scotson

Re: Upcoming Theme - Elegance

by Nadav Kavalerchik -
Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators

Thanks David. I am also following this.

Actually, this is why I asked Julian if he made some extra fixes in the theme to RTL, since bootstrap have not included RTL support yet.

Since, Bootstrapbase and Clean had to include a lot of RTL fixes for them to look properly in RTL.

Tomorrow, I will have time to finally download the theme and look at it myself and find out what needs to be done smile

 

Again, Amazing work!!!

In reply to Julian Ridden

Re: Upcoming Theme - Elegance - WORKSHOP

by Guido Gautsch -

Looks fantastic Julian. cool

Really looking forward to taking this for a spin.

In reply to Guido Gautsch

Re: Upcoming Theme - Elegance - WORKSHOP

by Mary Evans -

Drive carefully, the speed restriction is 20mph smile

In reply to Julian Ridden

Re: Upcoming Theme - Elegance - WORKSHOP

by Justin Hunt -
Picture of Particularly helpful Moodlers Picture of Plugin developers

Boy this is really a "raising the bar" kind of theme. It is great.

After tinkering with it, my only real gripe is that the tinymce, sometimes overflows beneath the blocks on the right hand side. This makes it impossible to manually resize. I notice this for example in the description field when adding an assignment.

Also swf files have been banished to -10,000px on the left hand side. Curious as to why this is the case. I guess they've been sent to Coventry. I brought them back by adding this to the CSS box on the settings page. 

embed[type="application/x-shockwave-flash"] {
 position: static !important;
}

Average of ratings: Useful (1)
In reply to Julian Ridden

Re: Upcoming Theme - Elegance - WORKSHOP

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Hi all,

IMPORTANT NOTE

If you use this theme with my Collapsed Topics and / or Columns course formats, then you WILL encounter an error.  This has been partially addressed in https://github.com/moodleman/moodle-theme_elegance/pull/2 which describes a work around.  It is my fullest intent to implement something better both in the theme and the course formats that will hopefully be evidence for improving the core course format code in general so that it is more object orientated.

As the theme is under development I'm going to see where things go before I commit what is in effect a few days work for a proper solution.  This will require updating the theme and the course formats when it is done.

Cheers,

Gareth

Average of ratings: Useful (1)
In reply to Gareth J Barnard

Re: Upcoming Theme - Elegance - WORKSHOP

by Mary Evans -

Hi Gareth, Can you tell us more about the error you mentioned? Is it a just visual one, like some odd alignment,  or something that actually breaks the formal or the theme?

Thanks

Mary

In reply to Mary Evans

Re: Upcoming Theme - Elegance - WORKSHOP

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

It will be a full blown breakage along the lines of 'Must be fixed by a programmer'.  I'll do a screen shot when I get a chance with instructions of the work around.

It's all to do with the way that the method 'print_single_section_page' in '/course/format/renderer.php' is written.  It does not allow flexibility in terms of adapt-ion by calling other protected methods for the component parts.  The Elegance theme overrides it and changes it.  But because of the way the class hierarchy is performed for 'format_base' the theme has to extend the course formats extension of it.  This means an implementation on a per course format basis.  This can be simplified if the chunks are smaller and the overridden protected methods call theme specific functions - a write once, read many strategy - see https://github.com/moodleman/moodle-theme_elegance/blob/d74bd866547d994719e1025fda373f9b45d472f3/renderers/core_renderer.php#L491.  However, this is not the case for  'print_single_section_page'.  And Collapsed Topics and Columns implement a private call to set-up an internal attribute in their overridden version of 'print_single_section_page' so therefore Elegance when overriding the same method cannot do the same, it breaks.  The work around is simply to allow Elegance to set-up this private attribute by making it protected.  But in reality, this is a 'hack' as Elegance still has to implement many identical copies of 'print_single_section_page' one for each format!  = maintenance nightmare!

So, my long term solution will be to refactor 'print_single_section_page' such that is it is broken apart into small chunks which are the 'changes' which can be overridden and that overriding method calls the themes specific single implementation function.  Initially I will do this in all my formats so that the theme is simpler.  If that works, I'll propose changes to 'format_base' in core along the same lines - no regressions to contributed formats etc.  When that eventually / possibly gets past the 'process' then Elegance can update and be even simpler.

I hope all of this makes sense.  Currently it is a woolly cloud design in my mind.

Cheers,

Gareth

In reply to Gareth J Barnard

Re: Upcoming Theme - Elegance - WORKSHOP

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

P.S. As 'Elegance' is a development in progress, I don't want to do too much work while the implementation of 'print_single_section_page' in the theme is 'fluid'.

In reply to Julian Ridden

Re: Upcoming Theme - Elegance - WORKSHOP

by Julian Ridden -

Elegance is just about ready for prime time. You can see it in action ow live on the iMoot site.

Frontpagehttp://2014.imoot.org/

Login Screenhttp://2014.imoot.org/login

Course screenhttp://2014.imoot.org/course/view.php?id=6 (use guest access)

Feedback welcomed. If bugs as as few as I think I will release in the next week.

Julian

Average of ratings: Useful (2)
In reply to Julian Ridden

Re: Upcoming Theme - Elegance - WORKSHOP

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Additional.  If you use my Collapsed Topics or Columns formats, then the current versions, V2.6.1.2 and V2.6.1 respectively will NOT work with the Elegance theme in 'One section per page' mode. You will need to upgrade to V2.6.1.3 and V2.6.1.1 respectively, which will be released shortly after the formal release of Elegance.

In reply to Gareth J Barnard

Re: Upcoming Theme - Elegance - WORKSHOP

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Edit course settings issue.  Version 2014011600. Chrome 32. 1024x600 display.

Attachment 2014-02-05 00_24_17-Edit course settings.png
In reply to Gareth J Barnard

Re: Upcoming Theme - Elegance - WORKSHOP

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

One section per page course navigation alignment issue. Version 2014011600. Chrome 32. 1024x600 display.

Attachment 2014-02-05 00_29_07-Course_ Test course_ S, Section_ Section 2.png
In reply to Gareth J Barnard

Re: Upcoming Theme - Elegance - WORKSHOP

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Does this look odd to you? Version 2014011600. Chrome 32. 1024x600 display.

Attachment 2014-02-05 00_35_49-Moo26_ My home.png
In reply to Gareth J Barnard

Re: Upcoming Theme - Elegance - WORKSHOP

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

RTL Login box issue. Version 2014011600. Chrome 32. 1024x600 display.

But admittedly, RTL support in Bootstrap 3.x has been delayed until 3.2.

Attachment 2014-02-05 00_46_02-Moodle 26_ התחבר לאתר.png
In reply to Gareth J Barnard

Re: Upcoming Theme - Elegance - WORKSHOP

by Mary Evans -

Nothing stopping it being restyled.

EDIT

Add to layout login...where the button is styled...

                <?php
            if (!right_to_left()) { ?>
                <button class="icon-submit fa fa-angle-right"></button>
                <?php
            } else { ?>
                <button class="icon-submit fa fa-angle-left"></button>
                <?php
            } ?>

And add this to login1.css...

.dir-rtl .loginpanel .icon-submit {
    float: left;
    left: -30px;
    right: auto;
}

Jobs a good-un...smile

rtl-login

Average of ratings: Useful (1)
In reply to Mary Evans

Re: Upcoming Theme - Elegance - WORKSHOP

by Paulo Bagorro -

Hello

Can someone help me to line up the boxes in login panel...

This


to this...


 i try in login1.css with no success. Thank you

In reply to Paulo Bagorro

Re: Upcoming Theme - Elegance - WORKSHOP

by Mary Evans -

The problem is that the are not meant to be buttons they are really just links and would be better if they were left as they were intended.

let me see if I can find the CSS you want...

In reply to Gareth J Barnard

Re: Upcoming Theme - Elegance - WORKSHOP

by Julian Ridden -

lol. The course footer looked good until your patch. smile

I have updated github with a fix for the styling.

Julian

In reply to Gareth J Barnard

Re: Upcoming Theme - Elegance - WORKSHOP

by Julian Ridden -

Not even sure how to fix that one. I don't believe I can impact size of the text editor through the theme can we?

Open to advice/ides.

Julian

In reply to Julian Ridden

Re: Upcoming Theme - Elegance - WORKSHOP

by David Scotson -
Looks really great! The login page makes such a difference to first impressions.

Some nitpicky bugs:

You've got two #page-content divs.

Your two columns aren't in a div.row, I think that's what's causing some padding issues (the right column has too much padding on the left when collapsed into a vertical column, and it looks like some CSS has been added to counteract this on the right hand side.).

There's a 1 or 2px gap at the bottom of the hover on the top menu.

I think you can use fa-fw instead of some hand written css you've used on the social icons.

Something weird is going on with both the drop-down menus (collapsed and not) on Firefox (sorry for the vagueness, it seems to be weirdly intermittent, compared with Chrome which seems totally solid).

Are you pulling in some CSS twice, Font Awesome in particular?

Well done, you've obviously done a lot of work on this!
In reply to David Scotson

Re: Upcoming Theme - Elegance - WORKSHOP

by Julian Ridden -

Thanks for the feedback. My response.

  • You've got two #page-content divs.
    Fixed

  • Your two columns aren't in a div.row, I think that's what's causing some padding issues (the right column has too much padding on the left when collapsed into a vertical column, and it looks like some CSS has been added to counteract this on the right hand side.).

  • There's a 1 or 2px gap at the bottom of the hover on the top menu.
    Grrr.. Missed this in testing, Custom logo is too high. Will fix ASAP

  • I think you can use fa-fw instead of some hand written css you've used on the social icons. 
    Thanks. Adjusted

  • Something weird is going on with both the drop-down menus (collapsed and not) on Firefox (sorry for the vagueness, it seems to be weirdly intermittent, compared with Chrome which seems totally solid). 
    Cant replicate on my firefox (v26 on OSX) Solid here

  • Are you pulling in some CSS twice, Font Awesome in particular?
    Nothing twice that I am aware of. What symptom do you see

I have updated github and the imoot site with the latest build

In reply to Julian Ridden

Re: Upcoming Theme - Elegance - WORKSHOP

by David Scotson -
For the menu, I noticed last night that the burger icon wasn't doing anything on Firefox for Android. This also seems to be the case if I narrow the window on desktop Firefox (v26 on Ubuntu). Actually desktop Chrome (and Chromium) shows this for me as well.

And, while checking out the drop-down ("contact us") on the full width desktop menu, it just seemed weird on Firefox.

Let me see if I can pinpoint this better. If I put my mouse pointer to the right of the "contact us" (so outside the hover area) and then move it over the text "contact us", it works only about 50% of the time. Sometimes I'm a fair distance in before the hover triggers, sometimes it doesn't trigger at all (and sometimes it works as I'd expect).

Sometimes, if I aim for the top of the text, my cursor turn into the text selection I icon, and I can make it all the way across both "contact us" and "discussion forum" links before the hover triggers on "The Program".

Actually, scratch that. It only seems to happen when I have the Firefox Developer tools window open.


For duplicate CSS, if I examine the social icons in Firefox it tells me that e.g. the .fa-twitter:before CSS is defined on line 1286 and again (identically) on line 3404.

The hover on your green buttons seems to be getting overruled incorrectly. I think some of the stuff required to style Moodle's buttons is too strong (which reminds me I really need to revisit how hard it would be to fix these buttons at source via renderers).

edit: also, not a them issue but some of your content in mistyled here:

http://2014.imoot.org/mod/page/view.php?id=1

The list under "Registration includes:" is actually a nested list and has a style attribute on the outer li trying to make one of them unstyled, which might be better as class="list-unstyled" if that's the intention. At the moment the list is numbered but the numbers are half-hidden for me.
In reply to Julian Ridden

Re: Upcoming Theme - Elegance - WORKSHOP

by Michel DENIS -

Julian,

Just got an error and trace with Elegance, that I installed from the Github zip file this morning, on a Moodle 2.6 platform, and configured on a single course.

Please see attached. Thank you.-michel

Attachment trace.jpeg
In reply to Michel DENIS

Re: Upcoming Theme - Elegance - WORKSHOP

by Michel DENIS -

some hints anybody here ?

thanks .. michel

In reply to Michel DENIS

Re: Upcoming Theme - Elegance - WORKSHOP

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Lost the plot.  Hints to what Michel?

In reply to Gareth J Barnard

Re: Upcoming Theme - Elegance - WORKSHOP

by Michel DENIS -

Gareth : the error and trace that I included in the above reply looks abnormal and breaks the course. It only happens with theme Elegance, after some time of using it and re-login ...

Do you know what can be the reason of that breaking and trace ?

Thank you,

-michel

 

In reply to Michel DENIS

Re: Upcoming Theme - Elegance - WORKSHOP

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Hi Michel,

Thanks.  Yes and Julian has fixed it in the latest version on the tracker.

Gareth

In reply to Julian Ridden

Re: Upcoming Theme - Elegance - WORKSHOP

by Guido Gautsch -

2014.iMoot is looking very, very nice. Several hearty pats on the back, Julian!

I love that you're really digging into the BS JavaScript goodies here like the accordion etc. A bit bummed that the Jumbotron doesn't seem to work in Moodle (or at least I couldn't get it to work)

Quick query:

On the Attend iMoot page, the 'How much is iMoot' panel includes three columns. How were these done? when I inspected the source, I found this: 

class="sp-block " 

and

class="col-lg-5"

Are these  from here: http://getbootstrap.com/css/#grid-example-basic?

Any pointers would be appreciated.

Cheers,

Guido

In reply to Guido Gautsch

Re: Upcoming Theme - Elegance - WORKSHOP

by Julian Ridden -

You are spot on. I am implementing grid so those three columns also resize on multiple browsers.

I have ALL the bootstrap elements working in Essential and Elegance Including lightbox, jumbotron, accordian and more. Sadly as these are jquery they wont be brought into core unless someone coverts them to YUI. sad

Julian

Average of ratings: Useful (1)
In reply to Julian Ridden

Re: Upcoming Theme - Elegance - WORKSHOP

by Guido Gautsch -

Cool, thanks. I'm having no luck implementing them, though. For example, to insert a grid, I used the BS example (on Essential):

<div class="row">
  <div class="col-xs-12 col-sm-6 col-md-8">.col-xs-12 .col-sm-6 .col-md-8</div>
  <div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
</div>
<div class="row">
  <div class="col-xs-6 col-sm-4">.col-xs-6 .col-sm-4</div>
  <div class="col-xs-6 col-sm-4">.col-xs-6 .col-sm-4</div>
  <!-- Optional: clear the XS cols if their content doesn't match in height -->
  <div class="clearfix visible-xs"></div>
  <div class="col-xs-6 col-sm-4">.col-xs-6 .col-sm-4</div>
</div>

This didn't work at all for me- do I need to call on jquery specifically somehow?

The accordion works great (except for smooth fading animations), but Jumbotron doesn't...

 

Edit: On another note - I've noticed that site pages show up in the Nav block once I've clicked on 'The Program' for example but the Page mod is not showing up on the front page. Did you include them on the Font Page topic section and then disabled said section or is there another trick? 

In reply to Guido Gautsch

Re: Upcoming Theme - Elegance - WORKSHOP

by Julian Ridden -

This wont work on Essential. Only on Elegance.

The difference is the version of Bootstrap. Essential uses the Bootstrap2 found in Moodle, Elegance is using a custom version of Bootstrap3.

They each use very different classes.

Here are the docs on the classes to use if your in Essential.

http://getbootstrap.com/2.3.2/scaffolding.html#gridSystem

Julian

Average of ratings: Useful (1)
In reply to Julian Ridden

Re: Upcoming Theme - Elegance - WORKSHOP

by Guido Gautsch -

That would explain it! Cheers smile

In reply to Guido Gautsch

Re: Upcoming Theme - Elegance - WORKSHOP

by Guido Gautsch -

Hmm...I changed the accordion to Bootstrap 2.3.2 markup and I get the same non-smooth changes.

Then I saw this:

* Requires the Transitions plugin to be included.

 I take it Essential/Moodle doesn't have the Tansitions plugin included?

Sorry if this is OT - not really an Elegance question anymore...

In reply to Guido Gautsch

Re: Upcoming Theme - Elegance - WORKSHOP

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers
In reply to Gareth J Barnard

Re: Upcoming Theme - Elegance - WORKSHOP

by Guido Gautsch -

What a pain - so when is Moodle ditching YUI for jQuery? tongueout

I didn't initialise it, no. Pardon my ignorance, but how is that done? The HTML editor turns the JS into a <p> by default

In reply to Guido Gautsch

Re: Upcoming Theme - Elegance - WORKSHOP

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Moodle is not ditching YUI for jQuery and please don't ask, your safer traversing a mine field without a metal detector.  Do a 'search' on the subject.

To initialise it you will either need to add an in-line script in the footer in the layout file or create a custom jQuery file like the rest.  See: http://docs.moodle.org/dev/jQuery.

In reply to Gareth J Barnard

Re: Upcoming Theme - Elegance - WORKSHOP

by Guido Gautsch -

I was just kidding, Gareth, hence the tongueout

Thanks for the pointer re: initialising , I'll check it out.

In reply to Julian Ridden

Re: Upcoming Theme - Elegance - WORKSHOP

by Hartmut Scherer -

Hi Julian,

Thank you for the updated version of Elegance (Build: 20140218). You added a lot more features and I am still testing your theme. I spotted a few minor things. In edit mode "Blocks editing off" appears twice at least on the /admin/settings.php page. I highly appreciate your effort and creativity. Tree in custom menu doesn't expand and the Quick links seem to hard coded to iMoot 2014.

I highly appreciate your effort and creativity and I am looking forward to the release of Elegance.

With kind regards,

Hartmut

In reply to Hartmut Scherer

Re: Upcoming Theme - Elegance - WORKSHOP

by Julian Ridden -

Hi Hartmut,

Nearly there. Light is at the end of the tunnel. Quick links should not be hardcoded anymore. Now a theme setting.

I will look at the other bugs asap. As iMoot is now using the Github version on the live site I am more conscious than ever that I need to squash the last minute bugs

Julian

In reply to Julian Ridden

Re: Upcoming Theme - Elegance - WORKSHOP

by Michel DENIS -

Very nice theme Julian ! I'm anxious to use it asap for the MOOC i am producing soon.

I just downloaded the current zip (2014011600) on Github and installed on my Moodle 2.6 and played a bit using Firefox.

See attached: the pulldown for personal messages at the top produces a very/too narrow area ?

Let me know what you think ..

Thank you,

-michel

ps: a second topic in another reply below (due to attachment limitation to 1 att.)

Attachment messages.jpeg
In reply to Michel DENIS

Re: Upcoming Theme - Elegance - WORKSHOP

by Michel DENIS -

(cont. of previous reply).

 

A second item Julian, see attachment below: the horizontal lines below titles and headers for blocks and sections are thick to their left side then thin to their right side.

Thanks,

-michel

Attachment horlines.jpeg
In reply to Michel DENIS

Re: Upcoming Theme - Elegance - WORKSHOP

by Mary Evans -

Hi, The short/long horizontal lines are a design feature...

It is styled using this CSS...

.block .header .title h2:after {
    background-color: #2D91D0; /** this styles the colour of the short line **/
    content: "";
    display: block;
    height: 1px; /** this styles the height of the short line **/
    position: relative;
    top: 10px;
    width: 100px; /** this styles the width of the short line **/
}

.block .header .title h2 {
    border-bottom: 1px solid #DDDDDD; /** this adds the thin grey bottom border **/
    color: #27282A;
    font-size: 24px;
    font-style: normal;
    font-weight: 300;
    letter-spacing: 0;
    line-height: normal;
    margin: 0 0 10px;
    padding-left: 0;
    text-transform: none;
}

To remove add the following CSS rules to the Custom CSS box in Elegance settings page...

block .header .title h2:after {
    background-color: transparent;
    width: 0;
}

.block .header .title h2 {
    border-bottom: 0 none;
}


Hope this helps?

Mary

In reply to Mary Evans

Re: Upcoming Theme - Elegance - WORKSHOP

by Michel DENIS -

Yes it should be OK now with these new css, Mary.

Thank you.

I would like to test it a bit now, but cannot at this time because of the trace dump I just got with this test course that uses Elegance (fyi: I just made an additional entry here with a pic of the error message and the trace).

Regarding the other visual issue that I posted (the too small width of the pull down area for personal messages at the top), do you see a easy way to enlarge the pull down area using CSS or another trick smile ?

Thanks again,

-michel

In reply to Julian Ridden

Re: Upcoming Theme - Elegance - WORKSHOP

by Mary Evans -

Hi Julian,

I have just updated to your new version via a direct clone using GIT. After selecting, I'm now getting some PHP warnings :..

Notice: Undefined property: stdClass::$enablecategoryicon in C:\wamp\www\moodle27\theme\elegance\config.php on line 32
Call Stack
#TimeMemoryFunctionLocation
1 0.0009 315216 {main}egg ..\index.php:0
2 1.4269 52737800 theme_config::loadegg ..\index.php:164
3 1.4278 52738280 theme_config::find_theme_configegg ..\outputlib.php:383
4 1.4284 52762656 include( 'C:\wamp\www\moodle27\theme\elegance\config.php' ) ..\outputlib.php:1435


( ! ) Notice: Undefined property: stdClass::$enablecustomlogin in C:\wamp\www\moodle27\theme\elegance\config.php on line 38
Call Stack
#TimeMemoryFunctionLocation
1 0.0009 315216 {main}egg ..\index.php:0
2 1.4269 52737800 theme_config::loadegg ..\index.php:164
3 1.4278 52738280 theme_config::find_theme_configegg ..\outputlib.php:383
4 1.4284 52762656 include( 'C:\wamp\www\moodle27\theme\elegance\config.php' ) ..\outputlib.php:1435


( ! ) Notice: Undefined property: stdClass::$tiles in C:\wamp\www\moodle27\theme\elegance\config.php on line 46
Call Stack
#TimeMemoryFunctionLocation
1 0.0009 315216 {main}egg ..\index.php:0
2 1.4269 52737800 theme_config::loadegg ..\index.php:164
3 1.4278 52738280 theme_config::find_theme_configegg ..\outputlib.php:383
4 1.4284 52762656 include( 'C:\wamp\www\moodle27\theme\elegance\config.php' ) ..\outputlib.php:1435

In reply to Mary Evans

Re: Upcoming Theme - Elegance - WORKSHOP

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

This can happen when a new setting is defined in 'settings.php', used in 'config.php' but 'Notifications' as not happened yet to set the new setting.  Fix = add a protective 'if (!empty(the setting))' in the 'config.php' file.

In reply to Gareth J Barnard

Re: Upcoming Theme - Elegance - WORKSHOP

by Julian Ridden -

I have updated the config with what I think is the best solution for this.

Gareth, want to give it a quick look over and confirm my logic. Happy to take recommendations if you think there is a more efficient method.

Julian

In reply to Julian Ridden

Re: Upcoming Theme - Elegance - WORKSHOP

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Sorry Julian, I missed your post, when I get a mo I'll look at the theme logic.

Average of ratings: Useful (1)
In reply to Julian Ridden

Re: Upcoming Theme - Elegance - WORKSHOP

by Mike Wills -

This is the best theme I have come across so far after essential and looking forward to installing this when I have my new Moodle server at school set up.

Many thanks

In reply to Julian Ridden

Re: Upcoming Theme - Elegance - WORKSHOP

by Keisha McKenzie -
Hi Everyone, Julian

I am not a pro but I am playing around with success with this beautiful theme. I want to include an area below slideshow as seen in the image below of the iMoot website.
Additionally I need the hover colour for the menu items on the navbar to remain white.. can I get the CSS code for that?
Thanks so much.

iMoot Website Image