Fixes on buttons/dropdown layout

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

View File

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

View File

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

View File

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