diff options
Diffstat (limited to 'public/css')
-rwxr-xr-x | public/css/gogs.css | 124 | ||||
-rw-r--r-- | public/css/markdown.css | 317 |
2 files changed, 422 insertions, 19 deletions
diff --git a/public/css/gogs.css b/public/css/gogs.css index 545e2b0b..5352f8e3 100755 --- a/public/css/gogs.css +++ b/public/css/gogs.css @@ -10,6 +10,7 @@ body { html, body { height: 100%; + font-family: Helvetica, Arial, sans-serif; } /* override bs3 */ @@ -50,7 +51,6 @@ html, body { .gogs-masthead { background-color: #428bca; box-shadow: inset 0 -2px 5px rgba(0, 0, 0, .1); - padding: 0 16px; margin: 0; } @@ -65,6 +65,12 @@ html, body { height: 46px; } +#gogs-nav-logo{ + padding-left: 0; + padding-right: 0; + margin-right: 10px; +} + .gogs-nav-item:hover, .gogs-nav-item:focus { color: #fff; @@ -128,6 +134,11 @@ html, body { padding: 5px 0; margin-left: 10px; height: 28px; + float: right; +} + +#gogs-nav-signin{ + float: right; } #gogs-nav-out .fa { @@ -228,6 +239,12 @@ html, body { border-radius: 6px; } +#gogs-user-avatar-commit { + width: 16px; + height: 16px; + border-radius: 2px; +} + #gogs-user-name { margin-top: 20px; font-size: 1.6em; @@ -338,10 +355,6 @@ html, body { /* #gogs-feed */ -#gogs-feed-left { - padding-left: 0; -} - #gogs-feed-right .repo-panel .panel-heading .btn { margin-top: -4px; } @@ -399,18 +412,11 @@ html, body { .gogs-repo-nav h3 .fa { color: #BBB; + margin-left: 0; } -.gogs-repo-btns { - margin-top: 18px; -} - -.gogs-repo-btns .btn-group { - margin-left: 1em; -} - -.gogs-repo-btns .btn-group .btn { - padding-left: 6px; +.gogs-repo-nav .actions { + padding-top: 20px; } #gogs-repo-watching .dropdown-menu { @@ -475,7 +481,7 @@ html, body { .activity-list .info { float: left; - padding:0 0 0 10px; + padding: 0 0 0 10px; line-height: 1.7em; } @@ -525,6 +531,10 @@ html, body { } /* #gogs-source */ +#gogs-source { + margin-top: -20px; +} + #gogs-source .source-toolbar:after { clear: both; } @@ -560,7 +570,9 @@ html, body { .file-list .icon { font-size: 17px; padding: 5px 0 4px 10px; - width: 40px; + width: 50px; + color: #999; + text-align: right; } .file-list .wrap { @@ -581,13 +593,87 @@ html, body { .file-list .date .wrap { max-width: 120px; - padding: 0 20px 0 0; + padding: 0 20px 0 0; } .file-list .date { text-align: right; } +.file-content .file-head { + font-size: 18px; +} + +.file-content .file-head .icon { + color: #666; + margin: 0 .5em 0 0; +} + +.file-content .file-body { + padding: 30px 30px 50px; +} + +.branch-list th{ + background-color: #FFF; + line-height: 28px !important; +} + +.branch-list td{ + line-height: 36px !important; +} + +.branch-box tr:hover td{ + background-color: rgba(19, 95, 215, 0.06) !important; +} + +.branch-box .name{ + padding-left: 20px; + font-size: 15px; +} + +.branch-box .action{ + width: 150px; +} + +.branch-box td.date,.branch-box td.behind,.branch-box td.ahead{ + width: 120px; + font-family: Verdana, Arial, sans-serif; +} + +.branch-box .graph{ + display: block; + height: 3px; +} + +.branch-box .behind{ + text-align: right; + direction: rtl; +} + +.branch-box .behind .graph{ + background-color: #888; +} + +.branch-box .ahead .graph{ + background-color: #0093c4; +} + +.branch-box .branch-main{ + background-color: #444; + color: #FFF; + border-color: #444; +} + +.branch-box .branch-main a{ + color: #FFF; +} + +.branch-box .branch-main .name .btn{ + margin-left: .5em; +} + +/* wrapper and footer */ + #wrapper { min-height: 100%; height: auto !important; @@ -604,7 +690,7 @@ html, body { } #footer .footer-wrap { - padding: 20px 0; + padding: 20px 15px; } #footer a { diff --git a/public/css/markdown.css b/public/css/markdown.css new file mode 100644 index 00000000..e2b15c2f --- /dev/null +++ b/public/css/markdown.css @@ -0,0 +1,317 @@ +.markdown { + font-size: 14px; +} + +.markdown a { + color: #4183C4; +} + +.markdown h1, +.markdown h2, +.markdown h3, +.markdown h4, +.markdown h5, +.markdown h6 { + line-height: 1.7; + padding: 15px 0 0; + margin: 0 0 15px; + color: #666; +} + +.markdown h1, +.markdown h2 { + border-bottom: 1px solid #EEE; +} + +.markdown h2 { + border-bottom: 1px solid #EEE; +} + +.markdown h1 { + color: #000; + font-size: 33px +} + +.markdown h2 { + color: #333; + font-size: 28px +} + +.markdown h3 { + font-size: 22px +} + +.markdown h4 { + font-size: 18px +} + +.markdown h5 { + font-size: 14px +} + +.markdown h6 { + font-size: 14px +} + +.markdown table { + border-collapse: collapse; + border-spacing: 0; + display: block; + overflow: auto; + width: 100%; + margin: 0 0 9px; +} + +.markdown table th { + font-weight: 700 +} + +.markdown table th, +.markdown table td { + border: 1px solid #DDD; + padding: 6px 13px; +} + +.markdown table tr { + background-color: #FFF; + border-top: 1px solid #CCC; +} + +.markdown table tr:nth-child(2n) { + background-color: #F8F8F8 +} + +.markdown li { + line-height: 1.6; + margin-top: 6px; +} + +.markdown dl dt { + font-style: italic; + margin-top: 9px; +} + +.markdown dl dd { + margin: 0 0 9px; + padding: 0 9px; +} + +.markdown blockquote, +.markdown blockquote p { + font-size: 14px; + background-color: #f5f5f5; +} + +.markdown > pre { + line-height: 1.6; + overflow: auto; + background: #fff; + padding: 6px 10px; + border: 1px solid #ddd; +} + +.markdown > pre.linenums { + padding: 0; +} + +.markdown > pre > ol.linenums { + -webkit-box-shadow: inset 40px 0 0 #f5f5f5, inset 41px 0 0 #ccc; + box-shadow: inset 40px 0 0 #f5f5f5, inset 41px 0 0 #ccc; +} + +.markdown > pre > code, +.markdown > pre > ol.linenums > li > code { + white-space: pre; + word-wrap: normal; +} + +.markdown > pre > ol.linenums > li > code { + padding: 0 10px; +} + +.markdown > pre > ol.linenums > li:first-child { + padding-top: 6px; +} + +.markdown > pre > ol.linenums > li:last-child { + padding-bottom: 6px; +} + +.markdown > pre > ol.linenums > li { + border-left: 1px solid #ddd; +} + +.markdown hr { + border: none; + color: #ccc; + height: 4px; + padding: 0; + margin: 15px 0; + border-bottom: 2px solid #EEE; +} + +.markdown blockquote:last-child, +.markdown ul:last-child, +.markdown ol:last-child, +.markdown > pre:last-child, +.markdown > pre:last-child, +.markdown p:last-child { + margin-bottom: 0; +} + +.markdown .btn { + color: #fff; +} + +/* Author: jmblog */ +/* Project: https://github.com/jmblog/color-themes-for-google-code-prettify */ +/* GitHub Theme */ +/* Pretty printing styles. Used with prettify.js. */ +/* SPAN elements with the classes below are added by prettyprint. */ +/* plain text */ +.pln { + color: #333333; +} + +@media screen { + /* string content */ + .str { + color: #dd1144; + } + + /* a keyword */ + .kwd { + color: #333333; + } + + /* a comment */ + .com { + color: #999988; + } + + /* a type name */ + .typ { + color: #445588; + } + + /* a literal value */ + .lit { + color: #445588; + } + + /* punctuation */ + .pun { + color: #333333; + } + + /* lisp open bracket */ + .opn { + color: #333333; + } + + /* lisp close bracket */ + .clo { + color: #333333; + } + + /* a markup tag name */ + .tag { + color: navy; + } + + /* a markup attribute name */ + .atn { + color: teal; + } + + /* a markup attribute value */ + .atv { + color: #dd1144; + } + + /* a declaration */ + .dec { + color: #333333; + } + + /* a variable name */ + .var { + color: teal; + } + + /* a function name */ + .fun { + color: #990000; + } +} +/* Use higher contrast and text-weight for printable form. */ +@media print, projection { + .str { + color: #006600; + } + + .kwd { + color: #006; + font-weight: bold; + } + + .com { + color: #600; + font-style: italic; + } + + .typ { + color: #404; + font-weight: bold; + } + + .lit { + color: #004444; + } + + .pun, .opn, .clo { + color: #444400; + } + + .tag { + color: #006; + font-weight: bold; + } + + .atn { + color: #440044; + } + + .atv { + color: #006600; + } +} + +/* Specify class=linenums on a pre to get line numbering */ +ol.linenums { + margin-top: 0; + margin-bottom: 0; +} + +/* IE indents via margin-left */ +li.L0, +li.L1, +li.L2, +li.L3, +li.L4, +li.L5, +li.L6, +li.L7, +li.L8, +li.L9 { + /* */ +} + +/* Alternate shading for lines */ +li.L1, +li.L3, +li.L5, +li.L7, +li.L9 { + /* */ +}
\ No newline at end of file |