GithubHelp home page GithubHelp logo

print-first-css's People

Contributors

badlydrawnrob avatar bassjobsen avatar cbracco avatar johnogram avatar lukechilds avatar progsource avatar vladootz avatar

Watchers

 avatar  avatar

print-first-css's Issues

Make image-friendly

Needs a debate on which method to use, whether to blanket-force responsive images ... and so on.

  • max-width: 100% on all images [using]
  • center all images?
  • responsive? resolution?
  • Aspect ratios?

Add a form reset?

Should I be concerned about basic forms or is this a job for each individual site?

  • Check some healthy resets
  • Leave it to the browser Gods

Consider how to differentiate with plain markdown

Within the #10 issue, how might I be able to write standard markdown, but style in a subtle, useful manner?

Decide

  • Do I stick to basic styling in print-first-css (a blank canvas)
  • Or set up some "academic" style defaults?
    • Or, use a child theme for this?

Examples:

  • Link styling — could be useful for footnotes or references

Monospace font-size

  • Goldilocks the --font-family-mono
  • Use a set --font-family rather than the generic --ios/android font stack?
  • Does the mono line-height need updating?
  • Does it look the same on ios and android?
  • See also this link and another explanation

Currently the --font-family-mono font is often too big, compared to the --font-family --font-size:

Default

Screenshot 2019-08-09 at 17 25 51

--font-size-m

Screenshot 2019-08-09 at 17 25 37

It's a bit of an in-betweeny font size.

Hashes fail silently

Hashes fail silently if they've been used but not declared — $this.hash.isnt.setup but is referenced, with no errors given

Add font tracking?

In Material Design (and original cardinal-stylus) I was using --font-tracking variables:

  • letter-spacing: $font.tracking.pppp

Put back in?

tracking?

Print links

Some changes to links:

  • Force links to always be black with !important

Is it possible to add them as footnotes, instead of using [raw text] in brackets?

Adding html to markdown files

Sketch out the pros and cons, as well as the workflow options

Markdown is a simple formatting method, so it's probably best not to get too clever when writing and formatting ... but when adding HTML, current difficulties:

  • Marked App seems to add empty paragraphs, causing broken layout
  • Pandoc doesn't seem to suffer from this problem

Code example:

<div class="split"><div class="split-left">

- list
- of
-stuff

</div><div class="split-right">

Content

</div></div>

Need to decide whether it's best to:

  1. Use Markdown for full pages (with HTML inside file)
  2. Use Markdown for partials (and a templating language)
  3. Use Markdown with frontmatter
  4. Use javascript to style some elements (the introduction, for instance)

HTML inside Markdown is easy(ish) to compile, and if done right can provide some flexibility (such as figcaption etc) — but feels a bit hacky, somehow.

Perhaps there's a balance between building a structure and using markdown files, within that structure.

Custom fonts

Perhaps a side-note on @font-face and customising your fonts?

  • Font stacks
  • Embed fonts

material-type-01

Changes

  • Remove $grid hashes?
  • Remove dependencies (original Cardinal Stylus)
  • Remove buttons?

Writing styleguide

Just-in-time and revise as-you-go — easy to understand for beginners and just enough for serious writing. Do the next right thing.

  • A refresher on quasi-academic writing. See also source/ecss/specimen.md

Decide a general tone, style (academic? head first) as a standard default. This can always be extended or updated for child themes.

See also:

  • #13 images, #20 page breaks
  • #18 Adding html, #17 using markdown

Inspiration

  1. Going to print
  2. Designing for print
  3. Economist style guide
  4. Gov.uk styleguide

Must be

  1. Easy to understand and reckon with (the stupid version of future me)
  2. Must be easy to write in Markdown (including extra html markup)
  3. Must work in any version of Markdown (Stick with CommonMark)
  4. Easy to extend (for specific needs)
  5. Looks pretty

Basics

Ordering

  • Create a generic page similar to this
  • I find it easier to scan when h2 are each on their own page
    • Or, style so it's a column layout (or depending on child theme)
  • Set order of elements, when/where to use (headers especially can look awkward in some situations)
  • Better figure and figcaption defaults
  • Guides for highlight words (see data-analysis notes)
  • Images styleguide (rough guide on sizes, dimensions, so on)

Tables, instructions, lists

See here and here

  • Tables with and without headers (what are the semantics)
    • Section headers?
    • Real headers?
    • Style table headers?
    • Or, use a data list (dl) if there's no need for column / row headers?
    • Longer content, other content

Code examples, references, images

  • How to structure internal/external links?
    • Ease of reading, less distraction, yet Brutalist.
  • pre inside figure (with figcaption)
    • linking to a figure (and format, i.e. fig. 1 fig.1 — description
    • figure plus quote
    • figure + figure or figure > img + img (what happens when more than 1?)
  • pre + pre (multiple stacked code blocks, quite useful, in css already)
  • code inside other elements? h1, blockquote, etc
    • Or, make a note never to use within elements whose font is bigger (easier)
  • Table of contents for longer articles
  • Reliable (MD compiler agnostic) footnotes or references (see Economist style guide)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.