overleaf/services/web/frontend/stylesheets/bootstrap-5/pages/editor/logs.scss
Antoine Clausse e576ffd63c [web] Hide pdf-log-entry-content when empty + fixup search "count" color (#21977)
* Hide `PdfLogEntryContent` when there is no content

* Fixup in search "count": `--ol-blue-gray-4` doesn't exist in SCSS

* Update `AiErrorAssistant` with a `shouldRender` export, allowing to hide the element from the caller

* Revert "Update `AiErrorAssistant` with a `shouldRender` export, allowing to hide the element from the caller"

This reverts commit 01812fa2b108b94c99d250c9a39e4f3c41b36781.

* Hide .log-entry-content when empty, using CSS

Co-authored-by: Alf Eaton <alf.eaton@overleaf.com>

---------

Co-authored-by: Alf Eaton <alf.eaton@overleaf.com>
GitOrigin-RevId: c5096b362600058535bd645cf11dad255e941fb9
2024-11-21 09:04:34 +00:00

213 lines
4.6 KiB
SCSS

:root {
--logs-pane-bg: var(--bg-dark-secondary);
}
@include theme('light') {
--logs-pane-bg: var(--bg-light-secondary);
}
.logs-pane {
position: absolute;
inset: 0;
overflow-y: auto;
background-color: var(--logs-pane-bg);
z-index: 11; // above the PDF viewer + controls
top: var(--toolbar-small-height);
.logs-pane-content {
display: flex;
flex-direction: column;
padding: 10px;
gap: 10px;
min-height: 100%;
}
.logs-pane-actions {
display: flex;
flex-wrap: wrap;
place-content: flex-end flex-end;
padding: var(--spacing-03) 0;
flex-grow: 1;
align-items: flex-end;
gap: var(--spacing-04);
}
.log-entry {
border-radius: var(--border-radius-base);
overflow: hidden;
}
.log-entry-header {
padding: var(--spacing-02) var(--spacing-04);
display: flex;
align-items: flex-start;
gap: var(--spacing-04);
border-radius: var(--border-radius-base) var(--border-radius-base) 0 0;
color: var(--content-primary-dark);
.material-symbols {
@include body-base;
}
}
.log-entry-header-error {
background-color: var(--content-danger);
}
.log-entry-header-link-error {
@include ol-button-variant(
$color: var(--content-primary-dark),
$background: var(--bg-danger-02),
$hover-background: var(--red-70)
);
}
.log-entry-header-warning {
background-color: var(--content-warning-dark);
}
.log-entry-header-link-warning {
@include ol-button-variant(
$color: var(--content-primary-dark),
$background: var(--bg-warning-01),
$hover-background: var(--bg-warning-02)
);
}
.log-entry-header-typesetting {
background-color: var(--blue-50);
}
.log-entry-header-link-typesetting {
@include ol-button-variant(
$color: var(--content-primary-dark),
$background: var(--blue-60),
$hover-background: var(--blue-70)
);
}
.log-entry-header-raw,
.log-entry-header-info {
background-color: var(--bg-dark-tertiary);
}
.log-entry-header-link-raw,
.log-entry-header-link-info {
@include ol-button-variant(
$color: var(--content-primary-dark),
$background: var(--bg-dark-secondary),
$hover-background: var(--bg-dark-primary)
);
}
.log-entry-header-success {
background-color: var(--green-50);
}
.log-entry-header-link-success {
@include ol-button-variant(
$color: var(--content-primary-dark),
$background: var(--green-60),
$hover-background: var(--green-70)
);
}
.log-entry-header-title {
@include body-base;
flex-grow: 1;
font-weight: bold;
margin: 0;
color: var(--content-primary-dark);
}
.log-entry-header-link {
color: var(--content-primary-dark);
border-width: 0;
max-width: 33%;
text-decoration: none; // needed for the "close button"
padding: 0 var(--spacing-03);
.button-content {
min-width: 0; // needed to display the ellipsis on overflow
}
}
.log-entry-header-link-location {
white-space: nowrap;
direction: rtl;
text-overflow: ellipsis;
overflow: hidden;
}
.log-entry-content {
&:empty {
display: none;
}
background-color: var(--bg-light-primary);
padding: var(--spacing-04);
}
.log-entry-content-raw {
font-size: var(--font-size-01);
color: var(--content-secondary);
padding: var(--spacing-03);
margin: 0;
white-space: pre-wrap;
}
.log-entry-content-button-container {
position: relative;
height: 40px;
margin-top: 0;
transition:
margin 0.15s ease-in-out,
opacity 0.15s ease-in-out;
padding-bottom: var(--spacing-04);
text-align: center;
background-image: linear-gradient(
0deg,
var(--bg-light-tertiary) 0%,
transparent 100%
);
border-radius: 0 0 var(--border-radius-base) var(--border-radius-base);
}
.log-entry-content-button-container-collapsed {
margin-top: -40px;
}
.log-entry-content-raw-container {
background-color: var(--bg-light-tertiary);
border-radius: var(--border-radius-base);
overflow: hidden;
margin-top: var(--spacing-03);
}
}
.btn-secondary-compile-timeout-override {
color: var(--content-primary);
background-color: var(--bg-light-primary);
border-color: var(--border-primary);
border-width: 1px;
}
.log-entry-formatted-content,
.log-entry-content-link {
font-size: var(--font-size-02);
margin-top: var(--spacing-02);
&:first-of-type {
margin-top: 0;
}
}
.log-location-tooltip {
word-break: break-all;
& > .tooltip-inner {
max-width: 450px;
text-align: left;
}
}