mirror of
https://github.com/yv1ing/MollyBlog.git
synced 2025-09-16 14:53:45 +08:00
new: Added post search module
This commit is contained in:
@@ -26,6 +26,12 @@ html, body {
|
||||
background-color: var(--background-color);
|
||||
}
|
||||
|
||||
input:focus {
|
||||
border: none;
|
||||
outline: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
a, a:link, a:visited, a:active {
|
||||
text-decoration: none;
|
||||
color: var(--primary-text-color);
|
||||
@@ -101,4 +107,33 @@ a:hover {
|
||||
padding: 20px;
|
||||
border-radius: 4px;
|
||||
border: var(--secondary-text-color) 1px dashed;
|
||||
}
|
||||
|
||||
.search-wrap {
|
||||
width: 300px;
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.search-input {
|
||||
width: 270px;
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
display: inline;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.search-button {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
display: inline;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
background: var(--secondary-color);
|
||||
}
|
||||
|
||||
.search-button:hover {
|
||||
background: var(--primary-color);
|
||||
}
|
||||
25
templates/default/assets/css/search.css
Normal file
25
templates/default/assets/css/search.css
Normal file
@@ -0,0 +1,25 @@
|
||||
.search-post-title {
|
||||
color: var(--primary-color);
|
||||
}
|
||||
|
||||
.search-post-item {
|
||||
padding-top: 5px;
|
||||
padding-bottom: 5px;
|
||||
color: var(--primary-text-color);
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.search-post-item-wrap {
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.search-post-item-date {
|
||||
color: var(--secondary-text-color);
|
||||
}
|
||||
|
||||
.search-post-pagination-item {
|
||||
color: var(--secondary-text-color);
|
||||
padding-right: 10px;
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
.tagged-name {
|
||||
.tagged-post-title {
|
||||
color: var(--primary-color);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user