mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 20:35:02 +00:00
dashboard: use webpack for builds; use tailwindcss instead of bulma; all sorts of tweaks
This commit is contained in:
parent
028786d348
commit
577500af92
42 changed files with 4813 additions and 3174 deletions
18
dashboard/src/style/app.pcss
Normal file
18
dashboard/src/style/app.pcss
Normal file
|
@ -0,0 +1,18 @@
|
|||
@import "~tailwindcss/base.css";
|
||||
@import "~tailwindcss/components.css";
|
||||
@import "~tailwindcss/utilities.css";
|
||||
|
||||
@import "~vue-material-design-icons/styles.css";
|
||||
|
||||
@import "components.pcss";
|
||||
|
||||
@import "docs.pcss";
|
||||
|
||||
body {
|
||||
overflow-y: scroll;
|
||||
|
||||
@apply bg-gray-900;
|
||||
@apply text-gray-300;
|
||||
@apply text-base;
|
||||
@apply p-4;
|
||||
}
|
4
dashboard/src/style/base.pcss
Normal file
4
dashboard/src/style/base.pcss
Normal file
|
@ -0,0 +1,4 @@
|
|||
body {
|
||||
font: normal 18px/1.5 sans-serif;
|
||||
font-family: system, -apple-system, ".SFNSText-Regular", "San Francisco", "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", sans-serif;
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400,600&display=swap');
|
||||
@import "~bulma/sass/base/minireset";
|
||||
|
||||
body {
|
||||
font: normal 16px/1.4 'Open Sans', sans-serif;
|
||||
}
|
21
dashboard/src/style/components.pcss
Normal file
21
dashboard/src/style/components.pcss
Normal file
|
@ -0,0 +1,21 @@
|
|||
.inline-code {
|
||||
@apply inline-block;
|
||||
@apply bg-gray-800;
|
||||
@apply px-1;
|
||||
@apply rounded;
|
||||
@apply text-sm;
|
||||
}
|
||||
|
||||
.codeblock {
|
||||
@apply bg-gray-800;
|
||||
@apply p-3;
|
||||
@apply mb-4;
|
||||
@apply rounded;
|
||||
@apply text-sm;
|
||||
@apply shadow-md;
|
||||
|
||||
& .hljs {
|
||||
@apply bg-transparent;
|
||||
@apply p-0;
|
||||
}
|
||||
}
|
|
@ -1,9 +1,78 @@
|
|||
@import "~buefy/dist/buefy.css";
|
||||
@import "~highlight.js/styles/ocean.css";
|
||||
|
||||
$bulmaswatch-import-font: false;
|
||||
$family-primary: 'Open Sans', sans-serif;
|
||||
$list-background-color: transparent;
|
||||
|
||||
$size-1: 2.5rem;
|
||||
$size-2: 2rem;
|
||||
$size-3: 1.5rem;
|
||||
$size-4: 1.25rem;
|
||||
|
||||
@import "~bulmaswatch/superhero/_variables";
|
||||
|
||||
$tabs-link-color: $grey-light;
|
||||
$tabs-link-active-color: $grey-lighter;
|
||||
$tabs-link-active-border-bottom-color: $grey-lighter;
|
||||
|
||||
@import "~bulma/bulma";
|
||||
@import "~bulmaswatch/superhero/_overrides";
|
||||
|
||||
.dashboard-cloak {
|
||||
|
||||
.init-cloak {
|
||||
visibility: visible !important;
|
||||
}
|
||||
|
||||
.z-title {
|
||||
line-height: 1.125;
|
||||
|
||||
&.is-1 { font-size: $size-1; }
|
||||
&.is-2 { font-size: $size-2; }
|
||||
&.is-3 { font-size: $size-3; }
|
||||
&.is-4 { font-size: $size-4; }
|
||||
&.is-5 { font-size: $size-5; }
|
||||
&.is-6 { font-size: $size-6; }
|
||||
}
|
||||
|
||||
.z-list {
|
||||
margin-left: 1.5rem;
|
||||
}
|
||||
|
||||
.z-ul {
|
||||
list-style: disc;
|
||||
}
|
||||
|
||||
.mt-1 { margin-top: 1rem; }
|
||||
.mt-2 { margin-top: 1.5rem; }
|
||||
.mt-3 { margin-top: 2rem; }
|
||||
|
||||
.mb-1 { margin-bottom: 1rem; }
|
||||
.mb-2 { margin-bottom: 1.5rem; }
|
||||
.mb-3 { margin-bottom: 2rem; }
|
||||
|
||||
.codeblock,
|
||||
.content .codeblock {
|
||||
border-radius: 3px;
|
||||
padding: 16px;
|
||||
max-width: 970px; /* FIXME: temp fix for overflowing code blocks, look into properly later */
|
||||
}
|
||||
|
||||
.codeblock .hljs {
|
||||
background: transparent;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.menu-label {
|
||||
&:not(:first-child) {
|
||||
margin-top: 1.4em;
|
||||
}
|
||||
|
||||
&:not(:last-child) {
|
||||
margin-bottom: 0.4em;
|
||||
}
|
||||
}
|
||||
|
||||
.menu-list .router-link-active {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
|
60
dashboard/src/style/docs.pcss
Normal file
60
dashboard/src/style/docs.pcss
Normal file
|
@ -0,0 +1,60 @@
|
|||
.docs-sidebar {
|
||||
& .router-link-active {
|
||||
@apply underline;
|
||||
}
|
||||
}
|
||||
|
||||
.docs-content {
|
||||
& h1 {
|
||||
@apply text-5xl;
|
||||
@apply font-semibold;
|
||||
@apply leading-none;
|
||||
@apply pb-4;
|
||||
}
|
||||
|
||||
& h2 {
|
||||
@apply text-2xl;
|
||||
@apply font-semibold;
|
||||
@apply pt-2;
|
||||
@apply pb-1;
|
||||
}
|
||||
|
||||
& h3 {
|
||||
@apply font-semibold;
|
||||
@apply pb-1;
|
||||
}
|
||||
|
||||
& p {
|
||||
@apply pb-4;
|
||||
|
||||
& code {
|
||||
@apply inline-code;
|
||||
}
|
||||
}
|
||||
|
||||
& a:not([class]) {
|
||||
@apply text-blue-400;
|
||||
@apply underline;
|
||||
|
||||
&:hover {
|
||||
@apply text-blue-200;
|
||||
}
|
||||
}
|
||||
|
||||
& ul:not([class]) {
|
||||
@apply list-disc;
|
||||
@apply mb-4;
|
||||
|
||||
& li {
|
||||
@apply ml-6;
|
||||
}
|
||||
|
||||
& code {
|
||||
@apply inline-code;
|
||||
}
|
||||
}
|
||||
|
||||
& .expandable {
|
||||
max-width: 600px;
|
||||
}
|
||||
}
|
|
@ -1,77 +0,0 @@
|
|||
@import url('https://cdn.materialdesignicons.com/2.5.94/css/materialdesignicons.min.css');
|
||||
|
||||
$bulmaswatch-import-font: false;
|
||||
$family-primary: 'Open Sans', sans-serif;
|
||||
$list-background-color: transparent;
|
||||
|
||||
$size-1: 2.5rem;
|
||||
$size-2: 2rem;
|
||||
$size-3: 1.5rem;
|
||||
$size-4: 1.25rem;
|
||||
|
||||
@import "~bulmaswatch/superhero/_variables";
|
||||
|
||||
$tabs-link-color: $grey-light;
|
||||
$tabs-link-active-color: $grey-lighter;
|
||||
$tabs-link-active-border-bottom-color: $grey-lighter;
|
||||
|
||||
@import "~bulma/bulma";
|
||||
@import "~bulmaswatch/superhero/_overrides";
|
||||
|
||||
|
||||
.docs-cloak {
|
||||
visibility: visible !important;
|
||||
}
|
||||
|
||||
.z-title {
|
||||
line-height: 1.125;
|
||||
|
||||
&.is-1 { font-size: $size-1; }
|
||||
&.is-2 { font-size: $size-2; }
|
||||
&.is-3 { font-size: $size-3; }
|
||||
&.is-4 { font-size: $size-4; }
|
||||
&.is-5 { font-size: $size-5; }
|
||||
&.is-6 { font-size: $size-6; }
|
||||
}
|
||||
|
||||
.z-list {
|
||||
margin-left: 1.5rem;
|
||||
}
|
||||
|
||||
.z-ul {
|
||||
list-style: disc;
|
||||
}
|
||||
|
||||
.mt-1 { margin-top: 1rem; }
|
||||
.mt-2 { margin-top: 1.5rem; }
|
||||
.mt-3 { margin-top: 2rem; }
|
||||
|
||||
.mb-1 { margin-bottom: 1rem; }
|
||||
.mb-2 { margin-bottom: 1.5rem; }
|
||||
.mb-3 { margin-bottom: 2rem; }
|
||||
|
||||
.codeblock,
|
||||
.content .codeblock {
|
||||
border-radius: 3px;
|
||||
padding: 16px;
|
||||
max-width: 970px; /* FIXME: temp fix for overflowing code blocks, look into properly later */
|
||||
}
|
||||
|
||||
.codeblock .hljs {
|
||||
background: transparent;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.menu-label {
|
||||
&:not(:first-child) {
|
||||
margin-top: 1.4em;
|
||||
}
|
||||
|
||||
&:not(:last-child) {
|
||||
margin-bottom: 0.4em;
|
||||
}
|
||||
}
|
||||
|
||||
.menu-list .router-link-active {
|
||||
text-decoration: underline;
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
@import url("https://cdn.materialdesignicons.com/2.5.94/css/materialdesignicons.min.css");
|
3
dashboard/src/style/initial.pcss
Normal file
3
dashboard/src/style/initial.pcss
Normal file
|
@ -0,0 +1,3 @@
|
|||
@import "./reset.pcss";
|
||||
@import "./base.pcss";
|
||||
@import "./splash.pcss";
|
48
dashboard/src/style/reset.pcss
Normal file
48
dashboard/src/style/reset.pcss
Normal file
|
@ -0,0 +1,48 @@
|
|||
/* Box sizing rules */
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* Remove default padding */
|
||||
ul,
|
||||
ol {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* Remove default margin */
|
||||
body,
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
p,
|
||||
ul,
|
||||
ol,
|
||||
li,
|
||||
figure,
|
||||
figcaption,
|
||||
blockquote,
|
||||
dl,
|
||||
dd {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Inherit fonts for inputs and buttons */
|
||||
input,
|
||||
button,
|
||||
textarea,
|
||||
select {
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
/* Remove all animations and transitions for people that prefer not to see them */
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
* {
|
||||
animation-duration: 0.01ms !important;
|
||||
animation-iteration-count: 1 !important;
|
||||
transition-duration: 0.01ms !important;
|
||||
scroll-behavior: auto !important;
|
||||
}
|
||||
}
|
|
@ -1,58 +1,82 @@
|
|||
.splash {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
padding: 16px;
|
||||
|
||||
background-color: #7289da;
|
||||
background-image: linear-gradient(225deg, #7289da 0%, #5d70b4 100%);
|
||||
color: #fff;
|
||||
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
|
||||
a {
|
||||
& a {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
flex: 0 1 750px;
|
||||
& > #error {
|
||||
width: 100%;
|
||||
max-width: 750px;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
|
||||
&.has-error {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
& .message {
|
||||
flex: 0 1 auto;
|
||||
text-align: left;
|
||||
padding: 8px 12px;
|
||||
background-color: #404040;
|
||||
border-radius: 4px;
|
||||
box-shadow: 0 3px 12px -2px hsla(0, 0%, 0%, 0.2);
|
||||
}
|
||||
}
|
||||
|
||||
& .wrapper {
|
||||
flex: 0 0 auto;
|
||||
|
||||
width: 750px;
|
||||
max-width: 100%;
|
||||
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: start;
|
||||
align-items: flex-start;
|
||||
|
||||
.logo-column {
|
||||
& .logo-column {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.info-column {
|
||||
& .info-column {
|
||||
flex: 1 1 100%;
|
||||
}
|
||||
|
||||
.logo {
|
||||
& .logo {
|
||||
width: 300px;
|
||||
height: 300px;
|
||||
margin-right: 64px;
|
||||
margin-right: 48px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
& h1 {
|
||||
font-size: 80px;
|
||||
font-weight: 300;
|
||||
margin-top: 40px
|
||||
}
|
||||
|
||||
.description {
|
||||
& .description {
|
||||
color: #f1f5ff;
|
||||
}
|
||||
|
||||
.actions {
|
||||
& .actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
margin-top: 8px;
|
||||
margin-left: -12px; // Negative button margin
|
||||
margin-left: -12px;
|
||||
|
||||
.btn {
|
||||
& .btn {
|
||||
margin: 12px;
|
||||
text-decoration: none;
|
||||
padding: 8px 24px;
|
||||
|
@ -73,7 +97,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
.error {
|
||||
& .error {
|
||||
margin-top: 8px;
|
||||
background-color: hsl(224, 52%, 32%);
|
||||
padding: 12px;
|
Loading…
Add table
Add a link
Reference in a new issue