Skip to content

Commit 90066d0

Browse files
authored
Merge pull request #409 from AltGr/movbuttons
Move the toplevel buttons to the bottom-right
2 parents 34f04af + d61e7c0 commit 90066d0

File tree

3 files changed

+14
-17
lines changed

3 files changed

+14
-17
lines changed

static/css/learnocaml_exercise.css

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ body {
306306
/* -------------------- toplevel tab ------------------------------ */
307307
#learnocaml-exo-tab-toplevel > .toplevel-pane {
308308
position: absolute;
309-
left: 0; top: 0; bottom: 0px; width: 100%;
309+
left: 0; top: 0; bottom: 40px; width: 100%;
310310
z-index: 1002;
311311
margin: 5px 0 0 0;
312312
}
@@ -318,25 +318,23 @@ body {
318318
}
319319
#learnocaml-exo-tab-toplevel > .buttons {
320320
position: absolute;
321-
right: 1%; top: 5px; width: 49%; height: 40px;
321+
left: 0; bottom: 0px; width: 100%; height: 39px;
322322
background: linear-gradient(to bottom, #fff 0px, #ddd 10px, #aaa 60px);
323323
color: #fff;
324324
line-height: 40px;
325325
display: flex;
326-
flex-direction: row;
326+
flex-direction: row-reverse;
327327
z-index: 1003;
328+
border-top: 1px #000 solid;
328329
}
329330
#learnocaml-exo-tab-toplevel > .buttons > button {
330-
flex: 1;
331+
flex: 0 0.33 200px;
331332
background: none;
332333
border: none;
333334
color: #222;
334335
text-shadow: 2px 2px 5px rgba(0,0,0,0.2);
335-
border-top: 1px #666 solid;
336336
position: relative;
337337
padding: 0;
338-
}
339-
#learnocaml-exo-tab-toplevel > .buttons > button:not(:first-child) {
340338
border-left: 1px #666 solid;
341339
}
342340
@media (max-width: 550px) {

static/css/learnocaml_main.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,11 +335,11 @@ body {
335335
}
336336
#learnocaml-main-toplevel > .toplevel-pane {
337337
position: absolute;
338-
left: 0px; top: 0; right: 0; bottom: 0px;
338+
left: 0px; top: 0; right: 0; bottom: 40px;
339339
}
340340
#learnocaml-main-toplevel > .buttons {
341341
position: absolute;
342-
top: 13px; right: 1%; bottom: 5px; width: 49%; height: 40px;
342+
left: 0; bottom: 0px; width: 100%; height: 40px;
343343
background: linear-gradient(to bottom, #fff 0px, #ddd 10px, #aaa 60px);
344344
color: #fff;
345345
line-height: 40px;

static/exercise.html

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,13 @@
9999
<!-- <iframe src="/standalone-descr.html"></iframe> -->
100100
</div>
101101
<div id="learnocaml-exo-tab-toplevel" class="front-tab">
102+
<div id="learnocaml-exo-toplevel-pane" class="toplevel-pane">
103+
<!-- <pre class="output"></pre> -->
104+
<!-- <pre class="input"> -->
105+
<!-- <code id="sharp" class="sharp"></code> -->
106+
<!-- <textarea class="console" style="height: 28px">saucisse</textarea> -->
107+
<!-- </pre> -->
108+
</div>
102109
<div id="learnocaml-exo-toplevel-toolbar" class="buttons">
103110
<!-- Any button can be added.
104111
Structure: button>img, button>span.label. -->
@@ -115,14 +122,6 @@
115122
<!-- <span class="label">Download</span> -->
116123
<!-- </button> -->
117124
</div>
118-
<div id="learnocaml-exo-toplevel-pane" class="toplevel-pane">
119-
<!-- <pre class="output"></pre> -->
120-
<!-- <pre class="input"> -->
121-
<!-- <code id="sharp" class="sharp"></code> -->
122-
<!-- <textarea class="console" style="height: 28px">saucisse</textarea> -->
123-
<!-- </pre> -->
124-
</div>
125-
126125
</div>
127126
<div id="learnocaml-exo-tab-report">
128127
<!-- Using an iframe is the easiest way to isolate the CSSs. -->

0 commit comments

Comments
 (0)