├── .gitignore ├── GolangTest.go ├── README.md ├── README.md.bak ├── config ├── data.json ├── download.config ├── download.config.bak ├── output.html ├── output.html.bak ├── stylesheets │ ├── pygment_trac.css │ └── stylesheet.css ├── test.html └── test.html.bak ├── index.html ├── index.html.bak ├── out ├── 10-20150630_105405.html ├── 10-20150630_111524.html ├── 10-20150630_114714.html ├── 1000-20150630_105032.html ├── 200-20150630_104232.html └── 200-20150630_104709.html ├── params.json └── stylesheets ├── github-light.css ├── normalize.css └── stylesheet.css /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | *.prof 25 | -------------------------------------------------------------------------------- /GolangTest.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "encoding/json" 5 | // "github.com/ant0ine/go-json-rest/rest" 6 | "io/ioutil" 7 | // "log" 8 | // "net" 9 | "net/http" 10 | "strconv" 11 | "strings" 12 | "time" 13 | // "strings" 14 | // "sqladapter" 15 | // "database/sql" 16 | // "encoding/json" 17 | "fmt" 18 | // "go-simplejson" // for json get 19 | _ "odbc/driver" 20 | // "sync" 21 | // "bytes" 22 | "crypto/md5" 23 | "crypto/rand" 24 | "encoding/base64" 25 | "encoding/hex" 26 | // "encoding/json" 27 | // "fmt" 28 | "bufio" 29 | "io" 30 | "os" 31 | // "io/ioutil" 32 | // "log" 33 | // "net/http" 34 | // "net/url" 35 | ) 36 | 37 | /**存放配置数据key-value形式*/ 38 | var CFTablesMap map[string]interface{} // {}为初始化成空 39 | var baseTime time.Time 40 | 41 | func main() { 42 | 43 | tnow := time.Now() 44 | tmptime, _ := time.Parse("2006-01-02 15:04:05", "2015-06-19 17:01:47.590") 45 | subdur := tnow.Sub(tmptime) 46 | fmt.Printf("subdur: %f,%s ", subdur.Nanoseconds(), tmptime, " ") 47 | datastr := fmt.Sprintf("%d%d%d%d%d%d", tnow.Year(), tnow.Month(), tnow.Day(), tnow.Hour(), tnow.Minute(), tnow.Second()) 48 | 49 | fmt.Println(time.Now().Format("2006-01-02_15:04:05"), " ", datastr) 50 | // test0() 51 | // test1()rtrim(cast(data as CHAR(200))) as datacopy 52 | // returndata := openDbString("select top 1 rtrim(cast(data as CHAR(200))) as datacopy,data from ATRes ") 53 | // fmt.Println("result:", returndata) 54 | //openDbString("select code,data,CONVERT(CHAR(23), createtime, 121) as createtime,CONVERT(CHAR(23), updatetime, 121) as updatetime,groupCode,title,seq,valid,commentCount from ATRes ") 55 | CFTablesMap = loadConfig() 56 | // test2() 57 | baseurl := CFTablesMap["url"].(string) 58 | N, _ := strconv.Atoi(CFTablesMap["count"].(string)) 59 | baseTime = time.Now() 60 | // var N = 61 | sem := make(chan string, N) 62 | for i := 0; i < N; i++ { 63 | // fmt.Println("index:", i) 64 | // testLoginAndPost(i) 65 | go func(index int) { 66 | 67 | tnow := time.Now() 68 | starttimeint := (int)(tnow.Sub(baseTime).Seconds() * 1000000) 69 | 70 | fmt.Println("index:", index) 71 | token := postLoginTest() 72 | // fmt.Println("token:", token) 73 | FdMap := getPostData(baseurl+"/UploadResData", getPostUploadResData(token)) 74 | fmt.Println("FdMap:", index, ".", FdMap) 75 | tmptime := time.Now() 76 | subdur := tmptime.Sub(tnow) 77 | tmpint := (int)(subdur.Seconds() * 1000) 78 | fmt.Printf("subdur: ", tmpint) 79 | // sem <- (fmt.Sprintf("%s,%d", tnow.Format("2006-01-02_15:04:05"), tmpint)) 80 | // sem <- (fmt.Sprintf("'%d:%d',%d", tnow.Minute(), tnow.Second(), tmpint)) 81 | sem <- (fmt.Sprintf("%d,%d", starttimeint, tmpint)) 82 | }(i) 83 | } 84 | // var max = 0 85 | outString := "[" 86 | for m := 0; m < N; m++ { 87 | // <-sem 88 | tmp := <-sem 89 | // if tmp > max { 90 | // max = tmp 91 | // } 92 | fmt.Println("FdMap:", tmp) 93 | // outString += fmt.Sprintf("[%d,%d]", m%50, tmp) 94 | outString += fmt.Sprintf("[%s]", tmp) 95 | if m == N-1 { 96 | 97 | } else { 98 | outString += "," 99 | } 100 | } 101 | outString += "]" 102 | fmt.Println("max:", outString) 103 | // writeFileWithData(".config/data.json", outString, N) 104 | writeFileWithData("./config/output.html", outString, N) 105 | } 106 | 107 | var correctCount = 0 108 | 109 | /**测试登录和post数据*/ 110 | func testLoginAndPost(index int) { 111 | 112 | // fmt.Println("index:", index) 113 | token := postLoginTest() 114 | // fmt.Println("token:", token) 115 | FdMap := getPostData("http://172.16.0.137:8088/UploadResData", getPostUploadResData(token)) 116 | if strings.EqualFold(FdMap["result"].(string), "OK") { 117 | correctCount++ 118 | } 119 | fmt.Println("FdMap:", index, ".", correctCount, ".", FdMap) 120 | } 121 | func getPostData(url string, postdata string) map[string]interface{} { 122 | 123 | resp, err := http.Post(url, 124 | "application/json", 125 | strings.NewReader(postdata)) 126 | if err != nil { 127 | fmt.Println(err) 128 | } 129 | 130 | defer resp.Body.Close() 131 | body, err := ioutil.ReadAll(resp.Body) 132 | 133 | if err != nil { 134 | // handle error 135 | } 136 | // FdMap := map[string]interface{} 137 | var FdMap map[string]interface{} 138 | 139 | returnData := string(body) 140 | returnData = strings.Replace(returnData, "\\", "", -1) 141 | returnData = Substr(returnData, 1, len(returnData)-2) 142 | // fmt.Println("returndata:", returnData) 143 | tmpreader := strings.NewReader(returnData) 144 | bytedatas := make([]byte, tmpreader.Len()) 145 | // var bytedatas byte[tmpreader.Len()] 146 | _, errss := tmpreader.Read(bytedatas) 147 | 148 | if errss != nil { 149 | // handle error 150 | } 151 | 152 | if err := json.Unmarshal(bytedatas, &FdMap); err != nil { 153 | fmt.Println("Unmarshal: ", err.Error()) 154 | } 155 | 156 | // fmt.Println("map:", FdMap) 157 | return FdMap 158 | } 159 | func postLoginTest() string { 160 | baseurl := CFTablesMap["url"].(string) 161 | FdMap := getPostData(baseurl+"/GetToken", getPostLoginData()) 162 | 163 | return FdMap["token"].(string) 164 | } 165 | 166 | /**获取登录数据*/ 167 | func getPostLoginData() string { 168 | 169 | var jsonstr string 170 | jsonstr = "{ \"acc\": \"xiaoming\", \"pass\": \"123\", \"imei\": \"ATResData\", \"plaftom\": \"ios\"}" 171 | return jsonstr 172 | } 173 | 174 | /**封装测试数据,封装post数据*/ 175 | func getPostUploadResData(token string) string { 176 | var jsonstr string 177 | jsonstr += "{\"KeyToken\":\"" + token + "\"," 178 | jsonstr += "\"data\":[" 179 | 180 | jsonstr += "{" + getTableData("ATResData") + "}," 181 | jsonstr += "{" + getTableData("ATRes") + "}" 182 | 183 | jsonstr += "]}" 184 | 185 | // fmt.Println(jsonstr) 186 | return jsonstr 187 | } 188 | 189 | /**封装测试数据*/ 190 | func getTableData(tablename string) string { 191 | var jsonstr string 192 | jsonstr += "\"table\":\"" + tablename + "\"," 193 | jsonstr += "\"rows\":[" 194 | 195 | jsonstr += "{" + getTableRowData(tablename) + "}," 196 | jsonstr += "{" + getTableRowData(tablename) + "}" 197 | 198 | jsonstr += "]" 199 | return jsonstr 200 | 201 | } 202 | 203 | /**封装测试数据*/ 204 | func getTableRowData(tablename string) string { 205 | var jsonstr string 206 | if strings.EqualFold(tablename, "ATResData") { 207 | jsonstr += "\"ResCode\":\"asd\"," 208 | jsonstr += "\"comment\":\"3\"," 209 | jsonstr += "\"seq\":\"1\"," 210 | jsonstr += "\"valid\":\"1\"," 211 | jsonstr += "\"usercode\":\"\"," 212 | jsonstr += "\"createtime\":\"\"," 213 | jsonstr += "\"guid\":\"" + GetGuid() + "\"" 214 | } else if strings.EqualFold(tablename, "ATRes") { 215 | jsonstr += "\"data\":\"wbq.jpg\"," 216 | jsonstr += "\"groupCode\":\"haha\"," 217 | jsonstr += "\"title\":\"\"," 218 | jsonstr += "\"valid\":\"1\"," 219 | jsonstr += "\"seq\":\"1\"," 220 | jsonstr += "\"commentCount\":\"4\"," 221 | jsonstr += "\"code\":\"" + GetGuid() + "\"" 222 | 223 | } 224 | return jsonstr 225 | } 226 | 227 | /** 228 | 载入配置的json文件 229 | */ 230 | func loadConfig() map[string]interface{} { 231 | 232 | CFTablesMap, err := readFile("./config/download.config") 233 | if err != nil { 234 | fmt.Println("readFile: ", err.Error()) 235 | return nil 236 | } 237 | // fmt.Println("map:", CFTablesMap["Tables"]) 238 | // tmpmap := CFTablesMap["Tables"].(map[string]interface{}) 239 | // fmt.Println("tmpmap:", tmpmap["ATResData"].(string)) 240 | switch CFTablesMap["Tables"].(type) { 241 | case map[string]interface{}: 242 | // tmpmap := CFTablesMap["Tables"].(map[string]interface{}) 243 | // fmt.Println("tmpmap:", tmpmap["ATResData"].(string)) 244 | // for k,v range tmpmap{} 245 | } 246 | return CFTablesMap 247 | } 248 | 249 | /**获取GUID唯一值*/ 250 | func GetGuid() string { 251 | b := make([]byte, 48) 252 | if _, err := io.ReadFull(rand.Reader, b); err != nil { 253 | return "" 254 | } 255 | h := md5.New() 256 | h.Write([]byte(base64.URLEncoding.EncodeToString(b))) //使用zhifeiya名字做散列值,设定后不要变 257 | return hex.EncodeToString(h.Sum(nil)) 258 | // return GetMd5String(base64.URLEncoding.EncodeToString(b)) 259 | } 260 | 261 | /** 262 | 将输入结果写入文件,data表示要写入的html文件内容,n用来命名文件头的 263 | 文件中存在%s用于写入数据代码 264 | **/ 265 | func writeFileWithData(filename string, data string, n int) { 266 | var tmpstring string 267 | f, _ := os.OpenFile(filename, os.O_RDONLY, 0666) 268 | defer f.Close() 269 | m := bufio.NewReader(f) 270 | char := 0 271 | words := 0 272 | lines := 0 273 | for { 274 | s, ok := m.ReadString('\n') 275 | // fmt.Println(s) 276 | 277 | char += len(s) 278 | words += len(strings.Fields(s)) 279 | lines++ 280 | if ok != nil { 281 | break 282 | } 283 | if strings.Contains(s, "%s") { 284 | 285 | tmpstring += fmt.Sprintf(s, data) + "\n" 286 | } else { 287 | 288 | tmpstring += s + "\n" 289 | } 290 | } 291 | 292 | dirPath := "out" 293 | errdir := os.Mkdir(dirPath, 0) 294 | if errdir != nil { 295 | fmt.Println(errdir.Error()) 296 | } 297 | // tmptime, _ := time.Parse("2006-01-02_15:04:05", time.Now()) 298 | fileName := dirPath + "/" + fmt.Sprintf("%d", n) + "-" + time.Now().Format("20060102_150405") + ".html" 299 | dstFile, err := os.Create(fileName) 300 | if err != nil { 301 | fmt.Println(err.Error()) 302 | return 303 | } 304 | 305 | defer dstFile.Close() 306 | dstFile.WriteString(tmpstring) 307 | } 308 | 309 | /**读取json文件内容转换层map*/ 310 | func readFile(filename string) (map[string]interface{}, error) { 311 | FdMap := map[string]interface{}{} 312 | 313 | bytes, err := ioutil.ReadFile(filename) 314 | if err != nil { 315 | fmt.Println("ReadFile: ", err.Error()) 316 | return nil, err 317 | } 318 | if err := json.Unmarshal(bytes, &FdMap); err != nil { 319 | fmt.Println("Unmarshal: ", err.Error()) 320 | return nil, err 321 | } 322 | return FdMap, nil 323 | } 324 | 325 | /** 326 | 字符串截取函数 327 | */ 328 | func Substr(str string, start, length int) string { 329 | rs := []rune(str) 330 | rl := len(rs) 331 | end := 0 332 | 333 | if start < 0 { 334 | start = rl - 1 + start 335 | } 336 | end = start + length 337 | 338 | if start > end { 339 | start, end = end, start 340 | } 341 | 342 | if start < 0 { 343 | start = 0 344 | } 345 | if start > rl { 346 | start = rl 347 | } 348 | if end < 0 { 349 | end = 0 350 | } 351 | if end > rl { 352 | end = rl 353 | } 354 | 355 | return string(rs[start:end]) 356 | } 357 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # go-post-scatter 2 | go http post echarts scatter 3 | golang 并发测试 http post 并使用echarts输出表表统计运行时间 4 | ##目录介绍 5 | 运行Client生成并发报表 分析基本每次连接执行时间 6 | out 输出目录 7 | config 配置目录 8 | 9 | golang代码修改 10 | 修改config文件夹里面的config/output.html里面需要替换的内容 用%s代替 11 | 12 | 13 | ##修改扩展 14 | 由于连接的是自己的golang服务器, 15 | 需要修改链接的服务器地址, 16 | 和修改代码里面http传输的内容修改才能实现 17 | 修改getPostUploadResData方法 18 | 修改postLoginTest登录测试 19 | ##测试scatter图链接 20 | 21 | * [1000并发图](http://jixieshi999.github.io/go-post-scatter/1000-20150630_105032.html) 22 | * [200并发图](http://jixieshi999.github.io/go-post-scatter/200-20150630_104709.html) 23 | 24 | 25 | -------------------------------------------------------------------------------- /README.md.bak: -------------------------------------------------------------------------------- 1 | # go-post-scatter 2 | go http post echarts scatter 3 | golang 并发测试 http post 并使用echarts输出表表统计运行时间 4 | ### 5 | 运行Client生成并发报表 分析基本每次连接执行时间 6 | 7 | out 输出目录 8 | config 配置目录 9 | 10 | golang代码修改 11 | 修改config文件夹里面的config/output.html里面需要替换的内容 用%s代替 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /config/data.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jixieshi999/go-post-scatter/96bd751a50dd51ea76e7d635ca703b5b4492bf94/config/data.json -------------------------------------------------------------------------------- /config/download.config: -------------------------------------------------------------------------------- 1 | { 2 | "count": "10", 3 | "url": "http://172.16.0.137:8088" 4 | 5 | } -------------------------------------------------------------------------------- /config/download.config.bak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jixieshi999/go-post-scatter/96bd751a50dd51ea76e7d635ca703b5b4492bf94/config/download.config.bak -------------------------------------------------------------------------------- /config/output.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jixieshi999/go-post-scatter/96bd751a50dd51ea76e7d635ca703b5b4492bf94/config/output.html -------------------------------------------------------------------------------- /config/output.html.bak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jixieshi999/go-post-scatter/96bd751a50dd51ea76e7d635ca703b5b4492bf94/config/output.html.bak -------------------------------------------------------------------------------- /config/stylesheets/pygment_trac.css: -------------------------------------------------------------------------------- 1 | .highlight { background: #ffffff; } 2 | .highlight .c { color: #999988; font-style: italic } /* Comment */ 3 | .highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */ 4 | .highlight .k { font-weight: bold } /* Keyword */ 5 | .highlight .o { font-weight: bold } /* Operator */ 6 | .highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */ 7 | .highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */ 8 | .highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */ 9 | .highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */ 10 | .highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */ 11 | .highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */ 12 | .highlight .ge { font-style: italic } /* Generic.Emph */ 13 | .highlight .gr { color: #aa0000 } /* Generic.Error */ 14 | .highlight .gh { color: #999999 } /* Generic.Heading */ 15 | .highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ 16 | .highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */ 17 | .highlight .go { color: #888888 } /* Generic.Output */ 18 | .highlight .gp { color: #555555 } /* Generic.Prompt */ 19 | .highlight .gs { font-weight: bold } /* Generic.Strong */ 20 | .highlight .gu { color: #800080; font-weight: bold; } /* Generic.Subheading */ 21 | .highlight .gt { color: #aa0000 } /* Generic.Traceback */ 22 | .highlight .kc { font-weight: bold } /* Keyword.Constant */ 23 | .highlight .kd { font-weight: bold } /* Keyword.Declaration */ 24 | .highlight .kn { font-weight: bold } /* Keyword.Namespace */ 25 | .highlight .kp { font-weight: bold } /* Keyword.Pseudo */ 26 | .highlight .kr { font-weight: bold } /* Keyword.Reserved */ 27 | .highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */ 28 | .highlight .m { color: #009999 } /* Literal.Number */ 29 | .highlight .s { color: #d14 } /* Literal.String */ 30 | .highlight .na { color: #008080 } /* Name.Attribute */ 31 | .highlight .nb { color: #0086B3 } /* Name.Builtin */ 32 | .highlight .nc { color: #445588; font-weight: bold } /* Name.Class */ 33 | .highlight .no { color: #008080 } /* Name.Constant */ 34 | .highlight .ni { color: #800080 } /* Name.Entity */ 35 | .highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */ 36 | .highlight .nf { color: #990000; font-weight: bold } /* Name.Function */ 37 | .highlight .nn { color: #555555 } /* Name.Namespace */ 38 | .highlight .nt { color: #000080 } /* Name.Tag */ 39 | .highlight .nv { color: #008080 } /* Name.Variable */ 40 | .highlight .ow { font-weight: bold } /* Operator.Word */ 41 | .highlight .w { color: #bbbbbb } /* Text.Whitespace */ 42 | .highlight .mf { color: #009999 } /* Literal.Number.Float */ 43 | .highlight .mh { color: #009999 } /* Literal.Number.Hex */ 44 | .highlight .mi { color: #009999 } /* Literal.Number.Integer */ 45 | .highlight .mo { color: #009999 } /* Literal.Number.Oct */ 46 | .highlight .sb { color: #d14 } /* Literal.String.Backtick */ 47 | .highlight .sc { color: #d14 } /* Literal.String.Char */ 48 | .highlight .sd { color: #d14 } /* Literal.String.Doc */ 49 | .highlight .s2 { color: #d14 } /* Literal.String.Double */ 50 | .highlight .se { color: #d14 } /* Literal.String.Escape */ 51 | .highlight .sh { color: #d14 } /* Literal.String.Heredoc */ 52 | .highlight .si { color: #d14 } /* Literal.String.Interpol */ 53 | .highlight .sx { color: #d14 } /* Literal.String.Other */ 54 | .highlight .sr { color: #009926 } /* Literal.String.Regex */ 55 | .highlight .s1 { color: #d14 } /* Literal.String.Single */ 56 | .highlight .ss { color: #990073 } /* Literal.String.Symbol */ 57 | .highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */ 58 | .highlight .vc { color: #008080 } /* Name.Variable.Class */ 59 | .highlight .vg { color: #008080 } /* Name.Variable.Global */ 60 | .highlight .vi { color: #008080 } /* Name.Variable.Instance */ 61 | .highlight .il { color: #009999 } /* Literal.Number.Integer.Long */ 62 | 63 | .type-csharp .highlight .k { color: #0000FF } 64 | .type-csharp .highlight .kt { color: #0000FF } 65 | .type-csharp .highlight .nf { color: #000000; font-weight: normal } 66 | .type-csharp .highlight .nc { color: #2B91AF } 67 | .type-csharp .highlight .nn { color: #000000 } 68 | .type-csharp .highlight .s { color: #A31515 } 69 | .type-csharp .highlight .sc { color: #A31515 } 70 | -------------------------------------------------------------------------------- /config/stylesheets/stylesheet.css: -------------------------------------------------------------------------------- 1 | /*! normalize.css v3.0.0 | MIT License | git.io/normalize */ 2 | 3 | /** 4 | * 1. Set default font family to sans-serif. 5 | * 2. Prevent iOS text size adjust after orientation change, without disabling 6 | * user zoom. 7 | */ 8 | 9 | html { 10 | font-family: sans-serif; /* 1 */ 11 | -ms-text-size-adjust: 100%; /* 2 */ 12 | -webkit-text-size-adjust: 100%; /* 2 */ 13 | } 14 | 15 | /** 16 | * Remove default margin. 17 | */ 18 | 19 | body { 20 | margin: 0; 21 | } 22 | 23 | /* HTML5 display definitions 24 | ========================================================================== */ 25 | 26 | /** 27 | * Correct `block` display not defined for any HTML5 element in IE 8/9. 28 | * Correct `block` display not defined for `details` or `summary` in IE 10/11 and Firefox. 29 | * Correct `block` display not defined for `main` in IE 11. 30 | */ 31 | 32 | article, 33 | aside, 34 | details, 35 | figcaption, 36 | figure, 37 | footer, 38 | header, 39 | hgroup, 40 | main, 41 | nav, 42 | section, 43 | summary { 44 | display: block; 45 | } 46 | 47 | /** 48 | * 1. Correct `inline-block` display not defined in IE 8/9. 49 | * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera. 50 | */ 51 | 52 | audio, 53 | canvas, 54 | progress, 55 | video { 56 | display: inline-block; /* 1 */ 57 | vertical-align: baseline; /* 2 */ 58 | } 59 | 60 | /** 61 | * Prevent modern browsers from displaying `audio` without controls. 62 | * Remove excess height in iOS 5 devices. 63 | */ 64 | 65 | audio:not([controls]) { 66 | display: none; 67 | height: 0; 68 | } 69 | 70 | /** 71 | * Address `[hidden]` styling not present in IE 8/9/10. 72 | * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22. 73 | */ 74 | 75 | [hidden], 76 | template { 77 | display: none; 78 | } 79 | 80 | /* Links 81 | ========================================================================== */ 82 | 83 | /** 84 | * Remove the gray background color from active links in IE 10. 85 | */ 86 | 87 | a { 88 | background: transparent; 89 | } 90 | 91 | /** 92 | * Improve readability when focused and also mouse hovered in all browsers. 93 | */ 94 | 95 | a:active, 96 | a:hover { 97 | outline: 0; 98 | } 99 | 100 | /* Text-level semantics 101 | ========================================================================== */ 102 | 103 | /** 104 | * Address styling not present in IE 8/9/10/11, Safari, and Chrome. 105 | */ 106 | 107 | abbr[title] { 108 | border-bottom: 1px dotted; 109 | } 110 | 111 | /** 112 | * Address style set to `bolder` in Firefox 4+, Safari, and Chrome. 113 | */ 114 | 115 | b, 116 | strong { 117 | font-weight: bold; 118 | } 119 | 120 | /** 121 | * Address styling not present in Safari and Chrome. 122 | */ 123 | 124 | dfn { 125 | font-style: italic; 126 | } 127 | 128 | /** 129 | * Address variable `h1` font-size and margin within `section` and `article` 130 | * contexts in Firefox 4+, Safari, and Chrome. 131 | */ 132 | 133 | h1 { 134 | font-size: 2em; 135 | margin: 0.67em 0; 136 | } 137 | 138 | /** 139 | * Address styling not present in IE 8/9. 140 | */ 141 | 142 | mark { 143 | background: #ff0; 144 | color: #000; 145 | } 146 | 147 | /** 148 | * Address inconsistent and variable font size in all browsers. 149 | */ 150 | 151 | small { 152 | font-size: 80%; 153 | } 154 | 155 | /** 156 | * Prevent `sub` and `sup` affecting `line-height` in all browsers. 157 | */ 158 | 159 | sub, 160 | sup { 161 | font-size: 75%; 162 | line-height: 0; 163 | position: relative; 164 | vertical-align: baseline; 165 | } 166 | 167 | sup { 168 | top: -0.5em; 169 | } 170 | 171 | sub { 172 | bottom: -0.25em; 173 | } 174 | 175 | /* Embedded content 176 | ========================================================================== */ 177 | 178 | /** 179 | * Remove border when inside `a` element in IE 8/9/10. 180 | */ 181 | 182 | img { 183 | border: 0; 184 | } 185 | 186 | /** 187 | * Correct overflow not hidden in IE 9/10/11. 188 | */ 189 | 190 | svg:not(:root) { 191 | overflow: hidden; 192 | } 193 | 194 | /* Grouping content 195 | ========================================================================== */ 196 | 197 | /** 198 | * Address margin not present in IE 8/9 and Safari. 199 | */ 200 | 201 | figure { 202 | margin: 1em 40px; 203 | } 204 | 205 | /** 206 | * Address differences between Firefox and other browsers. 207 | */ 208 | 209 | hr { 210 | -moz-box-sizing: content-box; 211 | box-sizing: content-box; 212 | height: 0; 213 | } 214 | 215 | /** 216 | * Contain overflow in all browsers. 217 | */ 218 | 219 | pre { 220 | overflow: auto; 221 | } 222 | 223 | /** 224 | * Address odd `em`-unit font size rendering in all browsers. 225 | */ 226 | 227 | code, 228 | kbd, 229 | pre, 230 | samp { 231 | font-family: monospace, monospace; 232 | font-size: 1em; 233 | } 234 | 235 | /* Forms 236 | ========================================================================== */ 237 | 238 | /** 239 | * Known limitation: by default, Chrome and Safari on OS X allow very limited 240 | * styling of `select`, unless a `border` property is set. 241 | */ 242 | 243 | /** 244 | * 1. Correct color not being inherited. 245 | * Known issue: affects color of disabled elements. 246 | * 2. Correct font properties not being inherited. 247 | * 3. Address margins set differently in Firefox 4+, Safari, and Chrome. 248 | */ 249 | 250 | button, 251 | input, 252 | optgroup, 253 | select, 254 | textarea { 255 | color: inherit; /* 1 */ 256 | font: inherit; /* 2 */ 257 | margin: 0; /* 3 */ 258 | } 259 | 260 | /** 261 | * Address `overflow` set to `hidden` in IE 8/9/10/11. 262 | */ 263 | 264 | button { 265 | overflow: visible; 266 | } 267 | 268 | /** 269 | * Address inconsistent `text-transform` inheritance for `button` and `select`. 270 | * All other form control elements do not inherit `text-transform` values. 271 | * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera. 272 | * Correct `select` style inheritance in Firefox. 273 | */ 274 | 275 | button, 276 | select { 277 | text-transform: none; 278 | } 279 | 280 | /** 281 | * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` 282 | * and `video` controls. 283 | * 2. Correct inability to style clickable `input` types in iOS. 284 | * 3. Improve usability and consistency of cursor style between image-type 285 | * `input` and others. 286 | */ 287 | 288 | button, 289 | html input[type="button"], /* 1 */ 290 | input[type="reset"], 291 | input[type="submit"] { 292 | -webkit-appearance: button; /* 2 */ 293 | cursor: pointer; /* 3 */ 294 | } 295 | 296 | /** 297 | * Re-set default cursor for disabled elements. 298 | */ 299 | 300 | button[disabled], 301 | html input[disabled] { 302 | cursor: default; 303 | } 304 | 305 | /** 306 | * Remove inner padding and border in Firefox 4+. 307 | */ 308 | 309 | button::-moz-focus-inner, 310 | input::-moz-focus-inner { 311 | border: 0; 312 | padding: 0; 313 | } 314 | 315 | /** 316 | * Address Firefox 4+ setting `line-height` on `input` using `!important` in 317 | * the UA stylesheet. 318 | */ 319 | 320 | input { 321 | line-height: normal; 322 | } 323 | 324 | /** 325 | * It's recommended that you don't attempt to style these elements. 326 | * Firefox's implementation doesn't respect box-sizing, padding, or width. 327 | * 328 | * 1. Address box sizing set to `content-box` in IE 8/9/10. 329 | * 2. Remove excess padding in IE 8/9/10. 330 | */ 331 | 332 | input[type="checkbox"], 333 | input[type="radio"] { 334 | box-sizing: border-box; /* 1 */ 335 | padding: 0; /* 2 */ 336 | } 337 | 338 | /** 339 | * Fix the cursor style for Chrome's increment/decrement buttons. For certain 340 | * `font-size` values of the `input`, it causes the cursor style of the 341 | * decrement button to change from `default` to `text`. 342 | */ 343 | 344 | input[type="number"]::-webkit-inner-spin-button, 345 | input[type="number"]::-webkit-outer-spin-button { 346 | height: auto; 347 | } 348 | 349 | /** 350 | * 1. Address `appearance` set to `searchfield` in Safari and Chrome. 351 | * 2. Address `box-sizing` set to `border-box` in Safari and Chrome 352 | * (include `-moz` to future-proof). 353 | */ 354 | 355 | input[type="search"] { 356 | -webkit-appearance: textfield; /* 1 */ 357 | -moz-box-sizing: content-box; 358 | -webkit-box-sizing: content-box; /* 2 */ 359 | box-sizing: content-box; 360 | } 361 | 362 | /** 363 | * Remove inner padding and search cancel button in Safari and Chrome on OS X. 364 | * Safari (but not Chrome) clips the cancel button when the search input has 365 | * padding (and `textfield` appearance). 366 | */ 367 | 368 | input[type="search"]::-webkit-search-cancel-button, 369 | input[type="search"]::-webkit-search-decoration { 370 | -webkit-appearance: none; 371 | } 372 | 373 | /** 374 | * Define consistent border, margin, and padding. 375 | */ 376 | 377 | fieldset { 378 | border: 1px solid #c0c0c0; 379 | margin: 0 2px; 380 | padding: 0.35em 0.625em 0.75em; 381 | } 382 | 383 | /** 384 | * 1. Correct `color` not being inherited in IE 8/9/10/11. 385 | * 2. Remove padding so people aren't caught out if they zero out fieldsets. 386 | */ 387 | 388 | legend { 389 | border: 0; /* 1 */ 390 | padding: 0; /* 2 */ 391 | } 392 | 393 | /** 394 | * Remove default vertical scrollbar in IE 8/9/10/11. 395 | */ 396 | 397 | textarea { 398 | overflow: auto; 399 | } 400 | 401 | /** 402 | * Don't inherit the `font-weight` (applied by a rule above). 403 | * NOTE: the default cannot safely be changed in Chrome and Safari on OS X. 404 | */ 405 | 406 | optgroup { 407 | font-weight: bold; 408 | } 409 | 410 | /* Tables 411 | ========================================================================== */ 412 | 413 | /** 414 | * Remove most spacing between table cells. 415 | */ 416 | 417 | table { 418 | border-collapse: collapse; 419 | border-spacing: 0; 420 | } 421 | 422 | td, 423 | th { 424 | padding: 0; 425 | } 426 | 427 | 428 | /* Style */ 429 | 430 | body { 431 | font-size: 15px; 432 | font-family: Arial, Arial, Helvetica, sans-serif; 433 | line-height: 1.5; 434 | background: #D1D1D1; 435 | } 436 | 437 | a { 438 | color: #63a52a; 439 | text-decoration: none; 440 | transition: opacity ease-in-out 0.3s; 441 | -webkit-transition: opacity ease-in-out 0.3s; /* Safari <=6.1, Android <= 4.3 */ 442 | } 443 | 444 | a:hover { 445 | text-decoration: underline; 446 | color: #90D355; 447 | } 448 | 449 | h1.title { 450 | margin: 30px 20px 10px; 451 | font-size: 60px; 452 | font-weight: bold; 453 | font-style: italic; 454 | font-family:Georgia, serif; 455 | text-align: center; 456 | } 457 | 458 | .wrapper { 459 | width: 675px; 460 | margin: 0 auto; 461 | } 462 | 463 | #container { 464 | border: 1px solid #2a2a2a; 465 | background: #ddd url(../images/pattern.png); 466 | box-shadow: 0 0 5px #b1b1b1; 467 | } 468 | 469 | p.tagline { 470 | padding: 20px 20px 0; 471 | color: #fff; 472 | font-size: 17px; 473 | } 474 | 475 | #main { 476 | margin-top: 20px; 477 | padding: 0 20px 90px; 478 | background-color: #fff; 479 | } 480 | 481 | .download-bar { 482 | background: #222; 483 | border: 5px solid #444; 484 | padding: 10px; 485 | margin: 0 -35px 20px; 486 | position: relative; 487 | } 488 | 489 | .download-bar .inner { 490 | overflow: hidden; 491 | } 492 | 493 | .download-bar .watch-fork iframe { 494 | display: block; 495 | float: left; 496 | border-right: 1px solid #ddd; 497 | padding-right: 5px; 498 | } 499 | .download-bar .watch-fork iframe.last { 500 | border-right: 0 none; 501 | padding-right: 0; 502 | padding-left: 5px; 503 | border-left: 1px solid #fff; 504 | } 505 | .download-bar .watch-fork { 506 | overflow: hidden; 507 | float: right; 508 | background-color: #eee; 509 | padding: 5px; 510 | border-radius: 3px; 511 | } 512 | 513 | .download-bar .blc { 514 | border: 10px solid black; 515 | border-color: transparent transparent black; 516 | width: 0; 517 | height: 0; 518 | display: block; 519 | position: absolute; 520 | bottom: -15px; 521 | left: 0; 522 | transform: rotate(45deg); 523 | -ms-transform: rotate(45deg); /* IE9 */ 524 | -webkit-transform: rotate(45deg); /* 2014 current */ 525 | } 526 | 527 | .download-bar .trc { 528 | border: 10px solid black; 529 | border-color: black transparent transparent; 530 | width: 0; 531 | height: 0; 532 | display: block; 533 | position: absolute; 534 | top: -15px; 535 | right: 0; 536 | transform: rotate(45deg); 537 | -ms-transform: rotate(45deg); /* IE9 */ 538 | -webkit-transform: rotate(45deg); /* 2014 current */ 539 | } 540 | 541 | .download-bar .avatar { 542 | border: 1px solid black; 543 | display: block; 544 | padding: 4px; 545 | float: left; 546 | } 547 | 548 | .download-bar .avatar img { 549 | display: block; 550 | } 551 | 552 | .download-bar a.code { 553 | background: transparent url(../images/code.png) no-repeat 0 2px; 554 | padding-left: 35px; 555 | margin-top: 8px; 556 | display: block; 557 | float: left; 558 | text-indent: 0; 559 | width: auto; 560 | height: auto; 561 | opacity: 1; 562 | filter:alpha(opacity=100); /* IE 5-7 */ 563 | } 564 | 565 | .current-section { 566 | position: fixed; 567 | top: 0; 568 | left: 50%; 569 | width: 693px; 570 | margin-left: -352px; 571 | background: #222; 572 | border: 5px solid #444; 573 | color: #fff; 574 | opacity: 0; 575 | visibility: hidden; 576 | transition: opacity ease-in-out 0.3s; 577 | -webkit-transition: opacity ease-in-out 0.3s; /* Safari <=6.1, Android <= 4.3 */ 578 | } 579 | 580 | .current-section p { 581 | padding: 5px 27px; 582 | font-size: 24px; 583 | font-weight: bold; 584 | } 585 | 586 | .current-section a { 587 | float: right; 588 | text-indent: -10000px; 589 | background: transparent url(../images/top.png) no-repeat 0 0; 590 | width: 20px; 591 | height: 20px; 592 | opacity: 0.8; 593 | margin-right: 12px; 594 | margin-top: 12px; 595 | opacity: 0.8; 596 | filter:alpha(opacity=80); /* IE 5-7 */ 597 | transition: opacity ease-in-out 0.3s; 598 | -webkit-transition: opacity ease-in-out 0.3s; /* Safari <=6.1, Android <= 4.3 */ 599 | } 600 | 601 | .current-section a:hover { 602 | opacity: 1; 603 | filter:alpha(opacity=100); /* IE 5-7 */ 604 | } 605 | 606 | .current-section a.zip { 607 | margin-right: 8px; 608 | } 609 | 610 | a.zip, 611 | a.zip span { 612 | background: transparent url(../images/zip.png) no-repeat 0 0; 613 | width: 30px; 614 | height: 21px; 615 | display: inline-block; 616 | text-indent: -10000px; 617 | opacity: 0.8; 618 | filter:alpha(opacity=80); /* IE 5-7 */ 619 | transition: opacity ease-in-out 0.3s; 620 | -webkit-transition: opacity ease-in-out 0.3s; /* Safari <=6.1, Android <= 4.3 */ 621 | } 622 | 623 | a.tar, 624 | a.tar span { 625 | background: transparent url(../images/tar.png) no-repeat 0 0; 626 | width: 30px; 627 | height: 21px; 628 | display: inline-block; 629 | text-indent: -10000px; 630 | opacity: 0.8; 631 | filter:alpha(opacity=80); /* IE 5-7 */ 632 | transition: opacity ease-in-out 0.3s; 633 | -webkit-transition: opacity ease-in-out 0.3s; /* Safari <=6.1, Android <= 4.3 */ 634 | } 635 | 636 | a.code { 637 | background: transparent url(../images/code.png) no-repeat 0 2px; 638 | width: 30px; 639 | height: 21px; 640 | display: block; 641 | display: inline-block; 642 | text-indent: -10000px; 643 | opacity: 0.8; 644 | filter:alpha(opacity=80); /* IE 5-7 */ 645 | transition: opacity ease-in-out 0.3s; 646 | -webkit-transition: opacity ease-in-out 0.3s; /* Safari <=6.1, Android <= 4.3 */ 647 | } 648 | 649 | a.zip:hover, 650 | a.tar:hover, 651 | a.code:hover { 652 | opacity: 1; 653 | filter:alpha(opacity=100); 654 | } 655 | 656 | a.download-button { 657 | border: 1px solid black; 658 | border-radius: 3px; 659 | display: inline-block; 660 | text-indent: 0!important; 661 | width: auto; 662 | float: right; 663 | background: #999; /* for non-css3 browsers */ 664 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#37ADD4', endColorstr='#1B657E'); /* IE <= 9 */ 665 | background: -webkit-gradient(linear, left top, left bottom, from(#37ADD4), to(#1B657E)); /* ancient webkit browsers */ 666 | background: -webkit-linear-gradient(top, #37ADD4, #1B657E); /* Safari <=6.1, Android <= 4.3 */ 667 | background: linear-gradient(to bottom, #37ADD4, #1B657E); 668 | height: auto; 669 | margin-left: 10px; 670 | } 671 | 672 | a.download-button span { 673 | background-position: 10px 5px; 674 | width: auto; 675 | height: auto; 676 | padding: 5px 10px; 677 | padding-left: 45px; 678 | display: inline-block; 679 | text-indent: 0!important; 680 | color: #fff; 681 | } 682 | 683 | footer { 684 | margin-bottom: 60px; 685 | padding-bottom: 60px; 686 | } 687 | 688 | footer .owner { 689 | background: #222; 690 | border: 5px solid #444; 691 | padding: 5px 15px; 692 | margin: -67px -10px 35px; 693 | color: #d6d6d6; 694 | } 695 | 696 | footer .creds small { 697 | float: right; 698 | font-size: 10px; 699 | text-align: right; 700 | margin-left: 15px; 701 | } 702 | 703 | footer .owner .avatar { 704 | background-color: #666; 705 | display: block; 706 | margin: -19px 10px 0 0; 707 | width: 60px; 708 | float: left; 709 | } 710 | 711 | footer .owner img { 712 | display: block; 713 | border: 1px solid #2a2a2a; 714 | margin: 5px; 715 | } 716 | 717 | footer .owner p { 718 | font-family:Georgia, serif; 719 | } 720 | 721 | footer .owner p a { 722 | font-size: 16px; 723 | font-style: italic; 724 | } 725 | 726 | /* Markdown */ 727 | .markdown-body h1, 728 | .markdown-body h2, 729 | .markdown-body h3, 730 | .markdown-body h4, 731 | .markdown-body h5, 732 | .markdown-body h6, 733 | .markdown-body p, 734 | .markdown-body pre, 735 | .markdown-body ul, 736 | .markdown-body ol, 737 | .markdown-body dl, 738 | .markdown-body table, 739 | .markdown-body blockquote { 740 | margin-bottom: 20px; 741 | } 742 | 743 | .markdown-body h1, 744 | .markdown-body h2, 745 | .markdown-body h3, 746 | .markdown-body h4, 747 | .markdown-body h5, 748 | .markdown-body h6 { 749 | font-weight: bold; 750 | } 751 | 752 | .markdown-body h1 { 753 | font-size: 28px; 754 | } 755 | 756 | .markdown-body h2 { 757 | font-size: 24px; 758 | color: #557398; 759 | } 760 | 761 | .markdown-body h3 { 762 | font-size: 20px; 763 | } 764 | 765 | .markdown-body h4 { 766 | font-size: 18px; 767 | } 768 | 769 | .markdown-body h5 { 770 | font-size: 16px; 771 | } 772 | 773 | .markdown-body pre { 774 | padding: 10px 70px 10px 0; 775 | margin-left: -20px; 776 | margin-right: -20px; 777 | font-family: 'Monaco', 'Lucida Console', monospace; 778 | font-size: 13px; 779 | line-height: 20px; 780 | box-shadow: inset 0 0 5px #000; 781 | word-wrap: break-word; 782 | background-color:#3b3b3b; 783 | color: #d6d6d6; 784 | } 785 | 786 | .markdown-body pre.lines { 787 | font-size: 12px; 788 | margin:0 10px 0 -20px; 789 | padding: 10px; 790 | float: left; 791 | display: block; 792 | text-align: right; 793 | box-shadow: none; 794 | background-color:#2a2a2a; 795 | color: #d6d6d6; 796 | } 797 | 798 | .markdown-body ul, 799 | .markdown-body ol { 800 | padding-left: 30px; 801 | } 802 | 803 | .markdown-body ul { 804 | list-style-type: disc; 805 | } 806 | 807 | .markdown-body ol { 808 | list-style-type: decimal; 809 | } 810 | 811 | .markdown-body li, 812 | .markdown-body li p, 813 | .markdown-body dd, 814 | .markdown-body dd p { 815 | margin-bottom: 10px; 816 | } 817 | 818 | .markdown-body li pre, 819 | .markdown-body li pre.lines, 820 | .markdown-body dd pre, 821 | .markdown-body dd pre.lines { 822 | margin-left: -35px; 823 | } 824 | 825 | .markdown-body dt { 826 | font-weight: bold; 827 | font-style: italic; 828 | } 829 | 830 | .markdown-body dd { 831 | margin-left: 15px; 832 | } 833 | 834 | .markdown-body table { 835 | width: 673px; 836 | margin-left: -20px; 837 | margin-right: -20px; 838 | } 839 | 840 | .markdown-body tbody { 841 | border-top: 2px solid #557398; 842 | border-bottom: 2px solid #557398; 843 | background-color: #EBEFF4; 844 | } 845 | 846 | .markdown-body table td * { 847 | margin: 0; 848 | } 849 | 850 | .markdown-body td { 851 | border-right: 1px solid #557398; 852 | border-bottom: 1px solid #557398; 853 | padding: 5px; 854 | } 855 | 856 | .markdown-body td:first-child, 857 | .markdown-body th:first-child { 858 | width: 30%; 859 | padding-left: 20px; 860 | } 861 | 862 | .markdown-body td:last-child { 863 | border-right: 0 none; 864 | } 865 | 866 | .markdown-body th { 867 | font-size: 18px; 868 | font-weight: bold; 869 | text-align: left; 870 | padding: 5px; 871 | } 872 | 873 | .markdown-body tt { 874 | background-color:#3b3b3b; 875 | color: #d6d6d6; 876 | padding: 2px 3px; 877 | } 878 | 879 | .markdown-body blockquote { 880 | font-style: italic; 881 | font-family:Georgia, serif; 882 | font-size: 17px; 883 | border-top: 3px solid #333; 884 | border-bottom: 3px solid #333; 885 | padding: 10px 20px; 886 | padding-left: 50px; 887 | } 888 | 889 | .markdown-body blockquote:before { 890 | font-style: italic; 891 | font-family: Georgia, serif; 892 | font-size: 90px; 893 | height: 90px; 894 | margin-left: -60px; 895 | margin-top: -25px; 896 | content: "‟"; 897 | display: block; 898 | float: left; 899 | } 900 | 901 | .markdown-body img { 902 | max-width: 100%; 903 | box-sizing: border-box; 904 | } 905 | 906 | .highlight { background: #ffffff; } 907 | .highlight .c { color: #999988; font-style: italic } /* Comment */ 908 | .highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */ 909 | .highlight .k { font-weight: bold } /* Keyword */ 910 | .highlight .o { font-weight: bold } /* Operator */ 911 | .highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */ 912 | .highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */ 913 | .highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */ 914 | .highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */ 915 | .highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */ 916 | .highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */ 917 | .highlight .ge { font-style: italic } /* Generic.Emph */ 918 | .highlight .gr { color: #aa0000 } /* Generic.Error */ 919 | .highlight .gh { color: #999999 } /* Generic.Heading */ 920 | .highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ 921 | .highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */ 922 | .highlight .go { color: #888888 } /* Generic.Output */ 923 | .highlight .gp { color: #555555 } /* Generic.Prompt */ 924 | .highlight .gs { font-weight: bold } /* Generic.Strong */ 925 | .highlight .gu { color: #800080; font-weight: bold; } /* Generic.Subheading */ 926 | .highlight .gt { color: #aa0000 } /* Generic.Traceback */ 927 | .highlight .kc { font-weight: bold } /* Keyword.Constant */ 928 | .highlight .kd { font-weight: bold } /* Keyword.Declaration */ 929 | .highlight .kn { font-weight: bold } /* Keyword.Namespace */ 930 | .highlight .kp { font-weight: bold } /* Keyword.Pseudo */ 931 | .highlight .kr { font-weight: bold } /* Keyword.Reserved */ 932 | .highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */ 933 | .highlight .m { color: #009999 } /* Literal.Number */ 934 | .highlight .s { color: #d14 } /* Literal.String */ 935 | .highlight .na { color: #008080 } /* Name.Attribute */ 936 | .highlight .nb { color: #0086B3 } /* Name.Builtin */ 937 | .highlight .nc { color: #445588; font-weight: bold } /* Name.Class */ 938 | .highlight .no { color: #008080 } /* Name.Constant */ 939 | .highlight .ni { color: #800080 } /* Name.Entity */ 940 | .highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */ 941 | .highlight .nf { color: #990000; font-weight: bold } /* Name.Function */ 942 | .highlight .nn { color: #555555 } /* Name.Namespace */ 943 | .highlight .nt { color: #000080 } /* Name.Tag */ 944 | .highlight .nv { color: #008080 } /* Name.Variable */ 945 | .highlight .ow { font-weight: bold } /* Operator.Word */ 946 | .highlight .w { color: #bbbbbb } /* Text.Whitespace */ 947 | .highlight .mf { color: #009999 } /* Literal.Number.Float */ 948 | .highlight .mh { color: #009999 } /* Literal.Number.Hex */ 949 | .highlight .mi { color: #009999 } /* Literal.Number.Integer */ 950 | .highlight .mo { color: #009999 } /* Literal.Number.Oct */ 951 | .highlight .sb { color: #d14 } /* Literal.String.Backtick */ 952 | .highlight .sc { color: #d14 } /* Literal.String.Char */ 953 | .highlight .sd { color: #d14 } /* Literal.String.Doc */ 954 | .highlight .s2 { color: #d14 } /* Literal.String.Double */ 955 | .highlight .se { color: #d14 } /* Literal.String.Escape */ 956 | .highlight .sh { color: #d14 } /* Literal.String.Heredoc */ 957 | .highlight .si { color: #d14 } /* Literal.String.Interpol */ 958 | .highlight .sx { color: #d14 } /* Literal.String.Other */ 959 | .highlight .sr { color: #009926 } /* Literal.String.Regex */ 960 | .highlight .s1 { color: #d14 } /* Literal.String.Single */ 961 | .highlight .ss { color: #990073 } /* Literal.String.Symbol */ 962 | .highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */ 963 | .highlight .vc { color: #008080 } /* Name.Variable.Class */ 964 | .highlight .vg { color: #008080 } /* Name.Variable.Global */ 965 | .highlight .vi { color: #008080 } /* Name.Variable.Instance */ 966 | .highlight .il { color: #009999 } /* Literal.Number.Integer.Long */ -------------------------------------------------------------------------------- /config/test.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jixieshi999/go-post-scatter/96bd751a50dd51ea76e7d635ca703b5b4492bf94/config/test.html -------------------------------------------------------------------------------- /config/test.html.bak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jixieshi999/go-post-scatter/96bd751a50dd51ea76e7d635ca703b5b4492bf94/config/test.html.bak -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Go-post-scatter by jixieshi999 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 20 | 21 |
22 |

