Skip to content

Commit

Permalink
Merge pull request sakaiproject#919 from clhedrick/LSNBLDR-517
Browse files Browse the repository at this point in the history
LSNBLDR-517; fix spacing and other design issues
  • Loading branch information
clhedrick committed Jul 27, 2015
2 parents ad7a571 + ccbb639 commit ac5e5f7
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 29 deletions.
80 changes: 55 additions & 25 deletions lessonbuilder/tool/src/webapp/css/Simplepagetool.css
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,12 @@ a.edit-link:link, a.edit-link:visited, a.itemLink:link, a.itemLink:visited, a.mu
.mainList li.question .multipleChoiceForm input.bold {
/* margin:5px 0px 0px 20px !important */
}
.multipleChoiceAnswer label {
margin-left: 5px;
}
.shortanswerDiv .bold {
display: block;
}
.questionStatusText {
/* padding: 15px 20px; */
}
Expand Down Expand Up @@ -329,7 +335,7 @@ a.edit-link:link, a.edit-link:visited, a.itemLink:link, a.itemLink:visited, a.mu
*/
}
.contentCol {
width:95%;

}
.link-div h3.link-div-head {
display:inline;
Expand Down Expand Up @@ -580,7 +586,7 @@ vertical-align:top;
margin: 0px 0px 2px 0px
}
.add-comment-button span, .add-peereval-button span {
padding: 2px 8px 2px 8px
padding: 4px 8px;
}
a.peer-eval-stats {
font-size:75% !important
Expand Down Expand Up @@ -796,20 +802,27 @@ background-color: #e8e8e8
}

input[type="submit"].question-submit {
/*
height:auto !important;
box-shadow: none !important;
border: solid 1px #d3d3d3 !important;
*/
margin-top:15px;
border-color:#aaa;
padding:6px 20px !important;
background:none;
font-weight: normal;
}

.questionDiv .contentCol {
margin-top:5px;
padding: 5px;
padding-left: 10px;
padding-right: 30px;
background-color: #e4edff;
/* background-color: #e4edff;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
border-radius: 10px; */
}

