Fixes on buttons/dropdown layout

This commit is contained in:
Pablo Vazquez 2018-09-07 14:55:27 +02:00
parent 35225a189d
commit 8380270128
4 changed files with 9 additions and 23 deletions

View File

@ -164,12 +164,6 @@ span#project-edit-title
ul.project-edit-tools
li
a, button
padding: $dropdown-item-padding-y ($dropdown-item-padding-x / 2)
i
padding-right: 10px
&.button-save
&.field-error
a
@ -197,10 +191,6 @@ ul.project-edit-tools
cursor: default
+pulse-75
&.button-add,
&.button-edit
min-width: 80px
&.featured
a
color: $color-warning
@ -217,8 +207,6 @@ ul.project-edit-tools
&.dropdown
li
padding: 0
a
color: $body-color
display: block
@ -230,6 +218,9 @@ ul.project-edit-tools
color: $primary
text-decoration: none
i
padding-right: 10px
/* Icons per asset type. */
i
&.icon-group:after
@ -799,12 +790,6 @@ section.node-preview.group
color: $color-success
&.download
.dropdown-toggle
// padding-right: 0
i.icon-dropdown-menu
// padding-left: 10px
/* Download dropdown options */
ul.dropdown-menu
min-width: 240px

View File

@ -6,8 +6,9 @@
| {% if node_type_name == 'group' %}
| {% set node_type_name = 'folder' %}
| {% endif %}
li.dropdown-item(class="button-{{ node_type['name'] }}")
a.item_add_node(
li(class="button-{{ node_type['name'] }}")
a.dropdown-item(
class="item_add_node",
href="#",
title="{{ node_type['description'] }}",
data-node-type-name="{{ node_type['name'] }}",

View File

@ -23,7 +23,7 @@ section.node-preview.video
| {% block node_download %}
| {% if node.file_variations %}
button.btn.btn-outline-secondary.dropdown-toggle(
button.btn.btn-sm.btn-outline-primary.dropdown-toggle.px-3(
type="button",
data-toggle="dropdown",
aria-haspopup="true",

View File

@ -93,8 +93,8 @@
title="Download {{ node.properties.content_type | undertitle }}",
href="{{ node.file.link }}",
download="{{ node.file.filename }}")
button.btn.btn-outline-success.px-3(type="button")
i.pi-download
button.btn.btn-sm.btn-outline-primary.px-3(type="button")
i.pi-download.pr-2
| Download
| {% endblock node_download %}