This commit is contained in:
Jiiks 2018-01-24 08:42:10 +02:00
parent b3218d636a
commit 71ac54911a
7 changed files with 48 additions and 42 deletions

View File

@ -4,7 +4,10 @@
/*Imports*/ /*Imports*/
import { Button, ButtonGroup } from '../generic'; import { Button, ButtonGroup } from '../generic';
import MiSettings from 'vue-material-design-icons/settings.vue'; import MiSettings from 'vue-material-design-icons/settings.vue';
const components = { MiSettings, Button, ButtonGroup }; import MiReload from 'vue-material-design-icons/refresh.vue';
import MiEdit from 'vue-material-design-icons/pencil.vue';
import MiDelete from 'vue-material-design-icons/delete.vue';
const components = { MiSettings, Button, ButtonGroup, MiReload, MiEdit, MiDelete };
export default { export default {
props: ['plugin', 'togglePlugin'], props: ['plugin', 'togglePlugin'],

View File

@ -17,13 +17,13 @@
<MiSettings/> <MiSettings/>
</Button> </Button>
<Button> <Button>
<MiSettings/> <MiReload/>
</Button> </Button>
<Button> <Button>
<MiSettings/> <MiEdit/>
</Button> </Button>
<Button> <Button type="err">
<MiSettings/> <MiDelete/>
</Button> </Button>
</ButtonGroup> </ButtonGroup>
</div> </div>

View File

@ -1,11 +1,11 @@
<template> <template>
<div class="bd-button" :class="{'bd-disabled': disabled}" @click="!disabled && !loading ? onClick() : null"> <div class="bd-button" :class="[{'bd-disabled': disabled}, {'bd-err': type === 'err'}]" @click="!disabled && !loading ? onClick() : null">
<div v-if="loading" class="bd-spinner-7"></div> <div v-if="loading" class="bd-spinner-7"></div>
<slot v-else /> <slot v-else />
</div> </div>
</template> </template>
<script> <script>
export default { export default {
props: ['loading', 'disabled', 'type', 'onClick'] props: ['loading', 'disabled', 'type', 'onClick', 'type']
} }
</script> </script>

View File

@ -1,30 +1,5 @@
@import './plugincard.scss'; @import './plugincard.scss';
.bd-pluginsView {
.bd-button {
text-align: center;
background: transparent;
h3 {
-webkit-user-select: none;
user-select: none;
display: block;
font-size: 1.17em;
margin-top: 1em;
margin-bottom: 1em;
margin-left: 0;
margin-right: 0;
font-weight: bold;
}
&:hover,
&.bd-active {
color: #fff;
background: transparent;
border-bottom: 2px solid #3e82e5;
}
}
}
.bd-settings-button { .bd-settings-button {
position: absolute; position: absolute;
z-index: 1; z-index: 1;

View File

@ -4,6 +4,7 @@
justify-content: center; justify-content: center;
cursor: pointer; cursor: pointer;
color: #FFF; color: #FFF;
background: #44474c;
text-align: center; text-align: center;
user-select: none; user-select: none;
font-weight: 500; font-weight: 500;
@ -18,6 +19,18 @@
cursor: not-allowed; cursor: not-allowed;
} }
&.bd-err {
background: $colerr;
}
&.bd-warn {
background: $colwarn;
}
&.bd-ok {
background: $colok;
}
.bd-spinner-7 { .bd-spinner-7 {
opacity: .3; opacity: .3;
} }
@ -28,6 +41,7 @@
.bd-button, .bd-button,
.bd-material-button { .bd-material-button {
&:first-of-type { &:first-of-type {
border-radius: 6px 0 0 6px; border-radius: 6px 0 0 6px;
} }
@ -49,9 +63,18 @@
.bd-tabheader { .bd-tabheader {
.bd-button { .bd-button {
background: transparent; background: transparent;
border-bottom: 2px solid #2b2d31; border-bottom: 2px solid rgba(114, 118, 126, 0.3);
h3 { h3 {
-webkit-user-select: none;
user-select: none;
display: block;
font-size: 1.17em;
margin-top: 1em;
margin-bottom: 1em;
margin-left: 0;
margin-right: 0;
font-weight: bold;
flex-grow: 1; flex-grow: 1;
} }

View File

@ -219,7 +219,4 @@
.bd-switch:before { .bd-switch:before {
background: #888888; background: #888888;
} }
} }

View File

@ -2,12 +2,11 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
flex-grow: 1; flex-grow: 1;
background: #2f3136; background: transparent;
border: 1px solid #202225; border-bottom: 1px solid rgba(114, 118, 126, 0.3);
padding: 10px 5px; padding: 10px 5px;
min-height: 150px; min-height: 150px;
color: #b9bbbe; color: #b9bbbe;
border-radius: 8px;
margin-top: 10px; margin-top: 10px;
.bd-plugin-header { .bd-plugin-header {
@ -30,7 +29,6 @@
color: #8a8c90; color: #8a8c90;
font-size: 12px; font-size: 12px;
font-weight: 600; font-weight: 600;
background: rgba(0,0,0,.05);
padding: 5px; padding: 5px;
border-radius: 8px; border-radius: 8px;
margin-top: 5px; margin-top: 5px;
@ -38,7 +36,6 @@
.bd-plugin-footer { .bd-plugin-footer {
display: flex; display: flex;
justify-content: flex-end;
flex-grow: 1; flex-grow: 1;
align-items: flex-end; align-items: flex-end;
@ -46,6 +43,17 @@
color: rgba(255, 255, 255, 0.15); color: rgba(255, 255, 255, 0.15);
font-size: 10px; font-size: 10px;
font-weight: 700; font-weight: 700;
flex-grow: 1;
}
.bd-controls {
.bd-button-group {
.bd-button {
fill: #FFF;
width: 30px;
height: 30px;
}
}
} }
} }
} }