diff --git a/src/assets/css/public.scss b/src/assets/css/public.scss index b27aa60..8f88733 100644 --- a/src/assets/css/public.scss +++ b/src/assets/css/public.scss @@ -32,7 +32,7 @@ } } -.van-switch--on{ +.van-switch--on { background: $theme-color; } @@ -51,3 +51,51 @@ background-color: rgba(0, 0, 0, 0.7) !important; } } + +.contenteditable { + width: 100%; +} + +.contenteditable-input { + width: 100%; + padding: 5px 8px; + border: none; + border-radius: 8px; + background: #fafbfc; + outline: 1px solid #f4f4f4; + font-size: 14px; +} + +.contenteditable-label { + width: 100%; + + //outline: 1px solid #ccc; + //border-bottom: 1px solid #ccc; +} + +.contenteditable-question-title { + & .van-cell__title { + position: relative; + + &::after { + content: ' '; + position: absolute; + bottom: -2px; + box-sizing: border-box; + width: 100%; + border-bottom: 0.0267rem solid #ebedf0; + pointer-events: none; + transform: scaleY(0.5); + } + + &:focus-within::after { + border-bottom-color: $theme-color; + } + + & .contenteditable-label { + & :focus { + //color: green; + } + } + } +} diff --git a/src/components/contenteditable.vue b/src/components/contenteditable.vue index d5c0c4f..67418c6 100644 --- a/src/components/contenteditable.vue +++ b/src/components/contenteditable.vue @@ -1,11 +1,16 @@