mirror of
https://github.com/pterodactyl/documentation.git
synced 2025-12-11 05:44:45 -06:00
More CSS work
This commit is contained in:
parent
ef183d38d4
commit
0310402202
11
.vuepress/theme/styles/badges.css
Normal file
11
.vuepress/theme/styles/badges.css
Normal file
@ -0,0 +1,11 @@
|
||||
.badge {
|
||||
@apply .ml-2 .leading-normal;
|
||||
|
||||
&.tip {
|
||||
@apply .bg-green-dark !important;
|
||||
}
|
||||
|
||||
&.warn {
|
||||
@apply .bg-yellow-dark !important;
|
||||
}
|
||||
}
|
||||
@ -1,6 +1,6 @@
|
||||
.content {
|
||||
code {
|
||||
@apply m-0 text-sm bg-grey-lighter rounded-sm;
|
||||
@apply .m-0 .text-sm .bg-grey-lighter .rounded-sm .border;
|
||||
padding: .25rem .5rem;
|
||||
}
|
||||
|
||||
@ -8,13 +8,13 @@
|
||||
@apply .leading-normal .overflow-auto .my-4 .mx-0 .p-4;
|
||||
|
||||
code {
|
||||
@apply .text-white .p-0 .bg-transparent;
|
||||
@apply .text-white .p-0 .bg-transparent .border-0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
div[class*="language-"] {
|
||||
@apply .relative .bg-grey-darkest;
|
||||
@apply .relative .bg-grey-darkest .rounded .border .border-black;
|
||||
|
||||
.highlight-lines {
|
||||
@apply .absolute .pin-t .pin-l .w-full .leading-normal .select-none;
|
||||
@ -26,19 +26,19 @@ div[class*="language-"] {
|
||||
}
|
||||
|
||||
pre, pre[class*="language-"] {
|
||||
@apply bg-transparent relative;
|
||||
@apply .bg-transparent .relative .m-0;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
&::before {
|
||||
@apply absolute text-xs text-grey;
|
||||
@apply .absolute .text-xs .text-grey;
|
||||
top: 1em;
|
||||
right: 1em;
|
||||
}
|
||||
|
||||
&:not(.line-numbers-mode) {
|
||||
.line-numbers-wrapper {
|
||||
@apply hidden;
|
||||
@apply .hidden;
|
||||
}
|
||||
}
|
||||
&.line-numbers-mode {
|
||||
|
||||
@ -8,5 +8,7 @@
|
||||
@import "./sidebar.css";
|
||||
@import "./home.css";
|
||||
@import "./code.css";
|
||||
@import "./notices.css";
|
||||
@import "./badges.css";
|
||||
|
||||
@import "tailwindcss/utilities";
|
||||
@import "tailwindcss/utilities";
|
||||
|
||||
36
.vuepress/theme/styles/notices.css
Normal file
36
.vuepress/theme/styles/notices.css
Normal file
@ -0,0 +1,36 @@
|
||||
.custom-block {
|
||||
@apply .px-6 .py-1;
|
||||
border-left: .5rem solid;
|
||||
|
||||
& > .custom-block-title {
|
||||
@apply .font-semibold;
|
||||
}
|
||||
|
||||
& > .custom-block-title, & > p {
|
||||
@apply .my-3;
|
||||
}
|
||||
|
||||
&.warning {
|
||||
@apply .bg-yellow-lightest .border-yellow-dark;
|
||||
|
||||
& p, & > .custom-block-title {
|
||||
@apply .text-yellow-darker;
|
||||
}
|
||||
}
|
||||
|
||||
&.tip {
|
||||
@apply .bg-green-lightest .border-green-dark;
|
||||
|
||||
& p, & > .custom-block-title {
|
||||
@apply .text-green-darker;
|
||||
}
|
||||
}
|
||||
|
||||
&.danger {
|
||||
@apply .bg-red-lightest .border-red-dark;
|
||||
|
||||
& p, & > .custom-block-title {
|
||||
@apply .text-red-darker;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -27,10 +27,3 @@ php artisan queue:restart
|
||||
* [0.6.X to 0.7.9](/panel/upgrade/0.6_to_0.7.md)
|
||||
* [0.7.X series](/panel/upgrade/0.7.md) <Badge text="current" vertical="middle"/>
|
||||
* [0.7.X to 0.8.0](#) <Badge text="beta" type="warn" vertical="middle"/>
|
||||
|
||||
<style scoped>
|
||||
.badge {
|
||||
line-height: 16px;
|
||||
margin-left: 0.5rem;
|
||||
}
|
||||
</style>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user