Skip to content

Commit

Permalink
pkp/pkp-lib#836 Fix white-space issues
Browse files Browse the repository at this point in the history
  • Loading branch information
NateWr authored and asmecher committed Nov 3, 2015
1 parent 7c7e230 commit 4cb366b
Show file tree
Hide file tree
Showing 2 changed files with 89 additions and 90 deletions.
178 changes: 89 additions & 89 deletions plugins/themes/default/styles/helpers.less
Original file line number Diff line number Diff line change
Expand Up @@ -8,103 +8,103 @@
* @brief Helper classes and reusable components
*/

//
// A horizontal navigation list
//
// This component is applied to the hierarchical unordered navigation lists. It
// supports nested lists that will be displayed on hover/focus.
//
// <ul class="pkp_nav_list">
// <li class="has-submenu">
// <a href="#">1</a>
// <ul>
// <li>
// <a href="#">1-a</a>
// </li>
// </ul>
// </li>
// </ul>
//
.pkp_nav_list {
margin: 0;
padding: 0;
list-style: none;
//
// A horizontal navigation list
//
// This component is applied to the hierarchical unordered navigation lists. It
// supports nested lists that will be displayed on hover/focus.
//
// <ul class="pkp_nav_list">
// <li class="has-submenu">
// <a href="#">1</a>
// <ul>
// <li>
// <a href="#">1-a</a>
// </li>
// </ul>
// </li>
// </ul>
//
.pkp_nav_list {
margin: 0;
padding: 0;
list-style: none;

li {
position: relative;
display: inline-block;
}
li {
position: relative;
display: inline-block;
}

a {
display: block;
padding-left: 1em;
padding-right: 1em;
text-decoration: none;
padding-top: @half;
padding-bottom: @half;
a {
display: block;
padding-left: 1em;
padding-right: 1em;
text-decoration: none;
padding-top: @half;
padding-bottom: @half;

&:hover,
&:focus {
color: @primary;
}
}
&:hover,
&:focus {
color: @primary;
}
}

ul {
position: absolute;
top: 100%;
left: -9999px;
z-index: 1000;
width: 15em;
margin: 0;
padding: 0;
background: @primary-lift;
ul {
position: absolute;
top: 100%;
left: -9999px;
z-index: 1000;
width: 15em;
margin: 0;
padding: 0;
background: @primary-lift;

li {
display: block;
}
li {
display: block;
}

ul {
top: 0;
background: @primary-lift;
border-left: 4px solid @primary;
}
ul {
top: 0;
background: @primary-lift;
border-left: 4px solid @primary;
}

a:hover,
a:focus {
background: @primary;
}
a:hover,
a:focus {
background: @primary;
}

li:hover > ul,
li:focus > ul,
li.in_focus > ul {
left: 100%;
}
}
li:hover > ul,
li:focus > ul,
li.in_focus > ul {
left: 100%;
}
}

li:hover > ul,
li:focus > ul,
li.in_focus > ul {
left: 0;
}
li:hover > ul,
li:focus > ul,
li.in_focus > ul {
left: 0;
}

// Dropdown caret indicating submenus
// @todo these can probably abstracted into reusable components
.has-submenu > a:after {
content: ' ';
width: 0;
height: 0;
display: inline-block;
margin-left: 0.5em;
border-top: 4px solid;
border-right: 4px solid transparent;
border-left: 4px solid transparent;
vertical-align: middle;
}
// Dropdown caret indicating submenus
// @todo these can probably abstracted into reusable components
.has-submenu > a:after {
content: ' ';
width: 0;
height: 0;
display: inline-block;
margin-left: 0.5em;
border-top: 4px solid;
border-right: 4px solid transparent;
border-left: 4px solid transparent;
vertical-align: middle;
}

ul .has-submenu > a:after {
border-left: 4px solid;
border-top: 4px solid transparent;
border-bottom: 4px solid transparent;
border-right: 4px solid transparent;
}
}
ul .has-submenu > a:after {
border-left: 4px solid;
border-top: 4px solid transparent;
border-bottom: 4px solid transparent;
border-right: 4px solid transparent;
}
}
1 change: 0 additions & 1 deletion templates/frontend/pages/about.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
</div>
{/if}


{* Contact section *}
<div class="contact_section">
<h2>
Expand Down

0 comments on commit 4cb366b

Please sign in to comment.