Skip to content

Commit

Permalink
Merge pull request Terrastories#147 from shekibobo/jk-feature-styled-…
Browse files Browse the repository at this point in the history
…devise-pages

Add basic styling to devise pages
  • Loading branch information
Kalimar Maia committed Oct 4, 2018
2 parents ff7b07e + 595a799 commit ed57c6b
Show file tree
Hide file tree
Showing 12 changed files with 447 additions and 298 deletions.
1 change: 1 addition & 0 deletions rails/app/assets/stylesheets/components/_components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
@import 'player';
@import 'speaker';
@import 'welcome';
@import 'devise';
@import 'balloon';
@import 'introPopup';
118 changes: 118 additions & 0 deletions rails/app/assets/stylesheets/components/devise.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
.devise {
background: image-url('welcome-bg.jpg') no-repeat center center fixed;
background-size: cover;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;

.logo {
img {
width: 50%;
}
}

&-card {
background: $card-background;
width: 55%;
padding: 2em;
border-radius: 5%;
color: $blue;
max-width: 25rem;
display: flex;
flex-direction: column;
margin-bottom: 40px;
flex-shrink: 0;
@media screen and (max-width: 600px) {
width: 80vw;
}

img {
margin-bottom: 0.5rem;
width: 100%;
}

h1 {
border-top: 3px solid $orange;
padding-top: 0.3em;
padding-bottom: 0.2em;
text-align: center;
margin: 0;
}

a {
color: $teal;
text-decoration: none;
align-self: center;
}

input[type=text],
input[type=email],
input[type=password] {
padding: 0.5rem;
width: 100%;
}

label {
margin-top: 1rem;
}

input[type=submit] {
background-color: $teal;
text-transform: uppercase;
letter-spacing: 0.09rem;
border-radius: 5px;
border-color: transparent;
font-weight: 400;
font-size: 0.85rem;
cursor: pointer;
padding: 1rem;
width: 15rem;
margin-top: 0.5rem;
color: $white;

&:hover {
background-color: $blue;
}

&:focus {
outline-color: $white;
}
}
}
@include for-phone-only {
.logo {
height: 25%;
}
}
@media screen and (max-width: 370px) {
h1 {
font-size: 1.5rem;
}

input[type=submit] {
width: 10rem;
}

.navbar-link {
margin-left: 5px;
margin-right: 5px;
font-size: 0.6em;
}
}
@media screen and (max-height: 450px) {
.logo {
display: none;
}

.devise-card {
margin-bottom: 0;
}
}

&-links {
margin-top: 1rem;
}
}
Loading

0 comments on commit ed57c6b

Please sign in to comment.