styles default template max width and adds regular fonts
This commit is contained in:
BIN
src/client/assets/fonts/NoeText-Regular.eot
Normal file
BIN
src/client/assets/fonts/NoeText-Regular.eot
Normal file
Binary file not shown.
15464
src/client/assets/fonts/NoeText-Regular.svg
Normal file
15464
src/client/assets/fonts/NoeText-Regular.svg
Normal file
File diff suppressed because it is too large
Load Diff
|
After Width: | Height: | Size: 859 KiB |
BIN
src/client/assets/fonts/NoeText-Regular.ttf
Normal file
BIN
src/client/assets/fonts/NoeText-Regular.ttf
Normal file
Binary file not shown.
BIN
src/client/assets/fonts/NoeText-Regular.woff
Normal file
BIN
src/client/assets/fonts/NoeText-Regular.woff
Normal file
Binary file not shown.
@@ -47,7 +47,7 @@ class Input extends Component {
|
||||
? () => <span className="required">*</span>
|
||||
: () => null;
|
||||
|
||||
const Error = !this.props.valid
|
||||
const Error = this.props.valid === false
|
||||
? () => <Tooltip className="error-message">{this.errors[this.props.type]}</Tooltip>
|
||||
: () => null;
|
||||
|
||||
@@ -56,7 +56,7 @@ class Input extends Component {
|
||||
: () => null;
|
||||
|
||||
let className = `interact ${this.props.type}`;
|
||||
className = this.props.valid
|
||||
className = this.props.valid !== false
|
||||
? className
|
||||
: `${className} error`;
|
||||
|
||||
|
||||
@@ -28,12 +28,12 @@ class Textarea extends Component {
|
||||
? () => <span className="required">*</span>
|
||||
: () => null;
|
||||
|
||||
let Error = !this.props.valid
|
||||
let Error = this.props.valid === false
|
||||
? () => <Tooltip className="error-message">{this.errors.text}</Tooltip>
|
||||
: () => null;
|
||||
|
||||
let className = 'interact textarea';
|
||||
className = this.props.valid ? className : `${className} error`;
|
||||
className = this.props.valid !== false ? className : `${className} error`;
|
||||
|
||||
let style = this.props.style
|
||||
? this.props.style
|
||||
|
||||
@@ -1,15 +1,17 @@
|
||||
import React from 'react';
|
||||
import Sidebar from '../Sidebar';
|
||||
import StepNav from '../StepNav';
|
||||
import StepNav from '../../modules/StepNav';
|
||||
|
||||
import './index.css';
|
||||
|
||||
export default props => {
|
||||
return (
|
||||
<div className="default-template">
|
||||
<Sidebar />
|
||||
<StepNav />
|
||||
{props.children}
|
||||
<div className="wrap">
|
||||
<Sidebar />
|
||||
<StepNav />
|
||||
{props.children}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -1,8 +1,13 @@
|
||||
@import '_styles';
|
||||
|
||||
.default-template {
|
||||
padding: rem(1) rem(1) rem(1) 0;
|
||||
margin-left: rem(6);
|
||||
padding: rem(1);
|
||||
|
||||
.wrap {
|
||||
max-width: $tablet-width;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.emblem {
|
||||
width: $base;
|
||||
|
||||
12
src/client/components/modules/Filter/index.js
Normal file
12
src/client/components/modules/Filter/index.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import React, { Component } from 'react';
|
||||
import Input from 'payload/client/components/forms/Input';
|
||||
|
||||
class Filter extends Component {
|
||||
render() {
|
||||
return (
|
||||
<Input data-fillable placeholder="Search" type="text" id="keywords" />
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default Filter;
|
||||
@@ -1,6 +1,8 @@
|
||||
import React from 'react';
|
||||
import SetStepNav from 'payload/client/components/utilities/SetStepNav';
|
||||
|
||||
import './index.css';
|
||||
|
||||
export default props => {
|
||||
return (
|
||||
<article className="collection-archive">
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
@import '_styles';
|
||||
|
||||
.collection-archive {
|
||||
.heading-button {
|
||||
@include m;
|
||||
}
|
||||
}
|
||||
@@ -18,20 +18,24 @@
|
||||
-webkit-appearance: none;
|
||||
|
||||
&::-webkit-input-placeholder { /* Chrome/Opera/Safari */
|
||||
color: $black;
|
||||
color: $gray;
|
||||
font-weight: normal;
|
||||
}
|
||||
&::-moz-placeholder { /* Firefox 19+ */
|
||||
color: $black;
|
||||
color: $gray;
|
||||
font-weight: normal;
|
||||
}
|
||||
&:-ms-input-placeholder { /* IE 10+ */
|
||||
color: $black;
|
||||
color: $gray;
|
||||
font-weight: normal;
|
||||
}
|
||||
&:-moz-placeholder { /* Firefox 18- */
|
||||
color: $black;
|
||||
color: $gray;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
|
||||
|
||||
}
|
||||
|
||||
&:focus,
|
||||
@@ -42,4 +46,4 @@
|
||||
@include small-break {
|
||||
margin-bottom: rem(.5);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user