Skip to content

Commit

Permalink
css (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
RouxRC committed May 5, 2017
1 parent 36d31cb commit 8c4a015
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 16 deletions.
32 changes: 19 additions & 13 deletions web/css/webmonitor.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
h1 {
font-size: 22px;
margin: 10px;
font-size: 20px;
text-align: center;
}
#selecter {
width: 100%;
height: 240px;
border: 1px solid black;
overflow: auto;
overflow-x: auto;
overflow-y: overlay;
text-align: center;
}
#versions {
Expand All @@ -16,7 +18,7 @@ h1 {
height: 22px;
}
#versions p {
margin: 0px 2px;
margin: 0px 1px;
display: block;
float:left;
border-bottom: 1px solid black;
Expand All @@ -36,10 +38,9 @@ h1 {
#screenshots {
height: 200px;
display: table;
overflow: auto;
}
#screenshots img {
margin: 2px;
margin: 1px;
vertical-align: top;
cursor: pointer;
}
Expand Down Expand Up @@ -99,21 +100,26 @@ h1 {
.mergely-canvas {
background-color: #eafaff;
}
.mergely.a.rhs {
background-color: #bcf7bc;
.mergely.d.lhs {
background-color: lightpink;
}
.mergely.ch.a.rhs {
.mergely.ch.d.lhs {
font-weight: bold;
background-color: lightgreen;
}
.mergely.d.lhs {
background-color: #ffccd3;
text-decoration: none;
background-color: lightpink;
}
.mergely.c.lhs {
background-color: #ffe9e9;
}
.mergely.c.rhs {
background-color: #bcf7bc;
background-color: #dcf7dc;
}
.mergely.a.rhs {
background-color: lightgreen;
}
.mergely.ch.a.rhs {
font-weight: bold;
background-color: lightgreen;
}
.orig iframe {
border-left: 1px solid black;
Expand Down
6 changes: 3 additions & 3 deletions web/js/webmonitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
- css
*/
(function(ns){
ns.last = ns.versions[ns.versions.length -1];
ns.previous = ns.versions[ns.versions.length -2];
ns.last = ns.versions[ns.versions.length - 1];
ns.previous = ns.versions[ns.versions.length - 2];
ns.currentwin = "copy";
ns.currentcopy = "";
ns.currentorig = "";
Expand Down Expand Up @@ -96,7 +96,7 @@
ns.setDimensions = function(){
var winW = $("#selecter").width(),
imgW = Math.max(200, Math.min(350, parseInt(winW/ns.versions.length)));
$("#selecter_large, #screenshots").width((ns.versions.length) * (imgW + 4) + 1);
$("#selecter_large, #screenshots").width((ns.versions.length) * (imgW + 2) + 1);
$("#versions p, #screenshots img").width(imgW);
$(".copy iframe, .orig iframe").width((winW - 3) / 2);
$(".differ").width(winW - 17);
Expand Down

0 comments on commit 8c4a015

Please sign in to comment.