-
Notifications
You must be signed in to change notification settings - Fork 331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SCSS fails to parse #11703
Comments
The mentioned `_quarto_internal_scss_error.scss` is here.```scss // quarto-scss-analysis-annotation { "quarto-version": "1.6.36" } // quarto-scss-analysis-annotation { "origin": "'use' section from format" } // quarto-scss-analysis-annotation { "origin": "'use' section from Quarto" } @use "sass:color" as quarto-color; // this file is currently intentionally empty // quarto-scss-analysis-annotation { "origin": "'use' section from user-defined SCSS" } // quarto-scss-analysis-annotation { "origin": "'functions' section from format" } // quarto-scss-analysis-annotation { "origin": "'functions' section from Quarto" } @function colorToRGB($color) { @function colorToRGBA($color) { @function str-replace($string, $search, $replace: "") { @function colorToRGB($color) { @function tint-color($color, $weight) { @function shade-color($color, $weight) { @function shift-color($color, $weight) { // quarto-scss-analysis-annotation { "origin": "'functions' section from user-defined SCSS" } // quarto-scss-analysis-annotation { "origin": "Defaults from user-defined SCSS" } @import url("https://fonts.googleapis.com/css?family=Montserrat:300,300italic,900,900italic"); $main-color: #eb2429; // quarto-scss-analysis-annotation { "origin": "Defaults from Quarto's SCSS" } @import url(./fonts/source-sans-pro/source-sans-pro.css); // fonts // Default variables which exist in bootstrap themes // main colors // grey colors (like in bootstrap) // link colors // selection colors // border colors // headings // margins // text alignment // Lists // code blocks // inline code // tabset // table // input panel // Callouts // alternate colors for when the background changes // KBD variables // --- derive reveal versions of presentation variables for finer-grained override --- $revealjs-font-size-root: $presentation-font-size-root !default; $revealjs-heading-font-weight: $presentation-heading-font-weight !default; $revealjs-code-inline-font-size: $code-inline-font-size !default; // ---- map to reveal scss variables --- // Primary/body text // Vertical spacing between blocks of text // Headings $heading1Size: $revealjs-h1-font-size !default; $codeFont: $font-family-monospace !default; // Links and actions // Text selection // Colors used for UI elements that are overlaid on top of // -- END setting.scss -- $code-copy-selector: "pre.sourceCode:hover > " !default; // border colors // code block colors $btn-code-copy-color-active: if( // quarto-scss-analysis-annotation { "origin": "Defaults from the format SCSS" } // quarto-scss-analysis-annotation { "origin": "'mixins' section from format" } @mixin vertical-gradient( $top, $bottom ) { @mixin horizontal-gradient( $top, $bottom ) { @mixin radial-gradient( $outer, $inner, $type: circle ) { @mixin light-bg-text-color( $color ) { @mixin dark-bg-text-color( $color ) { // quarto-scss-analysis-annotation { "origin": "'mixins' section from Quarto" } @mixin shift_to_dark($property, $colorDark, $colorLight) { // Make the font size smaller by a factor of $times // Undo the smaller font size // -- START setting.scss -- // Generates the presentation background, can be overridden // -- END setting.scss -- // quarto-scss-analysis-annotation { "origin": "'mixins' section from user-defined SCSS" } // quarto-scss-analysis-annotation { "origin": "'rules' section from format" } // Base theme template for reveal.js /*********************************************
@import "./exposer"; .reveal-viewport { .reveal { .reveal ::selection { .reveal ::-moz-selection { .reveal .slides section, /*********************************************
.reveal h1,
} .reveal h1 {font-size: var(--r-heading1-size); } .reveal h1 { /*********************************************
.reveal p { /* Remove trailing margins after titles */ /* Ensure certain elements are never larger than the slide itself */ .reveal em { .reveal ol,
} .reveal ol { .reveal ul { .reveal ul ul { .reveal ul ul ul { .reveal ul ul, .reveal dt { .reveal dd { .reveal blockquote {
} .reveal q { .reveal pre {
} .reveal code { .reveal pre code { .reveal .code-wrapper { .reveal .code-wrapper code { .reveal table { .reveal table th { .reveal table th, .reveal table th[align="center"], .reveal table th[align="right"], .reveal table tbody tr:last-child th, .reveal sup { .reveal small { .reveal small * { .reveal img { /*********************************************
.reveal a { .reveal .roll span:after { } /*********************************************
.reveal .r-frame { .reveal a .r-frame { .reveal a:hover .r-frame { /*********************************************
.reveal .controls { /*********************************************
.reveal .progress { /*********************************************
// quarto-scss-analysis-annotation { "origin": "'rules' section from Quarto" } // floating .top-right { // hidden // #5403 (comment) .hidden { .zindex-bottom { // layout and figures figure.figure { .quarto-layout-panel { .quarto-layout-panel > figure { .quarto-layout-panel > .table-caption { .table-caption p { .quarto-layout-row { .quarto-figure > figure { .quarto-figure > figure > div.cell-annotation, figure > p:empty { figure > figcaption.quarto-float-caption-bottom { // anchor // anchor js div[id^="tbl-"] { .quarto-figure > .anchorjs-link { div[id^="tbl-"] > .anchorjs-link { /* workaround for anchorjs not hitting on generic :hover selector */ #title-block-header { #title-block-header .abstract { #title-block-header .abstract .abstract-title { #title-block-header a { #title-block-header .author, #title-block-header .quarto-title-block > div { #title-block-header .quarto-title-block > div > h1 { #title-block-header .quarto-title-block > div > button { #title-block-header .quarto-title-block > div > button { // (Remove bottom margin from paragraphs in table headers) table, caption, figure.quarto-float-tbl figcaption.quarto-float-caption-top { figure.quarto-float-tbl figcaption.quarto-float-caption-bottom { // utterances // iframe // details details > summary { details > summary > p:only-child { // codeCopy // Inline code should wrap // default to scrolling
|
Discovered a misplaced |
I think we need to improve this error message. |
Bug description
I am getting the following erros after compiling a Reveal presentation:
Steps to reproduce
My CSS tweaks are in a file `personal.scss` such this.
/*-- scss:defaults --*/
@import url("https://fonts.googleapis.com/css?family=Montserrat:300,300italic,900,900italic");
$main-color: #eb2429;
$highlight-color: #eb2429;
$light-bg-text-color: #ffffff;
$font-family-sans-serif: "Montserrat", "Source Sans Pro", Helvetica, sans-serif;
$presentation-heading-font: "Montserrat", sans-serif !default;
$presentation-font-size-root: 42px;
$presentation-font-smaller: 80%;
$presentation-line-height: 1.3;
$link-color: $main-color;
$presentation-heading-color: $main-color;
$presentation-heading-line-height: 1.1;
$presentation-heading-font-weight: 700;
$presentation-block-margin: 20px;
$presentation-slide-text-align: left;
$presentation-title-slide-text-align: left;
$light-bg-link-color: $main-color;
$dark-bg-link-color: $main-color;
/-- scss:rules --/
.left-column {
display: inline-block;
overflow-x: initial;
vertical-align: top;
width: 48%;
padding-right: 2%;
}
.right-column {
display: inline-block;
overflow-x: initial;
vertical-align: top;
width: 48%;
padding-left: 2%;
}
.cell-output-display {
overflow-y: hidden !important;
}
.boxed {
border-width:4px;
border-style:solid;
border-color:$main-color;
padding: 2.5% 5% 5%;
border-radius: 15px;
overflow: hidden;
margin-top: 0.6em;
margin-bottom: 0.6em;
}
.badge {
display: inline-block;
padding: .25em .4em;
font-size: 75%;
line-height: 1;
text-align: center;
white-space: nowrap;
vertical-align: text-bottom;
padding-right: .6em;
padding-left: .6em;
border-radius: 10rem;
color: $dark-bg-text-color !important;
background-color: $main-color;
}
.badge.fwd::after {
content: "\25B6";
display: inline-block;
margin-left: 0.5em;
font-size: 60%;
vertical-align: middle;
margin-bottom: 0.2em;
}
.badge.bwd::before {
content: "\25C0";
display: inline-block;
margin-right: 0.5em;
font-size: 60%;
vertical-align: middle;
margin-bottom: 0.2em;
}
.badge:hover {
background-color: mix($main-color, white, 70%)
}
figcaption {
text-align: center;
font-size: 60% !important;
}
pre {
font-size: 0.7em !important;
line-height: 1.5 !important;
}
ol ol {
list-style-type: lower-alpha !important;
}
ol ol ol {
list-style-type: lower-roman !important;
}
ul ul, ol ol {
margin-block-start: -0.2em !important;
font-size: 90% !important;
}
ul ul ul, ol ol ol {
margin-block-start: -0.2em !important;
font-size: 80% !important;
}
ul li, ol li {
padding-top: 0.3em;
margin-left: 0.5em;
}
ul ul li, ol ol li {
padding-top: 0.2em;
margin-left: 0.5em;
}
ul ul ul li, ol ol ol li {
padding-top: 0.1em;
margin-left: 0.5em;
}
li::marker {
font-variant-numeric: normal !important;
color: $main-color;
font-weight: 600;
}
aside {
font-size: 60%;
}
.aside-footnotes > li::marker {
font-weight: normal !important;
color: inherit !important;
}
.aside-footnotes > ul li, ol li, p {
padding-top: 0em !important;
margin-bottom: -0.5em !important;
}
strong {
color: $main-color;
font-size: 110%;
}
del {
text-decoration: none;
font-style: italic;
border-bottom: 4px solid;
border-bottom-color: $highlight-color;
}
figcaption {
color: lighten($body-color,20%);
}
h2, p {
padding-bottom: 0.5em;
}
h3 {
margin-top: -1.3em !important;
padding-bottom: 0.5em;
font-weight: normal!important;
font-style: italic;
font-size: 1em!important;
line-height: 1.2!important;
}
blockquote {
font-size: 80%;
}
img {
margin: 0 !important;
max-width: 100% !important;
max-height: 100% !important;;
}
#title-slide {
}
.slide-number, .footer {
font-family: $font-family-sans-serif !important;
color: $main-color !important;
}
.slide-logo {
max-height: 7.5% !important;
}
.csl-entry {
text-indent: -4em;
margin-left: 3em;
margin-top: 0.6em;
}
.hanged {
text-indent: -3em;
margin-left: 3em;
color: #555;
}
.small {
font-size: 80%;
}
The error may be reproduced with a simple document such as:
Expected behavior
I would expect a no error compilation.
Actual behavior
What I've described above: an error in the compilation log and a
scss
file generated.Your environment
Quarto check output
The text was updated successfully, but these errors were encountered: