mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-31 08:41:22 +00:00
081f4212a8
* Remove references to the duplicatePaths validation * Make the log entries more generic, to support validation and CLSI errors * Add validation issues to the new logs UI * Add CLSI errors to the new logs UI * Update tests; accessibility fixes * Disable PDF viewing when compile fails; address PR feedback. * Add accessible description for error and validation failed compiles GitOrigin-RevId: 8b0597af8857712d47c20e4915470e8e745bb315
165 lines
3.1 KiB
Text
165 lines
3.1 KiB
Text
.logs-pane {
|
|
.full-size;
|
|
top: @pdf-top-offset;
|
|
padding: @padding-sm;
|
|
overflow-y: auto;
|
|
background-color: @logs-pane-bg;
|
|
}
|
|
|
|
.log-entry {
|
|
margin-bottom: @margin-sm;
|
|
}
|
|
|
|
.log-entry-header {
|
|
padding: 3px @padding-sm;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
color: #fff;
|
|
border-radius: @border-radius-base @border-radius-base 0 0;
|
|
&:last-child {
|
|
border-radius: @border-radius-base;
|
|
}
|
|
}
|
|
|
|
.log-entry-header-error {
|
|
background-color: @ol-red;
|
|
}
|
|
|
|
.log-entry-header-warning {
|
|
background-color: @orange;
|
|
}
|
|
|
|
.log-entry-header-typesetting {
|
|
background-color: @ol-blue;
|
|
}
|
|
|
|
.log-entry-header-raw {
|
|
background-color: @ol-blue-gray-4;
|
|
}
|
|
|
|
.log-entry-header-title,
|
|
.log-entry-header-link {
|
|
font-family: @font-family-sans-serif;
|
|
font-size: @font-size-base;
|
|
line-height: @line-height-base;
|
|
font-weight: 700;
|
|
flex-grow: 1;
|
|
margin: 0;
|
|
color: #fff;
|
|
}
|
|
|
|
.log-entry-header-link {
|
|
border-width: 0;
|
|
flex-grow: 0;
|
|
text-align: right;
|
|
white-space: nowrap;
|
|
padding-left: @padding-sm;
|
|
&:hover,
|
|
&:focus {
|
|
outline: 0;
|
|
color: #fff;
|
|
}
|
|
&:focus {
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
|
|
.log-entry-content {
|
|
background-color: #fff;
|
|
padding: @padding-sm;
|
|
&:last-child {
|
|
border-radius: 0 0 @border-radius-base @border-radius-base;
|
|
}
|
|
}
|
|
|
|
.log-entry-content-raw-expandable-container {
|
|
position: relative;
|
|
background-color: @ol-blue-gray-1;
|
|
border-radius: @border-radius-base;
|
|
}
|
|
|
|
.log-entry-content-raw-button-container-collapsed {
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
.log-entry-content-raw {
|
|
font-size: @font-size-small;
|
|
color: @ol-blue-gray-4;
|
|
padding: @padding-sm @padding-sm @padding-xl @padding-sm;
|
|
margin: 0;
|
|
}
|
|
|
|
.log-entry-content-raw-collapsed {
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
.log-entry-content-button-container {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 40px;
|
|
padding-bottom: @padding-sm;
|
|
text-align: center;
|
|
border-radius: 0 0 @border-radius-base @border-radius-base;
|
|
&::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
background-image: linear-gradient(0, @ol-blue-gray-1, transparent);
|
|
opacity: 0;
|
|
transition: opacity 0.15s ease-in-out;
|
|
}
|
|
}
|
|
|
|
.log-entry-content-button-container-collapsed::before {
|
|
opacity: 1;
|
|
}
|
|
|
|
.log-entry-btn-expand-collapse {
|
|
position: relative;
|
|
z-index: 1;
|
|
.no-outline-ring-on-click;
|
|
}
|
|
|
|
.log-entry-formatted-content,
|
|
.log-entry-content-link {
|
|
font-size: @font-size-small;
|
|
margin-top: @margin-xs;
|
|
&:first-of-type {
|
|
margin-top: 0;
|
|
}
|
|
}
|
|
|
|
.first-error-popup {
|
|
position: absolute;
|
|
z-index: 1;
|
|
top: @toolbar-small-height + 2px;
|
|
right: @padding-xs;
|
|
border-radius: @border-radius-base;
|
|
width: 90%;
|
|
max-width: 450px;
|
|
box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
|
|
animation: fade-in 0.15s linear 0s 1 none;
|
|
background-color: #fff;
|
|
&::before {
|
|
content: '';
|
|
.triangle(top, @padding-sm, @padding-xs, @ol-red);
|
|
top: -@padding-xs;
|
|
right: @padding-md;
|
|
}
|
|
}
|
|
|
|
.first-error-popup-actions {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 0 @padding-sm @padding-sm @padding-sm;
|
|
margin-top: -@margin-sm;
|
|
}
|
|
|
|
.first-error-btn {
|
|
.no-outline-ring-on-click;
|
|
}
|