1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-20 20:01:37 +02:00

feat(admin-plugin): refact styles #211

This commit is contained in:
Awilum
2020-01-28 18:31:54 +03:00
parent 79adbab80b
commit 8b4a5f2124
4 changed files with 18 additions and 6 deletions

View File

@@ -1,8 +1,10 @@
/**
* COMPONENTS / DROPDOWN
* COMPONENTS / BUTTONS
*
* INDEX:
* - dropdown
* - button
* - button--white
* - button-group
*
*/

View File

@@ -36,10 +36,10 @@
font-size: 14px;
line-height: 14px;
display: inline-block;
width: 14px;
height: 14px;
fill: white;
@apply inline-block;
}

View File

@@ -1,3 +1,13 @@
/**
* COMPONENTS / FORMS
*
* INDEX:
* - form-control-title
* - form-control
* - form-group
*
*/
.form-control-title
{
@apply font-bold;

View File

@@ -42,12 +42,12 @@
</button>
<div class="js-dropdown dropdown">
<a class="dropdown__item" href="{{ path_for('admin.api_tokens.edit') }}?api={{ api }}&api_token={{ token.dirname }}">
<i class="fas fa-edit dropdown__icon"></i>
<i class="dropdown__icon">{{ filesystem_read(PATH_PLUGINS ~ '/admin/assets/icons/solid/edit.svg')|raw }}</i>
{{ tr('admin_edit') }}</a>
<div class="dropdown__divider"></div>
<a class="dropdown__item" href="javascript:;" onclick="event.preventDefault();
document.getElementById('delete-api-token-id-{{ token.dirname }}').submit();">
<i class="fas fa-trash-alt dropdown__icon"></i>
<i class="dropdown__icon">{{ filesystem_read(PATH_PLUGINS ~ '/admin/assets/icons/solid/trash-alt.svg')|raw }}</i>
{{ tr('admin_delete') }}</a>
<form id="delete-api-token-id-{{ token.dirname }}" action="{{ path_for('admin.api_tokens.deleteProcess') }}" method="POST" style="display: none;">
{{ csrf() }}