misc_pterodactyl-panel/resources/assets/styles/components/miscellaneous.css

121 lines
2.6 KiB
CSS
Raw Normal View History

code.clean {
@apply .font-mono .px-2 .py-1;
background-color: #eef1f6;
color: #596981;
border-radius: 2px;
border: 1px solid rgba(0, 0, 0, .1);
display: inline-block;
}
/**
* Indicators for server online status.
*/
.indicator {
2019-02-09 22:48:47 +00:00
@apply .bg-neutral-800 .border .border-primary-500;
border-radius: 50%;
width: 16px;
height: 16px;
&.online {
2019-02-09 22:48:47 +00:00
@apply .bg-green-600 .border-green-500;
animation: onlineblink 2s infinite alternate;
}
&.offline {
2019-02-09 22:48:47 +00:00
@apply .bg-green-600 .border-red-500;
animation: offlineblink 2s infinite alternate;
}
}
2018-05-27 05:09:29 +00:00
/**
* Usage indicator labels for the server listing.
*/
.usage {
@apply .flex-1 .text-center .relative;
& > .indicator-title {
2019-02-09 22:48:47 +00:00
@apply .text-xs .uppercase .font-hairline .bg-white .absolute .text-primary-500;
2018-05-27 05:09:29 +00:00
margin-top:-9px;
padding: 0 8px;
left: 50%;
transform: translate(-50%, 0);
}
}
2018-06-16 23:43:52 +00:00
/**
* Styling for elements that contain the core page content.
*/
.content-box {
2019-02-10 01:07:11 +00:00
@apply .bg-white .p-6 .rounded .shadow .border .border-neutral-100;
2018-06-16 23:43:52 +00:00
}
2018-05-27 05:09:29 +00:00
/**
* Flex boxes for server listing on user dashboard.
*/
.server-card-container {
@apply .mb-4 .w-full;
2018-05-27 05:09:29 +00:00
@screen md {
@apply .w-1/2 .pr-4;
&:nth-of-type(2n) {
@apply .pr-0;
}
}
@screen lg {
@apply .w-1/3 .pr-4;
&:nth-of-type(2n) {
@apply .pr-4;
}
2018-05-27 05:09:29 +00:00
&:nth-of-type(3n) {
@apply .pr-0;
2018-05-27 05:09:29 +00:00
}
}
& > div {
2019-02-17 01:15:56 +00:00
@apply .flex .flex-col;
transition: box-shadow 150ms ease-in;
2018-05-27 05:09:29 +00:00
&:hover {
@apply .shadow-md;
}
}
& > div > .server-card {
2019-02-17 01:15:56 +00:00
@apply .flex .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;
}
2018-05-27 05:09:29 +00:00
}
& > div > .footer {
@apply .border .border-neutral-100 .border-t-0 .bg-neutral-50 .shadow-inner;
}
2018-05-27 05:09:29 +00:00
}
2018-05-27 05:19:33 +00:00
2018-09-12 04:25:02 +00:00
.pillbox {
@apply .rounded-full .px-2 .py-1 .text-white .font-medium .leading-none .text-xs;
}
2018-05-27 05:19:33 +00:00
.server-search {
@apply .w-full .my-4;
& > input[type="text"] {
@apply .w-full .p-4 .rounded .border .border-neutral-200 .text-neutral-500;
2019-02-04 01:27:19 +00:00
transition: border 150ms ease-in;
2018-05-27 05:19:33 +00:00
&:focus {
@apply .border-primary-500;
2018-05-27 05:19:33 +00:00
}
}
}