aboutsummaryrefslogtreecommitdiff
path: root/public/ng/less
diff options
context:
space:
mode:
author无闻 <u@gogs.io>2015-03-19 17:03:03 -0400
committer无闻 <u@gogs.io>2015-03-19 17:03:03 -0400
commite312634286e68d8fac4d20adb729661f8a444b2a (patch)
tree1c885def01ff73104086d57dfb31085c1a1a4729 /public/ng/less
parent7fe68d3db70edfb960ecdbaca688ba2c95219b5c (diff)
parent96a71aaed8b01e505fffbd740ffb492ce89cead1 (diff)
Merge pull request #1091 from sapk/fix-ng-issue-pages
Apply ng to issue dashboard
Diffstat (limited to 'public/ng/less')
-rw-r--r--public/ng/less/gogs/issue.less28
-rw-r--r--public/ng/less/ui/form.less31
-rw-r--r--public/ng/less/ui/menu.less7
-rw-r--r--public/ng/less/ui/reset.less4
-rw-r--r--public/ng/less/ui/var.less4
5 files changed, 69 insertions, 5 deletions
diff --git a/public/ng/less/gogs/issue.less b/public/ng/less/gogs/issue.less
index b950869c..c920343d 100644
--- a/public/ng/less/gogs/issue.less
+++ b/public/ng/less/gogs/issue.less
@@ -511,4 +511,30 @@ textarea#issue-add-content {
margin-left: 12px;
}
}
-} \ No newline at end of file
+}
+
+.issues.list-group {
+ margin: 10px 0 20px 0;
+ > .list-group-item {
+ background-color: #FFF;
+ border: 1px solid #e5e5e5;
+ display: block;
+ padding: 10px 15px;
+ margin-bottom: -1px;
+ &:hover {
+ background-color: rgba(19, 95, 215, 0.03);
+ }
+ > .title {
+ margin-bottom: 16px;
+ font-weight: bold;
+ font-size: 1.2em;
+ > a { color: #444; }
+ }
+ > .info span {
+ margin-right: 12px;
+ color: #888;
+ line-height: 20px;
+ > a { color: #444; }
+ }
+ }
+}
diff --git a/public/ng/less/ui/form.less b/public/ng/less/ui/form.less
index e7b49523..aeaf9c88 100644
--- a/public/ng/less/ui/form.less
+++ b/public/ng/less/ui/form.less
@@ -70,6 +70,19 @@
}
}
+.btn-white {
+ background-color: @btnWhiteColor;
+ color: @baseFontColor;
+ border: 1px solid @btnWhiteBorderColor;
+ &:hover {
+ background-color: @btnWhiteHoverColor;
+ color: @baseFontColor;
+ }
+ &.active {
+ background-color: @btnWhiteHoverColor;
+ color: @baseFontColor;
+ }
+}
// status buttons
.btn-active {
@@ -118,6 +131,22 @@
}
}
+.btn-group {
+ display: inline-block;
+ > .btn {
+ position: relative;
+ float: left;
+ margin-right: -1px;
+ &:first-child{
+ border-bottom-left-radius: .25em;
+ border-top-left-radius: .25em;
+ }
+ &:last-child{
+ border-bottom-right-radius: .25em;
+ border-top-right-radius: .25em;
+ }
+ }
+}
// input form elements
.ipt {
&:focus {
@@ -198,4 +227,4 @@ label {
color: @labelRedColor;
}
}
-} \ No newline at end of file
+}
diff --git a/public/ng/less/ui/menu.less b/public/ng/less/ui/menu.less
index a1daefb3..3035ed12 100644
--- a/public/ng/less/ui/menu.less
+++ b/public/ng/less/ui/menu.less
@@ -11,6 +11,10 @@ ul.menu {
background-color: @lineMenuHoverBgColor;
color: @lineMenuHoverFontColor;
}
+ &.active {
+ background-color: #4183c4;
+ color: #FFF;
+ }
}
&.current > a,
&.hover > a {
@@ -67,6 +71,7 @@ ul.menu-down {
> li.head {
display: block;
padding: .4em 1.2em;
+ margin-bottom: 4px;
}
> li.down {
position: relative;
@@ -163,4 +168,4 @@ ul.menu-radius {
content: "\25B4";
margin-left: .4em;
}
-} \ No newline at end of file
+}
diff --git a/public/ng/less/ui/reset.less b/public/ng/less/ui/reset.less
index d6abb0e5..26ec6292 100644
--- a/public/ng/less/ui/reset.less
+++ b/public/ng/less/ui/reset.less
@@ -238,7 +238,7 @@ input,
}
}
-button {
+button,.btn {
overflow: visible;
padding: .6em 1.2em;
}
@@ -365,4 +365,4 @@ pre {
dt {
font-weight: bold;
-} \ No newline at end of file
+}
diff --git a/public/ng/less/ui/var.less b/public/ng/less/ui/var.less
index c9eb1629..98027e54 100644
--- a/public/ng/less/ui/var.less
+++ b/public/ng/less/ui/var.less
@@ -45,6 +45,10 @@
@btnGrayHoverColor: #FAFAFA;
@btnGrayBorderColor: #D0D0D0;
+@btnWhiteColor: #FFF;
+@btnWhiteHoverColor: #e8e8e8;
+@btnWhiteBorderColor: #c6c6c6;
+
@lineMenuHoverBgColor: #EAEAEA;
@lineMenuHoverFontColor: #444;