1
0
mirror of synced 2024-11-22 21:36:04 +03:00
vue-formulario/examples/FormulateSpecimens.vue

107 lines
1.9 KiB
Vue
Raw Normal View History

2020-03-27 16:39:47 +03:00
<template>
<div
id="app"
class="specimen-list"
>
<SpecimenButton />
<SpecimenBox />
<SpecimenFile />
2020-04-16 16:22:58 +03:00
<SpecimenGroup />
<SpecimenSelect />
<SpecimenSlider />
2020-03-29 04:56:11 +03:00
<SpecimenText />
<SpecimenTextarea />
2020-03-27 16:39:47 +03:00
</div>
</template>
<script>
2020-03-29 04:56:11 +03:00
import SpecimenText from './specimens/SpecimenText'
import SpecimenTextarea from './specimens/SpecimenTextarea'
2020-04-16 16:22:58 +03:00
import SpecimenGroup from './specimens/SpecimenGroup'
import SpecimenFile from './specimens/SpecimenFile'
import SpecimenButton from './specimens/SpecimenButton'
import SpecimenBox from './specimens/SpecimenBox'
import SpecimenSlider from './specimens/SpecimenSlider'
import SpecimenSelect from './specimens/SpecimenSelect'
2020-03-29 04:56:11 +03:00
2020-03-27 16:39:47 +03:00
export default {
name: 'App',
2020-03-29 04:56:11 +03:00
components: {
SpecimenButton,
SpecimenBox,
2020-04-16 16:22:58 +03:00
SpecimenText,
SpecimenTextarea,
SpecimenGroup,
SpecimenFile,
SpecimenSlider,
SpecimenSelect
2020-03-29 04:56:11 +03:00
},
2020-03-27 16:39:47 +03:00
data () {
return {
}
}
}
</script>
<style lang="scss">
2020-03-29 04:56:11 +03:00
body {
margin: 0;
padding: 0;
2020-03-29 04:56:11 +03:00
font-family: $formulate-font-stack;
}
h2 {
display: block;
width: 100%;
position: sticky;
top: 0;
background-color: white;
padding: .5em 0;
color: $formulate-green;
border-bottom: 1px solid $formulate-gray;
margin: 2em 0 0 0;
z-index: 10;
}
.specimen-list {
padding: 1em;
max-width: 1200px;
margin: 0 auto;
@media (min-width: 756px) {
padding: 2em;
}
2020-04-16 16:22:58 +03:00
}
.specimens {
@media (min-width: 500px) {
display: flex;
justify-content: flex-start;
flex-wrap: wrap;
}
2020-04-16 16:22:58 +03:00
&:last-child {
border-bottom: 0;
}
}
.specimen {
max-width: 400px;
padding: 1em;
box-sizing: border-box;
@media (min-width: 500px) {
width: 50%;
border-bottom: 1px solid $formulate-gray;
&:nth-of-type(odd) {
border-right: 1px solid $formulate-gray;
}
}
@media (min-width: 900px) {
width: 33.332%;
border-right: 1px solid $formulate-gray;
&:nth-of-type(3n) {
border-right: 0;
}
}
}
2020-03-27 16:39:47 +03:00
</style>