aboutsummaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-12-02 19:44:16 -0500
committerUnknwon <u@gogs.io>2015-12-02 19:44:16 -0500
commit73d9eebf017270b52d42da5404980c4abca4438a (patch)
tree5731bfe5bcae3498ed25fc93443cf5eedbbd9874 /public
parente350d74c8af139d7a9af0854da6452139403297f (diff)
parentb73241ceb175b437c114dae686c9cffb69396e41 (diff)
Merge pull request #2068 from nanoant/patch/repo-file-list-layout
Repo file list layout & misc fixes
Diffstat (limited to 'public')
-rwxr-xr-xpublic/css/gogs.css90
-rw-r--r--public/less/_base.less8
-rwxr-xr-xpublic/less/_octicons.less4
-rw-r--r--public/less/_repository.less88
4 files changed, 56 insertions, 134 deletions
diff --git a/public/css/gogs.css b/public/css/gogs.css
index d58c4e25..c3ac5ffc 100755
--- a/public/css/gogs.css
+++ b/public/css/gogs.css
@@ -5,7 +5,9 @@
font-style: normal;
}
.octicon,
-.mega-octicon {
+.mega-octicon,
+.icon.octicon,
+.icon.mega-octicon {
font: normal normal normal 16px/1 octicons;
display: inline-block;
text-decoration: none;
@@ -911,6 +913,13 @@ pre.raw {
.ui .form .fake {
display: none !important;
}
+.ui .sha.label {
+ font-family: Consolas, Menlo, Monaco, "Lucida Console", monospace;
+ font-size: 13px;
+ padding: 6px 10px 4px 10px;
+ font-weight: normal;
+ margin: 0 6px;
+}
.ui.status.buttons .octicon {
margin-right: 4px;
}
@@ -1806,6 +1815,17 @@ footer .container .links > *:first-child {
margin: 1px;
padding-right: 0;
}
+.repository .ui.tabs.container {
+ margin-top: 14px;
+ margin-bottom: 0px;
+}
+.repository .ui.tabs.container .ui.menu {
+ border-bottom: none;
+}
+.repository .ui.tabs.divider {
+ margin-top: 0;
+ margin-bottom: 20px;
+}
.repository #clone-panel {
margin-top: -8px;
width: 100%;
@@ -1834,54 +1854,21 @@ footer .container .links > *:first-child {
.repository.file.list .choose.reference .header .icon {
font-size: 1.4em;
}
-.repository.file.list .head.meta {
- padding: 0;
-}
-.repository.file.list .head.meta li {
- list-style: none;
- display: inline-block;
-}
-.repository.file.list .head.meta li .ui.breadcrumb {
- margin-top: -5px;
-}
-.repository.file.list .head.meta li .ui.breadcrumb span,
-.repository.file.list .head.meta li .ui.breadcrumb a {
- font-size: 16px;
-}
-.repository.file.list #repo-files-table .table.list {
- width: 80% !important;
-}
.repository.file.list #repo-files-table thead th {
padding-top: 8px;
padding-bottom: 5px;
font-weight: normal;
}
-.repository.file.list #repo-files-table thead th #last-commit-message {
- margin-left: 5px;
- margin-bottom: -4px;
- width: 400px;
-}
-.repository.file.list #repo-files-table thead th .age {
- margin-top: 2px;
+.repository.file.list #repo-files-table thead th:first-child {
+ display: block;
+ position: relative;
+ width: 325%;
}
.repository.file.list #repo-files-table thead .ui.avatar {
margin-bottom: 5px;
}
.repository.file.list #repo-files-table tbody .icon {
- margin-left: 5px;
-}
-.repository.file.list #repo-files-table tbody .name {
- max-width: 120px;
-}
-.repository.file.list #repo-files-table tbody .message {
- max-width: 300px;
-}
-.repository.file.list #repo-files-table tbody .age {
- min-width: 150px;
-}
-.repository.file.list #repo-files-table tbody .text.truncate {
- margin-bottom: -5px;
- max-width: 100%;
+ margin-right: 5px;
}
.repository.file.list #repo-files-table td {
padding-top: 8px;
@@ -2246,31 +2233,6 @@ footer .container .links > *:first-child {
font-weight: normal;
padding: 5px 10px;
}
-.repository .commits.table {
- font-size: 13px;
-}
-.repository .commits.table th:first-child,
-.repository .commits.table td:first-child {
- padding-left: 15px;
-}
-.repository .commits.table td {
- line-height: 15px;
-}
-.repository .commits.table .author {
- min-width: 180px;
-}
-.repository .commits.table .message span {
- max-width: 500px;
-}
-.repository .commits.table .date {
- width: 120px;
-}
-.repository .sha.label {
- font-family: Consolas, Menlo, Monaco, "Lucida Console", monospace;
- font-size: 14px;
- padding: 6px 10px 4px 10px;
- font-weight: normal;
-}
.repository .diff-detail-box {
margin: 15px 0;
line-height: 30px;
diff --git a/public/less/_base.less b/public/less/_base.less
index 086c6877..77ed7545 100644
--- a/public/less/_base.less
+++ b/public/less/_base.less
@@ -219,6 +219,14 @@ pre {
}
}
+ .sha.label {
+ font-family: Consolas, Menlo, Monaco, "Lucida Console", monospace;
+ font-size: 13px;
+ padding: 6px 10px 4px 10px;
+ font-weight: normal;
+ margin: 0 6px;
+ }
+
&.status.buttons {
.octicon {
margin-right: 4px;
diff --git a/public/less/_octicons.less b/public/less/_octicons.less
index dfd437e6..a159dec8 100755
--- a/public/less/_octicons.less
+++ b/public/less/_octicons.less
@@ -14,7 +14,9 @@
// .octicon is optimized for 16px.
// .mega-octicon is optimized for 32px but can be used larger.
-.octicon, .mega-octicon {
+.octicon, .mega-octicon,
+// ensure Semantic UI .icon of 14px does not apply to .icon.octicon:
+.icon.octicon, .icon.mega-octicon {
font: normal normal normal 16px/1 octicons;
display: inline-block;
text-decoration: none;
diff --git a/public/less/_repository.less b/public/less/_repository.less
index 928d5cf3..ee17177f 100644
--- a/public/less/_repository.less
+++ b/public/less/_repository.less
@@ -91,6 +91,20 @@
}
}
+ .ui.tabs {
+ &.container {
+ margin-top: 14px;
+ margin-bottom: 0px;
+ .ui.menu {
+ border-bottom: none;
+ }
+ }
+ &.divider {
+ margin-top: 0;
+ margin-bottom: 20px;
+ }
+ }
+
#clone-panel {
margin-top: -8px;
width: 100%;
@@ -125,41 +139,17 @@
font-size: 1.4em;
}
}
- .head.meta {
- padding: 0;
- li {
- list-style: none;
- display: inline-block;
-
- .ui.breadcrumb {
- margin-top: -5px;
-
- span,
- a {
- font-size: 16px;
- }
- }
- }
- }
#repo-files-table {
- .table.list {
- width: 80% !important;
- }
-
thead {
th {
padding-top: 8px;
padding-bottom: 5px;
font-weight: normal;
-
- #last-commit-message {
- margin-left: 5px;
- margin-bottom: -4px;
- width: 400px;
- }
- .age {
- margin-top: 2px;
+ &:first-child {
+ display: block;
+ position: relative;
+ width: 325%;
}
}
.ui.avatar {
@@ -168,21 +158,7 @@
}
tbody {
.icon {
- margin-left: 5px;
- }
- .name {
- max-width: 120px;
- }
- .message {
- max-width: 300px;
- }
- .age {
- min-width: 150px;
- }
-
- .text.truncate {
- margin-bottom: -5px;
- max-width: 100%;
+ margin-right: 5px;
}
}
td {
@@ -610,32 +586,6 @@
}
}
}
- .commits.table {
- font-size: 13px;
- th, td {
- &:first-child {
- padding-left: 15px;
- }
- }
- td {
- line-height: 15px;
- }
- .author {
- min-width: 180px;
- }
- .message span {
- max-width: 500px;
- }
- .date {
- width: 120px;
- }
- }
- .sha.label {
- font-family: Consolas, Menlo, Monaco, "Lucida Console", monospace;
- font-size: 14px;
- padding: 6px 10px 4px 10px;
- font-weight: normal;
- }
.diff-detail-box {
margin: 15px 0;