-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sign out button for protected pages (#97)
Merge pull request #97 from Voog/78_Signout_Button
- Loading branch information
Showing
12 changed files
with
158 additions
and
11 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{% if editmode != true and previewmode != true and page.private? %} | ||
<div class="signout-btn-wrap"> | ||
<a class="signout-link" data-disable-forcetouch="true" href="/admin/site/sessions/logout"> | ||
<span class="signout-ico"> | ||
<svg class="signout-svg" transform="scale(1.1)" width="16" height="30" xmlns="http://www.w3.org/2000/svg"> | ||
<path stroke="currentColor" fill="none" d="M12.5 19.5v3H1.523C.96 22.5.5 22.053.5 21.5v-14c0-.552.458-1 1.023-1H12.5v3m2.5 5l-5.455 4 5.455-4zm-5.455-4l5.455 4-5.455-4zm-5.558 4H14.5"></path> | ||
</svg> | ||
</span><span class="signout-name">{{ "sign_out" | lc }}</span> | ||
</a> | ||
</div> | ||
{% endif %} |
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
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,54 @@ | ||
.signout-btn-wrap { | ||
position: fixed; | ||
right: 5px; | ||
bottom: 5px; | ||
z-index: 10000; | ||
white-space: nowrap; | ||
background-color: $color-toolbar-bg; | ||
height: 35px; | ||
border-radius: 3px; | ||
text-align: center; | ||
box-shadow: 0 1px 6px rgba(0,0,0,0.5); | ||
|
||
&:hover { | ||
background-color: $color-silver-2; | ||
} | ||
|
||
.signout-link { | ||
position: relative; | ||
z-index: 10; | ||
display: block; | ||
padding: 0 10px; | ||
} | ||
|
||
.signout-name { | ||
display: inline-block; | ||
vertical-align: top; | ||
font-size: 14px; | ||
font-weight: 400; | ||
font-family: $avenir; | ||
line-height: 37px; | ||
padding-left: 8px; | ||
color: rgba($color-common-gray, 0.8); | ||
|
||
&:hover { | ||
color: rgba($color-common-gray, 0.9); | ||
} | ||
} | ||
|
||
.signout-ico { | ||
height: 35px; | ||
display: inline-block; | ||
color: rgba($color-common-gray, 0.7) | ||
} | ||
|
||
.signout-svg { | ||
margin-top: 3px; | ||
} | ||
} | ||
|
||
@media screen and (max-width: 600px) { | ||
.signout-btn-pad { | ||
padding-top: 20px; | ||
} | ||
} |
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
Large diffs are not rendered by default.
Oops, something went wrong.