Added a special font
[examples/template-development] / less / frontend.less
1 @background: #111;
2 @normal:     #090;
3 @light:      #9f9;
4 @lighter:    #fff;
5
6 @font-face {
7   font-family: 'White Rabbit';
8   font-style: normal;
9   font-weight: 400;
10   text-transform: none;
11   src: url('../fonts/white-rabbit.woff');
12   -webkit-font-feature-settings: "liga";
13      -moz-font-feature-settings: "liga=1";
14      -moz-font-feature-settings: "liga";
15       -ms-font-feature-settings: "liga" 1;
16        -o-font-feature-settings: "liga";
17           font-feature-settings: "liga";
18   -webkit-font-smoothing: antialiased;
19   -moz-osx-font-smoothing: grayscale;
20 }
21
22 body
23 {
24   color: @normal;
25   background-color: @background;
26   font-family: "White Rabbit";
27   font-size: 20px;
28 }
29 a
30 {
31   color: @light;
32   text-decoration: none;
33   &:hover,
34   &:focus
35   {
36     color: @lighter;
37     text-decoration: underline;
38   }
39   &:active
40   {
41     color: @lighter;
42   }
43 }
44 hr
45 {
46   margin: 0;
47   border-color: @normal;
48   clear: both;
49 }
50 svg
51 {
52   fill: currentColor;
53 }
54
55
56 header
57 {
58   margin-bottom: 3em;
59   > h2 > svg
60   {
61     position: relative;
62     top: .2em;
63     height: 1.25em;
64     width: 2.5em;
65   }
66 }
67 nav
68 {
69   > h3
70   {
71     display: none;
72   }
73   > ul
74   {
75     margin: 0;
76     padding: 0;
77     > li
78     {
79       list-style-type: none;
80       float: left;
81       margin: .5em .5em .5em 0;
82       &:before
83       {
84         content: '::';
85         margin-right: .5em;
86       }
87       &:first-child
88       {
89         margin-left: .5em;
90         &:before
91         {
92           content: none;
93         }
94       }
95     }
96   }
97 }
98 footer
99 {
100   margin-top: 3em;
101 }