Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

Commit

Permalink
Fix #359.
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed Nov 5, 2014
1 parent d24110f commit f84f02a
Show file tree
Hide file tree
Showing 7 changed files with 722 additions and 9 deletions.
674 changes: 674 additions & 0 deletions COPYING.txt

Large diffs are not rendered by default.

29 changes: 29 additions & 0 deletions README.txt
Expand Up @@ -38,6 +38,34 @@ G J Barnard MSc. BSc(Hons)(Sndw). MBCS. CEng. CITP. PGCE.
Moodle profile | http://moodle.org/user/profile.php?id=442195
Web profile | http://about.me/gjbarnard

Free Software
=============
The Essential theme is 'free' software under the terms of the GNU GPLv3 License, please see 'COPYING.txt'.

It can be obtained for free from:
http://moodle.org/plugins/view.php?plugin=theme_essential
and
https://github.com/gjb2048/moodle-theme_essential/releases

You have all the rights granted to you by the GPLv3 license. If you are unsure about anything, then the
FAQ - http://www.gnu.org/licenses/gpl-faq.html - is a good place to look.

If you reuse any of the code then I kindly ask that you make reference to the theme.

If you make improvements or bug fixes then I would appreciate if you would send them back to me by forking from
https://github.com/gjb2048/moodle-theme_essential and doing a 'Pull Request' so that the rest of the
Moodle community benefits.

Donations
=========
This theme is provided to you for free, and if you want to express your gratitude for using this theme, please consider donating by:

PayPal - https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=themmai%40gmail%2ecom&lc=GB&item_name=Essential%20Theme%20Fund&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted

Flattr - https://flattr.com/profile/gjb2048

Donations may allow me to provide you with more or better features in less time.

