Merge pull request #1657 from lvuch/lh-1012

mostly input changes
This commit is contained in:
Vincent Fiduccia 2020-10-27 16:21:24 -07:00 committed by GitHub
commit eb7a7adf5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 30 additions and 33 deletions

View File

@ -6,6 +6,7 @@ $column-gutter: 1.75%;
$sideways-tabs-width: 200px; $sideways-tabs-width: 200px;
$z-indexes: ( $z-indexes: (
zero: 0,
default: 1, default: 1,
overContent: 2, overContent: 2,
hoverOverContent: 3, hoverOverContent: 3,

View File

@ -7,29 +7,25 @@ $icomoon-font-family: 'icons' !global;
// Animated Icons // Animated Icons
// -------------------------- // --------------------------
.icon-spin { .icon-spin {
-webkit-animation: icon-spin 2s infinite steps(8); -webkit-animation: icon-spin 5000ms infinite linear;
animation: icon-spin 2s infinite steps(8); animation: icon-spin 5000ms infinite linear;
} }
@-webkit-keyframes icon-spin { @-webkit-keyframes icon-spin {
0% { from {
-webkit-transform: rotateZ(0deg); transform:rotate(0deg);
transform: rotateZ(0deg);
} }
100% { to {
-webkit-transform: rotateZ(360deg); transform:rotate(360deg);
transform: rotateZ(360deg);
} }
} }
@keyframes icon-spin { @keyframes icon-spin {
0% { from {
-webkit-transform: rotateZ(0deg); transform:rotate(0deg);
transform: rotateZ(0deg);
} }
100% { to {
-webkit-transform: rotateZ(360deg); transform:rotate(360deg);
transform: rotateZ(360deg);
} }
} }

View File

@ -1,6 +1,6 @@
$btn-padding: 15px 40px; $btn-padding: 15px 40px;
$xs-padding: 2px 3px; $xs-padding: 2px 3px;
$sm-padding: 8px 14px; $sm-padding: 8px 13px;
$lg-padding: 18px 30px; $lg-padding: 18px 30px;
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------

View File

@ -11,10 +11,11 @@
transition-property: transform, font-size; transition-property: transform, font-size;
transition-duration: 0.1s; transition-duration: 0.1s;
transition-timing-function: ease-in-out; transition-timing-function: ease-in-out;
// z-index: z-index('overContent');
color: var(--input-label); color: var(--input-label);
&.has-tooltip{ pointer-events: none;
// z-index: z-index('hoverOverContent') z-index: z-index('overContent');
i {
pointer-events: initial;
} }
} }

View File

@ -5,6 +5,7 @@
display: block !important; display: block !important;
z-index: z-index('tooltip'); z-index: z-index('tooltip');
max-width: 50vw;
.tooltip-inner { .tooltip-inner {
background: var(--tooltip-bg); background: var(--tooltip-bg);
@ -232,14 +233,8 @@
.button-divider { .button-divider {
border-right: 1px solid var(--link-text); border-right: 1px solid var(--link-text);
margin: 10px 0;
} }
&.btn-xs {
.button-divider {
margin: 1px 0;
}
}
&.bg-primary:hover { &.bg-primary:hover {
background: var(--accent-btn-hover); background: var(--accent-btn-hover);
} }

View File

@ -463,7 +463,7 @@ export default {
</div> </div>
</div> </div>
<div v-if="!titleAdd && (showAdd || showRead)" class="footer mt-10"> <div v-if="!titleAdd && (showAdd || showRead)" class="footer">
<slot name="add" :add="add"> <slot name="add" :add="add">
<ButtonDropdown size="sm"> <ButtonDropdown size="sm">
<template #button-content> <template #button-content>

View File

@ -194,7 +194,7 @@ export default {
</div> </div>
</div> </div>
<div v-if="showAdd" class="footer"> <div v-if="showAdd" class="footer">
<button type="button" class="btn role-tertiary add mt-10" @click="add()"> <button type="button" class="btn role-tertiary add" @click="add()">
Add Port Add Port
</button> </button>
</div> </div>
@ -246,9 +246,6 @@ export default {
} }
.footer { .footer {
margin-top: 10px;
margin-left: 5px;
.protip { .protip {
float: right; float: right;
padding: 5px 0; padding: 5px 0;

View File

@ -104,7 +104,7 @@ export default {
} }
.vs__dropdown-toggle { .vs__dropdown-toggle {
height: calc(var(--header-height) - 18px); height: calc(var(--header-height) - 19px);
background-color: transparent; background-color: transparent;
border: 0; border: 0;
@ -117,6 +117,7 @@ export default {
user-select: none; user-select: none;
cursor: default; cursor: default;
color: white; color: white;
line-height: calc(var(--header-height) - 32px);
} }
} }

View File

@ -250,6 +250,10 @@ export default {
fill: white !important; fill: white !important;
color: white !important; color: white !important;
} }
.filter ::v-deep INPUT[type='search'] {
padding: 7px;
}
</style> </style>
<template> <template>

View File

@ -161,9 +161,11 @@ export default {
</div> </div>
<div class="row"> <div class="row">
<div class="col span-6"> <div class="col span-6">
<ButtonDropdown v-if="!isView" :dual-action="false"> <ButtonDropdown v-if="mode!=='view'" ref="buttonDropdown" size="sm">
<template #button-content> <template #button-content>
<span>{{ t('workload.storage.addVolume') }}</span> <button v-if="mode!=='view'" type="button" class="btn btn-sm text-primary bg-transparent" @click="addVolume(opt)">
{{ t('workload.storage.addVolume') }}
</button>
</template> </template>
<template #popover-content> <template #popover-content>
<ul class="list-unstyled menu"> <ul class="list-unstyled menu">