-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
first commit cloned from bootstrap version
- Loading branch information
0 parents
commit f1546d3
Showing
36 changed files
with
490 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.build* |
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,7 @@ | ||
language: node_js | ||
node_js: | ||
- "0.10.29" | ||
before_install: | ||
- "curl -L http://git.io/ejPSng | /bin/sh" | ||
env: | ||
- TEST_COMMAND=meteor |
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,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2014 splendido | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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,23 @@ | ||
[](https://travis-ci.org/splendido/accounts-templates-ratchet) | ||
accounts-templates-bootstrap | ||
============================ | ||
|
||
Meteor sign up and sign in templates (and much more!) styled for Ratchet | ||
|
||
This package depends on [accounts-templates-core](https://atmospherejs.com/package/accounts-templates-core) | ||
|
||
Learn more [here](http://accounts-templates.meteor.com) or have a look at a [live demo application](http://accounts-templates-ratchet.meteor.com). | ||
|
||
|
||
## Warning! | ||
|
||
Adding this package with `mrt add accounts-templates-ratchet` does not add any other packages providing Ratchet. This is to let you choose the flavour you prefer, being it compiled, less, sass, or from CDN! | ||
|
||
|
||
## Contributing | ||
|
||
Anyone is welcome to contribute. Fork, make your changes, and then submit a pull request. | ||
|
||
Thanks to all those who have contributed code changes to [this package](https://github.com/splendido/accounts-templates-ratchet/graphs/contributors) as well as to the [core package](https://github.com/splendido/accounts-templates-core/graphs/contributors) and all who have helped by submitting bug reports and feature ideas. | ||
|
||
[](https://www.gittip.com/splendido/) |
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,163 @@ | ||
.at-form { | ||
float: none; | ||
margin: auto; | ||
overflow: auto; | ||
margin-top: 20px; | ||
margin-bottom: 20px; | ||
border-radius: 10px; | ||
padding: 15px; | ||
|
||
p { | ||
font-size: 15px; | ||
line-height: 20px; | ||
} | ||
} | ||
|
||
.at-title { | ||
h3 { | ||
margin-top: 0px; | ||
margin-bottom: 10px; | ||
font-size: 18px; | ||
font-weight: 800; | ||
text-align: center; | ||
} | ||
} | ||
|
||
.at-link.disabled { | ||
color: #444; | ||
} | ||
|
||
.at-signin-link { | ||
margin-bottom: 30px; | ||
text-align: center; | ||
} | ||
|
||
.at-error, .at-result { | ||
text-align: center; | ||
} | ||
|
||
.at-oauth { | ||
margin-top: 10px; | ||
} | ||
|
||
button.at-social-btn { | ||
display: block; | ||
width: 100%; | ||
margin: auto; | ||
margin-bottom: 10px; | ||
padding: 8px 10px; | ||
border-radius: 5px; | ||
font-size: 16px; | ||
|
||
i { | ||
float: left; | ||
width: 40px; | ||
font-size: 20px; | ||
margin-top: 1px; | ||
padding-right: 15px; | ||
padding-left: 5px; | ||
border-right: 1px solid rgba(0,0,0,0.2); | ||
} | ||
|
||
&#at-facebook { | ||
background: #3B5998; | ||
color: #fff; | ||
&.disabled { | ||
color: #ddd; | ||
background: #666666; | ||
} | ||
&:hover { | ||
background: #2C4780; | ||
} | ||
} | ||
|
||
&#at-linkedin { | ||
background: #338AB0; | ||
color: #fff; | ||
&.disabled { | ||
color: #ddd; | ||
background: #666666; | ||
} | ||
&:hover { | ||
background: #0571A6; | ||
} | ||
} | ||
|
||
&#at-twitter { | ||
background: #4099FF; | ||
color: #fff; | ||
&.disabled { | ||
color: #ddd; | ||
background: #666666; | ||
} | ||
&:hover { | ||
background: #3288EB; | ||
} | ||
} | ||
|
||
&#at-google { | ||
background: #db5a3c; | ||
color: #fff; | ||
&.disabled { | ||
color: #ddd; | ||
background: #666666; | ||
} | ||
&:hover { | ||
background: #CA4C2E; | ||
} | ||
} | ||
|
||
&#at-github { | ||
background: #666; | ||
color: #fff; | ||
&.disabled { | ||
color: #ddd; | ||
background: #666666; | ||
} | ||
&:hover { | ||
background: #555; | ||
} | ||
} | ||
} | ||
|
||
.at-sep { | ||
text-align: center; | ||
font-size: 12px; | ||
font-weight: bold; | ||
margin-top: 40px; | ||
margin-bottom: 30px; | ||
margin-left: 0 !important; | ||
margin-right: 0 !important; | ||
|
||
.line-thru { | ||
border-bottom: 1px solid #999; | ||
padding-bottom: 7px; | ||
} | ||
} | ||
|
||
.at-pwd-form > form { | ||
margin-top: 20px; | ||
|
||
label { | ||
margin-bottom: 5px; | ||
font-weight: 500; | ||
font-size: 14px; | ||
} | ||
} | ||
|
||
#at-btn{ | ||
font-size: 16px; | ||
padding: 10px 12px; | ||
margin-top: 30px; | ||
} | ||
|
||
.at-signup-link { | ||
margin-top: 20px; | ||
font-size: 13px; | ||
} | ||
|
||
.at-terms-link { | ||
text-align: center; | ||
margin-top: 20px; | ||
font-size: 16px; | ||
} |
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,7 @@ | ||
<template name="atError"> | ||
<div class="at-error alert alert-danger"> | ||
{{#each error}} | ||
<p>{{errorText}}</p> | ||
{{/each}} | ||
</div> | ||
</template> |
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,2 @@ | ||
// Simply 'inherites' helpers from AccountsTemplates | ||
Template.atError.helpers(AccountsTemplates.atErrorHelpers); |
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,33 @@ | ||
<template name="atForm"> | ||
{{#unless hide}} | ||
<div class="at-form"> | ||
{{#if showTitle}} | ||
{{> atTitle}} | ||
{{/if}} | ||
{{#if showSignInLink}} | ||
{{> atSigninLink}} | ||
{{/if}} | ||
{{#if showOauthServices}} | ||
{{> atOauth}} | ||
{{/if}} | ||
{{#if showServicesSeparator}} | ||
{{> atSep}} | ||
{{/if}} | ||
{{#if showError}} | ||
{{> atError}} | ||
{{/if}} | ||
{{#if showResult}} | ||
{{> atResult}} | ||
{{/if}} | ||
{{#if showPwdForm}} | ||
{{> atPwdForm}} | ||
{{/if}} | ||
{{#if showSignUpLink}} | ||
{{> atSignupLink}} | ||
{{/if}} | ||
{{#if showTermsLink}} | ||
{{> atTermsLink}} | ||
{{/if}} | ||
</div> | ||
{{/unless}} | ||
</template> |
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,2 @@ | ||
// Simply 'inherites' helpers from AccountsTemplates | ||
Template.atForm.helpers(AccountsTemplates.atFormHelpers); |
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,15 @@ | ||
<template name='atInput'> | ||
<div class="form-group {{#if hasError}}has-error{{/if}} {{#if hasSuccess}}has-success{{/if}} {{#if feedback}}has-feedback{{/if}}"> | ||
<label class="control-label {{#unless showLabels}}sr-only{{/unless}}" for="AT_field_{{_id}}"> | ||
{{displayName}} {{#unless required}}{{optionalText}}{{/unless}} | ||
</label> | ||
<input type="{{type}}" class="form-control" id="AT_field_{{_id}}" name="AT_field_{{_id}}" placeholder="{{placeholder}}" autocapitalize="none" autocorrect="off"> | ||
{{#if negativeFeedback}} | ||
<span class="glyphicon glyphicon-remove form-control-feedback {{#unless hasError}}hide{{/unless}}"></span> | ||
{{/if}} | ||
{{#if positiveFeedback}} | ||
<span class="glyphicon glyphicon-ok form-control-feedback {{#unless hasSuccess}}hide{{/unless}}"></span> | ||
{{/if}} | ||
<span class="help-block {{#unless hasError}}hide{{/unless}}">{{errorText}}</span> | ||
</div> | ||
</template> |
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 @@ | ||
// Simply 'inherites' helpers from AccountsTemplates | ||
Template.atInput.helpers(AccountsTemplates.atInputHelpers); | ||
|
||
// Simply 'inherites' events from AccountsTemplates | ||
Template.atInput.events(AccountsTemplates.atInputEvents); |
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,7 @@ | ||
<template name="atOauth"> | ||
<div class="at-oauth"> | ||
{{#each oauthService}} | ||
{{> atSocial}} | ||
{{/each}} | ||
</div> | ||
</template> |
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,2 @@ | ||
// Simply 'inherites' helpers from AccountsTemplates | ||
Template.atOauth.helpers(AccountsTemplates.atOauthHelpers); |
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,15 @@ | ||
<template name="atPwdForm"> | ||
<div class="at-pwd-form"> | ||
<form role="form" id="at-pwd-form" novalidate> | ||
<fieldset {{disabled}}> | ||
{{#each fields}} | ||
{{> atInput}} | ||
{{/each}} | ||
{{#if showForgotPasswordLink}} | ||
{{> atPwdLink}} | ||
{{/if}} | ||
{{> atPwdFormBtn}} | ||
</fieldset> | ||
</form> | ||
</div> | ||
</template> |
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 @@ | ||
// Simply 'inherites' helpers from AccountsTemplates | ||
Template.atPwdForm.helpers(AccountsTemplates.atPwdFormHelpers); | ||
|
||
// Simply 'inherites' events from AccountsTemplates | ||
Template.atPwdForm.events(AccountsTemplates.atPwdFormEvents); |
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 @@ | ||
<template name="atPwdFormBtn"> | ||
<button type="submit" class="submit btn btn-lg btn-block btn-default {{submitDisabled}}" id="at-btn"> | ||
{{buttonText}} | ||
</button> | ||
</template> |
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,2 @@ | ||
// Simply 'inherites' helpers from AccountsTemplates | ||
Template.atPwdFormBtn.helpers(AccountsTemplates.atPwdFormBtnHelpers); |
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 @@ | ||
<template name="atPwdLink"> | ||
<div class="at-pwd-link"> | ||
<p> | ||
|
||
<a href="{{forgotPwdLink}}" id="at-forgotPwd" class="at-link {{disabled}}">{{linkText}}</a> | ||
</p> | ||
</div> | ||
</template> |
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 @@ | ||
// Simply 'inherites' helpers from AccountsTemplates | ||
Template.atPwdLink.helpers(AccountsTemplates.atPwdLinkHelpers); | ||
|
||
// Simply 'inherites' events from AccountsTemplates | ||
Template.atPwdLink.events(AccountsTemplates.atPwdLinkEvents); |
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 @@ | ||
<template name="atResult"> | ||
<div class="at-result alert alert-success"> | ||
{{result}} | ||
</div> | ||
</template> |
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,2 @@ | ||
// Simply 'inherites' helpers from AccountsTemplates | ||
Template.atResult.helpers(AccountsTemplates.atResultHelpers); |
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,7 @@ | ||
<template name="atSep"> | ||
<div class="row at-sep"> | ||
<div class="col-xs-4 vcenter line-thru"></div> | ||
<div class="col-xs-3 vcenter"><strong>{{sepText}}</strong></div> | ||
<div class="col-xs-4 vcenter line-thru"></div> | ||
</div> | ||
</template> |
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,2 @@ | ||
// Simply 'inherites' helpers from AccountsTemplates | ||
Template.atSep.helpers(AccountsTemplates.atSepHelpers); |
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 @@ | ||
<template name="atSigninLink"> | ||
<div class="at-signin-link"> | ||
<p> | ||
{{text}} | ||
<a href="{{signInLink}}" id="at-signIn" class="at-link {{disabled}}">{{linkText}}</a> | ||
</p> | ||
</div> | ||
</template> |
Oops, something went wrong.