Skip to content

Commit

Permalink
Cleanup styles
Browse files Browse the repository at this point in the history
  • Loading branch information
xi-cephei committed May 28, 2021
1 parent 34bb89b commit e1cbc58
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 31 deletions.
2 changes: 1 addition & 1 deletion jest.setup.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'jest-preset-angular';
import 'jest-preset-angular/setup-jest';

Object.defineProperty(window, 'CSS', { value: null });
Object.defineProperty(document, 'doctype', {
Expand Down
41 changes: 11 additions & 30 deletions projects/showcase/src/styles.css
Original file line number Diff line number Diff line change
@@ -1,22 +1,15 @@
@import 'tailwindcss/base';

@import 'tailwindcss/components';

@import 'tailwindcss/utilities';

html, body {
@apply h-full;
@apply bg-gray-100;
}

.formkit-field {
@apply space-y-2;
}

.formkit-field-description {
@apply text-sm;
}

/**
* Notification
*/
.formkit-field-notification {
@apply text-sm;
}
Expand All @@ -30,14 +23,6 @@ html, body {
@apply text-gray-500;
}

.mat-form-field {
@apply w-full;
}

.mat-form-field-wrapper {
@apply pb-0;
}

/**
* FormKit styling
*/
Expand All @@ -50,18 +35,17 @@ html, body {
@apply gap-4;
@apply grid;
@apply w-full;

grid-template-columns: repeat(12, 1fr);
@apply grid-cols-12;
}

.formkit-field {
grid-column: auto / span var(--column-span);
@apply grid gap-3 grid-cols-1;
}

:host {
display: block;
}

/**
* Header setup
*/
.formkit-field-header-inner {
display: flex;
align-items: center;
Expand All @@ -71,8 +55,8 @@ html, body {
@apply text-xl font-medium tracking-tight;
}

.formkit-field-tooltip {
@apply flex ml-1 items-center justify-center w-6 h-6 cursor-pointer text-gray-500 hover:text-black;
.formkit-field-description {
@apply text-sm;
}

formkit-radio-field .form-radio-wrapper:not(:last-child) {
Expand Down Expand Up @@ -177,7 +161,6 @@ button[disabled] {
@apply grid !important;
@apply grid-cols-1 md:grid-cols-4;
@apply gap-4;

}

.form-checkbox-wrapper,
Expand Down Expand Up @@ -208,8 +191,7 @@ button[disabled] {
}

.formkit-field-tooltip {
@apply relative;
@apply z-20;
@apply flex ml-1 items-center justify-center w-6 h-6 cursor-pointer text-gray-500 hover:text-black relative z-20;
}

.formkit-field-tooltip:hover:after {
Expand Down Expand Up @@ -269,7 +251,6 @@ input[disabled] {
}

.formkit-toggle-wrapper input:checked + .formkit-toggle:after {
/*@apply bg-green-500;*/
@apply bg-white;
}

Expand Down

0 comments on commit e1cbc58

Please sign in to comment.