|
@@ -1,309 +1,128 @@
|
|
|
-.page {
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- min-height: 100vh;
|
|
|
- padding-bottom: 20px; /* 底部导航栏的高度 */
|
|
|
+html,body{
|
|
|
+ height: 100%;
|
|
|
}
|
|
|
-
|
|
|
-.search-area {
|
|
|
+.page {
|
|
|
display: flex;
|
|
|
- height: 30px; /* 将搜索框的高度设为30px */
|
|
|
- align-items: center;
|
|
|
- padding: 10px;
|
|
|
- position: relative;
|
|
|
- border: 1px solid #00aa86; /* 添加钝角边框 */
|
|
|
- border-radius: 14px; /* 设置边框的钝角半径 */
|
|
|
- margin-bottom: 8px; /* 添加底部间距 */
|
|
|
-}
|
|
|
-
|
|
|
-.search-area input[type="text"] {
|
|
|
- background-color: #f0f0f0;
|
|
|
- flex: 1;
|
|
|
- padding: 12px;
|
|
|
- border: none;
|
|
|
- border-radius: 2px;
|
|
|
- font-size: 16px;
|
|
|
- text-align: left;
|
|
|
- box-sizing: border-box;
|
|
|
-}
|
|
|
-
|
|
|
-.search-area input[type="text"]:focus {
|
|
|
- outline: none; /* 去除默认的聚焦边框 */
|
|
|
- transition: border-bottom 0.3s ease; /* 添加过渡效果 */
|
|
|
-}
|
|
|
-
|
|
|
-.search-area .search-icon {
|
|
|
- width: auto; /* 设置搜索icon宽度为自适应 */
|
|
|
- height: 30px; /* 将搜索框的高度设为60px */
|
|
|
- margin-left: 5px; /* 调整搜索icon与搜索框的间距 */
|
|
|
- transform-origin: center; /* 设置变换原点为中心 */
|
|
|
- transition: transform 0.3s ease, border-color 0.3s ease; /* 添加过渡效果 */
|
|
|
- cursor: pointer;
|
|
|
-}
|
|
|
-
|
|
|
-.search-area .search-icon:hover {
|
|
|
- transform: scale(1.1); /* 放大图标 */
|
|
|
- border-color: #00aa86; /* 边框颜色变为绿色 */
|
|
|
-}
|
|
|
-
|
|
|
-.search-button {
|
|
|
- background-color: #ccc;
|
|
|
- padding: 5px;
|
|
|
- border: none;
|
|
|
- border-radius: 5px;
|
|
|
- margin-left: 10px;
|
|
|
-}
|
|
|
-
|
|
|
-.shopping-area {
|
|
|
flex: 1;
|
|
|
- //border: 1px solid pink;
|
|
|
- flex-wrap: wrap;
|
|
|
- .filter-tags {
|
|
|
+ flex-direction: column;
|
|
|
+ overflow: auto;
|
|
|
+ padding-bottom: 20px;
|
|
|
+
|
|
|
+ .search-area {
|
|
|
+ flex: 0 1 auto;
|
|
|
+ margin-top: 15px;
|
|
|
display: flex;
|
|
|
- flex-wrap: wrap;
|
|
|
- //border: 1px solid purple;
|
|
|
- .filter-tag {
|
|
|
- color: rgb(37, 36, 36);
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- width: calc(33.33% - 10px); /* 保留了间距 */
|
|
|
- height: 40px;
|
|
|
- //border: 1px solid red;
|
|
|
- border-radius: 5px;
|
|
|
- margin-right: 10px;
|
|
|
- &:last-child {
|
|
|
- margin-right: 0;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- .image-grid {
|
|
|
- margin-top: 0px;
|
|
|
- //border: 1px solid black; /* 添加了边框样式 */
|
|
|
- margin-bottom: 40px;
|
|
|
- padding: 0;
|
|
|
- li {
|
|
|
- display: flex;
|
|
|
- justify-content: space-between;
|
|
|
- margin-top: 8px;
|
|
|
- .image-item {
|
|
|
- border: 1px solid blue; /* 添加了边框样式 */
|
|
|
- flex: 1;
|
|
|
- margin-right: 8px;
|
|
|
-
|
|
|
- img {
|
|
|
- border: 1px solid green; /* 添加了边框样式 */
|
|
|
- max-width: 100%;
|
|
|
- height: auto;
|
|
|
- }
|
|
|
- }
|
|
|
- .image-item2 {
|
|
|
- border: 1px solid blue; /* 添加了边框样式 */
|
|
|
- flex: 1;
|
|
|
+ height: 30px;
|
|
|
+ align-items: center;
|
|
|
+ padding: 10px;
|
|
|
+ position: relative;
|
|
|
+ border: 1px solid #ffffff;
|
|
|
+ border-radius: 14px;
|
|
|
+ margin-bottom: 8px;
|
|
|
+
|
|
|
+
|
|
|
+ input[type="text"] {
|
|
|
+ background-color: #f0f0f0;
|
|
|
+ flex: 1;
|
|
|
+ padding: 12px;
|
|
|
+ border: none;
|
|
|
+ border-radius: 2px;
|
|
|
+ font-size: 16px;
|
|
|
+ text-align: left;
|
|
|
+ box-sizing: border-box;
|
|
|
+
|
|
|
+ &:focus {
|
|
|
+ outline: none;
|
|
|
+ transition: border-bottom 0.3s ease;
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
-}
|
|
|
-.bottom-navigation {
|
|
|
- display: flex;
|
|
|
- justify-content: space-around;
|
|
|
- align-items: center;
|
|
|
- background-color: #ffffff;
|
|
|
- position: fixed;
|
|
|
- bottom: 0;
|
|
|
- left: 0;
|
|
|
- right: 0;
|
|
|
- height: 60px;
|
|
|
- border: none;
|
|
|
-}
|
|
|
-.tab-button {
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- align-items: center;
|
|
|
- height: 50px;
|
|
|
- background-color: transparent;
|
|
|
- border: none;
|
|
|
- font-size: 4px !important;
|
|
|
-}
|
|
|
-
|
|
|
-// 新增的样式
|
|
|
-以下是完整的修改后的 SCSS 代码:
|
|
|
-
|
|
|
-scss
|
|
|
-复制代码
|
|
|
-.page {
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- min-height: 100vh;
|
|
|
- padding-bottom: 20px; /* 底部导航栏的高度 */
|
|
|
-}
|
|
|
-
|
|
|
-.search-area {
|
|
|
- display: flex;
|
|
|
- height: 30px; /* 将搜索框的高度设为30px */
|
|
|
- align-items: center;
|
|
|
- padding: 10px;
|
|
|
- position: relative;
|
|
|
- border: 1px solid #00aa86; /* 添加钝角边框 */
|
|
|
- border-radius: 14px; /* 设置边框的钝角半径 */
|
|
|
- margin-bottom: 8px; /* 添加底部间距 */
|
|
|
-}
|
|
|
-
|
|
|
-.search-area input[type="text"] {
|
|
|
- background-color: #f0f0f0;
|
|
|
- flex: 1;
|
|
|
- padding: 12px;
|
|
|
- border: none;
|
|
|
- border-radius: 2px;
|
|
|
- font-size: 16px;
|
|
|
- text-align: left;
|
|
|
- box-sizing: border-box;
|
|
|
-}
|
|
|
-
|
|
|
-.search-area input[type="text"]:focus {
|
|
|
- outline: none; /* 去除默认的聚焦边框 */
|
|
|
- transition: border-bottom 0.3s ease; /* 添加过渡效果 */
|
|
|
-}
|
|
|
-
|
|
|
-.search-area .search-icon {
|
|
|
- width: auto; /* 设置搜索icon宽度为自适应 */
|
|
|
- height: 30px; /* 将搜索框的高度设为60px */
|
|
|
- margin-left: 5px; /* 调整搜索icon与搜索框的间距 */
|
|
|
- transform-origin: center; /* 设置变换原点为中心 */
|
|
|
- transition: transform 0.3s ease, border-color 0.3s ease; /* 添加过渡效果 */
|
|
|
- cursor: pointer;
|
|
|
-}
|
|
|
-
|
|
|
-.search-area .search-icon:hover {
|
|
|
- transform: scale(1.1); /* 放大图标 */
|
|
|
- border-color: #00aa86; /* 边框颜色变为绿色 */
|
|
|
-}
|
|
|
-
|
|
|
-.search-button {
|
|
|
- background-color: #ccc;
|
|
|
- padding: 5px;
|
|
|
- border: none;
|
|
|
- border-radius: 5px;
|
|
|
- margin-left: 10px;
|
|
|
-}
|
|
|
-
|
|
|
-.shopping-area {
|
|
|
- flex: 1;
|
|
|
- //border: 1px solid pink;
|
|
|
- flex-wrap: wrap;
|
|
|
- .filter-tags {
|
|
|
- display: flex;
|
|
|
- flex-wrap: wrap;
|
|
|
- //border: 1px solid purple;
|
|
|
- .filter-tag {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- width: calc(33.33% - 10px); /* 保留了间距 */
|
|
|
- height: 40px;
|
|
|
- //border: 1px solid red;
|
|
|
- border-radius: 5px;
|
|
|
- margin-right: 10px;
|
|
|
- &:last-child {
|
|
|
- margin-right: 0;
|
|
|
+
|
|
|
+ .search-icon {
|
|
|
+ width: auto;
|
|
|
+ height: 30px;
|
|
|
+ margin-left: 5px;
|
|
|
+ transform-origin: center;
|
|
|
+ transition: transform 0.3s ease, border-color 0.3s ease;
|
|
|
+ cursor: pointer;
|
|
|
+
|
|
|
+ &:hover {
|
|
|
+ transform: scale(1.1);
|
|
|
+ border-color: #00aa86;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- .image-grid {
|
|
|
- margin-top: 0px;
|
|
|
- //border: 1px solid black; /* 添加了边框样式 */
|
|
|
- margin-bottom: 40px;
|
|
|
- padding: 0;
|
|
|
- li {
|
|
|
+
|
|
|
+ .shopping-area {
|
|
|
+ flex: 1;
|
|
|
+ overflow: auto;
|
|
|
+ width:100vw;
|
|
|
+height:100vh;
|
|
|
+overflow:scroll;
|
|
|
+ .filter-tags {
|
|
|
display: flex;
|
|
|
- justify: space-between;
|
|
|
- margin-top: 8px;
|
|
|
- .image-item {
|
|
|
- border: 1px solid blue; /* 添加了边框样式 */
|
|
|
- flex: 1;
|
|
|
- margin-right: 8px;
|
|
|
-
|
|
|
- img {
|
|
|
- border: 1px solid green; /* 添加了边框样式 */
|
|
|
- max-width: 100%;
|
|
|
- height: auto;
|
|
|
+ flex-wrap: wrap;
|
|
|
+
|
|
|
+ .filter-tag {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ width: calc(33.33% - 10px);
|
|
|
+ height: 40px;
|
|
|
+ border-radius: 5px;
|
|
|
+ margin-right: 10px;
|
|
|
+
|
|
|
+ &:last-child {
|
|
|
+ margin-right: 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ button {
|
|
|
+ border: none;
|
|
|
+ color: rgb(98, 101, 98);
|
|
|
+ background: none;
|
|
|
+ font-weight: normal;
|
|
|
+ font-size: 16px;
|
|
|
+ margin-right: 10px;
|
|
|
+ cursor: pointer;
|
|
|
+ text-decoration: none;
|
|
|
+ position: relative;
|
|
|
+ transition: all 0.2s ease;
|
|
|
+
|
|
|
+ &:after {
|
|
|
+ content: "";
|
|
|
+ position: absolute;
|
|
|
+ bottom: -2px;
|
|
|
+ left: 0;
|
|
|
+ width: 100%;
|
|
|
+ height: 2px;
|
|
|
+ background-color: green;
|
|
|
+ opacity: 0;
|
|
|
+ transition: opacity 0.3s ease;
|
|
|
+ }
|
|
|
+
|
|
|
+ &:hover {
|
|
|
+ color: black;
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- .image-item2 {
|
|
|
- border: 1px solid blue; /* 添加了边框样式 */
|
|
|
- flex: 1;
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
-}
|
|
|
-.bottom-navigation {
|
|
|
- display: flex;
|
|
|
- justify-content: space-around;
|
|
|
- align-items: center;
|
|
|
- background-color: #ffffff;
|
|
|
- position: fixed;
|
|
|
- bottom: 0;
|
|
|
- left: 0;
|
|
|
- right: 0;
|
|
|
- height: 60px;
|
|
|
- border: none;
|
|
|
-}
|
|
|
-.tab-button {
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- align-items: center;
|
|
|
- height: 50px;
|
|
|
- background-color: transparent;
|
|
|
- border: none;
|
|
|
- font-size: 4px !important;
|
|
|
-}
|
|
|
-
|
|
|
-/* 新增的样式 */
|
|
|
-.filter-tags {
|
|
|
- display: flex;
|
|
|
- flex-wrap: wrap;
|
|
|
- justify-content: flex-start;
|
|
|
- margin-bottom: 10px;
|
|
|
-
|
|
|
- button {
|
|
|
- border: none;
|
|
|
- color: rgb(98, 101, 98);
|
|
|
- background: none;
|
|
|
- font-weight: normal;
|
|
|
- font-size: 16px;
|
|
|
- margin-right: 10px;
|
|
|
- cursor: pointer;
|
|
|
- text-decoration: none;
|
|
|
- position: relative;
|
|
|
- transition: all 0.2s ease;
|
|
|
|
|
|
- &:after {
|
|
|
- content: "";
|
|
|
- position: absolute;
|
|
|
- bottom: -2px;
|
|
|
- left: 0;
|
|
|
+ .imageurl{
|
|
|
+ width:100vw;
|
|
|
+ height:100vh;
|
|
|
+ overflow:scroll;
|
|
|
+
|
|
|
+ img{
|
|
|
+ height: 100%;
|
|
|
width: 100%;
|
|
|
- height: 2px;
|
|
|
- background-color: green;
|
|
|
- opacity: 0;
|
|
|
- transition: opacity 0.3s ease;
|
|
|
- }
|
|
|
- &:hover {
|
|
|
- color: black; /* 文字变为黑色 */
|
|
|
- }
|
|
|
+ }
|
|
|
+
|
|
|
+ h3{
|
|
|
+ padding: 0 0 10px 15px;
|
|
|
+ }
|
|
|
+ height:calc( 100vh - 200px )
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
-.filter-tags .filter-tag:hover{
|
|
|
- transform: scale(1.1);
|
|
|
- color:black;
|
|
|
-}
|
|
|
|
|
|
-img {
|
|
|
- max-width: 100%;
|
|
|
- height: auto;
|
|
|
-}
|
|
|
|
|
|
-li {
|
|
|
- list-style-type: none;
|
|
|
-}
|