about summary refs log tree commit diff stats
path: root/app/assets/stylesheets/main/records.scss
blob: 47fdfa3fd0a40cd15f3c536417fb51b2c4ba4898 (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 Records controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/

@import url('https://fonts.googleapis.com/css?family=Inconsolata');

#records {
  padding: 0;
  margin: 0 1em;

  & > li {
    display: block;
    padding: .25em 0;

    .description {
      a {
        text-decoration: none;
        color: #352712;
        font-family: 'Inconsolata', monospace;

        &:hover {
          text-decoration: underline;
        }

        &:visited {
          color: #352712;
        }
      }
    }

    .tags {
      margin: .25em;
      display: flex;
      flex-wrap: wrap;
      padding-left: 0;

      li {
        display: inline;
        font-size: .75em;
        font-family: 'Inconsolata', monospace;
        padding: .25em;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        border-radius: 5px;

        &.record-date {
          background-color: #fef1bf;
        }

        &.entry-type {
          text-transform: uppercase;

          &.entry-type-blog {
            background-color: #90fefb;
          }

          &.entry-type-stream, &.entry-type-update {
            background-color: #98FB98;
          }
        }

        &.entry-tag {
          margin-left: 0.5em;

          &:before {
            content: "#";
          }
        }

        & + li {
          margin-left: 1em;
        }
      }
    }
  }
}