Skip to content

Commit

Permalink
styled details quick links component
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxnelson997 committed Jul 10, 2018
1 parent f646474 commit a1025a7
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/details.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import React, { Component } from 'react';

class Details extends Component {
render() {
const { title, links } = this.props;
const { className, title, links } = this.props;
return (
<div className='details'>
<div className={`${className} details`}>
<div className='details__title'>{title}</div>
<div className='details__links'>
{
Expand Down
10 changes: 9 additions & 1 deletion src/style/auth/signin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@
&__form {
display: grid;
grid-template-rows: [email-s] 64px [email-e password-s] 64px [password-e] minmax(20px, 289px) [line-s] 2px [line-e login-s] 38px [login-e];
grid-template-columns: 1fr;
}
}

.sign-in-form {
& > * {
grid-column: 1/-1;
}
&__email {
grid-row: email-s/email-e;
}
Expand All @@ -23,10 +27,14 @@
&__line {
grid-row: line-s/line-e;
border-top: 1px solid #ccc;

}
&__login {
margin-top: 39px;
grid-row: login-s/login-e;
}
&__details {
grid-row: 1/-1;
justify-self: end;
align-self: start;
}
}
20 changes: 20 additions & 0 deletions src/style/details.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.details {
display: grid;
grid-row-gap: 13px;

&__title {
padding-bottom: 7px;
border-bottom: 1px solid #CCC;
font-size: 14px;
font-weight: 600;
}

&__links {
font-size: 14px;
display: grid;
grid-row-gap: 10px;
& > * {
text-decoration-line: underline;
}
}
}
3 changes: 2 additions & 1 deletion src/style/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ body {
@import 'auth/signup';

@import 'page-title';
@import 'form-fields';
@import 'form-fields';
@import 'details';

0 comments on commit a1025a7

Please sign in to comment.