mirror of https://github.com/rancher/dashboard.git
Improve styling of tables
This commit is contained in:
parent
eb00f75d63
commit
aab92e560a
|
|
@ -163,7 +163,7 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
th {
|
th {
|
||||||
padding: 8px 16px;
|
padding: 8px 5px;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
border: 0;
|
border: 0;
|
||||||
color: var(--body-text);
|
color: var(--body-text);
|
||||||
|
|
|
||||||
|
|
@ -463,7 +463,7 @@ export default {
|
||||||
v-for="act in availableActions"
|
v-for="act in availableActions"
|
||||||
:key="act.action"
|
:key="act.action"
|
||||||
type="button"
|
type="button"
|
||||||
class="btn role-primary"
|
class="btn bg-primary btm-sm"
|
||||||
:disabled="!act.enabled"
|
:disabled="!act.enabled"
|
||||||
@click="applyTableAction(act, null, $event)"
|
@click="applyTableAction(act, null, $event)"
|
||||||
@mouseover="setBulkActionOfInterest(act)"
|
@mouseover="setBulkActionOfInterest(act)"
|
||||||
|
|
@ -643,6 +643,21 @@ export default {
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
// Remove colors from multi-action buttons in the table
|
||||||
|
td {
|
||||||
|
.actions.role-multi-action {
|
||||||
|
background-color: transparent;
|
||||||
|
border: none;
|
||||||
|
font-size: 18px;
|
||||||
|
&:hover, &:focus {
|
||||||
|
background-color: var(--accent-btn);
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
//
|
//
|
||||||
// Important: Almost all selectors in here need to be ">"-ed together so they
|
// Important: Almost all selectors in here need to be ">"-ed together so they
|
||||||
|
|
@ -667,21 +682,15 @@ $spacing: 10px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
|
||||||
td {
|
td {
|
||||||
padding: 8px 16px;
|
padding: 8px 5px;
|
||||||
border: 0;
|
border: 0;
|
||||||
word-break: break-word;
|
|
||||||
|
|
||||||
&.row-check {
|
&.row-check {
|
||||||
padding-top: 16px;
|
padding-top: 12px;
|
||||||
|
|
||||||
LABEL {
|
|
||||||
margin-right: 1px; /* to make up for the edge border */
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tbody {
|
tbody {
|
||||||
|
|
||||||
tr {
|
tr {
|
||||||
border-bottom: 1px solid var(--sortable-table-top-divider);
|
border-bottom: 1px solid var(--sortable-table-top-divider);
|
||||||
background-color: var(--body-bg);
|
background-color: var(--body-bg);
|
||||||
|
|
@ -696,7 +705,7 @@ $spacing: 10px;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: var(--sortable-table-hover-bg);
|
background-color: var(--sortable-table-hover-bg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
td {
|
td {
|
||||||
|
|
@ -823,7 +832,7 @@ $spacing: 10px;
|
||||||
&.titled {
|
&.titled {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.fixed-header-actions {
|
.fixed-header-actions {
|
||||||
|
|
|
||||||
|
|
@ -127,6 +127,7 @@ export default {
|
||||||
role="checkbox"
|
role="checkbox"
|
||||||
/>
|
/>
|
||||||
<span
|
<span
|
||||||
|
v-if="label || labelKey || tooltipKey || tooltip"
|
||||||
class="checkbox-label"
|
class="checkbox-label"
|
||||||
>
|
>
|
||||||
<slot name="label">
|
<slot name="label">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue