uniform styles for icon-buttons (+ mixin for prefix added)

This commit is contained in:
Silke Pisulla 2017-01-04 13:21:37 +01:00
commit fb408e5e99
4 changed files with 32 additions and 46 deletions

View file

@ -69,19 +69,28 @@
float: left;
.prefix {
.fontello();
.hide-text-show-before();
.icon-clipboard();
> strong,
> a {
display: block;
width: auto;
min-height: 2em;
border: 1px solid @color-border;
border-radius: @border-radius;
color: @color-nav;
font-size: 1.3em;
margin-top: .2rem;
text-align: center;
margin: 0;
}
.prefix {
.btn-prefix ();
.icon-clipboard();
}
/* check !!! */
&.do_none {
&:not([class*="plugin__qc"]) {
position: relative;
strong {
background-color: @color-site-bg;
}
@ -99,13 +108,6 @@
} // li
a {
display: block;
width: auto;
min-height: 2em;
margin: 0;
border: 1px solid @color-border;
border-radius: @border-radius;
color: @color-nav;
transition: @transition color, @transition border-color;
&[aria-expanded="false"] + #plugin__qc__wrapper {

View file

@ -37,6 +37,10 @@
}
&.noopentasks {
strong {
background-color: @color-site-bg;
}
.num {
background-color: @color-border;
color: @color-nav;
@ -86,13 +90,8 @@
}
.prefix {
.fontello();
.hide-text-show-before();
.btn-prefix ();
.icon-clipboard();
color: @color-nav;
font-size: 1.3em;
margin-top: .2rem;
}
&.opentasks,

View file

@ -185,6 +185,15 @@
}
}
.btn-prefix () {
.fontello();
.hide-text-show-before();
color: @color-nav;
font-size: 1rem;
margin-top: .2rem;
}
.btn-default-size() {
height: 1rem;

View file

@ -4,30 +4,6 @@
ul.page-attributes {
.plugin__do_pagetasks {
@icon-size: 2em;
.btn-usertools-num ();
.prefix {
.fontello();
.hide-text-show-before();
.icon-clipboard();
color: @color-nav;
display: block;
width: 100%;
box-sizing: border-box;
font-size: 1.3em;
margin: .2rem 0 0;
}
&.do_none {
position: relative;
height: 1rem;
width: 1rem;
box-sizing: border-box;
border: 1px solid @color-border;
border-radius: @border-radius;
}
&.do_none { }
}
}