Skip to content
This repository was archived by the owner on Jul 13, 2024. It is now read-only.

Commit 5299f8d

Browse files
committed
Add v1 documentation back online
1 parent 3f42ee1 commit 5299f8d

32 files changed

+15728
-1
lines changed

packages/website/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@
1515
"start": "mdx-deck deck.mdx",
1616
"clean": "rm -rf dist",
1717
"prebuild": "npm run clean",
18-
"build": "npm run build:deck && npm run build:stories",
18+
"build": "npm run build:deck && npm run build:stories && npm run build:v1",
1919
"build:stories": "cd ../stories && npm run build -- -o ../website/dist/stories",
2020
"build:deck": "mdx-deck build deck.mdx && cp -R assets dist",
21+
"build:v1": "cp -R v1 dist",
2122
"github-files": "touch dist/.nojekyll && echo 'gitgraphjs.com' > dist/CNAME",
2223
"deploy": "npm run build && npm run github-files && gh-pages -d dist"
2324
},
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
.gitgraph-tooltip {
2+
position: absolute;
3+
margin-top: -15px;
4+
margin-left: 25px;
5+
padding: 10px;
6+
border-radius: 5px;
7+
background: #eee;
8+
color: #333;
9+
text-align: center;
10+
font-size: 14px;
11+
line-height: 20px;
12+
}
13+
14+
.gitgraph-tooltip:after {
15+
position: absolute;
16+
top: 10px;
17+
left: -18px;
18+
width: 0;
19+
height: 0;
20+
border-width: 10px;
21+
border-style: solid;
22+
border-color: transparent;
23+
border-right-color: #eee;
24+
content: "";
25+
}
26+
27+
.gitgraph-detail {
28+
position: absolute;
29+
padding: 10px;
30+
text-align: justify;
31+
width: 600px;
32+
display: none;
33+
}

packages/website/v1/css/index.css

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
body {
2+
margin: 0;
3+
padding: 0;
4+
min-width: 1100px;
5+
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
6+
font-size: 14px;
7+
line-height: 1.428571429;
8+
color: #333333;
9+
background-color: #ffffff;
10+
background-image: url("../img/pixel_weave.png");
11+
}
12+
13+
a {
14+
color: #428bca;
15+
text-decoration: none;
16+
}
17+
18+
a:hover,
19+
a:focus {
20+
color: #2a6496;
21+
text-decoration: none;
22+
}
23+
24+
a:focus {
25+
outline: thin dotted #333;
26+
outline: 5px auto -webkit-focus-ring-color;
27+
outline-offset: -2px;
28+
}
29+
30+
code,
31+
pre {
32+
font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
33+
}
34+
35+
code {
36+
padding: 2px 4px;
37+
font-size: 90%;
38+
color: #c7254e;
39+
white-space: nowrap;
40+
background-color: #f9f2f4;
41+
border-radius: 4px;
42+
}
43+
44+
pre {
45+
display: block;
46+
padding: 9.5px;
47+
margin: 0 0 10px;
48+
font-size: 13px;
49+
line-height: 1.428571429;
50+
color: #333333;
51+
word-break: break-all;
52+
word-wrap: break-word;
53+
background-color: #f5f5f5;
54+
border: 1px solid #cccccc;
55+
border-radius: 4px;
56+
}
57+
58+
pre.prettyprint {
59+
padding: 2px 10px !important;
60+
border-color: #d8d8d8 !important;
61+
}
62+
63+
header {
64+
position: fixed;
65+
top: 0px;
66+
width: 100%;
67+
z-index: 100;
68+
background-color: #fff;
69+
box-shadow: 10px 0px 30px #b4b4b4;
70+
}
71+
72+
section {
73+
width: 1000px;
74+
margin: auto;
75+
margin-top: 260px;
76+
padding: 30px;
77+
background-color: #fff;
78+
box-shadow: 10px 10px 30px #b4b4b4;
79+
margin-bottom: 50px;
80+
}
81+
82+
nav {
83+
width: 550px;
84+
top: 0px;
85+
left: 0px;
86+
margin: auto;
87+
margin-bottom: 20px;
88+
font-family: verdana;
89+
}
90+
91+
nav a:after {
92+
content: " -";
93+
}
94+
95+
nav a:last-child:after {
96+
content: "";
97+
}
98+
99+
@media screen and (max-width: 600px) {
100+
nav {
101+
width: auto;
102+
margin: 0;
103+
}
104+
105+
nav a {
106+
display: block;
107+
width: 100%;
108+
margin: auto;
109+
text-align: center;
110+
padding: 5px;
111+
border-bottom: solid #ccc 1px;
112+
}
113+
114+
nav a:hover {
115+
background-color: #f5f5f5;
116+
}
117+
nav a:first-child {
118+
border-top: solid #ccc 1px;
119+
}
120+
121+
nav a:after {
122+
content: "";
123+
}
124+
125+
section {
126+
margin-top: 440px;
127+
}
128+
}

0 commit comments

Comments
 (0)