Required version of Moodle
==========================
This version works with Moodle version 2014051200.00 release 2.7 (Build: 20140512) and above within the 2.7 branch until the
Expand Down Expand Up @@ -126,6 +154,7 @@ New in 2.7.9
- FIX: Issue #356: Incorrect $filename in /pluginfile.php/1/theme_essential/style/<timestamp>/essential.css.
- FIX: Issue #357: Beside slider option layout issues.
- FIX: Issue #358: 2.7.9b issues.
- FIX: Issue #359: Further 2.7.9b issues.
- UPDATE : moodle/core.less - MDL-47340 & MDL-47097.
- UPDATE : moodle/course.less - MDL-47340.
- UPDATE : moodle/responsive.less - MDL-47242.
Expand Down
2 changes: 1 addition & 1 deletion less/essential/carousel.less
@@ -1 +1 @@
/* @group Carousel */#essentialCarousel.carousel { margin-bottom: 10px; .carousel-inner { > .item { .carousel-image-container { text-align: center; width: 90%; padding-left: 5%; padding-right: 5%; } .carousel-image { width: auto; margin: 0 auto; margin-top: 8px; height: auto; max-height: 300px; vertical-align: middle; // See: http://www.vanseodesign.com/css/vertical-centering/. } &.side-caption { div.the-side-caption { padding-left: 5%; } } &.side-caption .carousel-image { box-shadow: 0px 0px 8px #222; padding: 8px; background-color: #fff; } } a, a:hover, a:active { text-decoration: none; height: 100%; } // Caption for text below images. .carousel-caption { border-radius: @baseBorderRadius + 2; .carousel-caption-inner { margin: 0 auto; } h4, p { padding: 0px 20px; } p { line-height: 1; } } &.centred { .carousel-caption, div.the-side-caption { text-align: center; } } } // Left/right controls for nav. .carousel-control { display: none; // Shown when carousel hovered on, see below. background: none; border: 0px; font-size: 30px; &:hover, &:focus { background: none; border: 0px; } } &:hover .carousel-control{ display: block; } .carousel-indicators { border-radius: @baseBorderRadius; padding-right: 5px; padding-top: 2px; padding-bottom: 2px; background-color: #fff; background-color: rgba(255, 255, 255, .50); } // Responsive. .carousel-inner { > .item { &.side-caption { div.the-side-caption { h4 { font-size: 14px; line-height: 1; } p { font-size: 10px; line-height: 1; } } } } } // @screen-xs-min. @media(min-width: 480px) { .carousel-inner { > .item { &.side-caption { div.the-side-caption { h4 { font-size: 16px; } p { font-size: 12px; } } } } } .carousel-control { font-size: 36px; } } @media (max-width: 767px) { .carousel-inner { > .item { height: 200px; .carousel-image-container { line-height: 200px; // See: http://www.vanseodesign.com/css/vertical-centering/. } .carousel-image { max-height: 165px; } .carousel-caption { position: absolute; h4 { font-size: 1.2em; } } } > .item.side-caption { div.the-side-caption { padding-left: 0; } div.nocaption { margin-top: 6.5%; } } &.below > .item, > .item.side-caption { height: 280px; .carousel-caption { height: 45px; } .carousel-image-container.nocaption { line-height: 280px; } } } } // @screen-sm-min. @media(min-width: 768px) { .carousel-inner { > .item { height: 260px; .carousel-image-container { line-height: 260px; } .carousel-image { max-height: 225px; } &.side-caption { div.the-side-caption { // Variation on: http://css-tricks.com/centering-in-the-unknown/. height: 260px; // Addition to technique. &:before { content: ''; display: inline-block; height: 100%; vertical-align: middle; margin-right: -0.25em; /* Adjusts for spacing */ } .the-side-caption-content { display: inline-block; vertical-align: middle; width: 100%; } h4 { font-size: 20px; } p { font-size: 14px; } } } } &.below > .item { height: 345px; .carousel-caption { height: 55px; } .carousel-image-container.nocaption { line-height: 345px; } } } .carousel-control { font-size: 40px; } } @media (min-width: 768px) and (max-width: 979px) { .carousel-inner { > .item { .carousel-caption { h4 { font-size: 1.2em; } } } } } // @screen-md-min. @media(min-width: 992px) { .carousel-inner { > .item { height: 328px; .carousel-image-container { line-height: 328px; } .carousel-image { max-height: 293px; } &.side-caption { div.the-side-caption { height: 328px; // Addition to technique. h4 { font-size: 26px; } p { font-size: 18px; } } } } &.below > .item { height: 428px; .carousel-caption { height: 65px; } .carousel-image-container.nocaption { line-height: 428px; } } } .carousel-control { font-size: 50px; } } // @screen-lg-min. @media(min-width: 1200px) { .carousel-inner { > .item { height: 368px; .carousel-image-container { line-height: 368px; } .carousel-image { max-height: 333px; } &.side-caption { div.the-side-caption { height: 368px; // Addition to technique. h4 { font-size: 32px; } p { font-size: 20px; } } } } &.below > .item { height: 468px; .carousel-image-container.nocaption { line-height: 468px; } } } .carousel-control { font-size: 60px; } }}/* @end */
/* @group Carousel */#essentialCarousel.carousel { margin-bottom: 10px; .carousel-inner { > .item { .carousel-image-container { text-align: center; width: 90%; padding-left: 5%; padding-right: 5%; } .carousel-image { width: auto; margin: 0 auto; margin-top: 8px; height: auto; max-height: 300px; vertical-align: middle; // See: http://www.vanseodesign.com/css/vertical-centering/. } &.side-caption { div.the-side-caption { padding-left: 7%; } } &.side-caption .carousel-image { box-shadow: 0px 0px 8px #222; padding: 8px; background-color: #fff; } } a, a:hover, a:active { text-decoration: none; height: 100%; } // Caption for text below images. .carousel-caption { border-radius: @baseBorderRadius + 2; .carousel-caption-inner { margin: 0 auto; } h4, p { padding: 0px 20px; } p { line-height: 1; } } &.centred { .carousel-caption, div.the-side-caption { text-align: center; } } } // Left/right controls for nav. .carousel-control { display: none; // Shown when carousel hovered on, see below. background: none; border: 0px; font-size: 30px; &:hover, &:focus { background: none; border: 0px; } } &:hover .carousel-control{ display: block; } .carousel-indicators { border-radius: @baseBorderRadius; padding-right: 5px; padding-top: 2px; padding-bottom: 2px; background-color: #fff; background-color: rgba(255, 255, 255, .50); right: 5px; } // Responsive. .carousel-inner { > .item { &.side-caption { div.the-side-caption { h4 { font-size: 14px; line-height: 1; } p { font-size: 10px; line-height: 1; } } } } } // @screen-xs-min. @media(min-width: 480px) { .carousel-inner { > .item { &.side-caption { div.the-side-caption { h4 { font-size: 16px; } p { font-size: 12px; } } } } } .carousel-control { font-size: 36px; } } @media (max-width: 767px) { .carousel-inner { > .item { height: 200px; .carousel-image-container { line-height: 200px; // See: http://www.vanseodesign.com/css/vertical-centering/. } .carousel-image { max-height: 165px; } .carousel-caption { position: absolute; h4 { font-size: 1.2em; } } } > .item.side-caption { div.the-side-caption { padding-left: 0; } div.nocaption { margin-top: 6.5%; } } &.below > .item, > .item.side-caption { height: 280px; .carousel-caption { height: 45px; } .carousel-image-container.nocaption { line-height: 280px; } } } } // @screen-sm-min. @media(min-width: 768px) { .carousel-inner { > .item { height: 260px; .carousel-image-container { line-height: 260px; } .carousel-image { max-height: 225px; } &.side-caption { div.the-side-caption { // Variation on: http://css-tricks.com/centering-in-the-unknown/. height: 260px; // Addition to technique. &:before { content: ''; display: inline-block; height: 100%; vertical-align: middle; margin-right: -0.25em; /* Adjusts for spacing */ } .the-side-caption-content { display: inline-block; vertical-align: middle; width: 100%; } h4 { font-size: 20px; } p { font-size: 14px; } } } } &.below > .item { height: 345px; .carousel-caption { height: 55px; } .carousel-image-container.nocaption { line-height: 345px; } } } .carousel-control { font-size: 40px; } } @media (min-width: 768px) and (max-width: 979px) { .carousel-inner { > .item { .carousel-caption { h4 { font-size: 1.2em; } } } } } // @screen-md-min. @media(min-width: 992px) { .carousel-inner { > .item { height: 328px; .carousel-image-container { line-height: 328px; } .carousel-image { max-height: 293px; } &.side-caption { div.the-side-caption { height: 328px; // Addition to technique. h4 { font-size: 26px; } p { font-size: 18px; } } } } &.below > .item { height: 428px; .carousel-caption { height: 65px; } .carousel-image-container.nocaption { line-height: 428px; } } } .carousel-control { font-size: 50px; } } // @screen-lg-min. @media(min-width: 1200px) { .carousel-inner { > .item { height: 368px; .carousel-image-container { line-height: 368px; } .carousel-image { max-height: 333px; } &.side-caption { div.the-side-caption { height: 368px; // Addition to technique. h4 { font-size: 32px; } p { font-size: 20px; } } } } &.below > .item { height: 468px; .carousel-image-container.nocaption { line-height: 468px; } } } .carousel-control { font-size: 60px; } }}/* @end */
Expand Down
3 changes: 3 additions & 0 deletions less/essential/quiz.less
Expand Up @@ -42,6 +42,9 @@
.reorder div.question div.content .questionpreview .fa {
vertical-align: middle;
}
.questionbank select.menucategory {
width: 100%;
}
}

.questionbankwindow.block {
Expand Down
4 changes: 2 additions & 2 deletions less/moodle/plugins/mod/quiz.less
Expand Up @@ -222,7 +222,7 @@ body.jsenabled .questionflagcheckbox {
position: relative;
zoom: 1;
padding-left: 0.3em;
max-width: 40%;
//max-width: 40%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
Expand Down Expand Up @@ -1083,7 +1083,7 @@ bank window's title is prominent enough*/
}

#categoryquestions .questiontext {
width: 50%;
width: 70%;
}
#categoryquestions .questionname {
width: 50%;
Expand Down

0 comments on commit f84f02a

Please sign in to comment.