Skip to content

[WIP][TCE]Lietuvos#646

Closed
astronaut-wannabe wants to merge 8 commits intomasterfrom
lietuvos
Closed

[WIP][TCE]Lietuvos#646
astronaut-wannabe wants to merge 8 commits intomasterfrom
lietuvos

Conversation

@astronaut-wannabe
Copy link
Copy Markdown
Contributor

@astronaut-wannabe astronaut-wannabe commented Feb 2, 2018

TODOs

  • Is there a video URL (e.g. https://player.vimeo.com/video/111159930)
  • "an anarchist appeal" (e.g. "Tam, kad viską pakeistum, an anarchist appeal / CrimethInc. Ex-Workers' Collective")
  • description for social media shares (e.g. "The case for complete self-determination—a guide for the furious, the curious, and the pure of heart")
  • a pretty url for social media shares(e.g. http://tochangeeverything.com/)

Translations done with google translate

  • Turinys (Table of Contents)
  • Dalintis (Share)
  • Užsisakykite anglų kalbos versiją (Order Engish edition in Bulk)
  • Atsisiųskite PDF (Download PDF)
  • Žiūrėti video (watch video)
  • introduction: įvadas (Introduction)
  • išvadą (conclusion (english edition says "outro"))
  • skristi (Take Flight)
  • Negalima klijuoti prie senojo pasaulio (Don't cling to the old world)
  • Kitas (next)
  • Paslaptis turi prasidėti. (The secret is to begin.)

demo: https://crimethinc-staging-pr-646.herokuapp.com/tce/lietuvos

@astronaut-wannabe astronaut-wannabe self-assigned this Feb 2, 2018
@CobyR CobyR temporarily deployed to crimethinc-staging-pr-646 February 2, 2018 02:06 Inactive
@astronaut-wannabe astronaut-wannabe changed the title Lietuvos [WIP][TCE]Lietuvos Feb 2, 2018
@veganstraightedge veganstraightedge temporarily deployed to crimethinc-staging-pr-646 February 2, 2018 02:18 Inactive
Why?
------------------------
The last part of creating a turnkey solution for generating TCEs in
additional languages is creating CSS for every new language. One of
the things that make this difficult for someone who isn't familiar
with the codebase is that all of the CSS is together, and you don't
know what and where to look for doing the customizations.

What?
------------------------
 This creates the following structure:
```sh
website/app/assets/stylesheets/to_change_everything
.
├── _common.scss
├── _english.scss
├── _espanol.scss
├── _farsi.scss
├── _한국어.scss
├── common
│   ├── _font_styling.scss
│   ├── _navigation.scss
│   └── _reset.scss
├── farsi
│   └── _font_overrides.scss
└── korean
    └── _font_overrides.scss
```

The top-level files (e.g. `_farsi.scss`) are automatically
generated. So are the
sub-files (e.g. `farsi/_font_overrides.scss`). These are also
automatically wired up and filled in with the same CSS as
`font_styling.scss`.

A person generating a new TCE version then only has to look at 1
file (`farsi/_font_overrides.scss` in this example) and will only
really need to delete any CSS that will be unchanged from the common
styles and adjust some input values in the `scss` functions.

Results
------------------------
Using this convention the custom css needed for the farsi or korean
versions of TCE has been reduced to 50-60 lines of cookie-cutter CSS.

note
------------------------
I do hope to do a similar thing to the layout code (margins, paddings,
etc.) so that there will be a structure like this:

```sh
├── farsi
│   └── _font_overrides.scss
│   └── _layout_overrides.scss

```
- multi-line CSS rules have `}` on new line
- Remove font-stack 1-liners
- add spaces after `:` in media queries
@astronaut-wannabe
Copy link
Copy Markdown
Contributor Author

deferred for #689 and #688

@astronaut-wannabe astronaut-wannabe deleted the lietuvos branch March 27, 2018 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants