From b1aa037084f8f6f31cd2a4dd58b2f6f133123b5d Mon Sep 17 00:00:00 2001 From: ping56ry4 <1583105685@qq.com> Date: Fri, 11 Oct 2024 13:24:48 +0800 Subject: [PATCH] ADD file via upload --- index.less | 105 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 index.less diff --git a/index.less b/index.less new file mode 100644 index 0000000..2e70c36 --- /dev/null +++ b/index.less @@ -0,0 +1,105 @@ +:root { + --lightColor: #e3f2fd; /* 浅蓝色背景 */ + --darkColor: #005fa3; /* 深蓝色文字 */ + --primaryColor: #007bff; /* 主题蓝色 */ + --secondaryColor: #6c757d; /* 次要灰色 */ +} + +* { + font-family: '正楷'; +} + +body { + padding: 0 50px; + background-color: var(--lightColor); +} + +h1, +h2 { + animation: changeColor 2s infinite alternate; + animation-direction: alternate; +} + +h1 { + padding: 20px 0; + background-color: var(--primaryColor); + color: white; + text-align: center; +} + +h2 { + color: var(--darkColor); +} + +#content { + display: flex; + flex-wrap: wrap; + justify-content: center; +} + +#content > div { + width: 120px; + height: 60px; + margin: 10px; + font-size: 18px; + line-height: 60px; + text-align: center; + background-color: white; + color: var(--secondaryColor); + border-radius: 5px; + box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); + transition: transform 0.3s ease-in-out; +} + +#content .cell.active { + background-color: var(--primaryColor); + color: white; +} + +#content .selected { + border: 2px solid var(--primaryColor); +} + +button { + display: inline-block; + padding: 10px 20px; + background-color: var(--primaryColor); + color: white; + font-size: 16px; + font-weight: 700; + margin: 10px; + border: none; + border-radius: 5px; + box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); + transition: background-color 0.3s; +} + +button:hover { + background-color: #0056b3; +} + +button:active { + background-color: #004080; +} + +select { + display: inline-block; + height: 35px; + width: 120px; + border: 1px solid #ced4da; + background-color: white; + color: var(--secondaryColor); + font-size: 14px; + margin: 10px; + border-radius: 5px; + box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); +} + +@keyframes changeColor { + from { + color: var(--darkColor); + } + to { + color: white; + } +} \ No newline at end of file