From 6a3f5d820f8c1e04c92107dbdac2a09ce6593ef7 Mon Sep 17 00:00:00 2001 From: Kane Date: Sun, 23 Oct 2022 00:41:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/web/car_dealer/css/kane.css | 8 ++-- code/web/car_dealer/css/todo-list/to-list.css | 41 ++++++++++++------- .../vue/{todo-lilst.html => todo-list.html} | 4 +- 3 files changed, 33 insertions(+), 20 deletions(-) rename code/web/car_dealer/vue/{todo-lilst.html => todo-list.html} (98%) diff --git a/code/web/car_dealer/css/kane.css b/code/web/car_dealer/css/kane.css index 5acdea6..ad9dfab 100644 --- a/code/web/car_dealer/css/kane.css +++ b/code/web/car_dealer/css/kane.css @@ -2,7 +2,7 @@ * @Author: Kane * @Date: 2022-10-12 08:49:14 * @LastEditors: Kane - * @LastEditTime: 2022-10-21 17:57:09 + * @LastEditTime: 2022-10-22 22:30:50 * @FilePath: \car_dealer\css\kane.css * @Description: vue学习用的样式表! * @@ -59,6 +59,8 @@ button { border-radius: 0.25em; font-size: 1.5rem; text-align: center; + -webkit-user-select: none; + user-select: none; } button:hover { @@ -71,10 +73,10 @@ button:active { color: var(--btn-color-red); } -input { +input[type="text"] { border: none; outline: solid 2px #e56651; - font-size: 2rem; + /* font-size: 2rem; */ } label { diff --git a/code/web/car_dealer/css/todo-list/to-list.css b/code/web/car_dealer/css/todo-list/to-list.css index 8d06810..cc4328c 100644 --- a/code/web/car_dealer/css/todo-list/to-list.css +++ b/code/web/car_dealer/css/todo-list/to-list.css @@ -2,7 +2,7 @@ * @Author: Kane * @Date: 2022-10-21 16:39:27 * @LastEditors: Kane - * @LastEditTime: 2022-10-22 01:49:12 + * @LastEditTime: 2022-10-23 00:10:50 * @FilePath: \car_dealer\css\todo-list\to-list.css * @Description: 用于待办事项页面的css! * @@ -10,9 +10,9 @@ */ html { - --border-color: #cfcfcf; + --border-color: #efefef; --hr-color: #efefef; - --backupground-color: #f7f7f7; + --backupground-color: #f8f8f8; --btn-color-blue: #307dbe; --btn-color-yellow: #f7b24d; --btn-color-green: #5bad60; @@ -24,10 +24,14 @@ html { --scrollbar-backupground-color: #cfcfcf7f; --scrollbar-track-color: #f7f7f700; + + --font-color: rgba(0, 0, 50, 255); + + color: var(--font-color); } .border { - border: 2px solid var(--border-color); + border: 1px solid var(--border-color); border-radius: 5px; width: 30rem; padding: 1em; @@ -67,17 +71,20 @@ hr { border: none; margin-top: 1rem; background-color: var(--border-color); - height: 2px; + height: 1px; } .border > .todo_list { - margin-top: 1rem; - height: 12.2rem; + margin-top: calc(1rem - 1px); + margin-bottom: calc(1rem - 1px); + height: 12.34rem; overflow-y: overlay; + padding-top: 1px; + padding-bottom: 1px; } .todo_list::-webkit-scrollbar { - width: 10px; + width: 0.75rem; /* height: 100px; */ } @@ -88,12 +95,12 @@ hr { background: var(--scrollbar-backupground-color); } -.todo_list:hover::-webkit-scrollbar-track { - /* -webkit-box-shadow: inset 0 0 5px var(--scrollbar-backupground-color); +/* .todo_list:hover::-webkit-scrollbar-track { + -webkit-box-shadow: inset 0 0 5px var(--scrollbar-backupground-color); box-shadow: 0 0 5px var(--scrollbar-backupground-color); - border-radius: 10px; */ + border-radius: 10px; background: var(--scrollbar-track-color); -} +} */ .border > .todo_list > * + * { margin-top: 5px; @@ -107,6 +114,7 @@ hr { .border > .todo_list div > input[type="checkbox"] { flex-grow: 0; + outline: none !important; } .border > .todo_list div * + * { @@ -118,14 +126,17 @@ hr { border-bottom: 1px solid var(--border-color); height: 1.25rem; vertical-align: center; + -webkit-user-select: none; + user-select: none; + padding-left: 5px; } .border > .todo_list input { flex-grow: 1; font-size: 1rem; - line-height: 2rem; - padding: 0 5px; - margin: 0px; + /* line-height: 1.5rem; */ + padding: 5px 5px; + margin: 0px 0px 0px 5px; outline-color: var(--border-color); } diff --git a/code/web/car_dealer/vue/todo-lilst.html b/code/web/car_dealer/vue/todo-list.html similarity index 98% rename from code/web/car_dealer/vue/todo-lilst.html rename to code/web/car_dealer/vue/todo-list.html index 96781f6..e14f50a 100644 --- a/code/web/car_dealer/vue/todo-lilst.html +++ b/code/web/car_dealer/vue/todo-list.html @@ -2,8 +2,8 @@ * @Author: Kane * @Date: 2022-10-21 16:36:51 * @LastEditors: Kane - * @LastEditTime: 2022-10-22 00:45:07 - * @FilePath: \car_dealer\vue\todo-lilst.html + * @LastEditTime: 2022-10-23 00:07:47 + * @FilePath: \car_dealer\vue\todo-list.html * @Description: * * Copyright (c) ${2022} by Kane, All Rights Reserved.