Node.js based forum software built for the modern web
moved home categories into its own less file
psychobunnyef5bd9dc6108
diff --git a/public/css/home.less b/public/css/home.lessnew file mode 100644index 0000000000..cd9d6a15c3--- /dev/null+++ b/public/css/home.less@@ -0,0 +1,77 @@++.categories {+ h4 {+ font-weight: 700;+ text-align: left;+ /*color: #555;*/ // NOTE: color for cat/topic header links should be grey in the default theme when we get around to it.+ white-space: nowrap;+ overflow: hidden;+ text-overflow: ellipsis;+ }+ a {+ text-decoration: none;+ border: 0;+ }+ .icon {+ width: 100%;+ height: 110px;+ text-align: center;+ border-radius: 0px;+ margin: 0;+ padding-top:25px;+ cursor: pointer;+ margin-bottom: 20px;+ border-radius: 5px;+ overflow:hidden;+ }++}++.category-purple {+ @color: #ab1290;+ background: @color;+ color: white;++ &:hover {+ background: lighten(@color, 10%);+ }+}++.category-darkblue {+ @color: #004C66;+ background: @color;+ color: white;++ &:hover {+ background: lighten(@color, 10%);+ }+}++.category-blue {+ @color: #0059B2;+ background: @color;+ color: white;++ &:hover {+ background: lighten(@color, 10%);+ }+}++.category-darkgreen {+ @color: #004000;+ background: @color;+ color: white;++ &:hover {+ background: lighten(@color, 10%);+ }+}+.category-orange {+ @color: #FF7A4D;+ color: white;+ background: @color;++ &:hover {+ background: lighten(@color, 10%);+ }+}\ No newline at end of filediff --git a/public/css/nodebb.less b/public/css/nodebb.lessindex 78c464f8b4..ca1d45264e 100644--- a/public/css/nodebb.less+++ b/public/css/nodebb.less@@ -2,4 +2,5 @@@import "topic";@import "category";-@import "noscript";\ No newline at end of file+@import "noscript";+@import "home";\ No newline at end of filediff --git a/public/css/style.less b/public/css/style.lessindex a419de749c..7f5ca9260e 100644--- a/public/css/style.less+++ b/public/css/style.less@@ -810,85 +810,3 @@ a:hover, .btn-link:hover, .btn-link:active, .btn-link:focus {}}---/*START: Goes into home.less */--.categories {- h4 {- font-weight: 700;- text-align: left;- /*color: #555;*/ // NOTE: color for cat/topic header links should be grey in the default theme when we get around to it.- white-space: nowrap;- overflow: hidden;- text-overflow: ellipsis;- }- a {- text-decoration: none;- border: 0;- }- .icon {- width: 100%;- height: 110px;- text-align: center;- border-radius: 0px;- margin: 0;- padding-top:25px;- cursor: pointer;- margin-bottom: 20px;- border-radius: 5px;- overflow:hidden;- }--}--.category-purple {- @color: #ab1290;- background: @color;- color: white;-- &:hover {- background: lighten(@color, 10%);- }-}--.category-darkblue {- @color: #004C66;- background: @color;- color: white;-- &:hover {- background: lighten(@color, 10%);- }-}--.category-blue {- @color: #0059B2;- background: @color;- color: white;-- &:hover {- background: lighten(@color, 10%);- }-}--.category-darkgreen {- @color: #004000;- background: @color;- color: white;-- &:hover {- background: lighten(@color, 10%);- }-}-.category-orange {- @color: #FF7A4D;- color: white;- background: @color;-- &:hover {- background: lighten(@color, 10%);- }-}--/*END: Goes into home.less */\ No newline at end of file