mixins for "num" and li as wrapper for icon-buttons
This commit is contained in:
parent
062754f880
commit
8de9d2c986
1 changed files with 42 additions and 0 deletions
|
@ -141,6 +141,47 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* + + + + + small icon-buttons (breadcrumb, page-header) + + + + + */
|
||||||
|
.btn-usertools-wrapper(@elem:2em) {
|
||||||
|
display: inline-block;
|
||||||
|
min-height: @elem;
|
||||||
|
min-width: @elem;
|
||||||
|
box-sizing: border-box;
|
||||||
|
color: @color-nav;
|
||||||
|
font-size: .8rem;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0 .2rem 0 .1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-usertools-num () {
|
||||||
|
.num {
|
||||||
|
position: absolute;
|
||||||
|
right: -.4em;
|
||||||
|
top: -.4em;
|
||||||
|
background-color: @color-border;
|
||||||
|
border-radius: 2px;
|
||||||
|
color: @color-nav;
|
||||||
|
font-size: .6rem;
|
||||||
|
font-weight: 400;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 100%;
|
||||||
|
padding: .2em .3em .1em;
|
||||||
|
transition: @transition color, @transition background-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
&:hover,
|
||||||
|
&:active,
|
||||||
|
&:focus {
|
||||||
|
.num {
|
||||||
|
background-color: @button_color;
|
||||||
|
color: @button_background;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.btn-default-size() {
|
.btn-default-size() {
|
||||||
height: 1rem;
|
height: 1rem;
|
||||||
width: 1rem;
|
width: 1rem;
|
||||||
|
@ -178,6 +219,7 @@
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
text-indent: -9999px;
|
text-indent: -9999px;
|
||||||
|
|
||||||
&::before{
|
&::before{
|
||||||
text-indent: 0;
|
text-indent: 0;
|
||||||
float: right;
|
float: right;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue