From ac13f5dce416b8d5df6243aba360128f217559c6 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sat, 9 Feb 2019 16:38:45 -0800 Subject: [PATCH] Fix a bunch of design inconsistencies and horrible code on server boxes --- .../scripts/components/dashboard/Dashboard.ts | 2 +- .../scripts/components/dashboard/ServerBox.ts | 29 ++++++------ .../styles/components/miscellaneous.css | 44 +++++++++---------- 3 files changed, 39 insertions(+), 36 deletions(-) diff --git a/resources/assets/scripts/components/dashboard/Dashboard.ts b/resources/assets/scripts/components/dashboard/Dashboard.ts index d4e02a281..4b864e733 100644 --- a/resources/assets/scripts/components/dashboard/Dashboard.ts +++ b/resources/assets/scripts/components/dashboard/Dashboard.ts @@ -108,7 +108,7 @@ export default Vue.component('dashboard', { />
-
+
diff --git a/resources/assets/scripts/components/dashboard/ServerBox.ts b/resources/assets/scripts/components/dashboard/ServerBox.ts index f3d1ff592..0d3ef5e69 100644 --- a/resources/assets/scripts/components/dashboard/ServerBox.ts +++ b/resources/assets/scripts/components/dashboard/ServerBox.ts @@ -156,13 +156,13 @@ export default Vue.component('server-box', { }, template: ` -
-
-
- +
+
+
+

@@ -171,21 +171,24 @@ export default Vue.component('server-box', { {{ server.name }}

-
-

{{ server.description }}

- -
- {{ server.node }} - {{ server.allocation.ip }}:{{ server.allocation.port }} +
+

{{ server.description }}

+
+
+
+ {{ server.node }} +
+
+ {{ server.allocation.ip }}:{{ server.allocation.port }}
diff --git a/resources/assets/styles/components/miscellaneous.css b/resources/assets/styles/components/miscellaneous.css index 0136cb10e..7dcdec5bc 100644 --- a/resources/assets/styles/components/miscellaneous.css +++ b/resources/assets/styles/components/miscellaneous.css @@ -53,11 +53,7 @@ code { * Flex boxes for server listing on user dashboard. */ .server-card-container { - @apply .mb-4; - - @screen smx { - @apply .w-full; - } + @apply .mb-4 .w-full; @screen md { @apply .w-1/2 .pr-4; @@ -78,27 +74,31 @@ code { @apply .pr-0; } } -} -.server-card { - @apply .block .no-underline .shadow; - transition: all 100ms ease-in; + & > div { + @apply .flex .flex-col .h-full; + transition: box-shadow 150ms ease-in; - & .identifier-icon { - @apply .inline-block .rounded-full .text-white .text-center .leading-none .justify-center .w-8 .h-8 .mr-2 .flex .flex-row .items-center; + &:hover { + @apply .shadow-md; + } } - & a, & a:visited { - @apply .no-underline .text-neutral-900; + & > div > .server-card { + @apply .flex .flex-1 .flex-col .p-4 .border .border-t-4 .border-neutral-100 .bg-white; + transition: all 100ms ease-in; + + & .identifier-icon { + @apply .select-none .inline-block .rounded-full .text-white .text-center .leading-none .justify-center .w-8 .h-8 .mr-2 .flex .flex-row .items-center; + } + + & a, & a:visited { + @apply .no-underline .text-neutral-800; + } } - & > .content { - @apply .border .border-neutral-400 .bg-white .no-underline .block .text-black .p-4; - border-top: 4px solid config('colors.neutral-400') !important; - } - - & > .footer { - @apply .border .border-neutral-400 .border-t-0 .bg-neutral-50; + & > div > .footer { + @apply .border .border-neutral-100 .border-t-0 .bg-neutral-50 .shadow-inner; } } @@ -110,11 +110,11 @@ code { @apply .w-full .my-4; & > input[type="text"] { - @apply .w-full .p-3 .rounded .border .text-neutral-800; + @apply .w-full .p-4 .rounded .border .border-neutral-200 .text-neutral-500; transition: border 150ms ease-in; &:focus { - @apply .border-primary-400; + @apply .border-primary-500; } } }