@@ -12,3 +12,137 @@ code {
12
12
padding : 2px 3px ;
13
13
border-radius : 0 ;
14
14
}
15
+
16
+ /// Styling for the Prisim syntax highlighter used in the spec code pens
17
+
18
+ code [class *= " language-" ],
19
+ pre [class *= " language-" ] {
20
+ color : black ;
21
+ text-shadow : 0 1px white ;
22
+ font-family : Consolas, Monaco, ' Andale Mono' , monospace ;
23
+ direction : ltr ;
24
+ text-align : left ;
25
+ white-space : pre ;
26
+ word-spacing : normal ;
27
+ word-break : normal ;
28
+ line-height : 1.5 ;
29
+
30
+ -moz-tab-size : 4 ;
31
+ -o-tab-size : 4 ;
32
+ tab-size : 4 ;
33
+
34
+ -webkit-hyphens : none ;
35
+ -moz-hyphens : none ;
36
+ -ms-hyphens : none ;
37
+ hyphens : none ;
38
+ }
39
+
40
+ pre [class *= " language-" ]::-moz-selection , pre [class *= " language-" ] ::-moz-selection ,
41
+ code [class *= " language-" ]::-moz-selection , code [class *= " language-" ] ::-moz-selection {
42
+ text-shadow : none ;
43
+ background : #eceef0 ;
44
+ }
45
+
46
+ pre [class *= " language-" ]::selection , pre [class *= " language-" ] ::selection ,
47
+ code [class *= " language-" ]::selection , code [class *= " language-" ] ::selection {
48
+ text-shadow : none ;
49
+ background : #eceef0 ;
50
+ }
51
+
52
+ @media print {
53
+ code [class *= " language-" ],
54
+ pre [class *= " language-" ] {
55
+ text-shadow : none ;
56
+ }
57
+ }
58
+
59
+ /* Code blocks */
60
+ pre [class *= " language-" ] {
61
+ padding : 1em ;
62
+ margin : .5em 0 ;
63
+ overflow : auto ;
64
+ background-color : #eceef0 ;
65
+ }
66
+
67
+ :not (pre ) > code [class *= " language-" ],
68
+ pre [class *= " language-" ] {
69
+ background : #eceef0 ;
70
+ }
71
+
72
+ /* Inline code */
73
+ :not (pre ) > code [class *= " language-" ] {
74
+ padding : .1em ;
75
+ border-radius : .3em ;
76
+ }
77
+
78
+ .token.comment ,
79
+ .token.prolog ,
80
+ .token.doctype ,
81
+ .token.cdata {
82
+ color : #474d66 ;
83
+ }
84
+
85
+ .token.punctuation {
86
+ color : #474d66 ;
87
+ }
88
+
89
+ .namespace {
90
+ opacity : .7 ;
91
+ }
92
+
93
+ .token.property ,
94
+ .token.tag ,
95
+ .token.boolean ,
96
+ .token.number ,
97
+ .token.constant ,
98
+ .token.symbol ,
99
+ .token.deleted {
100
+ color : #d52039 ;
101
+ }
102
+
103
+ .token.selector ,
104
+ .token.attr-name ,
105
+ .token.string ,
106
+ .token.char ,
107
+ .token.builtin ,
108
+ .token.inserted {
109
+ color : #6fba97 ;
110
+ }
111
+
112
+ .token.operator ,
113
+ .token.entity ,
114
+ .token.url ,
115
+ .language-css .token.string ,
116
+ .style .token.string {
117
+ color : #f89c56 ;
118
+ background : hsla (0 , 0% , 100% , .5 );
119
+ }
120
+
121
+ .token.atrule ,
122
+ .token.attr-value ,
123
+ .token.keyword {
124
+ color : #2e98df ;
125
+ }
126
+
127
+ .token.function {
128
+ color : #ff678d ;
129
+ }
130
+
131
+ .token.regex ,
132
+ .token.important ,
133
+ .token.variable {
134
+ color : #f89c56 ;
135
+ }
136
+
137
+ .token.important ,
138
+ .token.bold {
139
+ font-weight : bold ;
140
+ }
141
+ .token.italic {
142
+ font-style : italic ;
143
+ }
144
+
145
+ .token.entity {
146
+ cursor : help ;
147
+ }
148
+
0 commit comments