DEV: refactor SCSS structure for admin table styling (#29953)

This commit is contained in:
Ella E. 2024-11-26 22:08:52 -07:00 committed by GitHub
parent cdf8eb8055
commit ea2a0f2c8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 19 additions and 55 deletions

View File

@ -32,7 +32,7 @@
<table class="d-admin-table admin-backups-list"> <table class="d-admin-table admin-backups-list">
<thead> <thead>
<th>{{i18n "admin.backups.columns.filename"}}</th> <th>{{i18n "admin.backups.columns.filename"}}</th>
<th>{{i18n "admin.backups.columns.size"}}</th> <th class="backup-size">{{i18n "admin.backups.columns.size"}}</th>
<th></th> <th></th>
</thead> </thead>
<tbody> <tbody>
@ -41,7 +41,7 @@
class="d-admin-row__content backup-item-row" class="d-admin-row__content backup-item-row"
data-backup-filename={{backup.filename}} data-backup-filename={{backup.filename}}
> >
<td class="d-admin-row__detail"> <td class="d-admin-row__overview">
<div class="backup-filename"> <div class="backup-filename">
{{backup.filename}} {{backup.filename}}
</div> </div>

View File

@ -47,7 +47,7 @@
pl.key pl.key
}} }}
> >
<td> <td class="d-admin-row__overview">
<FlatButton <FlatButton
@title="admin.permalink.copy_to_clipboard" @title="admin.permalink.copy_to_clipboard"
@icon="far-clipboard" @icon="far-clipboard"
@ -59,7 +59,7 @@
title={{pl.url}} title={{pl.url}}
>{{pl.url}}</span> >{{pl.url}}</span>
</td> </td>
<td class="destination"> <td class="d-admin-row__detail destination">
{{#if pl.topic_id}} {{#if pl.topic_id}}
<a href={{pl.topic_url}}>{{pl.topic_title}}</a> <a href={{pl.topic_url}}>{{pl.topic_title}}</a>
{{/if}} {{/if}}

View File

@ -27,8 +27,6 @@
td { td {
vertical-align: middle; vertical-align: middle;
padding-top: var(--space-3);
padding-bottom: var(--space-3);
@include breakpoint("tablet") { @include breakpoint("tablet") {
display: block; display: block;
@ -42,8 +40,6 @@
} }
&.d-admin-row__overview { &.d-admin-row__overview {
width: 55%;
@include breakpoint("tablet") { @include breakpoint("tablet") {
width: auto; width: auto;
border-top: 0; border-top: 0;
@ -59,12 +55,14 @@
&.d-admin-row__controls { &.d-admin-row__controls {
text-align: right; text-align: right;
width: auto;
@include breakpoint("tablet") { @include breakpoint("tablet") {
position: absolute; position: absolute;
top: -3px; top: -3px;
right: 0; right: 0;
border-top: 0; border-top: 0;
width: auto;
} }
} }
} }

View File

@ -55,10 +55,6 @@ table.api-keys {
.d-admin-row__overview.key { .d-admin-row__overview.key {
width: 30%; width: 30%;
} }
.d-admin-row__content td {
vertical-align: middle;
}
} }
.admin-api-keys { .admin-api-keys {

View File

@ -11,7 +11,6 @@
} }
.backup-filename { .backup-filename {
width: 80%;
text-wrap: balance; text-wrap: balance;
} }
} }

View File

@ -811,15 +811,6 @@
.loading-container { .loading-container {
width: 100%; width: 100%;
} }
.destination {
margin-top: 0.5em;
}
.d-admin-row__controls-options {
padding-bottom: 1em;
}
td {
width: auto;
}
} }
.permalink-search input { .permalink-search input {
width: 100%; width: 100%;
@ -836,25 +827,6 @@
} }
} }
table.permalinks {
@include breakpoint(tablet, min-width) {
td.url,
th.url {
width: 33%;
}
th.destination,
td.destination {
width: 60%;
}
}
@include breakpoint(tablet) {
td.url .btn-flat {
display: none;
}
}
}
// embedding // embedding
.embeddable-hosts { .embeddable-hosts {
margin-bottom: 2em; margin-bottom: 2em;

View File

@ -1,15 +1,3 @@
.admin-flags {
table.d-admin-table {
td:first-child {
width: 70%;
@include breakpoint("tablet") {
width: auto;
}
}
}
}
.admin-flag-item { .admin-flag-item {
&__delete.btn, &__delete.btn,
&__delete.btn:hover { &__delete.btn:hover {

View File

@ -7,10 +7,21 @@
} }
} }
.admin-plugins-list { .d-admin-table.admin-plugins-list {
.plugin-version { .admin-plugins-list__version {
width: 14%;
@include breakpoint("tablet") { @include breakpoint("tablet") {
text-align: right; text-align: right;
width: auto;
}
}
.d-admin-row__controls {
width: 10%;
@include breakpoint("tablet") {
width: auto;
} }
} }