mirror of
https://github.com/haiwen/seahub.git
synced 2025-07-30 22:34:53 +00:00
optimized css code
This commit is contained in:
parent
d3cd2a6d33
commit
3ee2de6773
@ -1,10 +1,8 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { Button, Modal, ModalHeader, Input, ModalBody, ModalFooter, Form, FormGroup, Label, FormText } from 'reactstrap';
|
||||
import { Button, Modal, ModalHeader, Input, ModalBody, ModalFooter, Form, FormGroup, Label } from 'reactstrap';
|
||||
import { gettext } from '../../utils/constants';
|
||||
|
||||
import '../../css/modal.css';
|
||||
|
||||
const propTypes = {
|
||||
onCreateRepo: PropTypes.func.isRequired,
|
||||
onCreateToggle: PropTypes.func.isRequired,
|
||||
@ -148,7 +146,7 @@ class CreateRepoDialog extends React.Component {
|
||||
|
||||
render() {
|
||||
return (
|
||||
<Modal isOpen={true} toggle={this.toggle} className="repo-dialog">
|
||||
<Modal isOpen={true} toggle={this.toggle}>
|
||||
<ModalHeader toggle={this.toggle}>{gettext('New Library')}</ModalHeader>
|
||||
<ModalBody>
|
||||
<Form>
|
||||
@ -173,7 +171,7 @@ class CreateRepoDialog extends React.Component {
|
||||
)}
|
||||
<FormGroup check>
|
||||
<Input type="checkbox" id="encrypt" onChange={this.onEncrypted}/>
|
||||
<FormText className="text">{gettext('Encrypt')}</FormText>
|
||||
<Label for="encrypt">{gettext('Encrypt')}</Label>
|
||||
</FormGroup>
|
||||
<FormGroup>
|
||||
<Label for="passwd1">{gettext('Password')}{' '}<span className="tip">({gettext('at least 8 characters')})</span></Label>
|
||||
|
@ -1,18 +0,0 @@
|
||||
.repo-dialog .modal-body label {
|
||||
padding: 0.5rem 0 0.25rem;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
|
||||
.repo-dialog .modal-body label.form-check-label {
|
||||
font-weight: normal;
|
||||
padding: 0.25rem 0;
|
||||
}
|
||||
|
||||
.repo-dialog .modal-body .tip {
|
||||
font-weight: normal;
|
||||
color: #808080;
|
||||
font-size: 0.75rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
@ -1,8 +1,3 @@
|
||||
.share-dialog {
|
||||
color: #333;
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
|
||||
.share-dialog .share-dialog-content {
|
||||
padding: 0;
|
||||
min-height: 15rem;
|
||||
@ -46,7 +41,6 @@
|
||||
|
||||
.tip {
|
||||
color: #808080;
|
||||
font-size: 0.75rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
@ -65,7 +59,6 @@
|
||||
|
||||
.share-dialog .nav .nav-item .nav-link {
|
||||
padding: 0.3125rem 1rem 0.3125rem 0.25rem;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
input.expire-input {
|
||||
|
Loading…
Reference in New Issue
Block a user