From 83d84e6ae1750e109d281492cc88fff0be00c4ca Mon Sep 17 00:00:00 2001 From: Eugeniy Mikhailov Date: Fri, 4 Mar 2011 17:18:33 -0500 Subject: added css style generator Ignore-this: ead83a2b0534f735560f030d251b0950 darcs-hash:20110304221833-067c0-846fab6741cf7a05228ea0ddec9b10e11f1dc279.gz --- GradeBook.scss | 141 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 141 insertions(+) create mode 100644 GradeBook.scss (limited to 'GradeBook.scss') diff --git a/GradeBook.scss b/GradeBook.scss new file mode 100644 index 0000000..7cc06f4 --- /dev/null +++ b/GradeBook.scss @@ -0,0 +1,141 @@ +$body_bg: #336699; +$body_padding: 0px; +$body_margin: 20px; +$body_font_family: Sans-Serif; + + +$link_color_cmd_normal: blue; +$link_color_cmd_visited: $link_color_cmd_normal; +$link_color_cmd_hover: $link_color_cmd_normal; +$link_color_cmd_active: $link_color_cmd_normal; + +$normal_bg: #ffcc99; +$div_padding: 5px; +$div_margin_vert: 15px; +$div_margin_horiz: 5px; + +$Quiz: #5cc3c3; +$Homework: #a8ffa8; +$LabReport: #8f7ad2; +$MidTerm: #f0b7f0; +$FinalExam: #f08ab6; + +$table_hover_bg: #ffeebb; + +$controls_bg: #ddbb88; + +body { + padding: $body_padding; + margin: $body_margin; + background-color: $body_bg; + font-family: $body_font_family; + + a { + color: $link_color_cmd_normal; + text-decoration: none; + &:visited { color: $link_color_cmd_visited; } + &:hover { + color: $link_color_cmd_hover; + text-decoration:underline; + background-color: #ffddee; + } + &:active { + color: $link_color_cmd_active; + text-decoration:underline; + background-color: #ffddee; + } + } + + div { + background-color: $normal_bg; + padding: { + top: $div_padding; + bottom: $div_padding; + left: $div_padding; + right: $div_padding; + } + margin: { + top: $div_margin_vert; + bottom: $div_margin_vert; + left: $div_margin_horiz; + right: $div_margin_horiz; + } + } + span.controls { + background-color: $controls_bg; + font-weight: bold; + } + div.changegrades { + background-color: #8f0000; + padding: { + bottom: $div_padding; + top: $div_padding; + left: $div_padding; + right: $div_padding; + } + } + table.gradestable { + border: 1px solid black; + border-collapse: collapse; + tr { + &:hover { + background-color: $table_hover_bg; + } + } + th { + font-weight: bold; + background-color: $normal_bg; + &.Quiz { + background-color: darken($Quiz,15%); + } + &.Homework { + background-color: darken($Homework,15%); + } + &.LabReport { + background-color: darken($LabReport,15%); + } + &.MidTerm { + background-color: darken($MidTerm,15%); + } + &.FinalExam { + background-color: darken($FinalExam,15%); + } + } + td { + &.Quiz { + background-color: $Quiz; + &:hover { + background-color: $table_hover_bg; + } + } + &.Homework { + background-color: $Homework; + &:hover { + background-color: $table_hover_bg; + } + } + &.LabReport { + background-color: $LabReport; + &:hover { + background-color: $table_hover_bg; + } + } + &.MidTerm { + background-color: $MidTerm; + &:hover { + background-color: $table_hover_bg; + } + } + &.FinalExam { + background-color: $FinalExam; + &:hover { + background-color: $table_hover_bg; + } + } + } + } +} + + + +// vim: ts=2:sw=2:tw=74: -- cgit v1.2.3