23 | go-post-scatter

24 | 25 |

golang http post echarts scatter

26 | 27 |
$ cd your_repo_root/repo_name
28 | $ git fetch origin
29 | $ git checkout gh-pages
30 | 
31 | 32 |

If you're using the GitHub for Mac, simply sync your repository and you'll see the new branch.

33 | 34 |

35 | Designer Templates

36 | 37 |

We've crafted some handsome templates for you to use. Go ahead and continue to layouts to browse through them. You can easily go back to edit your page before publishing. After publishing your page, you can revisit the page generator and switch to another theme. Your Page content will be preserved if it remained markdown format.

38 | 39 |

40 | Rather Drive Stick?

41 | 42 |

If you prefer to not use the automatic generator, push a branch named gh-pages to your repository to create a page manually. In addition to supporting regular HTML content, GitHub Pages support Jekyll, a simple, blog aware static site generator written by our own Tom Preston-Werner. Jekyll makes it easy to create site-wide headers and footers without having to copy them across every page. It also offers intelligent blog support and other advanced templating features.

43 | 44 |

45 | Authors and Contributors

46 | 47 |

You can @mention a GitHub username to generate a link to their profile. The resulting <a> element will link to the contributor's GitHub Profile. For example: In 2007, Chris Wanstrath (@defunkt), PJ Hyett (@pjhyett), and Tom Preston-Werner (@mojombo) founded GitHub.

