Closure Stylesheets (GSS) mode

x
 
1
/* Some example Closure Stylesheets */
2
3
@provide 'some.styles';
4
5
@require 'other.styles';
6
7
@component {
8
9
@def FONT_FAMILY           "Times New Roman", Georgia, Serif;
10
@def FONT_SIZE_NORMAL      15px;
11
@def FONT_NORMAL           normal FONT_SIZE_NORMAL FONT_FAMILY;
12
13
@def BG_COLOR              rgb(235, 239, 249);
14
15
@def DIALOG_BORDER_COLOR   rgb(107, 144, 218);
16
@def DIALOG_BG_COLOR       BG_COLOR;
17
18
@def LEFT_HAND_NAV_WIDTH    180px;
19
@def LEFT_HAND_NAV_PADDING  3px;
20
21
@defmixin size(WIDTH, HEIGHT) {
22
  width: WIDTH;
23
  height: HEIGHT;
24
}
25
26
body {
27
  background-color: BG_COLOR;
28
  margin: 0;
29
  padding: 3em 6em;
30
  font: FONT_NORMAL;
31
  color: #000;
32
}
33
34
#navigation a {
35
  font-weight: bold;
36
  text-decoration: none !important;
37
}
38
39
.dialog {
40
  background-color: DIALOG_BG_COLOR;
41
  border: 1px solid DIALOG_BORDER_COLOR;
42
}
43
44
.content {
45
  position: absolute;
46
  margin-left: add(LEFT_HAND_NAV_PADDING,  /* padding left */
47
                   LEFT_HAND_NAV_WIDTH,
48
                   LEFT_HAND_NAV_PADDING); /* padding right */
49
50
}
51
52
.logo {
53
  @mixin size(150px, 55px);
54
  background-image: url('http://www.google.com/images/logo_sm.gif');
55
}
56
57
}
58

A mode for Closure Stylesheets (GSS).

MIME type defined: text/x-gss.

Parsing/Highlighting Tests: normal, verbose.