about summary refs log tree commit diff stats
path: root/app/assets/stylesheets/main/entries.scss
blob: bd0b5ba1fdda59ed8f2e73eebd84cd19cdf982dc (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
77
78
79
// Place all the styles related to the Entries 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=Slabo+27px');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,700');

#blog-post {
  font-size: 16px;
  line-height: 24px;
  margin: 0 3em;

  h2 {
    font-size: 45px;
    line-height: 48px;
    margin-top: .5em;
  }

  h3 {
    font-size: 37px;
    line-height: 42px;
  }

  h2, h3 {
    font-family: 'Slabo 27px', serif;
    margin-bottom: 0;
    font-weight: normal;
  }

  #blog-content {
    hyphens: auto;
    word-wrap: break-word;
    font-family: 'Roboto', sans-serif;
    text-align: justify;

    a {
      text-decoration: none;
      font-weight: bold;

      &, &:visited {
        color: #ee2c2c;
      }

      &:hover {
        text-decoration: underline;
        color: #9ea1ad;
      }
    }

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

    img {
      max-width: 100%;
      box-sizing: border-box;
    }

    figure {
      background-color: #eee;
      border: 1px solid #bbb;
      padding: 0.25em 0.25em 0 0.25em;
      font-size: 0.75em;

      img {
        display: block;
        border: 1px solid #bbb;
      }

      figcaption {
        font-style: italic;
        text-align: center;
        margin: 0.25em;
      }
    }
  }
}