dokuwiki-template-sprintdoc.../css/area_nav-usertools.less

330 lines
9 KiB
Text
Executable file

/**
* This file provides the design styles for the direct / menu jump links.
*
* @author Jana Deutschlaender <deutschlaender@cosmocode.de>
*/
.nav-usertools {
&.has-bar {
margin-top: @height-context-bar;
padding-top: .5em;
}
/* + + + + + icon list + + + + + */
ul {
float: right;
padding: 0;
margin: (@very-small-spacing * 2) -(@very-small-spacing) 0 0;
li {
.btn-usertools-wrapper(); // uniform li
.btn-usertools-num();
float: right;
min-height: 28px;
> strong,
> a {
display: block;
width: auto;
min-height: @toggle-size;
border: 1px solid @color-border;
border-radius: @border-radius;
color: @color-nav;
text-align: center;
margin: 0;
@media @screen_max-xxlg {
min-height: 28px;
}
@media @screen_max-md {
min-height: @toggle-size;
}
}
&.noopentasks {
strong {
background-color: @color-site-bg;
}
.num {
background-color: @noopentasks-background; // fix
color: @noopentasks-color; // fix
}
}
&.user {
position: relative;
display: table-cell;
padding: 1px .2em 0 1px; // 1px for border
&::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
border: solid 1px @color-border;
border-radius: @border-radius;
}
> a {
background: #FFF; // for removing bg-image
border: 0 none;
text-indent: 0;
color: @color-nav;
font-size: inherit;
margin-top: -1px; // for border
margin-right: -.2em;
padding: 0 .2em 0 0;
@media @screen_only-lg {
padding-top: .25rem;
}
&::before {
content: '';
position: absolute;
left: 0;
right: 0;
bottom: 0;
display: block;
border: solid 1px @color-border;
border-radius: @border-radius;
transition: @transition border-color;
@media @screen_min-xxlg {
top: -3px;
}
@media @screen_max-xxlg {
top: -4px;
}
@media @screen_max-xlg {
top: -3px;
}
}
&:hover,
&:focus,
&:active {
background-color: @color-nav-hover-bg;
color: @color-nav-hover;
&::before {
border-color: @color-nav-hover;
}
bdi,
bdi:first-of-type {
color: @color-nav-hover;
&::before {
color: inherit;
}
}
}
}
bdi {
color: inherit;
display: inline-block;
padding-top: 1px;
transition: @transition color;
}
bdi:first-of-type {
.fontello();
.icon-user-circle();
position: relative;
margin: 0 0 .3em .25rem;
@media @screen_min-xxlg {
margin-top: 4px;
padding-left: 1.3rem;
}
@media @screen_max-xxlg {
margin-top: 5px;
padding-left: 1.5rem;
}
@media @screen_max-xlg {
margin-top: 5px;
padding-left: 1.5rem;
}
@media @screen_max-md {
min-height: 1.15rem;
margin-top: 5px;
}
@media @screen_max-xxs {
margin-top: 4px;
}
&::before {
position: absolute;
left: -2px;
font-size: 1.4rem;
color: @color-nav;
margin: 0;
transition: @transition color;
@media @screen_min-xlg {
top: -2px;
}
@media @screen_max-xlg {
top: -1px;
}
@media @screen_max-md {
top: -2px;
}
}
}
a {
bdi:first-of-type {
@media @screen_min-xxlg {
margin-top: 5px;
}
@media @screen_max-xxlg {
margin-top: 6px;
}
@media @screen_max-xlg {
margin-top: 3px;
}
@media @screen_max-md {
margin-top: 5px;
}
}
}
} // user
&.user-task {
position: relative;
a {
position: relative;
overflow: visible;
white-space: normal;
text-indent: 0;
@media @screen_only-lg {
padding-top: .14rem;
}
&::before {
content: '';
position: absolute;
}
}
.prefix {
.btn-prefix();
.icon-clipboard();
display: block;
font-size: 1.2rem;
text-align: center;
margin-bottom: -1px;
}
} // user-task
} // li
/* + + + icons + + + */
a {
.fontello();
.hide-text-show-before();
cursor: pointer;
background-color: #fff;
text-decoration: none;
transition: @transition color, @transition background-color, @transition border-color;
@media @screen_only-lg {
min-width: 2rem;
}
&::before {
content: "?";
display: block;
width: 100%;
box-sizing: border-box;
font-size: @font-size-default + (@font-scale-factor * 4);
cursor: pointer;
margin: 0;
@media @screen_min-xxlg {
margin-top: .15rem;
}
@media @screen_max-xxlg {
margin-top: .25rem;
}
@media @screen_max-md {
margin-top: .15rem;
}
}
&:hover,
&:active,
&:focus {
background-color: @color-nav-hover-bg;
border-color: @color-nav-hover;
color: @color-nav-hover;
}
/* icon register new user */
&.register {
.icon-user();
}
/* icon log-out */
&.logout {
.icon-logout();
&::before {
@media @screen_only-lg {
margin-top: .3rem;
}
}
}
/* icon log-in */
&.login {
.icon-login();
&::before {
@media @screen_only-lg {
margin-top: .3rem;
}
}
}
/* icon admin */
&.admin {
.icon-cog();
&::before {
@media @screen_only-lg {
margin-top: .28rem;
}
}
}
} // a
} // ul
} // nav-usertools