Skip to content

Commit

Permalink
add stripe elements styling guidelines for reference
Browse files Browse the repository at this point in the history
relates #25
  • Loading branch information
bo-bok committed May 9, 2017
1 parent 4396403 commit 7dcb94a
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 7 deletions.
6 changes: 0 additions & 6 deletions public/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@
background-color: #fefde5 !important;
}

.test{
background-color: red;
min-height: 800px;
}


.github-login-button {
min-height: 60px;
min-width: 100px;
Expand Down
2 changes: 1 addition & 1 deletion public/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions src/scss/_stripe-elements-guide.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/**
* The CSS shown here will not be introduced in the Quickstart guide, but shows
* how you can use CSS to style your Element's container.
*/
.StripeElement {
background-color: white;
padding: 8px 12px;
border-radius: 4px;
border: 1px solid transparent;
box-shadow: 0 1px 3px 0 #e6ebf1;
-webkit-transition: box-shadow 150ms ease;
transition: box-shadow 150ms ease;
}

.StripeElement--focus {
box-shadow: 0 1px 3px 0 #cfd7df;
}

.StripeElement--invalid {
border-color: #fa755a;
}

.StripeElement--webkit-autofill {
background-color: #fefde5 !important;
}
10 changes: 10 additions & 0 deletions src/scss/_test.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,13 @@ body {
min-height: 100px;
color: red;
}


.github-login-button {
min-height: 60px;
min-width: 100px;
font-size: 1.5em;
background: rebeccapurple;
color: white;
padding: 10px;
}

0 comments on commit 7dcb94a

Please sign in to comment.