1
0
mirror of synced 2024-11-29 08:36:12 +03:00
vue-formulario/examples/FormulateSpecimens.vue

110 lines
2.2 KiB
Vue
Raw Normal View History

2020-03-27 16:39:47 +03:00
<template>
2020-10-09 22:58:28 +03:00
<div
id="app"
class="specimen-list"
>
<SpecimenButton />
<SpecimenBox />
<SpecimenFile />
<SpecimenGroup />
<SpecimenSelect />
<SpecimenSlider />
<SpecimenText />
<SpecimenTextarea />
</div>
2020-03-27 16:39:47 +03:00
</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 {
2020-10-09 22:58:28 +03:00
name: 'App',
components: {
SpecimenButton,
SpecimenBox,
SpecimenText,
SpecimenTextarea,
SpecimenGroup,
SpecimenFile,
SpecimenSlider,
SpecimenSelect,
2020-03-27 16:39:47 +03:00
}
}
</script>
<style lang="scss">
2020-10-09 22:58:28 +03:00
$formulate-font-stack: Arial, sans-serif;
$formulate-gray: gray;
$formulate-green: green;
2020-03-29 04:56:11 +03:00
body {
2020-10-09 22:58:28 +03:00
margin: 0;
padding: 0;
font-family: $formulate-font-stack;
2020-03-29 04:56:11 +03:00
}
2020-10-09 22:58:28 +03:00
h2 {
2020-10-09 22:58:28 +03:00
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;
}
2020-04-16 16:22:58 +03:00
2020-10-09 22:58:28 +03:00
.specimen-list {
padding: 1em;
max-width: 1200px;
margin: 0 auto;
@media (min-width: 756px) {
padding: 2em;
}
}
2020-10-09 22:58:28 +03:00
.specimens {
2020-10-09 22:58:28 +03:00
@media (min-width: 500px) {
display: flex;
justify-content: flex-start;
flex-wrap: wrap;
}
&:last-child {
border-bottom: 0;
}
2020-04-16 16:22:58 +03:00
}
.specimen {
2020-10-09 22:58:28 +03:00
max-width: 400px;
padding: 1em;
box-sizing: border-box;
2020-10-09 22:58:28 +03:00
@media (min-width: 500px) {
width: 50%;
border-bottom: 1px solid $formulate-gray;
&:nth-of-type(odd) {
border-right: 1px solid $formulate-gray;
}
}
2020-10-09 22:58:28 +03:00
@media (min-width: 900px) {
width: 33.332%;
border-right: 1px solid $formulate-gray;
2020-10-09 22:58:28 +03:00
&:nth-of-type(3n) {
border-right: 0;
}
}
}
2020-03-27 16:39:47 +03:00
</style>