From b27246adba17a6913edb850c675f6078ea131822 Mon Sep 17 00:00:00 2001 From: Dan Popescu Date: Fri, 24 Nov 2023 14:45:06 +0200 Subject: [PATCH] feat(post 002): improve styling --- pages/posts/post_002.md | 73 ++++++++++++++++++++++++++++++++++------- 1 file changed, 62 insertions(+), 11 deletions(-) diff --git a/pages/posts/post_002.md b/pages/posts/post_002.md index dfb6bbf..3a93ed7 100644 --- a/pages/posts/post_002.md +++ b/pages/posts/post_002.md @@ -27,75 +27,126 @@ Take care not to mix `dense` and not `dense` components. ::: code-group ```html [html] - + - + ``` ```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 ``` ::: @@ -105,5 +156,5 @@ The Vue REPL does not support processing SASS syntax yet, so the styles are conv