mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
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:
parent
3031d2063d
commit
9c2d936b33
11
plinth/modules/sharing/static/sharing.css
Normal file
11
plinth/modules/sharing/static/sharing.css
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
/*
|
||||||
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
*/
|
||||||
|
|
||||||
|
.share-operations form {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.share-operations {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
@ -4,16 +4,11 @@
|
|||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
{% load static %}
|
||||||
|
|
||||||
{% block page_head %}
|
{% block page_head %}
|
||||||
<style type="text/css">
|
<link type="text/css" rel="stylesheet"
|
||||||
.share-operations form {
|
href="{% static 'sharing/sharing.css' %}"/>
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
.share-operations {
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
@ -65,7 +60,7 @@
|
|||||||
href="{% url 'sharing:edit' share.name %}">
|
href="{% url 'sharing:edit' share.name %}">
|
||||||
<span class="fa fa-pencil-square-o" aria-hidden="true"></span>
|
<span class="fa fa-pencil-square-o" aria-hidden="true"></span>
|
||||||
</a>
|
</a>
|
||||||
<form class="form form-inline" method="post"
|
<form class="form" method="post"
|
||||||
action="{% url 'sharing:remove' share.name %}">
|
action="{% url 'sharing:remove' share.name %}">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<button class="share-remove btn btn-sm btn-default fa fa-trash-o"
|
<button class="share-remove btn btn-sm btn-default fa fa-trash-o"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user