Skip to content

Commit a9fda52

Browse files
committed
Begin fixing design to match new colors
1 parent dfa1753 commit a9fda52

File tree

6 files changed

+90
-141
lines changed

6 files changed

+90
-141
lines changed

resources/assets/scripts/components/core/Navigation.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ export default Vue.component('navigation', {
9898
/>
9999
<div class="search-results select-none" :class="{ 'hidden': (servers.length === 0 && !loadingResults) || !searchActive || searchTerm.length < 3 }">
100100
<div v-if="loadingResults">
101-
<a href="#">
101+
<a href="#" class="no-hover cursor-default">
102102
<div class="flex items-center">
103103
<div class="flex-1">
104-
<span class="text-sm text-neutral-800">Loading...</span>
104+
<span class="text-sm text-neutral-500">Loading...</span>
105105
</div>
106106
<div class="flex-none">
107107
<span class="spinner spinner-relative"></span>
@@ -114,10 +114,10 @@ export default Vue.component('navigation', {
114114
<div class="flex items-center">
115115
<div class="flex-1">
116116
<span class="font-bold text-neutral-900">{{ server.name }}</span><br />
117-
<span class="font-light text-neutral-600 text-sm" v-if="server.description.length > 0">{{ server.description }}</span>
117+
<span class="text-neutral-600 text-sm" v-if="server.description.length > 0">{{ server.description }}</span>
118118
</div>
119119
<div class="flex-none">
120-
<span class="pillbox bg-indigo">{{ server.node }}</span>
120+
<span class="pillbox bg-neutral-900">{{ server.node }}</span>
121121
</div>
122122
</div>
123123
</router-link>

resources/assets/styles/components/buttons.css

Lines changed: 0 additions & 69 deletions
This file was deleted.

resources/assets/styles/components/forms.css

Lines changed: 75 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ input[type=number] {
2121
}
2222

2323
.input-open > .input {
24-
@apply .appearance-none .block .w-full .text-neutral-800 .border-b-2 .border-neutral-400 .py-3 .mb-3;
24+
@apply .appearance-none .block .w-full .text-neutral-800 .border-b-2 .border-neutral-200 .py-3 .mb-3;
2525

2626
&:focus {
2727
@apply .border-primary-400;
@@ -49,8 +49,8 @@ input[type=number] {
4949
* Styling for other forms throughout the Panel.
5050
*/
5151
.input:not(.open-label) {
52-
@apply .appearance-none .p-3 .rounded .border .text-neutral-800 .w-full;
53-
transition: all 100ms linear;
52+
@apply .appearance-none .p-3 .rounded .border .border-neutral-200 .text-neutral-800 .w-full;
53+
transition: border 150ms linear;
5454

5555
&:focus {
5656
@apply .border-primary-400;
@@ -66,13 +66,83 @@ input[type=number] {
6666
}
6767

6868
.input-label {
69-
@apply .block .uppercase .tracking-wide .text-neutral-900 .text-xs .font-bold .mb-2;
69+
@apply .block .uppercase .tracking-wide .text-neutral-800 .text-xs .font-bold .mb-2;
7070
}
7171

7272
.input-help {
73-
@apply .text-xs .text-neutral-500 .pt-2;
73+
@apply .text-xs .text-neutral-400 .pt-2;
7474

7575
&.error {
7676
@apply .text-red-600;
7777
}
7878
}
79+
80+
.btn {
81+
@apply .rounded .p-2;
82+
transition: all 150ms linear;
83+
84+
/**
85+
* Button Colors
86+
*/
87+
&.btn-primary {
88+
@apply .bg-primary-500 .border-primary-600 .border .text-white;
89+
90+
&:hover:enabled {
91+
@apply .bg-primary-600 .border-primary-800;
92+
}
93+
}
94+
95+
&.btn-green {
96+
@apply .bg-green-500 .border-green-600 .border .text-white;
97+
98+
&:hover:enabled {
99+
@apply .bg-green-600 .border-green-800;
100+
}
101+
}
102+
103+
&.btn-red {
104+
&:not(.btn-secondary) {
105+
@apply .bg-red-500 .border-red-600 .border .text-white;
106+
}
107+
108+
&:hover:enabled {
109+
@apply .bg-red-600 .border-red-800;
110+
}
111+
}
112+
113+
&.btn-secondary {
114+
@apply .border .border-neutral-400 .text-neutral-600;
115+
116+
&:hover:enabled {
117+
@apply .border-neutral-500 .text-neutral-800;
118+
}
119+
120+
&.btn-red:hover:enabled {
121+
@apply .bg-red-600 .border-red-800 .text-white;
122+
}
123+
}
124+
125+
/**
126+
* Button Sizes
127+
*/
128+
&.btn-jumbo {
129+
@apply .p-4 .w-full .uppercase .tracking-wide .text-sm;
130+
}
131+
132+
&.btn-lg {
133+
@apply .p-4 .uppercase .tracking-wide .text-sm;
134+
}
135+
136+
&.btn-sm {
137+
@apply .px-6 .py-3 .uppercase .tracking-wide .text-sm;
138+
}
139+
140+
&.btn-xs {
141+
@apply .py-2 .px-2 .uppercase .text-xs;
142+
}
143+
144+
&:disabled, &.disabled {
145+
opacity: 0.55;
146+
cursor: default;
147+
}
148+
}

resources/assets/styles/components/navigation.css

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.nav {
2-
@apply .bg-primary-600 .border-b .border-t .border-primary-900;
2+
@apply .bg-primary-600 .border-b .border-t .border-primary-700;
33
height: 56px;
44

55
& .logo {
@@ -19,29 +19,26 @@
1919
@apply .mr-2;
2020

2121
& > .search-input {
22-
@apply .text-sm .p-2 .ml-8 .rounded .border .border-primary-800 .bg-neutral-50 .text-neutral-900 .w-96;
23-
opacity: 0.9;
24-
transition: ease-in-out opacity 150ms;
22+
@apply .text-sm .p-2 .ml-8 .rounded .border .border-primary-600 .bg-white .text-neutral-900 .w-96;
23+
transition: border 150ms ease-in;
2524

2625
&:focus {
27-
@apply .border-primary-900;
28-
opacity: 1;
26+
@apply .border-primary-700;
2927
}
3028

3129
&.has-search-results {
3230
@apply .border-b-0 .rounded-b-none;
33-
opacity: 1 !important;
3431
}
3532
}
3633

3734
& .search-results {
38-
@apply .absolute .bg-neutral-50 .border .border-primary-900 .border-t-0 .rounded .rounded-t-none .p-2 .ml-8 .z-50 .w-96;
35+
@apply .absolute .bg-white .border .border-primary-700 .border-t-0 .rounded .rounded-t-none .p-2 .ml-8 .z-50 .w-96;
3936

4037
& a {
4138
@apply .block .no-underline .p-2 .rounded;
4239

43-
&:hover {
44-
@apply .bg-neutral-100;
40+
&:not(.no-hover):hover {
41+
@apply .bg-neutral-50;
4542
}
4643
}
4744
}
@@ -51,10 +48,11 @@
5148
@apply .flex .h-full .items-center;
5249

5350
& > a {
54-
@apply .block .flex .self-stretch .items-center .no-underline .text-neutral-100 .font-light .text-sm .px-5;
51+
transition: background-color 150ms linear;
52+
@apply .block .flex .self-stretch .items-center .no-underline .text-white .font-light .text-sm .px-5;
5553

5654
&:hover {
57-
@apply .bg-primary-600;
55+
@apply .bg-primary-700;
5856
}
5957
}
6058
}

resources/assets/styles/main.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
*/
1212
@import "components/animations.css";
1313
@import "components/authentication.css";
14-
@import "components/buttons.css";
1514
@import "components/forms.css";
1615
@import "components/miscellaneous.css";
1716
@import "components/modal.css";

resources/themes/pterodactyl/templates/base/core.blade.php

Lines changed: 1 addition & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,13 @@
11
@extends('templates/wrapper')
22

3-
{{--
4-
=======
5-
@section('above-container')
6-
<header class="bg-primary-500 text-white text-xl rounded-b fixed pin-t w-full z-40 shadow-md">
7-
<div class="container h-16 mx-auto flex">
8-
<img class="h-12 mt-2 mr-3" src="/assets/img/pterodactyl-flat.svg">
9-
<div class="py-6">PTERODACTYL</div>
10-
<div class="flex-grow"></div>
11-
<nav class="nav text-lg">
12-
<router-link to="/"><font-awesome-icon class="mr-2" fixed-with icon="server"></font-awesome-icon>Servers</router-link>
13-
<a href="#"><font-awesome-icon class="mr-2" fixed-with icon="cogs"></font-awesome-icon>Admin</a>
14-
<a href="#"><font-awesome-icon class="mr-2" fixed-with icon="user"></font-awesome-icon>schrej</a>
15-
<a href="/auth/logout"><font-awesome-icon fixed-with icon="sign-out-alt"></font-awesome-icon></a>
16-
</nav>
17-
</div>
18-
</header>
19-
<div class="h-16 mb-6"></div>
20-
{{--<div class="nav">
21-
<div class="logo">
22-
Pterodactyl
23-
</div>
24-
<div class="menu">
25-
<ul>
26-
<li>
27-
<router-link to="/">
28-
<span>Your Servers</span>
29-
</router-link>
30-
</li>
31-
<li>
32-
<a href="#">
33-
<span>Admin</span>
34-
</a>
35-
</li>
36-
<li>
37-
<a href="#">
38-
<span>dane</span>
39-
</a>
40-
</li>
41-
<li>
42-
<a href="{{ route('auth.logout') }}">
43-
<span>Logout</span>
44-
</a>
45-
</li>
46-
</ul>
47-
</div>
48-
</div>
49-
@endsection
50-
--}}
51-
523
@section('container')
534
<router-view></router-view>
545
@endsection
556

567
@section('below-container')
578
<div class="flex-grow"></div>
589
<div class="w-full m-auto mt-0 container">
59-
<p class="text-center sm:text-right text-neutral-600 text-xs">
10+
<p class="text-center sm:text-right text-neutral-300 text-xs">
6011
{!! trans('strings.copyright', ['year' => date('Y')]) !!}
6112
</p>
6213
</div>

0 commit comments

Comments
 (0)