aboutsummaryrefslogtreecommitdiff
path: root/public/css
diff options
context:
space:
mode:
Diffstat (limited to 'public/css')
-rwxr-xr-xpublic/css/gogs.css119
-rw-r--r--public/css/markdown.css75
2 files changed, 183 insertions, 11 deletions
diff --git a/public/css/gogs.css b/public/css/gogs.css
index a4767c1c..78040bee 100755
--- a/public/css/gogs.css
+++ b/public/css/gogs.css
@@ -145,8 +145,9 @@ html, body {
float: right;
}
-#gogs-nav-signin {
+#gogs-nav-signin, #gogs-nav-signup {
float: right;
+ margin-left: 1em;
}
#gogs-nav-out .fa {
@@ -324,6 +325,27 @@ html, body {
color: #444;
}
+.gogs-admin-nav {
+ background-color: #FFF;
+ padding-top: 10px;
+ padding-left: 0;
+ padding-right: 0;
+ border: 1px solid #D8D8D8;
+}
+
+.gogs-admin-nav li {
+ margin-bottom: 8px;
+ border-left: 4px solid transparent;
+}
+
+.gogs-admin-nav li:hover {
+ border-left-color: #EEE;
+}
+
+.gogs-admin-nav li.active:hover {
+ border-left: 4px solid #DD4B39;
+}
+
/* gogits user ssh keys */
#gogs-ssh-keys .list-group-item {
@@ -376,7 +398,7 @@ html, body {
}
#gogs-feed-right .repo-panel .list-group-item a {
- display: inline-block;
+ display: block;
margin-left: 0;
background-color: transparent;
padding-left: 0;
@@ -406,7 +428,6 @@ html, body {
#gogs-feed-right .repo-panel span.stars {
color: #666;
- line-height: 44px;
margin-right: 1em;
}
@@ -445,7 +466,7 @@ html, body {
padding: 0;
}
-#gogs-repo-watching .dropdown-menu .dropdown-item:hover .dropdown-header {
+#gogs-repo-watching .dropdown-menu .dropdown-item:hover .dropdown-header, #gogs-repo-watching .dropdown-item .dropdown-header.text-primary {
color: rgb(65, 131, 196);
cursor: pointer;
}
@@ -501,8 +522,7 @@ html, body {
}
.activity-list .info {
- float: left;
- padding: 0 0 0 10px;
+ margin: 0 0 0 40px;
line-height: 1.7em;
}
@@ -555,6 +575,15 @@ html, body {
min-width: 200px;
}
+#gogs-repo-clone .dropdown-menu{
+ width: 400px;
+ padding: 20px;
+}
+
+#gogs-repo-clone .input-group{
+ margin-bottom: 15px;
+}
+
/* #gogs-source */
#gogs-source {
margin-top: -20px;
@@ -645,6 +674,62 @@ html, body {
.file-content .file-body {
padding: 30px 30px 50px;
+ border: none;
+ background-color: #FFF;
+ overflow: auto;
+ overflow-x: auto;
+ overflow-y: hidden;
+}
+
+.file-content .file-body.file-code pre {
+ background-color: #FFF;
+ border: none;
+}
+
+.file-content .file-body.file-code {
+ padding: 0;
+}
+
+.file-content .file-body.file-code .lines-code > pre {
+ border: none;
+ background: none;
+ border-left: 1px solid #ddd;
+}
+
+.file-content .file-body.file-code .lines-code ol.linenums > .active {
+ background: #ffffdd;
+}
+
+.file-content .file-body.file-code .lines-num {
+ text-align: right;
+ color: #999;
+ background: #fafafa;
+ width: 1%;
+}
+
+.file-content .file-body.file-code .lines-num span {
+ font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
+ line-height: 1.6;
+ padding: 0 8px 0 10px;
+ cursor: pointer;
+ display: block;
+ margin-top: 2px;
+ font-size: 90%;
+}
+
+.file-content .file-body.file-code .lines-num span:first-child {
+ margin-top: 0;
+}
+
+.file-content .file-body.file-code > table {
+ width: 100%;
+}
+
+.file-content .file-body.file-code > table > tbody > tr,
+.file-content .file-body.file-code > table > tbody > tr > td,
+.file-content .file-body.file-code > table {
+ border: none;
+ background: none;
}
.branch-list th, .commit-list th {
@@ -724,6 +809,28 @@ html, body {
background-color: #FFF;
}
+.commit-list .date {
+ width: 120px;
+}
+
+.commit-list .author {
+ min-width: 180px;
+}
+
+.guide-box pre, .guide-box .input-group {
+ margin-top: 20px;
+ margin-bottom: 30px;
+ line-height: 24px;
+}
+
+.guide-box input[readonly] {
+ background-color: #FFF;
+}
+
+.guide-box {
+ margin-top: 20px;
+}
+
/* wrapper and footer */
#wrapper {
diff --git a/public/css/markdown.css b/public/css/markdown.css
index 9283fb84..a810fa3c 100644
--- a/public/css/markdown.css
+++ b/public/css/markdown.css
@@ -15,7 +15,8 @@
line-height: 1.7;
padding: 15px 0 0;
margin: 0 0 15px;
- color: #666;
+ color: #444;
+ font-weight: bold;
}
.markdown h1,
@@ -86,6 +87,10 @@
margin-top: 6px;
}
+.markdown li:first-child {
+ margin-top: 0;
+}
+
.markdown dl dt {
font-style: italic;
margin-top: 9px;
@@ -106,8 +111,8 @@
line-height: 1.6;
overflow: auto;
background: #f8f8f8;
- padding: 6px 10px;
border: 1px solid #ddd;
+ padding: 0;
}
.markdown > pre.linenums {
@@ -115,6 +120,17 @@
}
.markdown > pre > ol.linenums {
+ list-style: none;
+ padding: 0;
+}
+
+.markdown > pre > ol.linenums > li {
+ margin-top: 2px;
+}
+
+.markdown > pre.nums-style > ol.linenums {
+ list-style-type: decimal;
+ padding: 0 0 0 40px;
-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;
}
@@ -130,14 +146,14 @@
}
.markdown > pre > ol.linenums > li:first-child {
- padding-top: 6px;
+ padding-top: 12px;
}
.markdown > pre > ol.linenums > li:last-child {
- padding-bottom: 6px;
+ padding-bottom: 12px;
}
-.markdown > pre > ol.linenums > li {
+.markdown > pre.nums-style > ol.linenums > li {
border-left: 1px solid #ddd;
}
@@ -163,6 +179,54 @@
color: #fff;
}
+.markdown .anchor-wrap {
+ /*margin-top: -50px;*/
+ /*padding-top: 50px;*/
+}
+
+.markdown h1 a, .markdown h2 a, .markdown h3 a {
+ text-decoration: none;
+}
+
+.markdown h1 a.anchor,
+.markdown h2 a.anchor,
+.markdown h3 a.anchor,
+.markdown h4 a.anchor,
+.markdown h5 a.anchor,
+.markdown h6 a.anchor {
+ text-decoration:none;
+ line-height:1;
+ padding-left:0;
+ margin-left:5px;
+ top:15%;
+}
+.markdown a span.octicon {
+ font-size: 16px;
+ font-family: "FontAwesome";
+ line-height: 1;
+ display: inline-block;
+ text-decoration: none;
+ -webkit-font-smoothing: antialiased;
+}
+
+.markdown a span.octicon-link {
+ display: none;
+ color: #000;
+}
+
+.markdown a span.octicon-link:before {
+ content: "\f0c1";
+}
+
+.markdown h1:hover .octicon-link,
+.markdown h2:hover .octicon-link,
+.markdown h3:hover .octicon-link,
+.markdown h4:hover .octicon-link,
+.markdown h5:hover .octicon-link,
+.markdown h6:hover .octicon-link {
+ display:inline-block
+}
+
/* Author: jmblog */
/* Project: https://github.com/jmblog/color-themes-for-google-code-prettify */
/* GitHub Theme */
@@ -187,6 +251,7 @@
/* a comment */
.com {
color: #999988;
+ font-style: italic;
}
/* a type name */