summaryrefslogtreecommitdiffstats
path: root/debian/missing-sources/wyrm/sass/wyrm_addons/elements/_stars.sass
blob: bf512b6f87d61ae1b2ab3e1c18aadb47d08c5829 (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
// Ratings
//
// Ratings using font icons. Located in `/wyrm_addons/elements/_stars.sass`.
//
// Markup:
// <span class="wy-star {$modifiers}"></span>
//
// .wy-star-0          - 0 stars
// .wy-star-0dot5      - 0.5 stars
// .wy-star-1          - 1 stars
// .wy-star-1dot5      - 1.5 stars
// .wy-star-2          - 2 stars
// .wy-star-2dot5      - 2.5 stars
// .wy-star-3          - 3 stars
// .wy-star-3dot5      - 3.5 stars
// .wy-star-4          - 4 stars
// .wy-star-4dot5      - 4.5 stars
// .wy-star-5          - 5 stars
//
// Styleguide 10.0

.wy-star
  display: inline-block
  max-width: 100%
  letter-spacing: 3px
  color: $text-light
  font-family: $icon-font-family
  vertical-align: top
  position: relative
  &:before
    content: "\f005\f005\f005\f005\f005"
  &:after
    position: absolute
    top: 0
    left: 0
    color: $text-color
  &.wy-star-0dot5:after
    content: "\f089"
  &.wy-star-1:after
    content: "\f005"
  &.wy-star-1dot5:after
    content: "\f005\f089"
  &.wy-star-2:after
    content: "\f005\f005"
  &.wy-star-2dot5:after
    content: "\f005\f005\f089"
  &.wy-star-3:after
    content: "\f005\f005\f005"
  &.wy-star-3dot5:after
    content: "\f005\f005\f005\f089"
  &.wy-star-4:after
    content: "\f005\f005\f005\f005"
  &.wy-star-4dot5:after
    content: "\f005\f005\f005\f005\f089"
  &.wy-star-5:after
    content: "\f005\f005\f005\f005\f005"