summaryrefslogtreecommitdiff
path: root/sass/demo.scss
blob: eac6cae2304f5caaccfcac605d25f912f61f5f63 (plain)
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

#container {
  margin: 50px auto 100px;
  padding: 0 20px;
  text-align: center;
  width: 700px;

  h1 {
    font-size: 37px;
    line-height: .882em;
    text-transform: uppercase;

    span {
      color: #aaa;
      display: block;
      font-size: .588em;
      line-height: 1em;
    }

    &:hover {
      color: #666;

      span {
        color: #666;
      }
    }
  }

  h2 {
    border-top: 1px solid #ddd;
    margin-bottom: .625em;
    margin-top: 1.875em;
    padding-top: 1.875em;

    span {
      color: #666;
    }
  }

  li {
    display: inline-block;
    margin: .625em;
  }

  img {
    border: .625em solid rgba(255, 255, 255, .5);
    // border-color: #eee;

    -moz-box-shadow: 0 0 .313em rgba(0, 0, 0, .05);
    -webkit-box-shadow: 0 0 .313em rgba(0, 0, 0, .05);
    box-shadow: 0 0 .313em rgba(0, 0, 0, .05);
    height: 8.75em;

    -moz-transition: -moz-box-shadow .3s ease, border-color .3s ease;
    -ms-transition: -ms-box-shadow .3s ease, border-color .3s ease;
    -o-transition: -o-box-shadow .3s ease, border-color .3s ease;
    -webkit-transition: -webkit-box-shadow .3s ease, border-color .3s ease;
    transition: box-shadow .3s ease, border-color .3s ease;
    width: 8.75em;

    &:hover {
      border-color: #fff;

      -moz-box-shadow: 0 0 .938em rgba(0, 0, 0, .25);
      -webkit-box-shadow: 0 0 .938em rgba(0, 0, 0, .25);
      box-shadow: 0 0 .938em rgba(0, 0, 0, .25);
    }
  }

  footer {
    border-top: 1px solid #ddd;
    color: #aaa;
    font-size: .875em;
    margin-top: 2.143em;
    padding-top: 2.143em;

    a {
      color: #666;
    }
  }
}

@media only screen and (max-width: 660px) {
  #container {
    width: 90%;

    &:before,
    &:after {
      content: ' ';
      display: table;
    }
  }
}

ul {
  padding: 0;
}