This repository has been archived by the owner on Jun 24, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from nwhacks/web/flexbox-utils
Web/flexbox utils, login style rework
- Loading branch information
Showing
8 changed files
with
116 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,88 +1,13 @@ | ||
div#login | ||
display: flex | ||
justify-content: center | ||
height: 100% | ||
align-items: center | ||
|
||
> div | ||
max-width: 748px | ||
width: 60% | ||
display: flex | ||
flex-direction: column | ||
align-items: center | ||
|
||
form | ||
height: 60% | ||
min-height: 400px | ||
|
||
width: 100% | ||
|
||
display: flex | ||
flex-direction: column | ||
justify-content: center | ||
|
||
> span | ||
padding-left: 44px | ||
padding-right: 44px | ||
|
||
width: 100% | ||
display: flex | ||
justify-content: flex-start | ||
|
||
font-family: Merriweather | ||
font-style: normal | ||
font-weight: bold | ||
line-height: normal | ||
font-size: 32px | ||
|
||
color: $primary | ||
|
||
margin-bottom: 28px | ||
|
||
div.card | ||
display: flex | ||
background-color: $white | ||
overflow: hidden | ||
|
||
/* Drop shadow */ | ||
box-shadow: 0px 4px 6px $shadow | ||
border-radius: 4px | ||
|
||
> * | ||
width: 50% | ||
|
||
> div.card-left | ||
padding-left: 44px | ||
padding-right: 44px | ||
padding-top: 48px | ||
padding-bottom: 48px | ||
|
||
> div.text-input | ||
&:first-of-type | ||
margin-bottom: 40px | ||
&:last-of-type | ||
margin-bottom: 56px | ||
|
||
> button | ||
width: 100% | ||
|
||
> p | ||
display: flex | ||
justify-content: center | ||
|
||
margin-top: 10px | ||
width: 100% | ||
font-family: Apercu Pro | ||
font-size: 14px | ||
color: $primary | ||
|
||
> a | ||
&:visited | ||
color: $primary | ||
|
||
&:hover | ||
color: $secondary-highlight | ||
|
||
> div.card-right | ||
/* Placeholder for future illustration | ||
> .card | ||
> .card-right | ||
/* Placeholder for future illustration */ | ||
background: linear-gradient(180deg, #2C31AE 0%, #21258A 100%) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
$desktop: 1300px; | ||
$laptop: 1080px; | ||
$tablet: 900px; | ||
$phablet: 760px; | ||
$mobile: 480px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.shadow | ||
box-shadow: 0px 4px 6px $shadow | ||
|
||
.card | ||
@extend .shadow | ||
border-radius: 4px | ||
background-color: $white | ||
overflow: hidden |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
.fill | ||
&-width | ||
width: 100% | ||
|
||
&-height | ||
height: 100% | ||
|
||
.split | ||
> * | ||
width: 50% | ||
|
||
// padding declarations | ||
.pad | ||
&-sides | ||
padding-left: 44px | ||
padding-right: 44px | ||
|
||
&-ends | ||
padding-top: 48px | ||
padding-bottom: 48px | ||
|
||
// margin declarations | ||
.margin | ||
&-text-inputs | ||
> .text-input | ||
&:first-of-type | ||
margin-bottom: 40px | ||
&:last-of-type | ||
margin-bottom: 56px | ||
|
||
// flexbox utility classes | ||
.flex | ||
display: flex | ||
|
||
// flex-directions | ||
&.dir | ||
&-col | ||
flex-direction: column | ||
|
||
// justify-content | ||
&.jc | ||
&-center | ||
justify-content: center | ||
|
||
&-around | ||
justify-content: space-around | ||
|
||
&-between | ||
justify-content: space-between | ||
&-right-if-one | ||
:only-child | ||
align-self: flex-end | ||
margin-left: auto | ||
|
||
// flex-wrap | ||
&.wrap | ||
flex-wrap: wrap | ||
|
||
// align-items | ||
&.ai | ||
&-center | ||
align-items: center |