Skip to content

Commit

Permalink
Documentation cCheckboxes and articles positionning
Browse files Browse the repository at this point in the history
  • Loading branch information
New0 committed May 28, 2019
1 parent 6a1aea6 commit 9ba12bc
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 7 deletions.
2 changes: 1 addition & 1 deletion assets/build/css/caldera-forms-front.min.css

Large diffs are not rendered by default.

32 changes: 28 additions & 4 deletions clients/components/DocSearch/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,13 @@

.cf-doc-main-row .form-group input[type=checkbox]:checked {
background: #a3bf61;
border-color: rgba(34, 34, 34, .1)
border-color: rgba(34, 34, 34, .1);

&:before {
content: "\f147";
margin: -2px 0 0 -2px;
color: #1e8cbe;
}
}

.cf-doc-main-row .col-md-12 {
Expand Down Expand Up @@ -139,7 +145,18 @@

.cf-doc-search-results-outer article {
border: 1px solid #ddd;
padding: 30px
padding: 30px;

img {
margin-top: 5px;
}

.entry-content {
p {
margin-top: 0px;
}
}

}

.cf-doc-search-results-outer .container {
Expand All @@ -153,9 +170,9 @@
}

.cf-doc-search-results-outer article .btn {
float: left;
float: right;
display: block;
margin-top: 20px;
margin-top: 10px;
width: auto
}

Expand All @@ -178,6 +195,13 @@
display: block;
}
}

.checkbox {
label {
padding-left: 0px;
margin-bottom: inherit;
}
}
}

@media screen and (min-width: 768px) {
Expand Down
4 changes: 2 additions & 2 deletions clients/components/DocSearch/Components/Category.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class Category extends React.Component {
render() {
return (
<div className="checkbox">
<label title="">

<label
htmlFor={this.state.idAttr}
className="control-label"
Expand All @@ -25,7 +25,7 @@ export class Category extends React.Component {
onChange={this.props.onChange}
id={this.state.idAttr}
/>
</label>

</div>
)

Expand Down
1 change: 1 addition & 0 deletions clients/components/DocSearch/DocSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,7 @@ class DocSearch extends React.Component {
activeKey={this.state.activeTabKey}
onSelect={this.handleTabSelect}
>
<hr />
<Tab
eventKey="categories"
title="Categories"
Expand Down

0 comments on commit 9ba12bc

Please sign in to comment.