4 .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
5 input#prefixFilter(v-model="curPrefix" :placeholder="st.tr['Prefix?']")
6 .variant.col-sm-12.col-md-5.col-lg-4(
7 v-for="(v,idx) in filteredVariants"
8 :class="{'col-md-offset-1': idx%2==0, 'col-lg-offset-2': idx%2==0}"
10 router-link(:to="getLink(v.name)")
11 h4.boxtitle.text-center {{ v.name }}
12 p.description.text-center {{ st.tr[v.desc] }}
16 import { store } from "@/store";
26 filteredVariants: function() {
27 const capitalizedPrefix = this.curPrefix.replace(/^\w/, c =>
30 const variants = this.st.variants
32 return v.name.startsWith(capitalizedPrefix);
41 return a.name.localeCompare(b.name);
47 getLink: function(vname) {
48 return "/variants/" + vname;
54 <style lang="sass" scoped>
55 // TODO: box-shadow or box-sizing ? https://stackoverflow.com/a/13517809
60 box-sizing: border-box
61 border: 1px solid brown
62 background-color: lightyellow
64 background-color: yellow
72 @media screen and (max-width: 767px)