SPR-867: Tags + Form for Tagcloud

This commit is contained in:
Silke Pisulla 2017-03-09 11:37:12 +01:00
commit 24b8fdfaf2
4 changed files with 130 additions and 1 deletions

View file

@ -6,7 +6,6 @@
/* + + + + + plugin tabinclude + + + + + */
div#dwpl-ti-container {
/* + + + tabnav + + + */
@ -20,6 +19,7 @@ div#dwpl-ti-container {
background-color: @background_page-header;
border-radius: inherit;
padding: .1em .35em;
&.selected {
background-color: @color-site-bg;
}

117
css/plugins/tagging.less Normal file
View file

@ -0,0 +1,117 @@
/**
* This file provides styles for the form in tagcloud
*/
/* + + + + + plugin tagging + + + + + */
#spr__meta-box {
ul.tagging_cloud {
width: 100%;
padding-right: 0;
li {
&.t0 a {
font-size: .9rem;
}
&.t1 a {
font-size: 1rem;
}
&.t2 a {
font-size: 1.1rem;
}
&.t3 a {
font-size: 1.2rem;
}
&.t4 a {
font-size: 1.3rem;
}
&.t5 a {
font-size: 1.4rem;
}
&.t6 a {
font-size: 1.5rem;
}
&.t7 a {
font-size: 1.6rem;
}
&.t8 a {
font-size: 1.7rem;
}
&.t9 a {
font-size: 1.8rem;
}
&.t10 a {
font-size: 1.9rem;
}
}
}
form#tagging__edit {
width: 100%;
label {
display: block;
}
input.edit {
width: 100%;
margin-bottom: .5rem;
}
}
}
/* + + + + + + + + + + + + + + + + + + + + + + + + + + */
/* max-width: 479px */
@media @screen_max-md {
#spr__meta-box {
form {
&#tagging__edit {
label {
display: inline-block;
min-width: 50%;
vertical-align: top;
margin-bottom: .5rem;
}
input.edit {
margin-bottom: 0;
}
}
}
}
}
@media @screen_max-xs {
#spr__meta-box {
form {
div > button[type="submit"] {
width: 49%;
padding: 0;
}
&#tagging__edit {
&::after {
content: '';
clear: both;
display: block;
}
label {
display: block;
width: 100%;
}
button[type="submit"] {
float: right;
&:first-of-type {
float: left;
}
}
}
}
}
}