Skip to content

Commit

Permalink
Extract modal component
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jan 5, 2016
1 parent d61e18a commit 3424001
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 59 deletions.
1 change: 1 addition & 0 deletions assets/scss/bloggy.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
@import 'components/pagination';
@import 'components/misc';
@import 'components/buttons';
@import 'components/modal';

/* Widgets */
@import 'widgets/blog-text';
Expand Down
56 changes: 56 additions & 0 deletions assets/scss/components/modal.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
#blogsubscribe {
.modal-header {
padding: 50px 50px 0 50px;

text-align: center;

border: none;

@include breakpoint(450px) {
padding: 35px 20px 0 20px;
}
}
.modal-title {
font-size: 2.8rem;
font-weight: bold;
line-height: 1.1em;

@include breakpoint(450px) {
font-size: 2.2rem;
}
}
.modal-body {
padding: 30px 50px 50px;

text-align: center;

@include breakpoint(450px) {
padding: 10px 20px 30px;
}
}
form {
margin: 0;
}
input {
width: 100%;
height: 50px;
padding: 0 15px;
margin-bottom: 1rem;

&:last-of-type {
min-height: 50px;
font-size: 1.8rem;
line-height: 1;

@include breakpoint(450px) {
font-size: 1.3rem;
}
}

}
p {
margin: 1rem 0;

color: $brown;
}
}
59 changes: 0 additions & 59 deletions assets/scss/widgets/blog-subscribe.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,62 +20,3 @@
color: $brown;
}
}

/* Main Modal */

#blogsubscribe {
.modal-header {
padding: 50px 50px 0 50px;

text-align: center;

border: none;

@include breakpoint(450px) {
padding: 35px 20px 0 20px;
}
}
.modal-title {
font-size: 2.8rem;
font-weight: bold;
line-height: 1.1em;

@include breakpoint(450px) {
font-size: 2.2rem;
}
}
.modal-body {
padding: 30px 50px 50px;

text-align: center;

@include breakpoint(450px) {
padding: 10px 20px 30px;
}
}
form {
margin: 0;
}
input {
width: 100%;
height: 50px;
padding: 0 15px;
margin-bottom: 1rem;

&:last-of-type {
min-height: 50px;
font-size: 1.8rem;
line-height: 1;

@include breakpoint(450px) {
font-size: 1.3rem;
}
}

}
p {
margin: 1rem 0;

color: $brown;
}
}

0 comments on commit 3424001

Please sign in to comment.