quarto-dev / quarto-dev/quarto-cli

ordered list always centered in custom float

Open
#11,007 6 comments 0 reactions 1 assignee View on GitHub

@cscheid is already working on this.

Since Oct 8, 2024.

bug crossref layout
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

Bug description

If I make a custom float, (ordered) lists are always centered (they inherit from quarto-figure-centered for some reason). Tried to overwrite this centering with different css tags, but they all get ignored.

Steps to reproduce

Example qmd:

---
title: "Bug report"
format: 
  html:
    css: doesntwork.css
crossref:
  custom:
    - kind: float
      reference-prefix: Exercises
      key: exercises
      caption-location: top	
---

## An example

make exercises @exercises-exercises-1

:::{.exerc #exercises-exercises-1}
1. A first exercise.
2. A second exercise.
:::

WIth the following css:

.exerc{
  background-color: rgb(247, 247, 247);
  align-items: left;
  text-align: left;
  align-content: left;
  align-self: left;
}

The background color shows, but all the rest is doing nothing.

Expected behavior

The ordered list in exercises should be left aligned

Actual behavior

The ordered list in exercises is centered

Your environment

RStudio 2023.06.1+524 "Mountain Hydrangea" Release (547dcf861cac0253a8abb52c135e44e02ba407a1, 2023-07-07) for windows
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2023.06.1+524 Chrome/110.0.5481.208 Electron/23.3.0 Safari/537.36

Edition Windows 10 Enterprise
Version 22H2
OS build 19045.4894
Experience Windows Feature Experience Pack 1000.19060.1000.0

Quarto check output

Quarto 1.5.57
[>] Checking versions of quarto binary dependencies...
Pandoc version 3.2.0: OK
Dart Sass version 1.70.0: OK
Deno version 1.41.0: OK
Typst version 0.11.0: OK
[>] Checking versions of quarto dependencies......OK
[>] Checking Quarto installation......OK
Version: 1.5.57
Path: C:\Users\jfmeys\AppData\Local\Programs\Quarto\bin
CodePage: 1252

[>] Checking tools....................OK
TinyTeX: (not installed)
Chromium: (not installed)

[>] Checking LaTeX....................OK
Tex: (not detected)

[>] Checking basic markdown render....OK

[>] Checking Python 3 installation....(None)

  Unable to locate an installed version of Python 3.
  Install Python 3 from https://www.python.org/downloads/

[>] Checking R installation...........OK
Version: 4.3.3
Path: C:/PROGRA1/R/R-431.3
LibPaths:
- C:/Users/jfmeys/AppData/Local/R/win-library/4.3
- C:/Program Files/R/R-4.3.3/library
knitr: 1.46
rmarkdown: 2.26

[>] Checking Knitr engine render......OK

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.