48 | 49 |

50 | Support or Contact

51 | 52 |

Having trouble with Pages? Check out the documentation at https://help.github.com/pages or contact support@github.com and we’ll help you sort it out.

53 | 54 | 59 | 60 |
61 | 62 | 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /index.html.bak: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Go-post-scatter by jixieshi999 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 20 | 21 |
22 |

23 | go-post-scatter

24 | 25 |

golang http post echarts scatter

26 |

测试1000并发scatter表格

27 |

测试200并发scatter表格

28 |
29 |
$ cd your_repo_root/repo_name
30 | $ git fetch origin
31 | $ git checkout gh-pages
32 | 
33 | 34 | 35 | 40 | 41 |
42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /out/10-20150630_105405.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jixieshi999/go-post-scatter/96bd751a50dd51ea76e7d635ca703b5b4492bf94/out/10-20150630_105405.html -------------------------------------------------------------------------------- /out/10-20150630_111524.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jixieshi999/go-post-scatter/96bd751a50dd51ea76e7d635ca703b5b4492bf94/out/10-20150630_111524.html -------------------------------------------------------------------------------- /out/10-20150630_114714.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jixieshi999/go-post-scatter/96bd751a50dd51ea76e7d635ca703b5b4492bf94/out/10-20150630_114714.html -------------------------------------------------------------------------------- /out/1000-20150630_105032.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jixieshi999/go-post-scatter/96bd751a50dd51ea76e7d635ca703b5b4492bf94/out/1000-20150630_105032.html -------------------------------------------------------------------------------- /out/200-20150630_104232.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jixieshi999/go-post-scatter/96bd751a50dd51ea76e7d635ca703b5b4492bf94/out/200-20150630_104232.html -------------------------------------------------------------------------------- /out/200-20150630_104709.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jixieshi999/go-post-scatter/96bd751a50dd51ea76e7d635ca703b5b4492bf94/out/200-20150630_104709.html -------------------------------------------------------------------------------- /params.json: -------------------------------------------------------------------------------- 1 | {"name":"Go-post-scatter","tagline":"go http post echarts scatter ","body":"### go-post-scatter\r\ngolang http post echarts scatter\r\n\r\n```\r\n$ cd your_repo_root/repo_name\r\n$ git fetch origin\r\n$ git checkout gh-pages\r\n```\r\n\r\nIf you're using the GitHub for Mac, simply sync your repository and you'll see the new branch.\r\n\r\n### Designer Templates\r\nWe've crafted some handsome templates for you to use. Go ahead and continue to layouts to browse through them. You can easily go back to edit your page before publishing. After publishing your page, you can revisit the page generator and switch to another theme. Your Page content will be preserved if it remained markdown format.\r\n\r\n### Rather Drive Stick?\r\nIf you prefer to not use the automatic generator, push a branch named `gh-pages` to your repository to create a page manually. In addition to supporting regular HTML content, GitHub Pages support Jekyll, a simple, blog aware static site generator written by our own Tom Preston-Werner. Jekyll makes it easy to create site-wide headers and footers without having to copy them across every page. It also offers intelligent blog support and other advanced templating features.\r\n\r\n### Authors and Contributors\r\nYou can @mention a GitHub username to generate a link to their profile. The resulting `` element will link to the contributor's GitHub Profile. For example: In 2007, Chris Wanstrath (@defunkt), PJ Hyett (@pjhyett), and Tom Preston-Werner (@mojombo) founded GitHub.\r\n\r\n### Support or Contact\r\nHaving trouble with Pages? Check out the documentation at https://help.github.com/pages or contact support@github.com and we’ll help you sort it out.\r\n","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."} -------------------------------------------------------------------------------- /stylesheets/github-light.css: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2014 GitHub Inc. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | 16 | */ 17 | 18 | .pl-c /* comment */ { 19 | color: #969896; 20 | } 21 | 22 | .pl-c1 /* constant, markup.raw, meta.diff.header, meta.module-reference, meta.property-name, support, support.constant, support.variable, variable.other.constant */, 23 | .pl-s .pl-v /* string variable */ { 24 | color: #0086b3; 25 | } 26 | 27 | .pl-e /* entity */, 28 | .pl-en /* entity.name */ { 29 | color: #795da3; 30 | } 31 | 32 | .pl-s .pl-s1 /* string source */, 33 | .pl-smi /* storage.modifier.import, storage.modifier.package, storage.type.java, variable.other, variable.parameter.function */ { 34 | color: #333; 35 | } 36 | 37 | .pl-ent /* entity.name.tag */ { 38 | color: #63a35c; 39 | } 40 | 41 | .pl-k /* keyword, storage, storage.type */ { 42 | color: #a71d5d; 43 | } 44 | 45 | .pl-pds /* punctuation.definition.string, string.regexp.character-class */, 46 | .pl-s /* string */, 47 | .pl-s .pl-pse .pl-s1 /* string punctuation.section.embedded source */, 48 | .pl-sr /* string.regexp */, 49 | .pl-sr .pl-cce /* string.regexp constant.character.escape */, 50 | .pl-sr .pl-sra /* string.regexp string.regexp.arbitrary-repitition */, 51 | .pl-sr .pl-sre /* string.regexp source.ruby.embedded */ { 52 | color: #183691; 53 | } 54 | 55 | .pl-v /* variable */ { 56 | color: #ed6a43; 57 | } 58 | 59 | .pl-id /* invalid.deprecated */ { 60 | color: #b52a1d; 61 | } 62 | 63 | .pl-ii /* invalid.illegal */ { 64 | background-color: #b52a1d; 65 | color: #f8f8f8; 66 | } 67 | 68 | .pl-sr .pl-cce /* string.regexp constant.character.escape */ { 69 | color: #63a35c; 70 | font-weight: bold; 71 | } 72 | 73 | .pl-ml /* markup.list */ { 74 | color: #693a17; 75 | } 76 | 77 | .pl-mh /* markup.heading */, 78 | .pl-mh .pl-en /* markup.heading entity.name */, 79 | .pl-ms /* meta.separator */ { 80 | color: #1d3e81; 81 | font-weight: bold; 82 | } 83 | 84 | .pl-mq /* markup.quote */ { 85 | color: #008080; 86 | } 87 | 88 | .pl-mi /* markup.italic */ { 89 | color: #333; 90 | font-style: italic; 91 | } 92 | 93 | .pl-mb /* markup.bold */ { 94 | color: #333; 95 | font-weight: bold; 96 | } 97 | 98 | .pl-md /* markup.deleted, meta.diff.header.from-file */ { 99 | background-color: #ffecec; 100 | color: #bd2c00; 101 | } 102 | 103 | .pl-mi1 /* markup.inserted, meta.diff.header.to-file */ { 104 | background-color: #eaffea; 105 | color: #55a532; 106 | } 107 | 108 | .pl-mdr /* meta.diff.range */ { 109 | color: #795da3; 110 | font-weight: bold; 111 | } 112 | 113 | .pl-mo /* meta.output */ { 114 | color: #1d3e81; 115 | } 116 | 117 | -------------------------------------------------------------------------------- /stylesheets/normalize.css: -------------------------------------------------------------------------------- 1 | /*! normalize.css v3.0.2 | MIT License | git.io/normalize */ 2 | 3 | /** 4 | * 1. Set default font family to sans-serif. 5 | * 2. Prevent iOS text size adjust after orientation change, without disabling 6 | * user zoom. 7 | */ 8 | 9 | html { 10 | font-family: sans-serif; /* 1 */ 11 | -ms-text-size-adjust: 100%; /* 2 */ 12 | -webkit-text-size-adjust: 100%; /* 2 */ 13 | } 14 | 15 | /** 16 | * Remove default margin. 17 | */ 18 | 19 | body { 20 | margin: 0; 21 | } 22 | 23 | /* HTML5 display definitions 24 | ========================================================================== */ 25 | 26 | /** 27 | * Correct `block` display not defined for any HTML5 element in IE 8/9. 28 | * Correct `block` display not defined for `details` or `summary` in IE 10/11 29 | * and Firefox. 30 | * Correct `block` display not defined for `main` in IE 11. 31 | */ 32 | 33 | article, 34 | aside, 35 | details, 36 | figcaption, 37 | figure, 38 | footer, 39 | header, 40 | hgroup, 41 | main, 42 | menu, 43 | nav, 44 | section, 45 | summary { 46 | display: block; 47 | } 48 | 49 | /** 50 | * 1. Correct `inline-block` display not defined in IE 8/9. 51 | * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera. 52 | */ 53 | 54 | audio, 55 | canvas, 56 | progress, 57 | video { 58 | display: inline-block; /* 1 */ 59 | vertical-align: baseline; /* 2 */ 60 | } 61 | 62 | /** 63 | * Prevent modern browsers from displaying `audio` without controls. 64 | * Remove excess height in iOS 5 devices. 65 | */ 66 | 67 | audio:not([controls]) { 68 | display: none; 69 | height: 0; 70 | } 71 | 72 | /** 73 | * Address `[hidden]` styling not present in IE 8/9/10. 74 | * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22. 75 | */ 76 | 77 | [hidden], 78 | template { 79 | display: none; 80 | } 81 | 82 | /* Links 83 | ========================================================================== */ 84 | 85 | /** 86 | * Remove the gray background color from active links in IE 10. 87 | */ 88 | 89 | a { 90 | background-color: transparent; 91 | } 92 | 93 | /** 94 | * Improve readability when focused and also mouse hovered in all browsers. 95 | */ 96 | 97 | a:active, 98 | a:hover { 99 | outline: 0; 100 | } 101 | 102 | /* Text-level semantics 103 | ========================================================================== */ 104 | 105 | /** 106 | * Address styling not present in IE 8/9/10/11, Safari, and Chrome. 107 | */ 108 | 109 | abbr[title] { 110 | border-bottom: 1px dotted; 111 | } 112 | 113 | /** 114 | * Address style set to `bolder` in Firefox 4+, Safari, and Chrome. 115 | */ 116 | 117 | b, 118 | strong { 119 | font-weight: bold; 120 | } 121 | 122 | /** 123 | * Address styling not present in Safari and Chrome. 124 | */ 125 | 126 | dfn { 127 | font-style: italic; 128 | } 129 | 130 | /** 131 | * Address variable `h1` font-size and margin within `section` and `article` 132 | * contexts in Firefox 4+, Safari, and Chrome. 133 | */ 134 | 135 | h1 { 136 | font-size: 2em; 137 | margin: 0.67em 0; 138 | } 139 | 140 | /** 141 | * Address styling not present in IE 8/9. 142 | */ 143 | 144 | mark { 145 | background: #ff0; 146 | color: #000; 147 | } 148 | 149 | /** 150 | * Address inconsistent and variable font size in all browsers. 151 | */ 152 | 153 | small { 154 | font-size: 80%; 155 | } 156 | 157 | /** 158 | * Prevent `sub` and `sup` affecting `line-height` in all browsers. 159 | */ 160 | 161 | sub, 162 | sup { 163 | font-size: 75%; 164 | line-height: 0; 165 | position: relative; 166 | vertical-align: baseline; 167 | } 168 | 169 | sup { 170 | top: -0.5em; 171 | } 172 | 173 | sub { 174 | bottom: -0.25em; 175 | } 176 | 177 | /* Embedded content 178 | ========================================================================== */ 179 | 180 | /** 181 | * Remove border when inside `a` element in IE 8/9/10. 182 | */ 183 | 184 | img { 185 | border: 0; 186 | } 187 | 188 | /** 189 | * Correct overflow not hidden in IE 9/10/11. 190 | */ 191 | 192 | svg:not(:root) { 193 | overflow: hidden; 194 | } 195 | 196 | /* Grouping content 197 | ========================================================================== */ 198 | 199 | /** 200 | * Address margin not present in IE 8/9 and Safari. 201 | */ 202 | 203 | figure { 204 | margin: 1em 40px; 205 | } 206 | 207 | /** 208 | * Address differences between Firefox and other browsers. 209 | */ 210 | 211 | hr { 212 | box-sizing: content-box; 213 | height: 0; 214 | } 215 | 216 | /** 217 | * Contain overflow in all browsers. 218 | */ 219 | 220 | pre { 221 | overflow: auto; 222 | } 223 | 224 | /** 225 | * Address odd `em`-unit font size rendering in all browsers. 226 | */ 227 | 228 | code, 229 | kbd, 230 | pre, 231 | samp { 232 | font-family: monospace, monospace; 233 | font-size: 1em; 234 | } 235 | 236 | /* Forms 237 | ========================================================================== */ 238 | 239 | /** 240 | * Known limitation: by default, Chrome and Safari on OS X allow very limited 241 | * styling of `select`, unless a `border` property is set. 242 | */ 243 | 244 | /** 245 | * 1. Correct color not being inherited. 246 | * Known issue: affects color of disabled elements. 247 | * 2. Correct font properties not being inherited. 248 | * 3. Address margins set differently in Firefox 4+, Safari, and Chrome. 249 | */ 250 | 251 | button, 252 | input, 253 | optgroup, 254 | select, 255 | textarea { 256 | color: inherit; /* 1 */ 257 | font: inherit; /* 2 */ 258 | margin: 0; /* 3 */ 259 | } 260 | 261 | /** 262 | * Address `overflow` set to `hidden` in IE 8/9/10/11. 263 | */ 264 | 265 | button { 266 | overflow: visible; 267 | } 268 | 269 | /** 270 | * Address inconsistent `text-transform` inheritance for `button` and `select`. 271 | * All other form control elements do not inherit `text-transform` values. 272 | * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera. 273 | * Correct `select` style inheritance in Firefox. 274 | */ 275 | 276 | button, 277 | select { 278 | text-transform: none; 279 | } 280 | 281 | /** 282 | * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` 283 | * and `video` controls. 284 | * 2. Correct inability to style clickable `input` types in iOS. 285 | * 3. Improve usability and consistency of cursor style between image-type 286 | * `input` and others. 287 | */ 288 | 289 | button, 290 | html input[type="button"], /* 1 */ 291 | input[type="reset"], 292 | input[type="submit"] { 293 | -webkit-appearance: button; /* 2 */ 294 | cursor: pointer; /* 3 */ 295 | } 296 | 297 | /** 298 | * Re-set default cursor for disabled elements. 299 | */ 300 | 301 | button[disabled], 302 | html input[disabled] { 303 | cursor: default; 304 | } 305 | 306 | /** 307 | * Remove inner padding and border in Firefox 4+. 308 | */ 309 | 310 | button::-moz-focus-inner, 311 | input::-moz-focus-inner { 312 | border: 0; 313 | padding: 0; 314 | } 315 | 316 | /** 317 | * Address Firefox 4+ setting `line-height` on `input` using `!important` in 318 | * the UA stylesheet. 319 | */ 320 | 321 | input { 322 | line-height: normal; 323 | } 324 | 325 | /** 326 | * It's recommended that you don't attempt to style these elements. 327 | * Firefox's implementation doesn't respect box-sizing, padding, or width. 328 | * 329 | * 1. Address box sizing set to `content-box` in IE 8/9/10. 330 | * 2. Remove excess padding in IE 8/9/10. 331 | */ 332 | 333 | input[type="checkbox"], 334 | input[type="radio"] { 335 | box-sizing: border-box; /* 1 */ 336 | padding: 0; /* 2 */ 337 | } 338 | 339 | /** 340 | * Fix the cursor style for Chrome's increment/decrement buttons. For certain 341 | * `font-size` values of the `input`, it causes the cursor style of the 342 | * decrement button to change from `default` to `text`. 343 | */ 344 | 345 | input[type="number"]::-webkit-inner-spin-button, 346 | input[type="number"]::-webkit-outer-spin-button { 347 | height: auto; 348 | } 349 | 350 | /** 351 | * 1. Address `appearance` set to `searchfield` in Safari and Chrome. 352 | * 2. Address `box-sizing` set to `border-box` in Safari and Chrome 353 | * (include `-moz` to future-proof). 354 | */ 355 | 356 | input[type="search"] { 357 | -webkit-appearance: textfield; /* 1 */ /* 2 */ 358 | box-sizing: content-box; 359 | } 360 | 361 | /** 362 | * Remove inner padding and search cancel button in Safari and Chrome on OS X. 363 | * Safari (but not Chrome) clips the cancel button when the search input has 364 | * padding (and `textfield` appearance). 365 | */ 366 | 367 | input[type="search"]::-webkit-search-cancel-button, 368 | input[type="search"]::-webkit-search-decoration { 369 | -webkit-appearance: none; 370 | } 371 | 372 | /** 373 | * Define consistent border, margin, and padding. 374 | */ 375 | 376 | fieldset { 377 | border: 1px solid #c0c0c0; 378 | margin: 0 2px; 379 | padding: 0.35em 0.625em 0.75em; 380 | } 381 | 382 | /** 383 | * 1. Correct `color` not being inherited in IE 8/9/10/11. 384 | * 2. Remove padding so people aren't caught out if they zero out fieldsets. 385 | */ 386 | 387 | legend { 388 | border: 0; /* 1 */ 389 | padding: 0; /* 2 */ 390 | } 391 | 392 | /** 393 | * Remove default vertical scrollbar in IE 8/9/10/11. 394 | */ 395 | 396 | textarea { 397 | overflow: auto; 398 | } 399 | 400 | /** 401 | * Don't inherit the `font-weight` (applied by a rule above). 402 | * NOTE: the default cannot safely be changed in Chrome and Safari on OS X. 403 | */ 404 | 405 | optgroup { 406 | font-weight: bold; 407 | } 408 | 409 | /* Tables 410 | ========================================================================== */ 411 | 412 | /** 413 | * Remove most spacing between table cells. 414 | */ 415 | 416 | table { 417 | border-collapse: collapse; 418 | border-spacing: 0; 419 | } 420 | 421 | td, 422 | th { 423 | padding: 0; 424 | } 425 | -------------------------------------------------------------------------------- /stylesheets/stylesheet.css: -------------------------------------------------------------------------------- 1 | * { 2 | box-sizing: border-box; } 3 | 4 | body { 5 | padding: 0; 6 | margin: 0; 7 | font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; 8 | font-size: 16px; 9 | line-height: 1.5; 10 | color: #606c71; } 11 | 12 | a { 13 | color: #1e6bb8; 14 | text-decoration: none; } 15 | a:hover { 16 | text-decoration: underline; } 17 | 18 | .btn { 19 | display: inline-block; 20 | margin-bottom: 1rem; 21 | color: rgba(255, 255, 255, 0.7); 22 | background-color: rgba(255, 255, 255, 0.08); 23 | border-color: rgba(255, 255, 255, 0.2); 24 | border-style: solid; 25 | border-width: 1px; 26 | border-radius: 0.3rem; 27 | transition: color 0.2s, background-color 0.2s, border-color 0.2s; } 28 | .btn + .btn { 29 | margin-left: 1rem; } 30 | 31 | .btn:hover { 32 | color: rgba(255, 255, 255, 0.8); 33 | text-decoration: none; 34 | background-color: rgba(255, 255, 255, 0.2); 35 | border-color: rgba(255, 255, 255, 0.3); } 36 | 37 | @media screen and (min-width: 64em) { 38 | .btn { 39 | padding: 0.75rem 1rem; } } 40 | 41 | @media screen and (min-width: 42em) and (max-width: 64em) { 42 | .btn { 43 | padding: 0.6rem 0.9rem; 44 | font-size: 0.9rem; } } 45 | 46 | @media screen and (max-width: 42em) { 47 | .btn { 48 | display: block; 49 | width: 100%; 50 | padding: 0.75rem; 51 | font-size: 0.9rem; } 52 | .btn + .btn { 53 | margin-top: 1rem; 54 | margin-left: 0; } } 55 | 56 | .page-header { 57 | color: #fff; 58 | text-align: center; 59 | background-color: #159957; 60 | background-image: linear-gradient(120deg, #155799, #159957); } 61 | 62 | @media screen and (min-width: 64em) { 63 | .page-header { 64 | padding: 5rem 6rem; } } 65 | 66 | @media screen and (min-width: 42em) and (max-width: 64em) { 67 | .page-header { 68 | padding: 3rem 4rem; } } 69 | 70 | @media screen and (max-width: 42em) { 71 | .page-header { 72 | padding: 2rem 1rem; } } 73 | 74 | .project-name { 75 | margin-top: 0; 76 | margin-bottom: 0.1rem; } 77 | 78 | @media screen and (min-width: 64em) { 79 | .project-name { 80 | font-size: 3.25rem; } } 81 | 82 | @media screen and (min-width: 42em) and (max-width: 64em) { 83 | .project-name { 84 | font-size: 2.25rem; } } 85 | 86 | @media screen and (max-width: 42em) { 87 | .project-name { 88 | font-size: 1.75rem; } } 89 | 90 | .project-tagline { 91 | margin-bottom: 2rem; 92 | font-weight: normal; 93 | opacity: 0.7; } 94 | 95 | @media screen and (min-width: 64em) { 96 | .project-tagline { 97 | font-size: 1.25rem; } } 98 | 99 | @media screen and (min-width: 42em) and (max-width: 64em) { 100 | .project-tagline { 101 | font-size: 1.15rem; } } 102 | 103 | @media screen and (max-width: 42em) { 104 | .project-tagline { 105 | font-size: 1rem; } } 106 | 107 | .main-content :first-child { 108 | margin-top: 0; } 109 | .main-content img { 110 | max-width: 100%; } 111 | .main-content h1, .main-content h2, .main-content h3, .main-content h4, .main-content h5, .main-content h6 { 112 | margin-top: 2rem; 113 | margin-bottom: 1rem; 114 | font-weight: normal; 115 | color: #159957; } 116 | .main-content p { 117 | margin-bottom: 1em; } 118 | .main-content code { 119 | padding: 2px 4px; 120 | font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; 121 | font-size: 0.9rem; 122 | color: #383e41; 123 | background-color: #f3f6fa; 124 | border-radius: 0.3rem; } 125 | .main-content pre { 126 | padding: 0.8rem; 127 | margin-top: 0; 128 | margin-bottom: 1rem; 129 | font: 1rem Consolas, "Liberation Mono", Menlo, Courier, monospace; 130 | color: #567482; 131 | word-wrap: normal; 132 | background-color: #f3f6fa; 133 | border: solid 1px #dce6f0; 134 | border-radius: 0.3rem; } 135 | .main-content pre > code { 136 | padding: 0; 137 | margin: 0; 138 | font-size: 0.9rem; 139 | color: #567482; 140 | word-break: normal; 141 | white-space: pre; 142 | background: transparent; 143 | border: 0; } 144 | .main-content .highlight { 145 | margin-bottom: 1rem; } 146 | .main-content .highlight pre { 147 | margin-bottom: 0; 148 | word-break: normal; } 149 | .main-content .highlight pre, .main-content pre { 150 | padding: 0.8rem; 151 | overflow: auto; 152 | font-size: 0.9rem; 153 | line-height: 1.45; 154 | border-radius: 0.3rem; } 155 | .main-content pre code, .main-content pre tt { 156 | display: inline; 157 | max-width: initial; 158 | padding: 0; 159 | margin: 0; 160 | overflow: initial; 161 | line-height: inherit; 162 | word-wrap: normal; 163 | background-color: transparent; 164 | border: 0; } 165 | .main-content pre code:before, .main-content pre code:after, .main-content pre tt:before, .main-content pre tt:after { 166 | content: normal; } 167 | .main-content ul, .main-content ol { 168 | margin-top: 0; } 169 | .main-content blockquote { 170 | padding: 0 1rem; 171 | margin-left: 0; 172 | color: #819198; 173 | border-left: 0.3rem solid #dce6f0; } 174 | .main-content blockquote > :first-child { 175 | margin-top: 0; } 176 | .main-content blockquote > :last-child { 177 | margin-bottom: 0; } 178 | .main-content table { 179 | display: block; 180 | width: 100%; 181 | overflow: auto; 182 | word-break: normal; 183 | word-break: keep-all; } 184 | .main-content table th { 185 | font-weight: bold; } 186 | .main-content table th, .main-content table td { 187 | padding: 0.5rem 1rem; 188 | border: 1px solid #e9ebec; } 189 | .main-content dl { 190 | padding: 0; } 191 | .main-content dl dt { 192 | padding: 0; 193 | margin-top: 1rem; 194 | font-size: 1rem; 195 | font-weight: bold; } 196 | .main-content dl dd { 197 | padding: 0; 198 | margin-bottom: 1rem; } 199 | .main-content hr { 200 | height: 2px; 201 | padding: 0; 202 | margin: 1rem 0; 203 | background-color: #eff0f1; 204 | border: 0; } 205 | 206 | @media screen and (min-width: 64em) { 207 | .main-content { 208 | max-width: 64rem; 209 | padding: 2rem 6rem; 210 | margin: 0 auto; 211 | font-size: 1.1rem; } } 212 | 213 | @media screen and (min-width: 42em) and (max-width: 64em) { 214 | .main-content { 215 | padding: 2rem 4rem; 216 | font-size: 1.1rem; } } 217 | 218 | @media screen and (max-width: 42em) { 219 | .main-content { 220 | padding: 2rem 1rem; 221 | font-size: 1rem; } } 222 | 223 | .site-footer { 224 | padding-top: 2rem; 225 | margin-top: 2rem; 226 | border-top: solid 1px #eff0f1; } 227 | 228 | .site-footer-owner { 229 | display: block; 230 | font-weight: bold; } 231 | 232 | .site-footer-credits { 233 | color: #819198; } 234 | 235 | @media screen and (min-width: 64em) { 236 | .site-footer { 237 | font-size: 1rem; } } 238 | 239 | @media screen and (min-width: 42em) and (max-width: 64em) { 240 | .site-footer { 241 | font-size: 1rem; } } 242 | 243 | @media screen and (max-width: 42em) { 244 | .site-footer { 245 | font-size: 0.9rem; } } 246 | --------------------------------------------------------------------------------