Skip to content
Permalink
Browse files

CSS spelling.

  • Loading branch information...
kohler committed Oct 1, 2019
1 parent 1daf256 commit 645ff647be9d4d958ea1cd6ff45d4ed64a413e0b
Showing with 49 additions and 52 deletions.
  1. +5 −5 assign.php
  2. +10 −10 scripts/script.js
  3. +1 −1 src/help/h_tags.php
  4. +10 −10 src/papertable.php
  5. +3 −3 src/review.php
  6. +2 −2 stylesheets/mobile.css
  7. +18 −21 stylesheets/style.css
@@ -203,7 +203,7 @@ function pcAssignments($qreq) {
// reviewer information
$t = review_table($Me, $prow, $paperTable->all_reviews(), null, "assign");
if ($t !== "")
echo '<hr class="papcard_sep"><h3>Reviews</h3>', $t;
echo '<hr class="papcard-sep"><h3>Reviews</h3>', $t;
// requested reviews
@@ -237,7 +237,7 @@ function pcAssignments($qreq) {
});
if ($requests) {
echo '<hr class="papcard_sep"><h3>Review requests</h3><div class="ctable-wide">';
echo '<hr class="papcard-sep"><h3>Review requests</h3><div class="ctable-wide">';
}
foreach ($requests as $req) {
echo '<div class="ctelt"><div class="ctelti has-fold';
@@ -408,7 +408,7 @@ function pcAssignments($qreq) {
$pcx[$row->contactId] = $row;
// PC conflicts row
echo '<hr class="papcard_sep"><h3>PC assignments</h3>',
echo '<hr class="papcard-sep"><h3>PC assignments</h3>',
Ht::form(hoturl_post("assign", "p=$prow->paperId"), array("id" => "ass", "class" => "need-unload-protection")),
'<p>';
Ht::stash_script('hiliter_children("#ass")');
@@ -507,8 +507,8 @@ function pcAssignments($qreq) {
$req = "Propose an external review";
echo '<div class="pcard revcard">',
Ht::form(hoturl_post("assign", "p=$prow->paperId"), ["novalidate" => true]),
'<div class="revcard_head">',
"<h3>", $req, "</h3></div><div class=\"revcard_body\">";
'<div class="revcard-head">',
"<h3>", $req, "</h3></div><div class=\"revcard-body\">";
echo '<p class="papertext">', $Conf->_i("external-review-request-description", null);
if ($Me->allow_administer($prow))
@@ -3727,7 +3727,7 @@ function add_review(rrow) {
+ '" data-rid="' + rrow.rid + i + '">', '</div>');

// HEADER
hc.push('<div class="revcard_head">', '</div>');
hc.push('<div class="revcard-head">', '</div>');

// edit/text links
if (rrow.editable) {
@@ -3787,13 +3787,13 @@ function add_review(rrow) {
hc.push_pop('<hr class="c">');

// body
hc.push('<div class="revcard_body fx20">', '</div>');
hc.push('<div class="revcard-body fx20">', '</div>');
hc.push_pop(render_review_body(rrow));

// ratings
has_user_rating = "user_rating" in rrow;
if ((rrow.ratings && rrow.ratings.length) || has_user_rating) {
hc.push('<div class="revcard_rating fx20">', '</div>');
hc.push('<div class="revcard-rating fx20">', '</div>');
hc.push(unparse_ratings(rrow.ratings || [], rrow.user_rating || 0, has_user_rating));
}

@@ -4275,7 +4275,7 @@ function render_cmt($c, cj, editing, msg) {
var hc = new HtmlCollector, hcid = new HtmlCollector, t, chead, i;
cmts[cj_cid(cj)] = cj;
if (cj.response) {
chead = $c.closest(".cmtcard").find(".cmtcard_head");
chead = $c.closest(".cmtcard").find(".cmtcard-head");
chead.find(".cmtinfo").remove();
}

@@ -4406,28 +4406,28 @@ function add(cj, editing) {
iddiv = '<div id="' + cid + '" class="cmtid' + (cj.editable ? " editable" : "");
if (!$c.hasClass("cmtcard") && ($pc = $(".pcontainer > .cmtcard").last()).length) {
if (!cj.is_new)
$pc.append('<div class="cmtcard_link"><a class="qq" href="#' + cid + '">Later comments &#x25BC;</a></div>');
$pc.append('<div class="cmtcard-link"><a class="qq" href="#' + cid + '">Later comments &#x25BC;</a></div>');
}
if (!$c.hasClass("cmtcard") || cj.response || $c.hasClass("response")) {
var t;
if (cj.response) {
t = iddiv + ' response pcard cmtcard">';
if (cj.text !== false)
t += '<div class="cmtcard_head"><h3>' +
t += '<div class="cmtcard-head"><h3>' +
(cj.response == "1" ? "Response" : cj.response + " Response") +
'</h3></div>';
} else {
t = '<div class="pcard cmtcard">';
}
$c = $(t + '<div class="cmtcard_body"></div></div>').appendTo(".pcontainer");
$c = $(t + '<div class="cmtcard-body"></div></div>').appendTo(".pcontainer");
if (!cj.response && $pc && $pc.length)
$c.prepend('<div class="cmtcard_link"><a class="qq" href="#' + ($pc.find("[id]").last().attr("id")) + '">Earlier comments &#x25B2;</a></div>');
$c.prepend('<div class="cmtcard-link"><a class="qq" href="#' + ($pc.find("[id]").last().attr("id")) + '">Earlier comments &#x25B2;</a></div>');
}
if (cj.response)
j = $('<div class="cmtg"></div>');
else
j = $(iddiv + ' cmtg"></div>');
j.appendTo($c.find(".cmtcard_body"));
j.appendTo($c.find(".cmtcard-body"));
}
if (editing == null && cj.response && cj.draft && cj.editable)
editing = true;
@@ -4543,7 +4543,7 @@ function nextprev_shortcut(evt, key) {
if (walk && !walk.hasAttribute("id") && $(walk).hasClass("cmtcard"))
walk = $(walk).find(".cmtg")[jdir]()[0];
} else {
$j = $(".cmtcard[id], .revcard[id], .cmtcard > .cmtcard_body > .cmtg[id]");
$j = $(".cmtcard[id], .revcard[id], .cmtcard > .cmtcard-body > .cmtg[id]");
walk = $j[jdir]()[0];
}
if (walk && walk.hasAttribute("id"))
@@ -34,7 +34,7 @@ function render_finding() {
echo $hth->subhead("Finding tags");
echo "<p>A paper’s tags are shown like this on the paper page:</p>
<div class=\"pspcard p\" style=\"position:static\"><div class=\"pspcard_body\">
<div class=\"pspcard p\" style=\"position:static\"><div class=\"pspcard-body\">
<div class=\"psc\">
<div class=\"pst\">
<span class=\"psfn\">Tags</span>
@@ -1311,7 +1311,7 @@ function echo_editable_anonymity($option) {
private function _papstripBegin($foldid = null, $folded = null, $extra = null) {
if (!$this->npapstrip) {
echo '<div class="pcontainer"><div class="pspcard">',
'<div class="pspcard_body"><div class="pspcard_fold">',
'<div class="pspcard-body"><div class="pspcard-fold">',
'<div style="float:right;margin-left:1em;cursor:pointer"><span class="psfn">More ', expander(true), '</span></div>';
if (($viewable = $this->prow->viewable_tags($this->user))) {
@@ -1321,8 +1321,8 @@ private function _papstripBegin($foldid = null, $folded = null, $extra = null) {
} else
echo '<hr class="c" />';
echo '</div><div class="pspcard_open">';
Ht::stash_script('$(".pspcard_fold").click(function(evt){$(".pspcard_fold").hide();$(".pspcard_open").show();evt.preventDefault()})');
echo '</div><div class="pspcard-open">';
Ht::stash_script('$(".pspcard-fold").click(function(evt){$(".pspcard-fold").hide();$(".pspcard-open").show();evt.preventDefault()})');
}
echo '<div';
if ($foldid)
@@ -2134,7 +2134,7 @@ static private function _echo_clickthrough($ctype) {
}
static function echo_review_clickthrough() {
echo '<div class="pcard revcard js-clickthrough-terms"><div class="revcard_head"><h3>Reviewing terms</h3></div><div class="revcard_body">', Ht::msg("You must agree to these terms before you can save reviews.", 2);
echo '<div class="pcard revcard js-clickthrough-terms"><div class="revcard-head"><h3>Reviewing terms</h3></div><div class="revcard-body">', Ht::msg("You must agree to these terms before you can save reviews.", 2);
self::_echo_clickthrough("review");
echo "</form></div></div>";
}
@@ -2208,9 +2208,9 @@ function paptabBegin() {
echo '<div class="pcontainer pcontainer-nostrip">';
echo '<div class="pcard papcard">';
if ($this->editable)
echo '<div class="pedcard_body">';
echo '<div class="pedcard-body">';
else
echo '<div class="papcard_body">';
echo '<div class="papcard-body">';
if ($this->editable) {
echo '<div id="foldpaper">';
@@ -2244,7 +2244,7 @@ function paptabBegin() {
} else if (!$this->editable
&& $this->user->act_author_view($this->prow)
&& !$this->user->contactId) {
echo '<hr class="papcard_sep" />',
echo '<hr class="papcard-sep" />',
"To edit this submission, <a href=\"", hoturl("index"), "\">sign in using your email and password</a>.";
}
@@ -2255,7 +2255,7 @@ function paptabBegin() {
private function _paptabSepContaining($t) {
if ($t !== "")
echo '<hr class="papcard_sep" />', $t;
echo '<hr class="papcard-sep" />', $t;
}
function _paptabReviewLinks($rtable, $editrrow, $ifempty) {
@@ -2269,7 +2269,7 @@ function _paptabReviewLinks($rtable, $editrrow, $ifempty) {
if (($empty = ($t === "")))
$t = $ifempty;
if ($t)
echo '<hr class="papcard_sep" />';
echo '<hr class="papcard-sep" />';
echo $t, "</div></div>\n";
return $empty;
}
@@ -2471,7 +2471,7 @@ function paptabEndWithReviewsAndComments() {
}
}
if (!empty($viewable)) {
echo '<div class="pcard notecard"><div class="notecard_body">',
echo '<div class="pcard notecard"><div class="notecard-body">',
'<a href="', hoturl("review", "p={$this->prow->paperId}&amp;m=r&amp;text=1"), '" class="xx">',
Ht::img("txt24.png", "[Text]", "dlimg"),
"&nbsp;<u>", ucfirst(join(" and ", $viewable)),
@@ -909,7 +909,7 @@ private function _echo_accept_decline(PaperInfo $prow, $rrow, Contact $user,
} else {
$req = 'Please take a moment to accept or decline our review request.';
}
echo '<div class="revcard_bodyinsert">',
echo '<div class="revcard-bodyinsert">',
Ht::actions($buttons, ["class" => "aab aabr aabig", "style" => "margin-top:0"],
'<div style="padding-top:5px">' . $req . '</div>'),
"</div>\n";
@@ -1000,7 +1000,7 @@ function show(PaperInfo $prow, ReviewInfo $rrow = null, Contact $viewer,
Ht::hidden_default_submit("default", "");
if ($rrow)
echo Ht::hidden("version", get($rrow, "reviewEditVersion", 0) + 1);
echo '<div class="revcard_head">';
echo '<div class="revcard-head">';
// Links
if ($rrow) {
@@ -1075,7 +1075,7 @@ function show(PaperInfo $prow, ReviewInfo $rrow = null, Contact $viewer,
</tr></table></div>\n";
// review card
echo '<div class="revcard_body">';
echo '<div class="revcard-body">';
// administrator?
$admin = $viewer->allow_administer($prow);
@@ -89,11 +89,11 @@ h2.paptitle {
-moz-column-gap: 18px;
column-gap: 18px;
}
.pspcard_fold {
.pspcard-fold {
padding: 7px 0;
display: block;
}
.pspcard_open {
.pspcard-open {
display: none;
}
.pcard, .pcontainer-nostrip > .pcard {
@@ -2552,19 +2552,19 @@ a.badge:active {
padding: 5px 0;
border-radius: 4px;
}
.pspcard_body {
.pspcard-body {
padding: 7px 8px;
background: white;
border-radius: 2px;
}
.pspcard_fold {
.pspcard-fold {
display: none;
}
.js-tag-editor {
font-size: 13px;
font-size: 0.8125rem;
}
.pspcard_body textarea, .pspcard_body select {
.pspcard-body textarea, .pspcard-body select {
font-size: inherit;
}
.psc {
@@ -2938,16 +2938,16 @@ ul.x > li:last-child {
border: 1px solid #9999bf;
border-radius: 4px;
}
.papcard_body, .pedcard_body {
.papcard-body, .pedcard-body {
background: #ffffff;
padding: 8px 16px;
border-radius: 2px;
}
.papcard_sep {
.papcard-sep {
background-color: #cec1ff;
margin: 1em 0;
}
.pedcard_head {
.pedcard-head {
padding: 3px 16px 4px;
}

@@ -2958,9 +2958,6 @@ ul.x > li:last-child {
padding: 3px 0 5px;
position: relative;
}
.notecard_body {
padding: 0 16px;
}

/* reviews */
.revcard {
@@ -2974,22 +2971,22 @@ ul.x > li:last-child {
#body-offline .revcard {
margin: 16px 7em;
}
.revcard_head {
.revcard-head {
padding: 3px 16px 4px;
}
.revcard_body {
.revcard-body {
background: #ffffff;
padding: 12px 16px;
border-radius: 2px;
}
.revcard_bodyinsert {
.revcard-bodyinsert {
background: #ffebeb;
padding: 12px 16px;
margin: -12px -16px 12px;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
}
.revcard_head h3 {
.revcard-head h3 {
display: inline;
padding: 0 1.5em 0 0;
}
@@ -3173,10 +3170,10 @@ ul.x > li:last-child {
.cmtcard.response {
background: #ffddc1;
}
.cmtcard_head {
.cmtcard-head {
padding: 0 16px 4px;
}
.cmtcard_body {
.cmtcard-body {
background: #ffffff;
padding: 0 16px;
border-radius: 2px;
@@ -3185,7 +3182,7 @@ ul.x > li:last-child {
display: inline;
padding: 0 1.5em 0 0;
}
.cmtcard_head .cmtfn {
.cmtcard-head .cmtfn {
font-size: smaller;
}
.cmtg {
@@ -3195,15 +3192,15 @@ ul.x > li:last-child {
.cmtg:first-child {
border-top: 0 none;
}
.cmtcard_link {
.cmtcard-link {
font-size: 69%;
font-weight: bold;
color: #666666;
}
.cmtcard_link:first-child {
.cmtcard-link:first-child {
padding: 0 16px 4px;
}
.cmtcard_link:last-child {
.cmtcard-link:last-child {
padding: 4px 16px 0;
}
.cmtfn > .barsep {
@@ -3304,7 +3301,7 @@ ul.x > li:last-child {
.cmttime, .cmtvis {
color: #999999;
}
.cmtcard_head .cmttime, .cmtcard_head .cmtvis {
.cmtcard-head .cmttime, .cmtcard-head .cmtvis {
color: #555555;
}
.cmtnumhead span.cmtnumat {
@@ -3347,7 +3344,7 @@ body {
margin-left: 0;
margin-bottom: 16px;
}
.pspcard_body {
.pspcard-body {
-webkit-column-count: 200px 2;
columns: 200px 2;
}

0 comments on commit 645ff64

Please sign in to comment.
You can’t perform that action at this time.