From 2aec61192e34df25cccecc1536cb090f98fd1d22 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Tue, 24 Mar 2015 19:06:36 +0100 Subject: Curriculum styling --- style/curriculum.less | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ style/main.less | 2 ++ 2 files changed, 53 insertions(+) create mode 100644 style/curriculum.less (limited to 'style') diff --git a/style/curriculum.less b/style/curriculum.less new file mode 100644 index 0000000..5f02380 --- /dev/null +++ b/style/curriculum.less @@ -0,0 +1,51 @@ +@import "colors.less"; + +body[data-page="curriculum"] #curriculum-menu { + /* reset list styles */ + ul { + padding: 0; + margin: 0; + } + li { + list-style: none; + padding: 3px; + margin: 0; + } + .year { + display: block; + background: @color-complement-0; + } + .quartile { + background: @color-complement-1; + display: flex; + + & > li { + flex: 1; + width: 100%; + } + } + .courses { + background: @color-complement-2; + + & > li { + background: @color-complement-3; + margin: 2px inherit; + white-space: nowrap; + overflow: hidden; + + &[data-type="bc"] { + background-color: #FFC000; + } + &[data-type="major"] { + background-color: #31859B; + } + &[data-type="elective"] { + background-color: #AB9AC0; + } + &[data-type="bep"] { + background-color: #C00000; + } + } + } +} +/* vim: set sw=4 et ts=4: */ diff --git a/style/main.less b/style/main.less index 0ad9c47..90edbcd 100644 --- a/style/main.less +++ b/style/main.less @@ -54,6 +54,8 @@ body[data-page="home"] { } } +@import "curriculum.less"; + /* footer */ footer { background: @color-secondary-1-4; -- cgit v1.2.1