File size: 2,824 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 |
.site-logs-header {
align-items: center;
display: flex;
flex-direction: row;
justify-content: space-between;
gap: 16px;
.date-control {
flex-shrink: 0;
}
.site-logs-toolbar__toggle-option {
white-space: nowrap;
}
}
@media ( max-width: 600px ) {
.site-logs-header {
align-items: flex-start;
flex-direction: column;
}
.site-logs-header > .components-base-control {
display: flex;
flex-direction: column;
width: 100%;
.site-logs-toolbar__toggle {
width: 100%;
}
}
}
// This is to compensate the padding set by the wrapper .hosting-dashboard-item-view__content
.site-logs .dataviews-wrapper {
margin-right: -24px;
margin-left: -24px;
}
// https://github.com/WordPress/gutenberg/issues/69194
// Needs discussion and implementation upstream.
.site-logs .dataviews-wrapper table.dataviews-view-table[aria-busy='true'] {
opacity: 0.5;
}
// There's no way for a consumer to disable the per-page pagination
// in DataViews: https://github.com/WordPress/gutenberg/issues/69193
// This needs to be fixed upstream.
.site-logs .dataviews-pagination__page-select {
display: none !important;
}
// Long fields in PHP Errors.
.site-logs-table__file,
.site-logs-table__name,
// Long fields in Web Errors.
.site-logs-table__request-url,
.site-logs-table__http-referer {
overflow: visible;
white-space: normal;
word-break: break-word;
}
// Long field in PHP Errors that we want to truncate.
.site-logs-table__message {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
// Badges
.site-logs,
.site-logs-details-modal {
.badge {
text-transform: uppercase;
border-radius: 4px;
font-size: 0.75rem;
font-weight: 500;
padding: 1px 10px;
}
.badge.badge--POST,
.badge.badge--Deprecated {
background-color: rgba( 187, 224, 250, 1 );
color: rgba( 2, 57, 92, 1 );
}
.badge.badge--GET {
background-color: rgba( 184, 230, 191, 1 );
color: rgba( 0, 69, 12, 1 );
}
.badge.badge--DELETE,
.badge.badge--Error,
.badge.badge--Fatal.error {
background-color: rgba( 250, 207, 210, 1 );
color: rgba( 105, 28, 28, 1 );
}
.badge.badge--Fatal.error {
white-space: nowrap;
}
.badge.badge--Warning {
background-color: rgba( 245, 230, 179, 1 );
color: rgba( 79, 53, 0, 1 );
}
.badge.badge--User {
background-color: rgba( 220, 220, 222, 1 );
color: rgba( 44, 51, 56, 1 );
}
}
.site-logs-details-modal {
display: grid;
grid-template-columns: auto 1fr;
gap: 10px;
margin-bottom: 20px;
align-items: baseline;
.site-logs-details-modal__field-title {
white-space: nowrap;
font-weight: 500;
font-size: 0.75rem;
text-transform: uppercase;
}
:not( .site-logs-details-modal__field-title ) {
word-wrap: break-word;
min-width: 0;
font-size: 0.875rem;
}
:not( .site-logs-details-modal__field-title ) .badge {
font-size: 0.75rem;
}
}
|