summaryrefslogtreecommitdiffstats
path: root/tests/syntax-tests/highlighted/Sass/example.sass
blob: 89bcb0caaa66fc205640baafb25c5ca896ac1ec8 (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
@import "fonts"

$theme_dark: (
  "background-color": null
)

$theme_main: (
  "text-size": 3em
  "text-color": black
  "text-shadow": #36ad 0px 0px 3px
  "card-background": #d6f
  "card-shadow": #11121212 0px 0px 2px 1px
  "card-padding": 1rem
  "card-margin": 0.5in
  "image-width": 600px
  "image-height": 100vh
  "background-color": #dedbef
  "i-ran-out-of-placeholders-for-units": (
    1vw 100% 60pt
  )
)

$current_theme: $theme_main

@mixin themed()
  $current_theme: $theme_main !global
  @content

  @media (prefers-color-scheme: dark)
    $current_theme: $theme_dark !global
    @content

  [38;2;166