Skip to content
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

Further clean-up of the CETEIcean.css #35

Merged
merged 1 commit into from
Jun 19, 2020
Merged

Further clean-up of the CETEIcean.css #35

merged 1 commit into from
Jun 19, 2020

Conversation

dubinsky
Copy link
Contributor

@dubinsky dubinsky commented Jun 17, 2020

  • lower-cased some TEI element names that were overlooked;
  • added tei- prefix to some TEI element names that were overlooked;
  • removed spurious space;
  • merged two tei-table rules into one;
  • added yi to the rtl list;
  • added ru and pl to the ltr list;

Removed overlooked uses of removed addStyle() from the examples.

resolves #34

dubinsky added a commit to opentorah/alter-rebbe.org that referenced this pull request Jun 17, 2020
(which includes one small change I asked for and removal of the `table` behaviour)
*and* my pull request TEIC/CETEIcean#35:
- style TEI tables using `display` values `table`, `table-row`, `table-cell`;
- added `.js` extension to the imported module names;

my custom `tei.scss`:
- lower-cased TEI element names;
- style TEI tables as HTML tables are styled by `minima`;

- semicolon cleanup;
- do not use removed addStyle();

- names aligned with CETEIcean;
@dubinsky
Copy link
Contributor Author

@hcayless @raffazizzi I left only uncontroversial cleanup in this pull request; please review :)

Comment on lines 900 to 916

/* styles for HTML shell and HTML elements in TEI (e.g.,<a> and <img>) */
html > body {
margin: 0;
padding: 0;
}
html {
margin: 0;
padding: 0;
margin-left: 2em;
margin-right: 4em;
padding: 2.5em;
font-family: "Lucida Grande", "Cardo", "Arial Unicode MS","Galilee Unicode Gk", "New Athena Unicode", "Athena Unicode", "Palatino Linotype", "Titus Cyberbit Basic", "Vusillus Old Face", "Alphabetum", "Galatia SIL", "Code 2000", "GentiumAlt", "Gentium", "Minion Pro", "GeorgiaGreek", "Vusillus Old Face Italic", "Everson Mono", "Aristarcoj", "Porson", "Legendum", "Aisa Unicode", "Hindsight Unicode", "Caslon", "Verdana", "Tahoma";
font-size: 12pt;
background-color: white;
color: #292929;
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know (from experience) that having this is frustrating, but this CSS file is mostly meant as an example style that works out of the box. I would slightly prefer to keep it here so that a CETEI rendering with default settings looks good and have advanced users either modify this file for themselves or override in a separate CSS.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or to work with your solution of splitting this into two CSS files: we could make CETEIcean.css include html.css and tei.css (replaces CETEIcean.css). @hcayless thoughts?

`CETEIcean.css`:
- added `yi` to the `rtl` list;
- added `ru` and `pl` to the `ltr` list;
- lower-cased overlooked TEI element names;
- added `tei-` prefix to the overlooked TEI element names;
- removed spurious space;
- merged two `tei-table` rules into one;
@dubinsky
Copy link
Contributor Author

@raffazizzi Rolled back splitting of the html.css out. Is the pull request ok now?

@dubinsky dubinsky requested a review from raffazizzi June 18, 2020 21:46
@raffazizzi raffazizzi merged commit f623433 into TEIC:master Jun 19, 2020
dubinsky added a commit to opentorah/alter-rebbe.org that referenced this pull request Jun 21, 2020
(which includes one small change I asked for and removal of the `table` behaviour)
*and* my pull request TEIC/CETEIcean#35:
- style TEI tables using `display` values `table`, `table-row`, `table-cell`;
- added `.js` extension to the imported module names;

my custom `tei.scss`:
- lower-cased TEI element names;
- style TEI tables as HTML tables are styled by `minima`;

- semicolon cleanup;
- do not use removed addStyle();

- names aligned with CETEIcean;
@dubinsky dubinsky mentioned this pull request Oct 7, 2020
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Further clean-up of the CETEIcean.css
2 participants