1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-17 15:53:28 +00:00
This commit is contained in:
Michael An
2019-05-13 17:20:33 +08:00
committed by Daniel Pan
parent 454b6766de
commit a9453d64dd
2 changed files with 13 additions and 16 deletions

View File

@@ -58,15 +58,10 @@
.search-result-container .search-result-item { .search-result-container .search-result-item {
display: flex; display: flex;
padding: 0.25rem 0.5rem;
border-left: 2px solid #fff; border-left: 2px solid #fff;
font-size: 0.8125rem; font-size: 0.8125rem;
cursor: pointer; cursor: pointer;
} margin-bottom: 1rem;
.search-result-container .search-result-item:hover {
border-left: 2px solid #eb8205;
background-color: #eee;
} }
.search-result-item .item-img { .search-result-item .item-img {
@@ -81,10 +76,10 @@
.search-result-item .item-content { .search-result-item .item-content {
flex: 1; flex: 1;
width: 0; width: 0;
margin-left: 0.25rem; margin-left: 0.8rem;
} }
.item-content .item-name { .item-content .item-name a , .item-content .item-link a {
color: #eb8205 !important; color: #EA8102 !important;
} }
.item-content .item-link { .item-content .item-link {
color: #888; color: #888;
@@ -109,9 +104,10 @@
.search-page .search-result-container { .search-page .search-result-container {
border-radius: 0; border-radius: 0;
box-shadow: none; box-shadow: none;
margin-left: 1rem;
} }
.search-page .search-page-container { .search-page .search-page-container {
padding: 10px; padding: 1.25rem 1rem;
background: #f7f7f8; background: #f7f7f8;
} }
.search-page .search-page-container .search-input { .search-page .search-page-container .search-input {
@@ -138,7 +134,7 @@
color: #747474; color: #747474;
} }
.search-page .search-filters { .search-page .search-filters {
padding: 10px 10px 0; 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 {
@@ -148,7 +144,6 @@
top: 10px; top: 10px;
} }
.search-page .advanced-search .search-catalog { .search-page .advanced-search .search-catalog {
margin: 0 10px;
border-top: 1px dashed #e2e2e2; border-top: 1px dashed #e2e2e2;
padding: 10px 0; padding: 10px 0;
} }
@@ -172,6 +167,9 @@
top: 0.5rem; top: 0.5rem;
color: #b2b2b2; color: #b2b2b2;
} }
.rc-calendar tbody tr {
height: 1.75rem;
}
@media (max-width: 767px) { @media (max-width: 767px) {
.common-toolbar .search { .common-toolbar .search {
@@ -233,6 +231,5 @@
top: 0; top: 0;
left: 0; left: 0;
width: 100%; width: 100%;
padding: 10px;
} }
} }

View File

@@ -140,11 +140,11 @@ class AdvancedSearch extends React.Component {
onChange={() => this.props.handlerFileTypes(4)} onChange={() => this.props.handlerFileTypes(4)}
checked={stateAndValues.fileTypeItemsStatus[4]}/> checked={stateAndValues.fileTypeItemsStatus[4]}/>
<CustomInput <CustomInput
type="checkbox" id="checkPdf" label={gettext('pdf')} inline type="checkbox" id="checkPdf" label="PDF" inline
onChange={() => this.props.handlerFileTypes(5)} onChange={() => this.props.handlerFileTypes(5)}
checked={stateAndValues.fileTypeItemsStatus[5]}/> checked={stateAndValues.fileTypeItemsStatus[5]}/>
<CustomInput <CustomInput
type="checkbox" id="checkMarkdown" label={gettext('markdown')} inline type="checkbox" id="checkMarkdown" label="Markdown" inline
onChange={() => this.props.handlerFileTypes(6)} onChange={() => this.props.handlerFileTypes(6)}
checked={stateAndValues.fileTypeItemsStatus[6]}/> checked={stateAndValues.fileTypeItemsStatus[6]}/>
</Fragment> </Fragment>
@@ -227,7 +227,7 @@ class AdvancedSearch extends React.Component {
</div> </div>
<MediaQuery query="(max-width: 768px)"> <MediaQuery query="(max-width: 768px)">
{errorSizeMsg && <div className="error mb-4">{errorSizeMsg}</div>} {errorSizeMsg && <div className="error mb-4">{errorSizeMsg}</div>}
<Button className="ml-3" color="primary" onClick={this.props.handleSubmit}>{gettext('Submit')}</Button> <Button color="primary" onClick={this.props.handleSubmit}>{gettext('Submit')}</Button>
<Button className="ml-2" onClick={this.props.handleReset}>{gettext('Reset')}</Button> <Button className="ml-2" onClick={this.props.handleReset}>{gettext('Reset')}</Button>
</MediaQuery> </MediaQuery>
</Collapse> </Collapse>