.questionDivControl {
Expand Down Expand Up @@ -1027,9 +1040,6 @@ a.Mrphs-toolTitleNav__link--reset {
/*
alternate treatment for list - can go in tool.css
*/
.edit-col {
/* top: 0.35em; */
}
.right-col {
display: inline-block;
position:relative;
Expand Down Expand Up @@ -1179,17 +1189,23 @@ border:1px solid transparent;
background-color:transparent;
}
.edit-col {

margin-top:5px;
display:inline-block;

position:relative!important;
}
.right-col a {
color:inherit;
}
.right-col {
postion:static;
margin-top: 0px !important;
margin-left: 0px;
width:calc(100% - 40px);
/* for student view, instructor overriden below */
width:calc(100% - 80px);
}



/* default content */
.right-col {
left: 12px;
Expand All @@ -1199,13 +1215,13 @@ width:calc(100% - 40px);
border-right: solid #c8c8c8 1px;
padding-top:3px;
padding-bottom:3px;
padding-left: 15px;
padding-right: 15px;
padding-left: 25px;
padding-right: 25px;
}

.edit-col + .right-col {
left:0px;
width:calc(100% - 10em);
width:calc(100% - 100px);
}

/* links should be spaced as close as possible to each other, so override padding */
Expand All @@ -1215,17 +1231,16 @@ li.resourceType .right-col {
}

/* separation between areas */
.right-col-top .right-col {
li.right-col-top .right-col {
border-top: solid #c8c8c8 1px;
margin-top: 10px;
padding-top:10px;
margin-top: 10px !important;
padding-top:17px;
border-top-left-radius:5px;
border-top-right-radius:5px;
}
.right-col-bottom .right-col {
padding-bottom:10px;
li.right-col-bottom .right-col {
padding-bottom:20px;
border-bottom: solid #c8c8c8 1px;
margin-bottom: 10px;
border-bottom-left-radius:5px;
border-bottom-right-radius:5px;
}
Expand All @@ -1236,7 +1251,15 @@ li.resourceType .right-col {
.itemclass {
margin-top:2.0em !important;
}

.add-comment-button span {
font-size: 90%;
}
.add-comment-button a {
padding: 3px 7px;
}
.questionDivControl a, .commentsDiv a.gradingPaneLink{
padding: 5px 10px;
}
@media only screen and (max-width: 1000px) {
.group-col {
margin-right: 1px;
Expand All @@ -1245,12 +1268,19 @@ margin-left:1px;
.right-col{
padding-top:2px;
padding-bottom:2px;
padding-left: 10px;
padding-right: 3px;
padding-left: 15px;
padding-right: 15px;
width:calc(100% - 55px);
}
.edit-col + .right-col {
width:calc(100% - 80px);
}
li.right-col-top .right-col {
padding-top:12px;
}
li.right-col-bottom .right-col {
padding-bottom:15px;
}
}
@media only screen and (max-width: 800px) {
.contentButton {
Expand All @@ -1266,7 +1296,7 @@ div.group-col {
display:none !important;
}
.edit-col + .right-col {
width:calc(100% - 50px);
width:calc(100% - 80px);
}
}

Expand All @@ -1284,7 +1314,7 @@ width:calc(100% - 50px);
}
.right-col-top .group-col {
left:20px;
top:-20px;
top:-9px;
}
.group-col img{
border:none;
Expand Down Expand Up @@ -1318,4 +1348,4 @@ li:hover .group-col {
.fa-group-icon {
font-size:200%;
font-family:FontAwesome;
}
}
6 changes: 3 additions & 3 deletions lessonbuilder/tool/src/webapp/js/show-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -1878,7 +1878,7 @@ $(document).ready(function() {
e.preventDefault();
var pollGraph = $(this).parents(".questionDiv").find(".questionPollGraph");

if($(this).find("span").text() === $(this).parent().find(".show-poll").text()) {
if($(this).attr("value") === $(this).parents(".questionDiv").find(".show-poll").text()) {
pollGraph.empty();
var pollData = [];
pollGraph.parent().find(".questionPollData").each(function(index) {
Expand All @@ -1891,12 +1891,12 @@ $(document).ready(function() {
pollGraph.show();
pollGraph.jqBarGraph({data: pollData, height:100, speed:1});

$(this).find("span").text($(this).parent().find(".hide-poll").text());
$(this).attr("value",($(this).parents(".questionDiv").find(".hide-poll").text()));
}else {
pollGraph.hide();
pollGraph.empty();

$(this).find("span").text($(this).parent().find(".show-poll").text());
$(this).attr("value",($(this).parents(".questionDiv").find(".show-poll").text()));
}

resizeFrame('grow');
Expand Down
3 changes: 2 additions & 1 deletion lessonbuilder/tool/src/webapp/templates/ShowPage.html
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,8 @@ <h3 class="questionText" rsf:id="questionText"></h3>
</div>

<input class="question-submit" type="submit" value="Answer!" rsf:id="answerMultipleChoice" />
<input class="showPollGraph question-submit" type="submit" rsf:id="showPollGraph" onclick="return false;"/>

</form>
</div>

Expand All @@ -672,7 +674,6 @@ <h3 class="questionText" rsf:id="questionText"></h3>
</div>
<div class="questionDivControl">
<a href="#" class="usebutton gradingPaneLink" rsf:id="questionGradingPaneLink" ></a>
<a href="#" class="usebutton showPollGraph" rsf:id="showPollGraph" onclick="return false;"></a>
<span style="display:none" rsf:id="msg=simplepage.show-poll" class="show-poll"></span>
<span style="display:none" rsf:id="msg=simplepage.hide-poll" class="hide-poll"></span>
</div>
Expand Down

0 comments on commit ac5e5f7

Please sign in to comment.