Skip to content

Commit

Permalink
Fix: styles for tables in SQL lessons
Browse files Browse the repository at this point in the history
Previously: table cells had no padding, which caused a visual collapse
(cell content was too close to cell neighbors). Table header rows had
dark blue background and black letters.  Tables had no space between
them and following paragraphs.

Changes:
* added 5px padding to cell contents
* changed header row background to gray-ish (I considered switching text
  color to white, but it didn't look good)
* 15px margin on the bottom of the tables (similarly to bottom margin
  used by paragraph style).
  • Loading branch information
Piotr Banaszkiewicz committed Feb 13, 2015
1 parent e8360ae commit f92d323
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions css/swc.css
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,19 @@ section.content {
font-size: 40pt;
}

thead .header {
background: rgba(0, 0, 0, 0.15);
}

table th, table td {
padding: 5px;
}

table {
border: 1px solid rgba(0, 0, 0, 0.15);
margin-bottom: 15px;
}

#header-text {
font-size:20pt;
margin:0;
Expand Down

0 comments on commit f92d323

Please sign in to comment.