Skip to content

Commit

Permalink
clean editor top bars style
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-peugnet committed Nov 9, 2023
1 parent 4fe95f6 commit afbf766
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 21 deletions.
6 changes: 4 additions & 2 deletions app/view/templates/edittopbar.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<aside id="edittopbar">

<div id="editmenu">
<span class="menu" id="pagemenu">
<span>
<form
action="<?= $this->upage('pageupdate', $page->id()) ?>"
Expand Down Expand Up @@ -41,6 +41,8 @@
<span class="text">delete</span>
</a>
</span>
</span>
<span class="menu" id="workspacemenu">

<span id="fontsize">
<label for="fontsize">
Expand Down Expand Up @@ -68,6 +70,6 @@
</form>
</span>

</div>
</span>

</aside>
8 changes: 0 additions & 8 deletions assets/css/back.css
Original file line number Diff line number Diff line change
Expand Up @@ -201,14 +201,6 @@ main.font input, main.font select, main.font textarea {
display: block;
}

span#user {
float: right;
}

span#search {
float: left;
}

img.icon {
height: 12px;
}
Expand Down
5 changes: 5 additions & 0 deletions assets/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ h1, h2 {
background-color: var(--main-color);
width: 100%;
padding: 4px 3px;
display: flex;
}

#topbar form {
Expand All @@ -81,6 +82,10 @@ h1, h2 {
text-decoration: underline;
}

span#user {
margin-left: auto; /* align to the right */
}

aside {
background-color: var(--secondary-background-color);
}
Expand Down
23 changes: 12 additions & 11 deletions assets/css/edit.css
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,24 @@ input#editfontsize {
}


.editor div#editmenu {
.editor aside {
display: flex;
flex-direction: row;
justify-content: space-between;
flex-wrap: nowrap;
padding: 2px 3px;
}

aside#edittopbar .menu {
display: flex;
}
aside #pagemenu > span {
margin-right: 14px;
}
aside #workspacemenu > span {
margin-left: 10px;
}

.editor ul {
list-style: none;
padding: 0;
Expand Down Expand Up @@ -152,16 +163,6 @@ a:hover {



span#user {
float: right;
}

span#search {
float: left;
}




img.icon {
height: 15px;
Expand Down

0 comments on commit afbf766

Please sign in to comment.