Changeset - 6085ccdf56a8
[Not reviewed]
default
0 2 1
domruf - 8 years ago 2017-12-16 17:43:57
dominikruf@gmail.com
less: introduce main.less that imports kallithea.less and other less files

Some imports are moved from style.less for a better overview.

Modified by Mads Kiilerich.
3 files changed with 18 insertions and 20 deletions:
0 comments (0 inline, 0 general)
kallithea/public/less/main.less
Show inline comments
 
new file 100644
 
/*!
 
 * Don't edit the css file directly.
 
 *
 
 * Instead, edit the less file(s) and regenerate the css:
 
 *
 
 * npm --prefix kallithea/public/less install
 
 * npm --prefix kallithea/public/less run less
 
 *
 
 */
 

	
 
/* kallithea styles */
 
@import "kallithea-variables.less";
 
@import "kallithea-tags.less";
 
@import "yui-ac.less";
 
@import "kallithea-select2.less";
 
@import "kallithea-diff.less";
 
@import "style.less";
kallithea/public/less/package.json
Show inline comments
 
{
 
  "name": "kallithea",
 
  "private": true,
 
  "dependencies": {},
 
  "devDependencies": {
 
    "less": "~2.7",
 
    "less-plugin-clean-css": "~1.5"
 
  },
 
  "scripts": {
 
    "less": "lessc style.less ../css/style.css"
 
    "less": "lessc main.less ../css/style.css"
 
  }
 
}
kallithea/public/less/style.less
Show inline comments
 
/*!
 
 * Don't edit the css file directly.
 
 *
 
 * Instead, edit the less file(s) and regenerate the css:
 
 *
 
 * npm --prefix kallithea/public/less install
 
 * npm --prefix kallithea/public/less run less
 
 *
 
 */
 

	
 
@import "kallithea-variables.less";
 

	
 
body {
 
  background: url("../images/background.png") repeat scroll 0 0 #B0B0B0;
 
}
 

	
 
a {
 
  color: #577632;
 
  text-decoration: none;
 
}
 
a:hover {
 
  color: #576622;
 
  text-decoration: underline;
 
}
 
@@ -206,26 +194,24 @@ div.panel.panel-default > div.panel-head
 
}
 
#content div.panel ul.pagination > li.active > span,
 
#content div.panel ul.pagination > li:hover > a,
 
#content div.panel ul.pagination > li:active > a {
 
  background: #b4b4b4 url("../images/pager_selected.png") repeat-x;
 
  border-top: 1px solid #ccc;
 
  border-left: 1px solid #bebebe;
 
  border-bottom: 1px solid #afafaf;
 
  border-right: 1px solid #bebebe;
 
  color: #515151;
 
}
 

	
 
@import "kallithea-tags.less";
 

	
 
#footer {
 
  background-color: #577632;
 
  margin-bottom: 0;
 
}
 
#footer > span {
 
  color: #FFF;
 
  font-weight: 700;
 
}
 
#footer .navbar-link {
 
  color: #FFF;
 
}
 

	
 
@@ -672,25 +658,24 @@ table#changesets tr > td.mid .message a:
 
  margin-bottom: 10px;
 
  padding: 10px 0;
 
}
 
.panel .search div.search_path div.link {
 
  font-weight: 700;
 
  margin-left: 25px;
 
}
 
.panel .search div.search_path div.link a {
 
  color: #577632;
 
  cursor: pointer;
 
  text-decoration: none;
 
}
 
@import "yui-ac.less";
 

	
 
#repo_size {
 
  display: block;
 
  margin-top: 4px;
 
  color: #666;
 
  float: right;
 
}
 
.currently_following {
 
  padding-left: 10px;
 
  padding-bottom: 5px;
 
}
 
#switch_repos {
 
@@ -842,26 +827,24 @@ div#legend_choices {
 
}
 

	
 
#content #left #menu ul.closed,
 
#content #left #menu li ul.collapsed,
 
.yui-tt-shadow {
 
  display: none;
 
}
 
#content #left #menu ul.opened,
 
#content #left #menu li ul.expanded {
 
  display: block !important;
 
}
 

	
 
@import "kallithea-select2.less";
 

	
 
#content div.panel ol.lower-roman,
 
#content div.panel ol.upper-roman,
 
#content div.panel ol.lower-alpha,
 
#content div.panel ol.upper-alpha,
 
#content div.panel ol.decimal {
 
  margin: 10px 24px 10px 44px;
 
}
 
/* formencode htmlfill adds 'error' to failing input fields */
 
#content div.panel div.form div.form-group > div input.error,
 
#login div.form div.form-group > div input.error,
 
#register div.form div.form-group > div input.error {
 
  background: #FBE3E4;
 
@@ -1162,26 +1145,24 @@ span.pr-closed-tag {
 
}
 

	
 
/* avoid gaps between the navbar and browser */
 
.navbar.mainmenu {
 
  border-top-left-radius: 0;
 
  border-top-right-radius: 0;
 
}
 
.navbar.footer {
 
  border-bottom-left-radius: 0;
 
  border-bottom-right-radius: 0;
 
}
 

	
 
@import "kallithea-diff.less";
 

	
 
/* show some context of link targets - but only works when the link target
 
   can be extended with any visual difference */
 
div.comment:target:before {
 
  display: block;
 
  height: 100px;
 
  margin: -100px 0 0;
 
  content: "";
 
}
 
div.comment:target > .panel {
 
  border: solid 2px #ee0 !important;
 
}
 
.lineno:target a {
0 comments (0 inline, 0 general)