Skip to content

Commit 1f47240

Browse files
committed
add base styles
1 parent 580a0fe commit 1f47240

File tree

2 files changed

+33
-3
lines changed

2 files changed

+33
-3
lines changed

docs/publicTemplate/css/base.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
html {
2+
box-sizing: border-box;
3+
}
4+
5+
*, *:before, *:after {
6+
box-sizing: inherit;
7+
}
8+
9+
body {
10+
font-size: 15px;
11+
line-height: 1.4;
12+
font-family: 'Open Sans', sans-serif;
13+
color: #555;
14+
}

docs/server.js

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,34 @@ import webpack from 'webpack';
1111
import config from './webpack.config.dev.js';
1212

1313
const Html = ({
14-
title = 'Rainbow Unicorns',
14+
title = 'DraftJS Plugins (including the ultimate Unicorn Editor)',
1515
bundle = '/app.js',
1616
body = '',
1717
stylesheet = '',
18+
19+
// googleAnalytics = `(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
20+
// (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
21+
// m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
22+
// })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
23+
// ga('create', 'UA-75176147-1', 'auto');
24+
// ga('send', 'pageview');`,
25+
26+
// <script>
27+
// { googleAnalytics }
28+
// </script>
29+
1830
}) => (
1931
<html lang="en">
2032
<head>
2133
<meta charSet="utf-8" />
2234
<meta httpEquiv="X-UA-Compatible" content="IE=edge" />
23-
<meta name="viewport" content="width=device-width, initial-scale=1" />
35+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
2436
<title>{title}</title>
25-
{stylesheet && <link rel="stylesheet" href={stylesheet} />}
37+
<link rel="stylesheet" href="css/normalize.css" />
38+
<link rel="stylesheet" href="css/base.css" />
39+
<link rel="stylesheet" href="css/Draft.css" />
40+
{ stylesheet && <link rel="stylesheet" href={stylesheet} /> }
41+
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,300" rel="stylesheet" type="text/css" />
2642
</head>
2743
<body>
2844
<div id="root" dangerouslySetInnerHTML={{ __html: body }} />

0 commit comments

Comments
 (0)