diff --git a/frontend/src/assets/styles/main.scss b/frontend/src/assets/styles/main.scss index 9b5d1f5..6e326b4 100644 --- a/frontend/src/assets/styles/main.scss +++ b/frontend/src/assets/styles/main.scss @@ -104,17 +104,58 @@ p { height: 100%; margin: 0 auto; } -.btn-link {text-decoration: none; color: $primary;} -.dropdown-menu {border: none; box-shadow: 0px 0px 24px 0px #D4D3E380; padding: 0; overflow: hidden; - .btn-link {text-decoration: none; height: 33px; width: 100%; color: #0D1637; font-size: 14px; text-align: left; border-radius: 0; - &:hover {background-color: #F3F6FF;} - &.active {background-color: #1748F8; color: white;} +.btn-link { + text-decoration: none; + color: $primary; +} +.dropdown-menu { + border: none; + box-shadow: 0px 0px 24px 0px #d4d3e380; + padding: 0; + overflow: hidden; + .btn-link { + text-decoration: none; + height: 33px; + width: 100%; + color: #0d1637; + font-size: 14px; + text-align: left; + border-radius: 0; + &:hover { + background-color: #f3f6ff; + } + &.active { + background-color: #1748f8; + color: white; + } } - .dropdown-new {color: #1748F8; - &:hover {background-color: white;} + .dropdown-new { + color: #1748f8; + &:hover { + background-color: white; + } } - .dropdown-new-input-container {padding: 6px 12px; position: relative; - input {border: 1px solid #E7E8EB; box-shadow: none; border-radius: 3px; padding: 0 20px 0 5px; height: 22px; font-size: 14px;} - .dropdown-new-input-icon {width: 16px; height: 16px; padding: 3px; color: #3D455F; background-color: #EEEFF1; border-radius: 3px; position: absolute; top: 10px; right: 15px} + .dropdown-new-input-container { + padding: 6px 12px; + position: relative; + input { + border: 1px solid #e7e8eb; + box-shadow: none; + border-radius: 3px; + padding: 0 20px 0 5px; + height: 22px; + font-size: 14px; + } + .dropdown-new-input-icon { + width: 16px; + height: 16px; + padding: 3px; + color: #3d455f; + background-color: #eeeff1; + border-radius: 3px; + position: absolute; + top: 10px; + right: 15px; + } } } diff --git a/frontend/src/components/FreeleapsEditor.vue b/frontend/src/components/FreeleapsEditor.vue index e7742cb..861e44d 100644 --- a/frontend/src/components/FreeleapsEditor.vue +++ b/frontend/src/components/FreeleapsEditor.vue @@ -2,7 +2,15 @@
-
@@ -14,7 +22,9 @@
code
  • -
    引用
    +
    引用
  • 标题一

    @@ -23,13 +33,13 @@

    标题二

  • -

    标题三

    +

    标题三

  • -

    标题四

    +

    标题四

  • -
    标题五
    +
    标题五
  • 标题六
    @@ -66,7 +76,14 @@
  • -
    +
    \ No newline at end of file +.freeleaps-editor blockquote { + padding: 10px 20px; + font-size: 17.5px; + border-left: 5px solid #f86466; + background: white; +} +.freeleaps-editor pre { + display: block; + padding: 9.5px; + font-size: 13px; + line-height: 1.42857143; + color: #333; + word-break: break-all; + word-wrap: break-word; + background-color: #f5f5f5; + border: 1px solid #ccc; + border-radius: 4px; +} +.editor-body blockquote { + margin-bottom: 30px; +} +.editor-body pre { + margin-bottom: 10px; +} +.editor-body ul { + padding-left: 40px; + list-style-type: disc; +} +.editor-body ol { + padding-left: 40px; +} + diff --git a/frontend/src/components/InputSelector.vue b/frontend/src/components/InputSelector.vue index 157f815..1ed6310 100644 --- a/frontend/src/components/InputSelector.vue +++ b/frontend/src/components/InputSelector.vue @@ -1,20 +1,31 @@ @@ -25,46 +36,70 @@ export default { name: 'InputSelector', props: { selectList: { - type: Array, - default: () => [] + type: Array, + default: () => [] }, selected: { - type: String, - default: '' + type: String, + default: '' } }, data() { return { - inputing: true, - newval: '' + inputing: true, + newval: '' } }, - mounted() { }, - components: {SvgIcon}, + mounted() {}, + components: { SvgIcon }, methods: { newAction($event) { - $event.stopPropagation() - this.newval = '' - this.inputing = true + $event.stopPropagation() + this.newval = '' + this.inputing = true }, selectItem(item) { - this.$emit('selectedChange', {selected: item, isNew: false}) + this.$emit('selectedChange', { selected: item, isNew: false }) }, newItemAction() { - if (!this.newval) return - this.$emit('selectedChange', {selected: this.newval, isNew: this.selectList.indexOf(this.newval) === -1}) - this.newval = '' - this.inputing = false + if (!this.newval) return + this.$emit('selectedChange', { + selected: this.newval, + isNew: this.selectList.indexOf(this.newval) === -1 + }) + this.newval = '' + this.inputing = false } } } diff --git a/frontend/src/components/PDFReader.vue b/frontend/src/components/PDFReader.vue index 117e4c1..95b640d 100644 --- a/frontend/src/components/PDFReader.vue +++ b/frontend/src/components/PDFReader.vue @@ -1,16 +1,16 @@ diff --git a/frontend/src/headers/HeaderUser.vue b/frontend/src/headers/HeaderUser.vue index 73d5dec..898175b 100644 --- a/frontend/src/headers/HeaderUser.vue +++ b/frontend/src/headers/HeaderUser.vue @@ -1,23 +1,43 @@