styles default template max width and adds regular fonts

This commit is contained in:
James
2018-08-02 13:26:05 -04:00
parent f90e3c6819
commit 4c6cd032ec
18 changed files with 15517 additions and 17 deletions

Binary file not shown.

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 859 KiB

Binary file not shown.

Binary file not shown.

View File

@@ -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`;

View File

@@ -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

View File

@@ -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>
);
};

View File

@@ -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;

View 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;

View File

@@ -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">

View File

@@ -0,0 +1,7 @@
@import '_styles';
.collection-archive {
.heading-button {
@include m;
}
}

View File

@@ -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);
}
}
}