about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/styles/bbcode.scss
blob: 12c62002c56cfb5db72aa0a91eae81f99e997252 (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
/*
// Original:
// https://github.com/computerfairies/mastodon/blob/master/app/javascript/styles/mastodon/bbcode.scss
*/

.bbcode {
  &__flip-horizontal {
    display: inline-block;
    -webkit-transform: scale(-1, 1);
    -ms-transform: scale(-1, 1);
    transform: scale(-1, 1);
  }

  &__flip-vertical {
    display: inline-block;
    -webkit-transform: scale(1, -1);
    -ms-transform: scale(1, -1);
    transform: scale(1, -1);
  }

  @for $i from 1 through 6 {
    &__size-#{$i} {
      font-size: #{6 * $i}px;

      & .emojione {
        width: #{6 * $i}px !important;
        height:  #{6 * $i}px !important;
      }

      & .hoverplay:hover {
        padding-left: #{6 * $i}px !important;
      }
    }
  }

  @for $i from 1 through 2 {
    &__size-#{$i}:hover {
      font-size: 12px;
    }
  }

  &__left { display: block; text-align: left; }
  &__center { display: block; text-align: center; }
  &__right { display: block; text-align: right; }
  &__lfloat { float: left; }
  &__rfloat { float: right; }
  &__spoiler-wrapper {
    background: black;
    color: black;
    padding: 1px 2em 1px 2em;
  }
  &__spoiler { color: black; visibility: hidden; }
  &__spoiler-wrapper:hover > &__spoiler,
  &__spoiler-wrapper:active > &__spoiler
  { color: white; visibility: visible; }
}