Skip to content

Commit

Permalink
adding lindat-services for backwards comp, renaming lindat-services t…
Browse files Browse the repository at this point in the history
…o lindat-tools in standalone
  • Loading branch information
kosarko committed Oct 21, 2015
1 parent d491d54 commit 9742cce
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
22 changes: 14 additions & 8 deletions src/lindat.less
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
// }
//
// For new items just add items to both lists below.
@menu-items: home, repository, pmltq, treex, tools, events, about;
@menu-items: home, repository, pmltq, treex, tools services, events, about;
@menu-colors: @common-color, @repository-color, @pmltq-color, @common-color, @common-color, @common-color, @common-color;

/* The only two global things we have to set */
Expand Down Expand Up @@ -349,17 +349,23 @@ body {

// Generate css for menu items (see variables at the beginning of the file)
.createMenu(@item:1) when (@item <= length(@menu-items)) {
@name: extract(extract(@menu-items, @item), 1);
@names: extract(@menu-items, @item);
@color: extract(extract(@menu-colors, @item), 1);

#lindat-@{name} {
.lindat-header,
.lindat-menu > li > a:hover,
.lindat-@{name}-item > a,
{
border-bottom-color: @color;
.loopNames(@counter:1) when (@counter <= length(@names)){
@name: extract(@names, @counter);
#lindat-@{name} {
.lindat-header,
.lindat-menu > li > a:hover,
.lindat-@{name}-item > a,
{
border-bottom-color: @color;
}
}
.loopNames((@counter+1));
}
.loopNames();

.createMenu((@item + 1));
}
.createMenu();
Expand Down
2 changes: 1 addition & 1 deletion src/standalone.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<meta name="description" content="LINDAT CLARIN Research Infrastructure" />
<link href="https://lindat.mff.cuni.cz/common-theme/public/css/lindat.css" rel="stylesheet">
</head>
<body id="lindat-services">
<body id="lindat-tools">
{%- include includeFile -%}
</body>
</html>

0 comments on commit 9742cce

Please sign in to comment.