Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding logout form to styleguide #302

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/site/includes/side-nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<li><a href="./ui-components.html#breadcrumb">Breadcrumbs</a></li>
<li><a href="./ui-components.html#pagination">Pagination</a></li>
<li><a href="./ui-components.html#user-avatar">User Avatars</a></li>
<li><a href="./ui-components.html#logout-form">Logout Form</a></li>
<li><a href="./ui-components.html#author-blurb-single">Author Blurb</a></li>
<li><a href="./ui-components.html#signup-cta">Sign Up CTA</a></li>
<li><a href="./ui-components.html#feature-card">Feature Card</a></li>
Expand Down
1 change: 1 addition & 0 deletions src/site/ui-components.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ <h2>UI Components</h2>
@@include('./ui-components/breadcrumb/index.html')
@@include('./ui-components/pagination/index.html')
@@include('./ui-components/user-avatar/index.html')
@@include('./ui-components/logout-form/index.html')
@@include('./ui-components/author-blurb/single.html')
@@include('./ui-components/author-blurb/multiple.html')
@@include('./ui-components/signup-cta/index.html')
Expand Down
15 changes: 15 additions & 0 deletions src/site/ui-components/logout-form/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<div id="logout-form" class="headroom-large">
<div>
<h5>Logout Form</h5>
<p>If you need to give users the ability to log out of your service, use this handy form.</p>
<div data-xrayhtml>
<form action="url/to/logout" method="post" class="logout-form">
<div class="info">
<p>username</p>
<p><button>Logout</button></p>
</div>
<img src="https://www.gravatar.com/avatar/97d18d65a4ead88adfd7f89cb5bca0bd.png">
</form>
</div>
</div>
</div>
40 changes: 40 additions & 0 deletions src/stylesheets/common/_logout.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
//
// Logout form styles
// --------------------------------------------------
.logout-form {
.info {
float: left;
text-align: right;
font-size: 14px;
font-weight: 400;
margin-right: 20px;

p {
line-height: 1.3em;
margin-bottom: 0;
}
button {
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
background: transparent;
color: #6ea0a4;
border: none;
padding: 0;
text-transform: inherit;
font-weight: 400;
&:hover {
background: transparent;
color: #385d5c;
}
}
}
img {
width: 60px;
height: 60px;
border-radius: 50%;
border: 1.5px solid #385d5c;
padding: 2px;
margin-top: -10px;
}
}
1 change: 1 addition & 0 deletions src/stylesheets/styleguide.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
@import 'common/legal';
@import 'common/lists';
@import 'common/loading';
@import 'common/logout';
@import 'common/media-resources';
@import 'common/navbar';
@import 'common/pagination';
Expand Down