Skip to content

Commit 5101d85

Browse files
committed
WiP
1 parent cc7b952 commit 5101d85

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

data/codebrowser.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,7 +1154,7 @@ $(function () {
11541154
if (setStyle.toLowerCase() === title.toLowerCase()) styleOpt += " selected='true'";
11551155
styleOpt += ">" + title + "</option>";
11561156
});
1157-
$("#header").append("<p id='options'><a class='opt_linenum' href='#'>Toggle line number</a> - Style: <select class='opt_style'>" + styleOpt + "</select></p>")
1157+
$("#header").append("<p id='options'><a class='opt_linenum' href='#'>line numbers</a> - <a class='opt_sidebars' href='#'>sidebars</a> - Style: <select class='opt_style'>" + styleOpt + "</select></p>")
11581158

11591159
var lineNumberShown = -1;
11601160
$(".opt_linenum").click(function() {
@@ -1170,6 +1170,9 @@ $(function () {
11701170
lineNumberShown = !lineNumberShown;
11711171
return false;
11721172
});
1173+
$(".opt_sidebars").click(function() {
1174+
$("#allSideBoxes").toggle();
1175+
});
11731176
$(".opt_style").change(function(e) {
11741177
switchStylestyleAndSetCookie(this.options[this.selectedIndex].value);
11751178
//return false;
@@ -1238,10 +1241,8 @@ $(function () {
12381241

12391242
/*-------------------------------------------------------------------------------------*/
12401243

1241-
//$('body').append('<div id="allSideBoxes">');
1242-
//$('#content').prepend('<div id="allSideBoxes">');
1243-
//$('body').prepend('<div id="allSideBoxes">');
12441244
$('#content').before('<div id="allSideBoxes">');
1245+
//$( "#allSideBoxes" ).resizable({ handles: "n, e, s, w" });
12451246

12461247
// The definitions side bar
12471248
var dfns = document.getElementsByClassName('def');

data/common.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@ div#content { margin-top: 5.3em; overflow:auto;/*width:100%;*/height:calc(100vh
1414
#allSideBoxes {
1515
float:right;
1616
display:inline-block;
17+
/*background-color:#f5f5f5;*/
1718
/*position:fixed; margin-top:0px; margin-right:0px;top:5.2em; right:0px*/;/* z-index:1;*/
1819
/*max-height:30em;
1920
max-height:calc(100vh - 5.2em);
2021
height:calc(100vh - 5.2em);*/
21-
background-color:red;
22+
/*background-color:red;*/
2223
}
2324
.sideBox {
24-
padding:1ex; border-radius:0.25ex; overflow:hide; font-size:smaller; margin-bottom:1em;
25+
padding:0.5ex;overflow:hide; font-size:smaller; margin-bottom:0.5em;
2526
max-height:100%;
2627
}
2728
.sideBox h3 { text-align:center; width:100%; cursor: pointer; cursor: hand; margin: 0;}

data/qtcreator.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919
th.highlight { font-weight: bold; }
2020
th.highlight+td { background-color: #eee; }
2121

22-
.sideBox { border: 1px solid #ddd; background-color: #eee; }
22+
.sideBox { /*border: 1px solid #ddd;*//* background-color: #eee; */}
2323

0 commit comments

Comments
 (0)