Skip to content

Commit

Permalink
make edit state visible on mobile again fix #376
Browse files Browse the repository at this point in the history
plus some little css and theme update
  • Loading branch information
vincent-peugnet committed Jan 8, 2024
1 parent a3f420e commit c852a7f
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 11 deletions.
2 changes: 1 addition & 1 deletion app/view/templates/edittopbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</span>

<span id="headid">
<?= $page->id() ?>
<span id="editstatus"></span><span class="pageid"><?= $page->id() ?></span>
</span>

<span>
Expand Down
2 changes: 1 addition & 1 deletion assets/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ summary {
white-space: nowrap;
}

summary:hover, input[type="submit"], button {
summary:hover, input[type="submit"], input[type="file"], button {
cursor: pointer;
}

Expand Down
20 changes: 15 additions & 5 deletions assets/css/edit.css
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,11 @@ input#fontsize {
width: 50px;
}

span#headid {color: var(--outline-color);background-color: var(--outline-background-color);}
span#headid {
color: var(--outline-color);
background-color: var(--outline-background-color);
text-wrap: nowrap;
}

a {
/* color: black; */
Expand Down Expand Up @@ -289,7 +293,11 @@ div#geomap {

span#fontsize {
display: none;
}
}

span#headid .pageid {
display: none;
}
}


Expand All @@ -304,8 +312,10 @@ div#geomap {
padding-top: 7px;
padding-bottom: 7px;
}

span#headid {
display: none;
}

@media (max-width: 750px) and (pointer: coarse) {
span#headid .pageid {
display: none;
}
}
13 changes: 11 additions & 2 deletions assets/css/theme/blue-whale.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,20 @@
--outline-color: #ffffff;
--button-background-color: #0057d9;
--button-color: #ffffff;
--input-background-color: #0066ff;
--input-background-color: #002152;
--input-color: #ffffff;
color-scheme: light;
color-scheme: dark;
}

input, button, select, textarea, legend {
border-radius: 10px;
}

button, input[type="submit"] {
border: solid 1px var(--text-color);
}


.submenu, .block {
border-radius: 0 0 10px 10px;
}
4 changes: 2 additions & 2 deletions src/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -469,13 +469,13 @@ function confirmExit(e) {
function changed() {
unsavedChanges = true;
document.title = '✏ *' + pagetitle;
document.getElementById('headid').innerHTML = '*' + pageid;
document.getElementById('editstatus').innerHTML = '*';
}

function saved(data) {
unsavedChanges = false;
document.title = '✏ ' + pagetitle;
document.getElementById('headid').innerHTML = pageid;
document.getElementById('editstatus').innerHTML = '';
document.querySelector('input[name="datemodif"]').value = data.datemodif;
}

Expand Down

0 comments on commit c852a7f

Please sign in to comment.