Skip to content

Commit f6c8d05

Browse files
committed
Add button CSS and Google Analytics code
1 parent 22b75bc commit f6c8d05

File tree

3 files changed

+99
-0
lines changed

3 files changed

+99
-0
lines changed

assets/css/rascal.css

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,43 @@ div.center-column {
108108
max-width: 940px;
109109
background-color: #f5f5f5;
110110
}
111+
/* Rules for buttons from http://stopdesign.com/eg/buttons/3.0/code.html */
112+
.btn {
113+
display: inline-block;
114+
background: none;
115+
margin: 0;
116+
padding: 3px 0;
117+
border-width: 0;
118+
overflow: visible;
119+
font: 100%/1.2 Arial, Sans-serif;
120+
text-decoration: none;
121+
color: #333;
122+
}
123+
* html button.btn {
124+
padding-bottom: 1px;
125+
}
126+
/* Immediately below is a temporary hack to serve the
127+
following margin values only to Gecko browsers
128+
Gecko browsers add an extra 3px of left/right
129+
padding to button elements which can't be overriden.
130+
Thus, we use -3px of left/right margin to overcome this. */
131+
html:not([lang*=""]) button.btn {
132+
margin: 0 -3px;
133+
}
134+
.btn span {
135+
background: #dddddd url(img/bg-button.gif) repeat-x 0 0;
136+
margin: 0;
137+
padding: 3px 0;
138+
border-left: 1px solid #bbb;
139+
border-right: 1px solid #aaa;
140+
}
141+
* html .btn span {
142+
padding-top: 0;
143+
}
144+
.btn span span {
145+
position: relative;
146+
padding: 3px .4em;
147+
border-width: 0;
148+
border-top: 1px solid #bbb;
149+
border-bottom: 1px solid #aaa;
150+
}

assets/css/rascal.less

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,45 @@ div.center-column {
138138
max-width: 940px;
139139
background-color: @rascal-bright-white;
140140
}
141+
142+
/* Rules for buttons from http://stopdesign.com/eg/buttons/3.0/code.html */
143+
144+
.btn {
145+
display:inline-block;
146+
background:none;
147+
margin:0;
148+
padding:3px 0;
149+
border-width:0;
150+
overflow:visible;
151+
font:100%/1.2 Arial,Sans-serif;
152+
text-decoration:none;
153+
color:#333;
154+
}
155+
* html button.btn {
156+
padding-bottom:1px;
157+
}
158+
/* Immediately below is a temporary hack to serve the
159+
following margin values only to Gecko browsers
160+
Gecko browsers add an extra 3px of left/right
161+
padding to button elements which can't be overriden.
162+
Thus, we use -3px of left/right margin to overcome this. */
163+
html:not([lang*=""]) button.btn {
164+
margin:0 -3px;
165+
}
166+
.btn span {
167+
background:#ddd url(img/bg-button.gif) repeat-x 0 0;
168+
margin:0;
169+
padding:3px 0;
170+
border-left:1px solid #bbb;
171+
border-right:1px solid #aaa;
172+
}
173+
* html .btn span {
174+
padding-top:0;
175+
}
176+
.btn span span {
177+
position:relative;
178+
padding:3px .4em;
179+
border-width:0;
180+
border-top:1px solid #bbb;
181+
border-bottom:1px solid #aaa;
182+
}

default.hbs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,23 @@
2424

2525
{{! Ghost outputs important style and meta data with this tag }}
2626
{{ghost_head}}
27+
28+
<script>
29+
(function(i,s,o,g,r,a,m){
30+
i['GoogleAnalyticsObject']=r;
31+
i[r]=i[r]||function(){
32+
(i[r].q=i[r].q||[]).push(arguments)
33+
},i[r].l=1*new Date();
34+
a=s.createElement(o),m=s.getElementsByTagName(o)[0];
35+
a.async=1;
36+
a.src=g;
37+
m.parentNode.insertBefore(a,m)
38+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
39+
40+
ga('create', 'UA-96134-3', 'rascalmicro.com');
41+
ga('send', 'pageview');
42+
</script>
43+
2744
</head>
2845
<body class="{{body_class}}">
2946

0 commit comments

Comments
 (0)