dokuwiki-template-sprintdoc.../css/area_nav-usertools.less
2017-05-05 14:14:52 +02:00

295 lines
8.2 KiB
Text
Executable file

/**
* This file provides the design styles for the direct / menu jump links.
*
* @author Jana Deutschlaender <deutschlaender@cosmocode.de>
*/
#dokuwiki__usertools.nav-usertools {
@media @screen_min-md {
right: 1.25rem;
}
@media @screen_max-md {
position: absolute;
top: 0;
left: (@toggle-size + 1.25); // margin-left content
right: @headericons-margin-xxs;
margin-top: 0;
margin-right: 0;
}
&.has-bar {
@media @screen_min-md {
margin-top: @height-context-bar;
padding-top: .5em;
}
}
/* + + + + + icon list + + + + + */
ul {
float: right;
padding: 0;
margin: (@very-small-spacing * 2) -.25rem 0 0;
@media @screen_max-md {
margin-right: .5rem;
}
@media @screen_max-xxs {
margin-right: -.3rem;
}
li {
.btn-usertools-wrapper(); // uniform li
.btn-usertools-num();
float: right;
min-height: 28px;
@media @screen_max-xs {
display: block;
float: none;
margin-bottom: @headericons-margin-xxs;
}
> span,
> a {
display: block;
width: auto;
min-height: @toggle-size;
overflow: hidden;
border: 1px solid @wikiicons-border;
border-radius: @ini_default_border_radius; // @ini_default_border_radius vs. @fix_border-radius
text-align: center;
margin: 0;
@media @screen_md-xlg {
padding-top: .14rem;
}
@media @screen_max-xxlg {
min-height: 28px;
}
@media @screen_max-md {
min-height: @toggle-size;
}
@media @screen_only-lg {
min-width: 2rem;
}
}
/* !!! &.user-task FIND in plugins/do_tasks.less !!! */
&.user {
@space-min-xxlg: .35rem;
@space-max-xxlg: .4rem;
@space-max-xlg: .5rem;
@space-max-md: .35rem;
position: relative;
display: table-cell;
background-color: @ini_background_site;
border: solid 1px @wikiicons-border;
border-radius: @ini_default_border_radius; // @ini_default_border_radius vs. @fix_border-radius
color: @ini_text_webframe;
padding-right: .3rem;
@media @screen_min-xxlg {
padding-top: @space-min-xxlg;
}
@media @screen_max-xxlg {
padding-top: @space-max-xxlg;
}
@media @screen_max-xlg {
padding-top: @space-max-xlg;
}
@media @screen_max-md {
min-height: @toggle-size;
padding-top: @space-max-md;
}
@media @screen_max-xs {
position: absolute;
top: @headericons-margin-xxs;
right: 2.9rem;
overflow: hidden;
white-space: nowrap;
margin: -1px 0 0;
}
@media @screen_max-xxs {
left: -10px;
right: (@toggle-size + @headericons-margin-xxs);
width: auto;
}
> a {
.display-flex();
.align-items();
position: relative;
min-height: 26px;
height: 1rem; // for IE11
overflow: visible;
background: @ini_nav_menu_hover_bg; // for removing bg-image
border: 0 none;
color: @ini_nav_menu_hover_color;
text-indent: 0;
font-size: inherit;
margin-right: -.3rem;
padding: 0 .2em 0 0;
@media @screen_only-xlg {
padding-bottom: .1em;
}
@media @screen_min-xxlg {
margin-top: -(@space-min-xxlg);
}
@media @screen_max-xxlg {
margin-top: -(@space-max-xxlg);
}
@media @screen_max-xlg {
margin-top: -(@space-max-xlg);
}
@media @screen_max-md {
min-height: (@toggle-size - .1);
margin-top: -(@space-max-md);
}
@media @screen_max-xxs {
min-height: (@toggle-size - .15);
}
&::before {
content: '';
top: -1px;
bottom: -1px;
left: -1px;
right: -1px;
width: auto;
opacity: 0;
border: solid 1px @ini_nav_menu_hover_color;
border-radius: @ini_default_border_radius; // @ini_default_border_radius vs. @fix_border-radius
color: inherit;
transform: none;
}
&:hover,
&:focus,
&:active {
background-color: @ini_nav_menu_hover_color;
color: @ini_nav_menu_hover_bg;
&::before {
opacity: 1;
border-color: @ini_nav_menu_hover_bg;
}
bdi,
bdi:first-of-type {
color: @ini_nav_menu_hover_bg;
}
}
}
bdi {
display: inline-block;
color: inherit;
}
bdi:first-of-type {
.fontello();
.icon-user-circle();
position: relative;
margin: 0 0 0 .25rem;
padding: 0 .1rem 0 1.3rem;
&::before {
position: absolute;
left: -2px;
font-size: 1.4rem;
margin: 0;
@media @screen_min-xxlg {
top: -.25rem;
}
@media @screen_max-xxlg {
top: -.2rem;
}
@media @screen_max-xs {
top: -.25rem;
}
}
}
} // user
} // li
/* + + + icons + + + */
a {
.fontello();
.hide-text-show-before();
.btn-hover();
cursor: pointer;
position: relative;
line-height: 1;
text-decoration: none;
@media @screen_md-xlg {
min-width: 2rem;
}
&::before {
.center-middle();
content: "?";
cursor: pointer;
display: block;
width: 100%;
box-sizing: border-box;
font-size: @font-size-default + (@font-scale-factor * 4);
line-height: 1;
}
/* icon register new user */
&.register {
.icon-user();
}
/* icon log-out */
&.logout {
.icon-logout();
}
/* icon log-in */
&.login {
.icon-login();
}
/* icon admin */
&.admin {
.icon-cog();
&::before {
vertical-align: top;
}
}
} // a
} // ul
} // nav-usertools