mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-14 17:05:10 +00:00
theming
This commit is contained in:
parent
1f41bbed20
commit
83fa4fc85f
@ -50,7 +50,7 @@ if (!appStore.utc) {
|
|||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.app-main {
|
.app-main {
|
||||||
height: calc(100% - 40px);
|
height: calc(100% - 39px);
|
||||||
background: #f7f9fa;
|
background: #f7f9fa;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -149,10 +149,9 @@ const filterMenus = (menus: any[]) => {
|
|||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.side-bar {
|
.side-bar {
|
||||||
background: #252a2f;
|
background: #252a2f;
|
||||||
height: 100%;
|
height: 100vh;
|
||||||
min-height: 700px;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-bottom: 100px;
|
overflow-y: visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-menu-vertical:not(.el-menu--collapse) {
|
.el-menu-vertical:not(.el-menu--collapse) {
|
||||||
|
@ -30,7 +30,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.el-pagination.is-background .el-pager li:not(.disabled).active {
|
.el-pagination.is-background .el-pager li:not(.disabled).active {
|
||||||
background: var(--spp-other-green);
|
background: var(--spp-light-grey);
|
||||||
|
color: ghostwhite !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-input__inner {
|
.el-input__inner {
|
||||||
@ -108,7 +109,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.settings input {
|
.settings input {
|
||||||
background: var(--spp-dark-green) !important;
|
background: var(--nice-black) !important;
|
||||||
border: 1px solid var(--spp-blue) !important;
|
border: 1px solid var(--spp-blue) !important;
|
||||||
color: var(--spp-white);
|
color: var(--spp-white);
|
||||||
}
|
}
|
||||||
@ -120,6 +121,20 @@
|
|||||||
.el-switch__core {
|
.el-switch__core {
|
||||||
--el-switch-off-color: var(--spp-dark-green);
|
--el-switch-off-color: var(--spp-dark-green);
|
||||||
--el-switch-on-color: var(--spp-red);
|
--el-switch-on-color: var(--spp-red);
|
||||||
|
background-color: var(--spp-darkest-green) !important;
|
||||||
|
border-color: var(--border-color) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-switch__core .el-switch__inner .is-icon, .el-switch__core .el-switch__inner .is-text {
|
||||||
|
color: var(--spp-light-grey);
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-switch__action {
|
||||||
|
background-color: ghostwhite !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.is-checked > .el-switch__core {
|
||||||
|
background-color: var(--spp-white) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alarm-tool {
|
.alarm-tool {
|
||||||
@ -140,7 +155,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.timeline-table-i {
|
.timeline-table-i {
|
||||||
border-left: 4px solid var(--spp-other-green) !important;
|
border-left: 4px solid var(--border-color) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.timeline-table-i::before {
|
.timeline-table-i::before {
|
||||||
@ -184,20 +199,28 @@
|
|||||||
background-color: var(--nice-black) !important;
|
background-color: var(--nice-black) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.el-pagination__jump {
|
||||||
|
color: var(--spp-light-grey) !important;
|
||||||
|
}
|
||||||
|
|
||||||
.el-pager li.active {
|
.el-pager li.active {
|
||||||
background-color: var(--spp-other-green);
|
background-color: var(--border-color);
|
||||||
|
color: var(--spp-light-grey) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-pager li {
|
.el-pager li {
|
||||||
background-color: var(--spp-green);
|
background-color: var(--spp-green);
|
||||||
|
color: var(--spp-white) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-pager li.active {
|
.btn-prev[type="button"] {
|
||||||
color: var(--spp-white);
|
background-color: var(--border-color);
|
||||||
|
color: var(--spp-light-grey) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-pager + button.btn-next[type="button"] {
|
.el-pager + button.btn-next[type="button"] {
|
||||||
background-color: var(--spp-grey);
|
background-color: var(--border-color);
|
||||||
|
color: var(--spp-light-grey) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.toggle-selection {
|
.toggle-selection {
|
||||||
@ -259,10 +282,6 @@
|
|||||||
color: var(--spp-light-grey) !important;
|
color: var(--spp-light-grey) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.unit {
|
|
||||||
color: var(--spp-white) !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.profile-item.level0 {
|
.profile-item.level0 {
|
||||||
&:hover {
|
&:hover {
|
||||||
color: var(--spp-red) !important;
|
color: var(--spp-red) !important;
|
||||||
@ -414,7 +433,7 @@ a {
|
|||||||
|
|
||||||
.timeline-table-i {
|
.timeline-table-i {
|
||||||
&::before {
|
&::before {
|
||||||
background-color: #448dfe !important;
|
background-color: var(--spp-white) !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -481,3 +500,23 @@ a {
|
|||||||
.scroll-handler__wrapper .scroll-to.active {
|
.scroll-handler__wrapper .scroll-to.active {
|
||||||
background-color: var(--border-color) !important;
|
background-color: var(--border-color) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.el-input-group__append, .el-input-group__prepend {
|
||||||
|
background-color: var(--spp-darkest-green) !important;
|
||||||
|
border-color: var(--spp-darkest-green);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tabs span.active input.tab-name.view {
|
||||||
|
//background-color: var(--border-color) !important;
|
||||||
|
color: var(--spp-light-grey) !important;
|
||||||
|
font-weight: bold;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab-header {
|
||||||
|
background-color: var(--nice-black) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline-item {
|
||||||
|
color: var(--spp-light-grey) !important;
|
||||||
|
}
|
||||||
|
@ -48,23 +48,23 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.green {
|
.green {
|
||||||
color: #4caf50;
|
color: #629755;
|
||||||
}
|
}
|
||||||
|
|
||||||
.red {
|
.red {
|
||||||
color: #e54c17;
|
color: #e1483b;
|
||||||
}
|
}
|
||||||
|
|
||||||
.blue {
|
.blue {
|
||||||
color: #448dfe;
|
color: #6897BB;
|
||||||
}
|
}
|
||||||
|
|
||||||
.purple {
|
.purple {
|
||||||
color: #6e40aa;
|
color: #9876AA;
|
||||||
}
|
}
|
||||||
|
|
||||||
.yellow {
|
.yellow {
|
||||||
color: #fbb03b;
|
color: #FFC66D;
|
||||||
}
|
}
|
||||||
|
|
||||||
.grey {
|
.grey {
|
||||||
@ -76,23 +76,23 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.bg-green {
|
.bg-green {
|
||||||
background-color: #4caf50;
|
background-color: #629755;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bg-red {
|
.bg-red {
|
||||||
background-color: #e54c17;
|
background-color: #e1483b;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bg-blue {
|
.bg-blue {
|
||||||
background-color: #448dfe;
|
background-color: #6897BB;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bg-purple {
|
.bg-purple {
|
||||||
background-color: #6e40aa;
|
background-color: #9876AA;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bg-yellow {
|
.bg-yellow {
|
||||||
background-color: #fbb03b;
|
background-color: #FFC66D;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bg-grey {
|
.bg-grey {
|
||||||
|
@ -254,13 +254,15 @@ export const QueryOrders = [
|
|||||||
];
|
];
|
||||||
export const TextColors: { [key: string]: string } = {
|
export const TextColors: { [key: string]: string } = {
|
||||||
green: "#629755",
|
green: "#629755",
|
||||||
blue: "#409EFF",
|
blue: "#6897BB",
|
||||||
red: "#e1483b",
|
red: "#e1483b",
|
||||||
grey: "#909399",
|
grey: "#909399",
|
||||||
white: "#fff",
|
white: "#fff",
|
||||||
black: "#000",
|
black: "#000",
|
||||||
orange: "#E6A23C",
|
orange: "#CC7832",
|
||||||
purple: "#9876AA",
|
purple: "#9876AA",
|
||||||
|
yellow: "#FFC66D",
|
||||||
|
brown: "#8A653B",
|
||||||
};
|
};
|
||||||
|
|
||||||
export const CalculationOpts = [
|
export const CalculationOpts = [
|
||||||
|
@ -117,19 +117,20 @@ function getOption() {
|
|||||||
let color: string[] = [];
|
let color: string[] = [];
|
||||||
switch (keys.length) {
|
switch (keys.length) {
|
||||||
case 2:
|
case 2:
|
||||||
color = ["#629755", "#9876AA"];
|
color = ["#6897BB", "#9876AA"];
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
color = ["#629755"];
|
color = ["#6897BB"];
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
color = [
|
color = [
|
||||||
"#629755",
|
"#6897BB",
|
||||||
"#9876AA",
|
"#9876AA",
|
||||||
"#CC7832",
|
"#629755",
|
||||||
"#8A653B",
|
|
||||||
"#e1483b",
|
|
||||||
"#FFC66D",
|
"#FFC66D",
|
||||||
|
"#CC7832",
|
||||||
|
"#e1483b",
|
||||||
|
"#8A653B",
|
||||||
];
|
];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -35,7 +35,7 @@ limitations under the License. -->
|
|||||||
<el-progress
|
<el-progress
|
||||||
:stroke-width="6"
|
:stroke-width="6"
|
||||||
:percentage="(i.value / maxValue) * 100"
|
:percentage="(i.value / maxValue) * 100"
|
||||||
:color="TextColors[config.color || 'red']"
|
:color="TextColors[config.color || 'purple']"
|
||||||
:show-text="false"
|
:show-text="false"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user