From af1205ffed64595d659e1319a2d57d31b1582465 Mon Sep 17 00:00:00 2001 From: Kane Wang Date: Tue, 22 Nov 2022 16:44:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E5=AD=98=E8=BF=9B=E5=BA=A6=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/app.css | 27 ++++++++++++++ css/kane.css | 63 ++++++++++++++------------------ css/normalize.css | 92 +++++++++++++++++++++++++++++++---------------- 3 files changed, 114 insertions(+), 68 deletions(-) create mode 100644 css/app.css diff --git a/css/app.css b/css/app.css new file mode 100644 index 0000000..04b5e0b --- /dev/null +++ b/css/app.css @@ -0,0 +1,27 @@ +/* + * @Author: Kane + * @Date: 2022-11-12 23:32:20 + * @LastEditors: Kane + * @LastEditTime: 2022-11-16 11:08:23 + * @FilePath: \car_dealer\css\app.css + * @Description: + * + * Copyright (c) ${2022} by Kane, All Rights Reserved. + */ +@import url("colors.css"); + +body { + background-color: var(--backupground-color); + padding: 50px; +} + +.content { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + background-color: #fff; + width: 25rem; + margin: 0px auto; + border-radius: 5px; +} diff --git a/css/kane.css b/css/kane.css index 56a6399..63ac4c5 100644 --- a/css/kane.css +++ b/css/kane.css @@ -1,64 +1,53 @@ +/* + * @Author: Kane + * @Date: 2022-10-12 08:49:14 + * @LastEditors: Kane + * @LastEditTime: 2022-11-12 23:34:06 + * @FilePath: \car_dealer\css\kane.css + * @Description: vue学习用的样式表! + * + * Copyright (c) ${2022} by Kane, All Rights Reserved. + */ + html { - --backupground-color: #f7f7f7; + --backupground-color: #f4f5f7ff; --btn-color-blue: #307dbe; --btn-color-yellow: #f7b24d; --btn-color-green: #5bad60; --btn-color-red: #e56651; --btn-font-color: #fff; - background-color: #eee; } #root, #app { - height: 100vh; - width: 100vw; - position: fixed; padding: 50px; - /* font-size: 0; */ - overflow: auto; } -#root, -#app * + * { - margin-top: 15px; +.content { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; } hr { background-color: steelblue; border: none; height: 3px; + /* width: 100% */ } -.test { - width: 110vw; - height: 100vh; - border: 1px solid red; - overflow: auto; -} +/* .test { + width : 110vw; + height : 100vh; + border : 1px solid red; + overflow : auto; +} */ -button { - padding: 5px 10px; - background-color: var(--btn-color-red); - color: var(--btn-font-color); - width: 10em; - border: none; - border-radius: 0.25em; - font-size: 1.5rem; -} - -button + button { - margin-left: 0.5em; -} - -button:active { - background-color: var(--btn-font-color); - 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/css/normalize.css b/css/normalize.css index 192eb9c..fdec4bd 100644 --- a/css/normalize.css +++ b/css/normalize.css @@ -9,8 +9,10 @@ */ html { - line-height: 1.15; /* 1 */ - -webkit-text-size-adjust: 100%; /* 2 */ + line-height: 1.15; + /* 1 */ + -webkit-text-size-adjust: 100%; + /* 2 */ } /* Sections @@ -51,9 +53,12 @@ h1 { */ hr { - box-sizing: content-box; /* 1 */ - height: 0; /* 1 */ - overflow: visible; /* 2 */ + box-sizing: content-box; + /* 1 */ + height: 0; + /* 1 */ + overflow: visible; + /* 2 */ } /** @@ -62,8 +67,10 @@ hr { */ pre { - font-family: monospace, monospace; /* 1 */ - font-size: 1em; /* 2 */ + font-family: monospace, monospace; + /* 1 */ + font-size: 1em; + /* 2 */ } /* Text-level semantics @@ -83,9 +90,12 @@ a { */ abbr[title] { - border-bottom: none; /* 1 */ - text-decoration: underline; /* 2 */ - text-decoration: underline dotted; /* 2 */ + border-bottom: none; + /* 1 */ + text-decoration: underline; + /* 2 */ + text-decoration: underline dotted; + /* 2 */ } /** @@ -105,8 +115,10 @@ strong { code, kbd, samp { - font-family: monospace, monospace; /* 1 */ - font-size: 1em; /* 2 */ + font-family: monospace, monospace; + /* 1 */ + font-size: 1em; + /* 2 */ } /** @@ -162,10 +174,14 @@ input, optgroup, select, textarea { - font-family: inherit; /* 1 */ - font-size: 100%; /* 1 */ - line-height: 1.15; /* 1 */ - margin: 0; /* 2 */ + font-family: inherit; + /* 1 */ + font-size: 100%; + /* 1 */ + line-height: 1.15; + /* 1 */ + margin: 0; + /* 2 */ } /** @@ -174,7 +190,8 @@ textarea { */ button, -input { /* 1 */ +input { + /* 1 */ overflow: visible; } @@ -184,7 +201,8 @@ input { /* 1 */ */ button, -select { /* 1 */ +select { + /* 1 */ text-transform: none; } @@ -238,12 +256,18 @@ fieldset { */ legend { - box-sizing: border-box; /* 1 */ - color: inherit; /* 2 */ - display: table; /* 1 */ - max-width: 100%; /* 1 */ - padding: 0; /* 3 */ - white-space: normal; /* 1 */ + box-sizing: border-box; + /* 1 */ + color: inherit; + /* 2 */ + display: table; + /* 1 */ + max-width: 100%; + /* 1 */ + padding: 0; + /* 3 */ + white-space: normal; + /* 1 */ } /** @@ -269,8 +293,10 @@ textarea { [type="checkbox"], [type="radio"] { - box-sizing: border-box; /* 1 */ - padding: 0; /* 2 */ + box-sizing: border-box; + /* 1 */ + padding: 0; + /* 2 */ } /** @@ -288,8 +314,10 @@ textarea { */ [type="search"] { - -webkit-appearance: textfield; /* 1 */ - outline-offset: -2px; /* 2 */ + -webkit-appearance: textfield; + /* 1 */ + outline-offset: -2px; + /* 2 */ } /** @@ -306,8 +334,10 @@ textarea { */ ::-webkit-file-upload-button { - -webkit-appearance: button; /* 1 */ - font: inherit; /* 2 */ + -webkit-appearance: button; + /* 1 */ + font: inherit; + /* 2 */ } /* Interactive @@ -346,4 +376,4 @@ template { [hidden] { display: none; -} +} \ No newline at end of file