sharing: Split CSS styling into a separate file

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
Sunil Mohan Adapa 2020-12-17 17:04:11 -08:00 committed by Veiko Aasa
parent 3031d2063d
commit 9c2d936b33
No known key found for this signature in database
GPG Key ID: 478539CAE680674E
2 changed files with 15 additions and 9 deletions

View File

@ -0,0 +1,11 @@
/*
# SPDX-License-Identifier: AGPL-3.0-or-later
*/
.share-operations form {
display: inline-block;
}
.share-operations {
text-align: right;
}

View File

@ -4,16 +4,11 @@
{% endcomment %}
{% load i18n %}
{% load static %}
{% block page_head %}
<style type="text/css">
.share-operations form {
display: inline-block;
}
.share-operations {
text-align: right;
}
</style>
<link type="text/css" rel="stylesheet"
href="{% static 'sharing/sharing.css' %}"/>
{% endblock %}
{% block content %}
@ -65,7 +60,7 @@
href="{% url 'sharing:edit' share.name %}">
<span class="fa fa-pencil-square-o" aria-hidden="true"></span>
</a>
<form class="form form-inline" method="post"
<form class="form" method="post"
action="{% url 'sharing:remove' share.name %}">
{% csrf_token %}
<button class="share-remove btn btn-sm btn-default fa fa-trash-o"