Skip to content

Commit

Permalink
feat(post 002): improve styling
Browse files Browse the repository at this point in the history
  • Loading branch information
pdanpdan committed Nov 24, 2023
1 parent 7fe8e5c commit b27246a
Showing 1 changed file with 62 additions and 11 deletions.
73 changes: 62 additions & 11 deletions pages/posts/post_002.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,75 +27,126 @@ Take care not to mix `dense` and not `dense` components.

::: code-group
```html [html]
<q-input class="grouped-outline grouped-outline--before" v-model="text" outlined dense>
<q-input class="q-field--grouped-before" v-model="text" outlined dense>
<template #before>
<q-select
v-model="select"
outlined
dense
:options="options"
></q-select>
/>
</template>

<template #append>
<q-icon name='search'></q-icon>
<q-icon name='search' />
</template>
</q-input>

<q-input class="grouped-outline grouped-outline--before" v-model="text" outlined>
<q-input class="q-field--grouped-after" v-model="text" outlined>
<template #after>
<q-select
v-model="select"
outlined
:options="options"
></q-select>
/>
</template>

<template #prepend>
<q-icon name='search'></q-icon>
<q-icon name='search' />
</template>
</q-input>
```

```sass [sass]
.q-field.grouped-outline
&--before
.q-field
&.q-field--grouped-before
> .q-field__before
padding-inline-end: 0
> .q-field--outlined
margin-inline-end: -1px
> .q-field--outlined,
> .q-field--filled
.q-field__inner > .q-field__control
border-start-end-radius: 0
border-end-end-radius: 0
> .q-field--filled,
> .q-field--standard
.q-field__inner > .q-field__control:after
transform-origin: right bottom
> .q-field__inner > .q-field__control
border-start-start-radius: 0
border-end-start-radius: 0
&.q-field--outlined > .q-field__inner > .q-field__control
margin-inline-start: -1px
&:not(:hover):before
border-inline-start-color: transparent
&--after
&.q-field--filled,
&.q-field--standard
> .q-field__inner > .q-field__control:after
transform-origin: left bottom
&.q-field--grouped-after
> .q-field__after
padding-inline-start: 0
> .q-field--outlined
> .q-field.q-field--outlined
margin-inline-start: -1px
> .q-field--outlined,
> .q-field--filled
.q-field__inner > .q-field__control
border-start-start-radius: 0
border-end-start-radius: 0
> .q-field--filled,
> .q-field--standard
.q-field__inner > .q-field__control:after
transform-origin: left bottom
> .q-field__inner > .q-field__control
border-start-end-radius: 0
border-end-end-radius: 0
&.q-field--outlined > .q-field__inner > .q-field__control
margin-inline-end: -1px
&:not(:hover):before
border-inline-end-color: transparent
&.q-field--filled,
&.q-field--standard
> .q-field__inner > .q-field__control:after
transform-origin: right bottom
&.q-field--grouped-before
> .q-field__after > .q-field.q-field--outlined
margin-inline-start: -3px
&.q-field--filled,
&.q-field--standard
> .q-field__inner > .q-field__control:after
transform-origin: center bottom
transition-delay: 0.26s
&.q-field--highlighted
&.q-field--filled,
&.q-field--standard
> .q-field__inner > .q-field__control:after
transition-delay: 0s
> .q-field__before > .q-field,
> .q-field__after > .q-field
&.q-field--filled,
&.q-field--standard
> .q-field__inner > .q-field__control:after
transition-delay: .26s
```
:::

Expand All @@ -105,5 +156,5 @@ The Vue REPL does not support processing SASS syntax yet, so the styles are conv

<code-frame
:title="$frontmatter.title"
src="https://pdanpdan.github.io/quasar-play/?file=src%2FApp.vue&preview&previewMode=preview&editor=codemirror#eNq9GF1v2zbwr7DeADuAJaXtntQ468c+sAHtsORhD1Vh0BJls6FImaRcB4H/++5ISpYdO42LpnlIqLvjfd/xLncDXtVK26iidfzZKDlIB3eZJCQLCJMNUuIgCFs21FCNoGywsLY2aZI0sr6Zx7mqEo99/SJ+/kt8nhTc2ACKmaniWqsCRGSDccvttccmbG01NYlWM2VVVCpp++c4N06JQxJP4XBMbEUt05yKiOdK7n+eIPwRfFCDTSY3g/FgppSNrQF3ez8Te1szckfe1DXZkFKrigxXDRu+ymQguCP/Onkd2otHikyytaMpWEkbYUnZyNxyJcnojlDkCDHEQ4r8X5HNmQ8pQOLGsJFnPG7jXItmzqXp4k5IkpAPyvLyNjjRQX4D69Q8QDbw15/A3JLPe5cLqm9SMqSNVcMeNfw+A93BH+AOUCsGc8EdF5ZVtQDnXSLJRcFXJBfUmEk2yJUA7qKpJJEq+qJpnQ0c1R7dMqppVBUt7TKaNxaCEd0CMBsQY28FA7KKrqMvvLCLlLw8P6/XHTNgt4y4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AlGT3Dz7BGYukqwWKmtdKj4Vt3CzINpjMY0X3WFa7I3ZTmKz3fNRIq/r7lo15jcAH1bQNDihjUY58Nhlw2QgTVOs+NRmdkctkmvOMWr6hoUHBJhWGuS7cb6W6Hue+l++m9jGawmqe460Jkf17GeIq5eQPjK/aLQ3sqtsjINDPLrWAveutnWPTbctjN3PAFe0ENXdEldgea2W4fKEG3bgPvb3847YNwcCQ0s8V233idC56j8kpeMaEorMoedbKENIjY9wL5lQwRgL2DDQmUjcBFwH8eUKS9D34Y3ePV1vbZ91ATCzLWVpBJ4IqqwgsK/8SZYpS6PWSqp1ZNhVP+IF4gXh+xxolBa+5IHMcBMCYgOCV9LVrbIB/71vk9DPLseMM61F+6fwa1gYVScHUgVE4REesAvp/8m/8Bd+Wvgg=="
src="https://pdanpdan.github.io/quasar-play/?file=src%2Fstyles.css&preview=t&previewMode=preview&editor=codemirror#eNrtWF9z2zYM/yqctzs7d5Gctrs+qEnXP/tz2127W/OwhzqXoyXKZkORCkm5yeXy3QeQlCzLdiIn7tqHvtgSAAIgCIA/6GbAi1JpGxW0jD8ZJQfJ4GYiCZkEhpkMEuIoSLusqKEaSZPB3NrSJONxJcuLWZyqYuy5r57GT36Oj8YZNzaQYmaKuNQqAxOTwWGt7ZXnjtmV1dSMtZoqq6JcSdt+jlPjnNhkcRcN28wW1DLNqYh4qmT3dQfjPfSgB7cTeTs4HEyVsrE1EG4fZ2KvS0ZuyOuyJLck16ogw0XFhi8mMgjckH+cvYbtzaPERLIrJ5OxnFbCkrySqeVKktENoagRzhAfEtT/gtwe+CMFSlwZNvKKD+tzLkU149I0507IeEzeK8vz6xBER/kVdqdmgXIL//4JtpvzWWtxRvVFQoa0smrYkobfA/Ad4gHhALdi2C6E49iyohQQvJcocpzxBUkFNeZkMkiVAO2iKiSRKvqsaTkZOKmO3GVU0qjIatnLaFZZOIzoGojNClhTWyILSBMNC+2cFYxwSdwDHFgjGyzUghkKZUwaNhk0ZrX6jLZoWdtbseZ0XEZcl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