Add columns selector JS component and change Rails view to use it

This commit is contained in:
lalo
2019-04-10 10:50:50 +02:00
parent 139b2720d8
commit 4740aeaddf
25 changed files with 356 additions and 65 deletions

View File

@@ -1258,6 +1258,44 @@ table {
}
}
.columns-selector {
span[class^="icon-"] {
vertical-align: middle;
}
}
.columns-selector-wrapper {
background: $light-gray;
padding: 2rem;
border-radius: 10px;
margin-bottom: 1rem;
&.hidden {
display: none;
}
.column-selector-item {
display: inline-block;
&.hidden {
display: none;
}
label {
font-size: 17px;
line-height: 1.5rem;
}
}
}
.column-selecteable {
.hidden {
display: none;
}
}
// 11. Newsletters
// -----------------