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

feat(admin-plugin): refactor css, update all components #211

This commit is contained in:
Awilum
2020-01-24 00:33:57 +03:00
parent c25067a5a3
commit 7699f3258b
6 changed files with 38 additions and 51 deletions

View File

@@ -3,7 +3,7 @@
width: var(--box-size);
height: 100vh;
@apply flex flex-col fixed bg-black text-white justify-between z-20;
@apply flex flex-col fixed bg-gray-1000 text-white justify-between z-20;
}
.navigation__item
@@ -13,14 +13,13 @@
height: 100%;
padding: 15px;
@apply w-full h-full relative flex items-center justify-center opacity-75 cursor-pointer ;
@apply w-full h-full relative flex items-center justify-center opacity-75 cursor-pointer;
}
.navigation__item--active,
.navigation__item:hover
{
background: rgba(255, 255, 255, .13);
@apply opacity-100;
@apply opacity-100 bg-gray-900;
}
.navigation__item--logo

View File

@@ -0,0 +1,31 @@
.table
{
@apply w-full;
}
.table tr:first-of-type th,
.table tr:first-of-type td
{
@apply border-t-0;
}
.table > thead > tr > th
{
@apply font-bold text-left text-black border-gray-000 border-b;
}
.table > tbody > tr > td,
.table > thead > tr > td,
.table > tfoot > tr > td,
.table > tbody > tr > th,
.table > thead > tr > th,
.table > tfoot > tr > th
{
@apply align-middle text-black border-gray-000 border-t border-b px-3 py-2;
}
.table tbody tr:hover td,
.table tbody tr:hover th
{
@apply bg-gray-000;
}

View File

@@ -3,11 +3,11 @@
@import 'vars';
@import 'main';
@import 'content';
@import 'table';
@import 'form';
@import 'components/navigation';
@import 'components/button';
@import 'components/dropdown';
@import 'components/tables';
@import 'components/navigations';
@import 'components/buttons';
@import 'components/dropdowns';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';

View File

@@ -1,43 +0,0 @@
table
{
width: 100%;
}
table tr:first-of-type td
{
border-top: 0;
}
table > thead > tr > th
{
font-weight: bold;
text-align: left;
text-transform: none;
color: black;
border-color: rgba(224, 224, 224, .1);
border-bottom-width: 1px;
}
table > tbody > tr > td,
table > thead > tr > td,
table > tfoot > tr > td,
table > tbody > tr > th,
table > thead > tr > th,
table > tfoot > tr > th
{
vertical-align: middle;
color: black;
border-color: rgba(224, 224, 224, .13);
border-top-width: 1px;
border-bottom-width: 1px;
@apply px-3 py-2;
}
table tbody tr:hover td,
table tbody tr:hover th
{
background: rgba(224, 224, 224, .13);
}