Skip to content

Commit

Permalink
feat(client): use full-width form for mobile devices
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Aug 7, 2022
1 parent a17ddaf commit 722c4fb
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 40 deletions.
28 changes: 0 additions & 28 deletions build/yaml.ts

This file was deleted.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"yml-register": "^1.0.0",
"yakumo": "^0.3.1",
"yakumo-esbuild": "^0.3.3",
"yakumo-esbuild-yaml": "^0.3.0",
"yakumo-mocha": "^0.3.0",
"yakumo-publish": "^0.3.0",
"yakumo-tsc": "^0.3.0",
Expand Down
5 changes: 1 addition & 4 deletions packages/client/client/components/icons/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { App, Component, defineComponent, h } from 'vue'
import { IconCog, IconExternal, IconEye, IconEyeSlash } from 'schemastery-vue'
import { IconExternal, IconEye, IconEyeSlash } from 'schemastery-vue'
import Home from './activity/home.vue'
import Moon from './activity/moon.vue'
import Sun from './activity/sun.vue'
import Application from './svg/application.vue'
import Balance from './svg/balance.vue'
import Book from './svg/book.vue'
import BoxOpen from './svg/box-open.vue'
import CheckFull from './svg/check-full.vue'
import ChevronDown from './svg/chevron-down.vue'
Expand Down Expand Up @@ -47,15 +46,13 @@ register('activity:sun', Sun)

register('application', Application)
register('balance', Balance)
register('book', Book)
register('box-open', BoxOpen)
register('check-full', CheckFull)
register('chevron-down', ChevronDown)
register('chevron-left', ChevronLeft)
register('chevron-right', ChevronRight)
register('chevron-up', ChevronUp)
register('clipboard-list', ClipboardList)
register('cog', IconCog)
register('edit', Edit)
register('exclamation-full', ExclamationFull)
register('expand', Expand)
Expand Down
5 changes: 0 additions & 5 deletions packages/client/client/components/icons/svg/book.vue

This file was deleted.

32 changes: 30 additions & 2 deletions packages/client/client/components/layout/content.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,40 @@
</el-scrollbar>
</template>

<style lang="scss" scoped>
<style lang="scss">
.k-content {
--content-padding: 3rem;
margin: auto;
max-width: 50rem;
padding: 3rem 3rem 1rem;
padding: 3rem var(--content-padding) 1rem;
> :first-child {
margin-top: 0;
}
@media screen and (max-width: 768px) {
--content-padding: 2rem;
}
@media screen and (max-width: 480px) {
--content-padding: 1.5rem;
}
@media screen and (max-width: 480px) {
.k-form {
margin: 0 -1.5rem;
h2 {
padding: 0 1.5rem;
}
.schema-item {
padding: 0.5rem 1.5rem;
}
}
}
}
</style>
2 changes: 1 addition & 1 deletion yakumo.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require:
- esbuild-register
- ./build/yaml
- yakumo-esbuild-yaml
- ./build/client

0 comments on commit 722c4fb

Please sign in to comment.