mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-17 15:53:28 +00:00
change search icon style (#7210)
This commit is contained in:
@@ -743,7 +743,12 @@ class Search extends Component {
|
|||||||
ref={this.inputRef}
|
ref={this.inputRef}
|
||||||
/>
|
/>
|
||||||
{this.state.isCloseShow &&
|
{this.state.isCloseShow &&
|
||||||
<button type="button" className="search-icon-right input-icon-addon sf3-font sf3-font-x-01 border-0 bg-transparent mr-4" onClick={this.onCloseHandler} aria-label={gettext('Close')}></button>
|
<button
|
||||||
|
type="button"
|
||||||
|
className="search-icon-right input-icon-addon sf3-font sf3-font-x-01"
|
||||||
|
onClick={this.onCloseHandler}
|
||||||
|
aria-label={gettext('Close')}
|
||||||
|
></button>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
@@ -777,7 +782,12 @@ class Search extends Component {
|
|||||||
autoComplete="off"
|
autoComplete="off"
|
||||||
/>
|
/>
|
||||||
{this.state.isCloseShow &&
|
{this.state.isCloseShow &&
|
||||||
<button type="button" className="search-icon-right input-icon-addon sf3-font sf3-font-x-01 border-0 bg-transparent" onClick={this.onCloseHandler} aria-label={gettext('Close')}></button>
|
<button
|
||||||
|
type="button"
|
||||||
|
className="search-icon-right input-icon-addon sf3-font sf3-font-x-01"
|
||||||
|
onClick={this.onCloseHandler}
|
||||||
|
aria-label={gettext('Close')}
|
||||||
|
></button>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
<div className="search-result-container dropdown-search-result-container">
|
<div className="search-result-container dropdown-search-result-container">
|
||||||
|
@@ -19,7 +19,7 @@
|
|||||||
right: 110px;
|
right: 110px;
|
||||||
min-height: 200px;
|
min-height: 200px;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
box-shadow: 0 3px 8px 0 rgba(116,129,141,.1);
|
box-shadow: 0 3px 8px 0 rgba(116, 129, 141, 0.1);
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@@ -42,16 +42,20 @@
|
|||||||
|
|
||||||
.search-icon-right {
|
.search-icon-right {
|
||||||
display: flex;
|
display: flex;
|
||||||
cursor: pointer;
|
|
||||||
pointer-events: all;
|
pointer-events: all;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
min-width: 25px;
|
min-width: 20px;
|
||||||
color: #999;
|
color: #666;
|
||||||
|
height: 20px;
|
||||||
|
margin: 9px 25px 9px 0;
|
||||||
|
border: 0;
|
||||||
|
background-color: transparent;
|
||||||
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-icon-right:hover {
|
.search-icon-right:hover {
|
||||||
color: #212529;
|
background-color: #EFEFEF;
|
||||||
text-decoration: none;
|
border-radius: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-icon-right.sf3-font-set-up {
|
.search-icon-right.sf3-font-set-up {
|
||||||
@@ -130,29 +134,36 @@
|
|||||||
width: 36px;
|
width: 36px;
|
||||||
height: 36px;
|
height: 36px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-result-item .lib-item-img {
|
.search-result-item .lib-item-img {
|
||||||
width: 36px;
|
width: 36px;
|
||||||
height: 36px;
|
height: 36px;
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-result-item .item-content {
|
.search-result-item .item-content {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
margin-left: 0.25rem;
|
margin-left: 0.25rem;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.item-content .item-name a {
|
.item-content .item-name a {
|
||||||
color: #EA8102 !important;
|
color: #EA8102 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.item-content .item-link {
|
.item-content .item-link {
|
||||||
color: #7d7d7d;
|
color: #7d7d7d;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.item-content .item-text {
|
.item-content .item-text {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.item-content .item-text b {
|
.item-content .item-text b {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-result-container .item-content .item-text {
|
.search-result-container .item-content .item-text {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
font-size: 0.8125rem;
|
font-size: 0.8125rem;
|
||||||
@@ -164,62 +175,79 @@
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
height: calc(100% - 50px);
|
height: calc(100% - 50px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-page {
|
.search-page {
|
||||||
margin: 30px auto;
|
margin: 30px auto;
|
||||||
width: 65%;
|
width: 65%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-page .search-result-container {
|
.search-page .search-result-container {
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
padding: 1.25rem 1rem;
|
padding: 1.25rem 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-page .search-page-container {
|
.search-page .search-page-container {
|
||||||
padding: 1.25rem 1rem;
|
padding: 1.25rem 1rem;
|
||||||
background: #f7f7f8;
|
background: #f7f7f8;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-page .search-page-container .search-input {
|
.search-page .search-page-container .search-input {
|
||||||
padding-left: 0.5rem;
|
padding-left: 0.5rem;
|
||||||
width: 30rem;
|
width: 30rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-page .search-page-container .sf3-font-angles-up,
|
.search-page .search-page-container .sf3-font-angles-up,
|
||||||
.search-page .search-page-container .sf3-font-angles-down {
|
.search-page .search-page-container .sf3-font-angles-down {
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-page .advanced-search .search-file-types .search-input {
|
.search-page .advanced-search .search-file-types .search-input {
|
||||||
padding-left: 0.5rem;
|
padding-left: 0.5rem;
|
||||||
width: 30rem;
|
width: 30rem;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-page .search-page-container .search-icon-right {
|
.search-page .search-page-container .search-icon-right {
|
||||||
left: 28rem;
|
left: 28rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-page .paginator {
|
.search-page .paginator {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin: 1rem 0;
|
margin: 1rem 0;
|
||||||
}
|
}
|
||||||
.search-page .advanced-search, .search-page .search-filters {
|
|
||||||
|
.search-page .advanced-search,
|
||||||
|
.search-page .search-filters {
|
||||||
color: #747474;
|
color: #747474;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-page .search-filters {
|
.search-page .search-filters {
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-page .advanced-search .search-repo,
|
.search-page .advanced-search .search-repo,
|
||||||
.search-page .advanced-search .search-file-types {
|
.search-page .advanced-search .search-file-types {
|
||||||
padding: 5px 0;
|
padding: 5px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-file-types .search-file-types-form {
|
.search-file-types .search-file-types-form {
|
||||||
top: 10px;
|
top: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-page .advanced-search .search-catalog {
|
.search-page .advanced-search .search-catalog {
|
||||||
border-top: 1px dashed #e2e2e2;
|
border-top: 1px dashed #e2e2e2;
|
||||||
padding: 10px 0;
|
padding: 10px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-page .advanced-search .search-catalog:first-child {
|
.search-page .advanced-search .search-catalog:first-child {
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
.search-page .custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
|
|
||||||
|
.search-page .custom-checkbox .custom-control-input:checked~.custom-control-label::before {
|
||||||
background-color: #3B88FD;
|
background-color: #3B88FD;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-date .ant-input {
|
.search-date .ant-input {
|
||||||
height: 2.375rem;
|
height: 2.375rem;
|
||||||
padding: 0.375rem 0.75rem;
|
padding: 0.375rem 0.75rem;
|
||||||
@@ -228,28 +256,35 @@
|
|||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-date .select-data-icon {
|
.search-date .select-data-icon {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 1.5rem;
|
right: 1.5rem;
|
||||||
top: 0.5rem;
|
top: 0.5rem;
|
||||||
color: #b2b2b2;
|
color: #b2b2b2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-page .search-result-container .search-result-item {
|
.search-page .search-result-container .search-result-item {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-page .search-result-container .search-result-item:hover {
|
.search-page .search-result-container .search-result-item:hover {
|
||||||
background-color: inherit;
|
background-color: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-page .search-result-item .item-content {
|
.search-page .search-result-item .item-content {
|
||||||
margin-left: 0.8rem;
|
margin-left: 0.8rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-page .search-result-item .item-content .item-link a {
|
.search-page .search-result-item .item-content .item-link a {
|
||||||
color: #8b8b8b !important;
|
color: #8b8b8b !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-page .search-result-container .search-result-item {
|
.search-page .search-result-container .search-result-item {
|
||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
||||||
|
|
||||||
.rc-calendar tbody tr {
|
.rc-calendar tbody tr {
|
||||||
height: 1.75rem;
|
height: 1.75rem;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user