Modal inputs

This commit is contained in:
James Barnsley
2018-05-24 21:37:41 +12:00
parent e5bead0735
commit b5c25760ad
10 changed files with 23534 additions and 25421 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -77,7 +77,7 @@
// Release details // Release details
// These are automatically injected to built HTML // These are automatically injected to built HTML
var build = "1527020848"; var build = "1527152918";
var version = "3.18.0"; var version = "3.18.0";
// Construct the script tag // Construct the script tag

View File

@ -55,23 +55,27 @@ export default class CreatePlaylistModal extends React.Component{
</div> </div>
<div className="field checkbox white"> <div className="field checkbox white">
<span className="label">Options</span> <div className="label">
<label> Options
<input </div>
type="checkbox" <div className="input">
name="is_public" <label>
checked={ this.state.is_public } <input
onChange={ e => this.setState({ is_public: !this.state.is_public })} /> type="checkbox"
<span className="label">Public</span> name="is_public"
</label> checked={ this.state.is_public }
<label> onChange={ e => this.setState({ is_public: !this.state.is_public })} />
<input <span className="label">Public</span>
type="checkbox" </label>
name="is_collaborative" <label>
checked={ this.state.is_collaborative } <input
onChange={ e => this.setState({ is_collaborative: !this.state.is_collaborative })} /> type="checkbox"
<span className="label">Collaborative</span> name="is_collaborative"
</label> checked={ this.state.is_collaborative }
onChange={ e => this.setState({ is_collaborative: !this.state.is_collaborative })} />
<span className="label">Collaborative</span>
</label>
</div>
</div> </div>
</div> </div>
) )
@ -98,25 +102,29 @@ export default class CreatePlaylistModal extends React.Component{
<form onSubmit={(e) => this.createPlaylist(e)}> <form onSubmit={(e) => this.createPlaylist(e)}>
<div className="field radio white"> <div className="field radio white">
<span className="label">Provider</span> <div className="label">
<label> Provider
<input </div>
type="radio" <div className="input">
name="scheme" <label>
value="spotify" <input
checked={ this.state.scheme == 'spotify' } type="radio"
onChange={ e => this.setState({ scheme: e.target.value })} /> name="scheme"
<span className="label">Spotify</span> value="spotify"
</label> checked={ this.state.scheme == 'spotify' }
<label> onChange={ e => this.setState({ scheme: e.target.value })} />
<input <span className="label">Spotify</span>
type="radio" </label>
name="scheme" <label>
value="m3u" <input
checked={ this.state.scheme == 'm3u' } type="radio"
onChange={ e => this.setState({ scheme: e.target.value })} /> name="scheme"
<span className="label">Mopidy</span> value="m3u"
</label> checked={ this.state.scheme == 'm3u' }
onChange={ e => this.setState({ scheme: e.target.value })} />
<span className="label">Mopidy</span>
</label>
</div>
</div> </div>
{this.renderFields()} {this.renderFields()}

View File

@ -48,19 +48,18 @@ $icon-stop: \e91f;
$icon-websocket: \e920; $icon-websocket: \e920;
[class^="icon-"], [class*=" icon-"] { [class^="icon-"], [class*=" icon-"] {
/* use !important to prevent issues with browser extensions that change fonts */ @include noselect();
font-family: 'iris' !important;
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
display: inline-block;
/* Better Font Rendering =========== */ font-family: 'iris' !important;
-webkit-font-smoothing: antialiased; speak: none;
-moz-osx-font-smoothing: grayscale; font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
display: inline-block;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
} }
.icon-back:before { .icon-back:before {
@ -175,18 +174,19 @@ $icon-websocket: \e920;
**/ **/
@font-face { @font-face {
font-family: 'Material Icons'; font-family: 'Material Icons';
font-style: normal; font-style: normal;
font-weight: 400;; font-weight: 400;;
src: url(../assets/fonts/MaterialIcons-Regular.eot); /* For IE6-8 */ src: url(../assets/fonts/MaterialIcons-Regular.eot); /* For IE6-8 */
src: local('Material Icons'), src: local('Material Icons'),
local('MaterialIcons-Regular'), local('MaterialIcons-Regular'),
url(../assets/fonts/MaterialIcons-Regular.woff2) format('woff2'), url(../assets/fonts/MaterialIcons-Regular.woff2) format('woff2'),
url(../assets/fonts/MaterialIcons-Regular.woff) format('woff'), url(../assets/fonts/MaterialIcons-Regular.woff) format('woff'),
url(../assets/fonts/MaterialIcons-Regular.ttf) format('truetype'); url(../assets/fonts/MaterialIcons-Regular.ttf) format('truetype');
} }
.material-icon { .material-icon {
@include noselect();
font-family: 'Material Icons'; font-family: 'Material Icons';
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;
@ -200,15 +200,8 @@ $icon-websocket: \e920;
vertical-align: bottom; vertical-align: bottom;
font-size: 1.3em; font-size: 1.3em;
margin-bottom: 0.1em; margin-bottom: 0.1em;
/* Support for all WebKit browsers. */
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
/* Support for Safari and Chrome. */
text-rendering: optimizeLegibility; text-rendering: optimizeLegibility;
/* Support for Firefox. */
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
/* Support for IE. */
font-feature-settings: 'liga'; font-feature-settings: 'liga';
} }

View File

@ -53,7 +53,7 @@
} }
} }
.source { .icon.source {
color: $mid_grey; color: $mid_grey;
position: absolute; position: absolute;
top: 16px; top: 16px;

View File

@ -68,6 +68,9 @@
pointer-events: none; pointer-events: none;
padding: 0; padding: 0;
} }
& > .input {
padding-top: 0;
}
} }
&.text { &.text {

View File

@ -83,6 +83,7 @@
.control { .control {
@include animate(); @include animate();
@include noselect();
color: $white; color: $white;
cursor: pointer; cursor: pointer;
padding: 10px 6px; padding: 10px 6px;

View File

@ -60,7 +60,7 @@ input[type="radio"]{
height: 6px; height: 6px;
border-radius: 50%; border-radius: 50%;
position: absolute; position: absolute;
top: 12px; top: 11px;
left: 7px; left: 7px;
background: $white; background: $white;
} }