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

css for SQL lessons #9

Closed
orchid00 opened this issue Feb 13, 2015 · 14 comments
Closed

css for SQL lessons #9

orchid00 opened this issue Feb 13, 2015 · 14 comments

Comments

@orchid00
Copy link
Contributor

Hi,
I have some suggestions on the template for the SQL lessons:

Padding:
*I see that most if not all tables need a bit more of bottom padding, the letters in the next paragraph are too close.
*Challenges on the other side are very spacious in between, and probably the question title should be a bit smaller.
Colors:
*Table headers, I don't know if it is just me, but that blue is too dark to be combined with black... just saying...

This is a duplicate from:
swcarpentry/sql-novice-survey#27
suggested by Raniere Silva to be copied here.

@pbanaszkiewicz
Copy link
Contributor

Hi, @orchid00. I can't find challenges in the repository with lesson on SQL. Can you point me at them?

@gvwilson
Copy link
Contributor

gvwilson commented Feb 13, 2015 via email

@pbanaszkiewicz
Copy link
Contributor

@gvwilson do you both mean "FIXME"s?

@orchid00
Copy link
Contributor Author

I meant the font of the titles called "challenges" so all of them. It is a matter of style: they are very spacious in between, and probably the question title (where it says fixme) should be a bit smaller. Is that clearer?

@pbanaszkiewicz
Copy link
Contributor

Thanks @orchid00 and @gvwilson. My fork, for reason unknown to me, contained "FIXME" headers instead of proper challenges as, for example, here http://swcarpentry.github.io/sql-novice-survey/01-select.html (at the bottom).

I've pulled in the recent changes and will work on styles some more.

@pbanaszkiewicz
Copy link
Contributor

Hi everyone,

I don't like that light-green color of challenge boxes. I'd get rid of it, and to highlight that this section is a challenge I'd put it under "Challenge" (or "Exercise") header.

BEFORE:
screenshot from 2015-02-14 12 12 50

AFTER:
screenshot from 2015-02-14 12 12 17

Pros:

  • clear indicator that this section is intended as an exercise for reader
  • proper heading structure (each challenge is a subsection of "Challenges")
  • visually more appealing

Cons:

  • requires changes to lesson files

What do you think?

@orchid00
Copy link
Contributor Author

Good idea to remove the green boxes!
Btw, I am looking at version 5.3, and the headers of the tables are different than yours. have a look:
css_sw_ugly
Can you modify that too?

@pbanaszkiewicz
Copy link
Contributor

@orchid00 I accidentially showed you a lesson with #10 applied - it changes tables a bit, now they're similar to what Bootstrap offers.

What do you think about that additional header "Challenges"? Should I keep it or throw away?

@orchid00
Copy link
Contributor Author

Oh! tables look much better like that.
To be honest, I'm very picky and and I don't think much ppl will notice those things, but here you go:
now that you removed the green highlight the left padding looks a bit off. If you put everything aligned to the Challenges (header) it would look better, in that case keep it.

Also, we talked with some other instructors that the challenges should come more often and not only at the end of the lesson. But I guess that is a more structural change. In that case wouldn't be necessary to write challenge headers :P

@pbanaszkiewicz
Copy link
Contributor

To be honest, I'm very picky and and I don't think much ppl will notice those things, but here you go:
now that you removed the green highlight the left padding looks a bit off. If you put everything aligned to the Challenges (header) it would look better, in that case keep it.

With left margin removed:
screenshot from 2015-02-14 15 37 49

Also, we talked with some other instructors that the challenges should come more often and not only at the end of the lesson.

Oh I really like this change.

But I guess that is a more structural change. In that case wouldn't be necessary to write challenge headers :P

You're right. This gives me an idea of how to bring nice-looking exercises inside the lesson's content.

Take a look at this "Note" section here: it looks like a box with a header, but it's not disturbing.

I'm thinking a similar style for challenges: it has to be a box, because challenges sometimes get more than one paragraph of text, and it must not be disturbing, ie. header should be fairly small and colors not too bright.

I'll probably throw away my previous changes to challenges and prepare something that presents these exercises nicely and inline, not at the end of the lesson.

@orchid00
Copy link
Contributor Author

Yeah the box with the header looks OK. I think before it was just the color green that didn't look so nice.

Again, I see something different, your queries are now in grey-ish? and my queries are color green...

@pbanaszkiewicz
Copy link
Contributor

Again, I see something different, your queries are now in grey-ish? and my queries are color green...

The queries in grey-ish had no class="sql" ({.sql} in Markdown) - good catch. This is an issue for sql-novice-survey, you can send a PR if you want.

@orchid00
Copy link
Contributor Author

@pbanaszkiewicz (I'm new here) where should I do the PR?

@pbanaszkiewicz
Copy link
Contributor

@orchid00 that's alright. I think the issue is that code blocks in challenges miss {.sql}. I've found a couple of lessons that do not have it:

Here's an issue ticket I've just created: swcarpentry/sql-novice-survey#34

Please send a PR to the https://github.com/swcarpentry/sql-novice-survey/ repository.

rgaiacs pushed a commit to rgaiacs/swc-styles that referenced this issue Mar 14, 2017
[RDY] pandoc filter to convert blockquotes to divs
rgaiacs pushed a commit to rgaiacs/swc-styles that referenced this issue Mar 14, 2017
01-tooling: Fix 'jeyll-collection' -> 'jekyll-collection' typo
henrykironde pushed a commit to henrykironde/styles that referenced this issue Apr 25, 2018
Edit text since there is no longer any red formatting in table.
fmichonneau added a commit that referenced this issue Oct 20, 2020
translate 'finish' to 'final
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

No branches or pull requests

4 participants