From b62d43ccde70aa6fccf5341e57a695a2cfb289c1 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 13 Mar 2019 15:48:14 -0400 Subject: Game list is sortable --- app/assets/stylesheets/main/games.scss | 40 ++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) (limited to 'app/assets/stylesheets') diff --git a/app/assets/stylesheets/main/games.scss b/app/assets/stylesheets/main/games.scss index 98aca43..901d30d 100644 --- a/app/assets/stylesheets/main/games.scss +++ b/app/assets/stylesheets/main/games.scss @@ -18,6 +18,36 @@ td { padding: 0.5em; } + + thead { + th { + border-bottom: 1px solid #aaa; + text-align: left; + padding: 0.5em; + + a { + text-decoration: none; + + &:visited { + color: blue; + } + } + + .current { + padding-right: 12px; + background-repeat: no-repeat; + background-position: right center; + + &.asc { + background-image: image-url("up_arrow.gif"); + } + + &.desc { + background-image: image-url("down_arrow.gif"); + } + } + } + } } .game-progress p { @@ -34,3 +64,13 @@ font-size: 0.8em; color: #777; } + +h2#games-title { + background-color: #d6aeff; + display: block; + font-size: 20px; + font-family: 'Roboto', sans-serif; + padding: 0.5em 20px; + border-top: 1px solid #edf; + border-bottom: 1px solid #edf; +} -- cgit 1.4.1