diff --git a/examples/Components/App/style.scss b/examples/Components/App/style.scss index 5fe96941..082ff73a 100644 --- a/examples/Components/App/style.scss +++ b/examples/Components/App/style.scss @@ -24,196 +24,3 @@ } } - -.editor { - position: relative; - max-width: 30rem; - margin: 0 auto 5rem auto; - - &__content { - pre { - padding: 0.7rem 1rem; - border-radius: 5px; - background: $color-black; - color: $color-white; - font-size: 0.8rem; - overflow-x: auto; - - code { - display: block; - } - } - - p code { - display: inline-block; - padding: 0 0.4rem; - border-radius: 5px; - font-size: 0.8rem; - font-weight: bold; - background: rgba($color-black, 0.1); - color: rgba($color-black, 0.8); - } - - ul, - ol { - padding-left: 1rem; - } - - a { - color: inherit; - } - - blockquote { - border-left: 3px solid rgba($color-black, 0.1); - color: rgba($color-black, 0.8); - padding-left: 0.8rem; - font-style: italic; - - p { - margin: 0; - } - } - - img { - max-width: 100%; - border-radius: 3px; - } - - } -} - -.menububble { - position: absolute; - display: flex; - z-index: 20; - background: $color-black; - border-radius: 5px; - padding: 0.3rem; - margin-bottom: 0.5rem; - transform: translateX(-50%); - visibility: hidden; - opacity: 0; - transition: opacity 0.2s, visibility 0.2s; - - &__button { - display: inline-flex; - background: transparent; - border: 0; - color: $color-white; - padding: 0.2rem 0.5rem; - margin-right: 0.2rem; - border-radius: 3px; - cursor: pointer; - - &:last-child { - margin-right: 0; - } - - &:hover { - background-color: rgba($color-white, 0.1); - } - - &.is-active { - background-color: rgba($color-white, 0.2); - } - } - - &__form { - display: flex; - align-items: center; - } - - &__input { - font: inherit; - border: none; - background: transparent; - color: $color-white; - } -} - -.menubar { - - display: flex; - margin-bottom: 1rem; - transition: visibility 0.2s 0.4s, opacity 0.2s 0.4s; - - &.is-hidden { - visibility: hidden; - opacity: 0; - } - - &.is-focused { - visibility: visible; - opacity: 1; - transition: visibility 0.2s, opacity 0.2s; - } - - &__button { - font-weight: bold; - display: inline-flex; - background: transparent; - border: 0; - color: $color-black; - padding: 0.2rem 0.5rem; - margin-right: 0.2rem; - border-radius: 3px; - cursor: pointer; - - &:hover { - background-color: rgba($color-black, 0.05); - } - - &.is-active { - background-color: rgba($color-black, 0.1); - } - } -} - -.mention { - background: rgba($color-black, 0.1); - color: rgba($color-black, 0.6); - font-size: 0.8rem; - font-weight: bold; - border-radius: 5px; - padding: 0.2rem 0.5rem; -} - -ul[data-type="todo_list"] { - padding-left: 0; -} - -li[data-type="todo_item"] { - display: flex; - flex-direction: row; -} - -.todo-checkbox { - border: 2px solid $color-black; - height: 0.9em; - width: 0.9em; - box-sizing: border-box; - margin-right: 10px; - margin-top: 0.3rem; - user-select: none; - -webkit-user-select: none; - cursor: pointer; - border-radius: 0.2em; - background-color: transparent; - transition: 0.4s background; -} - -.todo-content { - flex: 1; -} - -li[data-done="true"] { - text-decoration: line-through; -} - -li[data-done="true"] .todo-checkbox { - background-color: $color-black; -} - -li[data-done="false"] { - text-decoration: none; -} \ No newline at end of file diff --git a/examples/Components/Routes/TodoList/index.vue b/examples/Components/Routes/TodoList/index.vue index 56dc0be9..8a086ce2 100644 --- a/examples/Components/Routes/TodoList/index.vue +++ b/examples/Components/Routes/TodoList/index.vue @@ -102,4 +102,48 @@ export default { } }, } - \ No newline at end of file + + + \ No newline at end of file diff --git a/examples/assets/sass/editor.scss b/examples/assets/sass/editor.scss new file mode 100644 index 00000000..a92b6336 --- /dev/null +++ b/examples/assets/sass/editor.scss @@ -0,0 +1,56 @@ +.editor { + position: relative; + max-width: 30rem; + margin: 0 auto 5rem auto; + + &__content { + pre { + padding: 0.7rem 1rem; + border-radius: 5px; + background: $color-black; + color: $color-white; + font-size: 0.8rem; + overflow-x: auto; + + code { + display: block; + } + } + + p code { + display: inline-block; + padding: 0 0.4rem; + border-radius: 5px; + font-size: 0.8rem; + font-weight: bold; + background: rgba($color-black, 0.1); + color: rgba($color-black, 0.8); + } + + ul, + ol { + padding-left: 1rem; + } + + a { + color: inherit; + } + + blockquote { + border-left: 3px solid rgba($color-black, 0.1); + color: rgba($color-black, 0.8); + padding-left: 0.8rem; + font-style: italic; + + p { + margin: 0; + } + } + + img { + max-width: 100%; + border-radius: 3px; + } + + } +} \ No newline at end of file diff --git a/examples/assets/sass/main.scss b/examples/assets/sass/main.scss index bbab5872..c79184fc 100644 --- a/examples/assets/sass/main.scss +++ b/examples/assets/sass/main.scss @@ -59,4 +59,8 @@ h1, h2, h3 { line-height: 1.3; -} \ No newline at end of file +} + +@import "./editor"; +@import "./menubar"; +@import "./menububble"; \ No newline at end of file diff --git a/examples/assets/sass/menubar.scss b/examples/assets/sass/menubar.scss new file mode 100644 index 00000000..e7dea82b --- /dev/null +++ b/examples/assets/sass/menubar.scss @@ -0,0 +1,37 @@ +.menubar { + + display: flex; + margin-bottom: 1rem; + transition: visibility 0.2s 0.4s, opacity 0.2s 0.4s; + + &.is-hidden { + visibility: hidden; + opacity: 0; + } + + &.is-focused { + visibility: visible; + opacity: 1; + transition: visibility 0.2s, opacity 0.2s; + } + + &__button { + font-weight: bold; + display: inline-flex; + background: transparent; + border: 0; + color: $color-black; + padding: 0.2rem 0.5rem; + margin-right: 0.2rem; + border-radius: 3px; + cursor: pointer; + + &:hover { + background-color: rgba($color-black, 0.05); + } + + &.is-active { + background-color: rgba($color-black, 0.1); + } + } +} \ No newline at end of file diff --git a/examples/assets/sass/menububble.scss b/examples/assets/sass/menububble.scss new file mode 100644 index 00000000..818c5d5e --- /dev/null +++ b/examples/assets/sass/menububble.scss @@ -0,0 +1,48 @@ +.menububble { + position: absolute; + display: flex; + z-index: 20; + background: $color-black; + border-radius: 5px; + padding: 0.3rem; + margin-bottom: 0.5rem; + transform: translateX(-50%); + visibility: hidden; + opacity: 0; + transition: opacity 0.2s, visibility 0.2s; + + &__button { + display: inline-flex; + background: transparent; + border: 0; + color: $color-white; + padding: 0.2rem 0.5rem; + margin-right: 0.2rem; + border-radius: 3px; + cursor: pointer; + + &:last-child { + margin-right: 0; + } + + &:hover { + background-color: rgba($color-white, 0.1); + } + + &.is-active { + background-color: rgba($color-white, 0.2); + } + } + + &__form { + display: flex; + align-items: center; + } + + &__input { + font: inherit; + border: none; + background: transparent; + color: $color-white; + } +} \ No newline at end of file