💄 Style delete buttons and menu

This commit is contained in:
Andreas Schneider 2020-10-25 18:28:27 +01:00
parent 0825ac9f8f
commit 5961b33ba0
2 changed files with 36 additions and 8 deletions

View File

@ -14,28 +14,54 @@
border-radius: .5em; border-radius: .5em;
border: 0; border: 0;
background-color: #c4e1ff; background-color: #c4e1ff;
font-weight: bold;
}
input[type="submit"].delete {
background-color: #e56f83;
} }
input[type="submit"] { input[type="submit"] {
background-color: #a9ca97; background-color: #a9ca97;
font-weight: bold; }
a:before {
content: " ";
color: gray;
}
a, a:visited, a:hover, a:active, a:focus {
/* font-style: normal; */
text-decoration: none;
color: black;
} }
#content { #content {
float: right; float: right;
width: 100%; width: calc(100% - 20px);
background-color: #F0F0F0; /* background-color: #F0F0F0; */
/* border-radius: 1em; */
/* padding: 10px; */
/* height: calc(100vh - 40px);*/
} }
#menu { #menu {
float: left; float: left;
width: 200px; width: 150px;
margin-left: -200px; margin-left: -185px;
background-color: #CCCCCC; background-color: #CCCCCC;
border-radius: .5em;
padding: 10px;
height: calc(100vh - 40px);
} }
#menu span { #menu span {
display: block; display: block;
margin-bottom: .5em;
}
#menu hr {
border: 1px solid gray;
} }
body { body {
@ -50,12 +76,14 @@
{{ block "page-content" . }}{{ end }} {{ block "page-content" . }}{{ end }}
</div> </div>
<div id="menu"> <div id="menu">
<span><a href="./">ShareDAV</a></span> <span style="font-weight: bold;"><a href="./">ShareDAV</a></span>
{{ if .SessionUser }} {{ if .SessionUser }}
{{ if eq .SessionUser.Role "admin" }} {{ if eq .SessionUser.Role "admin" }}
<hr/>
<span><a href="users">Users</a></span> <span><a href="users">Users</a></span>
<span><a href="shares">Shares</a></span> <span><a href="shares">Shares</a></span>
{{ end }} {{ end }}
<hr/>
<span><a href="logout">Logout</a></span> <span><a href="logout">Logout</a></span>
{{ end }} {{ end }}
</div> </div>

View File

@ -25,7 +25,7 @@
<div id="share-{{$share.UUID}}" class="share"> <div id="share-{{$share.UUID}}" class="share">
UUID: {{ $share.UUID }} <form style="display: inline-block;" action="delete-share" method="post"> UUID: {{ $share.UUID }} <form style="display: inline-block;" action="delete-share" method="post">
<input type="hidden" name="share" value="{{ $share.UUID }}"/> <input type="hidden" name="share" value="{{ $share.UUID }}"/>
<input type="submit" value="Delete"/> <input type="submit" value="Delete" class="delete"/>
</form> </form>
<br/> <br/>
Name: {{ $share.Name }}<br/> Name: {{ $share.Name }}<br/>
@ -35,7 +35,7 @@
<form style="display: inline-block;" action="share-delete-user" method="post"> <form style="display: inline-block;" action="share-delete-user" method="post">
<input type="hidden" name="share" value="{{ $share.UUID }}"/> <input type="hidden" name="share" value="{{ $share.UUID }}"/>
<input type="hidden" name="user" value="{{ $user.Username }}"/> <input type="hidden" name="user" value="{{ $user.Username }}"/>
<input type="submit" value="Delete"/> <input type="submit" value="Delete" class="delete"/>
</form> </form>
</div> </div>
{{ end }} {{ end }}