Removed GopherJS, basic frontend completed, need backend changes for

torrent storage
This commit is contained in:
2017-11-30 18:12:11 -05:00
parent 67fdef16b1
commit e98ad2cc88
69321 changed files with 5498914 additions and 337 deletions

View File

@@ -0,0 +1,30 @@
## Styles
Styles passed into the Modal via the `style` prop are merged with the defaults. The default styles are:
```js
{
overlay : {
position : 'fixed',
top : 0,
left : 0,
right : 0,
bottom : 0,
backgroundColor : 'rgba(255, 255, 255, 0.75)'
},
content : {
position : 'absolute',
top : '40px',
left : '40px',
right : '40px',
bottom : '40px',
border : '1px solid #ccc',
background : '#fff',
overflow : 'auto',
WebkitOverflowScrolling : 'touch',
borderRadius : '4px',
outline : 'none',
padding : '20px'
}
}
```

View File

@@ -0,0 +1,22 @@
### CSS Classes
Sometimes it may be preferable to use CSS classes rather than inline styles.
You can use the `className` and `overlayClassName` props to specify a given CSS
class for each of those.
You can override the default class that is added to `document.body` when the
modal is open by defining a property `bodyOpenClassName`.
It's required that `bodyOpenClassName` must be `constant string`, otherwise we
would end up with a complex system to manage which class name should appear or
be removed from `document.body` from which modal (if using multiple modals
simultaneously).
`bodyOpenClassName` can support adding multiple classes to `document.body` when
the modal is open. Add as many class names as you desire, delineated by spaces.
Note: If you provide those props all default styles will not be applied, leaving
all styles under control of the CSS class.
The `portalClassName` can also be used however there are no styles by default applied

View File

@@ -0,0 +1,3 @@
### Global Overrides
If you'd like to override all instances of modals you can make changes to `Modal.defaultStyles`.