diff --git a/app/assets/stylesheets/admin/tables.css.scss b/app/assets/stylesheets/admin/tables.css.scss new file mode 100644 index 0000000..5b5fb6a --- /dev/null +++ b/app/assets/stylesheets/admin/tables.css.scss @@ -0,0 +1,36 @@ +@import 'colors'; +@import 'dimensions'; + +div.table-wrapper { + width: 90%; + margin: 0 auto; + + div.links { + text-align: right; + padding: $moderate; + } + + table { + margin: $moderate auto 0; + border: solid $moderate $very_dark_magenta; + tr { + th { + background-color: $dark_gray; + color: $very_light_gray; + } + th, td { padding: $narrow } + td.email, td.date { font-family: monospase } + td.boolean { text-align: center } + td.actions { + text-align: center; + color: $dark_gray; + } + } + } + + table.listing { + width: 100%; + tr:nth-child(even) { background-color: $very_light_gray } + tr:nth-child(odd) { background-color: $light_gray } + } +}