More CSS work

This commit is contained in:
Dane Everitt 2018-07-25 22:08:01 -07:00
parent ef183d38d4
commit 0310402202
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
5 changed files with 56 additions and 14 deletions

View File

@ -0,0 +1,11 @@
.badge {
@apply .ml-2 .leading-normal;
&.tip {
@apply .bg-green-dark !important;
}
&.warn {
@apply .bg-yellow-dark !important;
}
}

View File

@ -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 {

View File

@ -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";

View 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;
}
}
}

View File

@ -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>