about summary refs log tree commit diff stats
path: root/app/assets/stylesheets/main/games.scss
blob: 901d30d75f7826b434713364de1fcd7f1c5768d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
// Place all the styles related to the GamesController controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
#games-table {
  border-spacing: 0;
  width: 100%;

  tr {
    &.odd {
      background-color: #fff;
    }

    &.even {
      background-color: #edf;
    }
  }

  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 {
  margin: 0;
}

.game-title {
  display: block;
  margin-bottom: 0.25em;
}

.game-started, .game-finished {
  display: block;
  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;
}