misc: use gadjo button css class (#26007)

This commit is contained in:
Frédéric Péters 2018-08-31 20:20:13 +02:00
parent b1ca54e13e
commit 75120c3d21
5 changed files with 9 additions and 23 deletions

View File

@ -140,20 +140,6 @@ select {
}
/* misc */
.bijoe-button {
background: #aaaaaa linear-gradient(to bottom, #f9f9f9, #eeeeee) repeat scroll 0 0;
border: 1px solid #b7b7b7;
border-radius: 1px;
box-shadow: 0 2px 2px 0 #ddd;
color: #424258;
cursor: pointer;
line-height: 100%;
padding: 1ex 2ex;
text-decoration: none;
display: inline-block;
margin-top: 1ex;
}
canvas {
box-sizing: border-box;
}

View File

@ -57,12 +57,12 @@
{% endif %}
{% block actions %}
<a href="?{% firstof view.request.POST.urlencode view.request.GET.urlencode %}" title="{{
visualization.title }}" class="bijoe-button">URL</a>
visualization.title }}" class="button">URL</a>
<a href="iframe/?{% firstof view.request.POST.urlencode view.request.GET.urlencode %}"
title="{{ visualization.title }}" class="bijoe-button">{% trans "URL for IFRAME" %}</a>
title="{{ visualization.title }}" class="button">{% trans "URL for IFRAME" %}</a>
<a rel="popup" href="{% url "create-visualization" warehouse=warehouse.name cube=cube.name %}?{% firstof view.request.POST.urlencode view.request.GET.urlencode %}"
title="{{ visualization.title }}" class="bijoe-button">{% trans "Save" %}</a>
title="{{ visualization.title }}" class="button">{% trans "Save" %}</a>
{% endblock %}
{% else %}
<div class="big-msg-info">{% trans "Please choose some measures and groupings." %}</div>

View File

@ -2,7 +2,7 @@
{% for table in visualization %}
<h2>{{ table.table_title }}</h2>
<a href="#" target="none" class="bijoe-button bijoe-png-button">PNG</a>
<a href="#" target="none" class="button bijoe-png-button">PNG</a>
<canvas id="canvas-{{ forloop.counter }}"></canvas>
<script>
$(function () {

View File

@ -10,7 +10,7 @@
<script src="{% static "js/bijoe.js" %}"></script>
{{ form.media.css }}
{{ form.media.js }}
<style>.bijoe-button { display: none }
<style>.button { display: none }
html, body { background: transparent; }
</style>
</head>
@ -23,7 +23,7 @@
{% include "bijoe/cube_chart.html" %}
{% endif %}
<a href="?{% firstof view.request.POST.urlencode view.request.GET.urlencode %}" title="{{
visualization.title }}" class="bijoe-button">URL</a>
visualization.title }}" class="button">URL</a>
{% endif %}
</div>
</body>

View File

@ -13,9 +13,9 @@
{% endblock %}
{% block actions %}
<a rel="popup" class="bijoe-button" href="{% url "rename-visualization" pk=object.pk %}">{% trans "Rename" %}</a>
<a rel="popup" class="bijoe-button" href="{% url "delete-visualization" pk=object.pk %}">{% trans "Delete" %}</a>
<a href="{{ iframe_url }}" class="bijoe-button">{% trans "URL for IFRAME" %}</a>
<a rel="popup" class="button" href="{% url "rename-visualization" pk=object.pk %}">{% trans "Rename" %}</a>
<a rel="popup" class="button" href="{% url "delete-visualization" pk=object.pk %}">{% trans "Delete" %}</a>
<a href="{{ iframe_url }}" class="button">{% trans "URL for IFRAME" %}</a>
{% endblock %}
{% block buttons %}