mirror of
https://github.com/samsonjs/retrogit.git
synced 2026-04-27 15:07:43 +00:00
Use action button style everywhere.
Also some CSS cleanup.
This commit is contained in:
parent
a376df94a7
commit
dcbaeddde7
4 changed files with 85 additions and 61 deletions
|
|
@ -10,6 +10,10 @@ a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 164px;
|
height: 164px;
|
||||||
|
|
@ -54,17 +58,7 @@ a {
|
||||||
color: #756344;
|
color: #756344;
|
||||||
}
|
}
|
||||||
|
|
||||||
#sign-in-form {
|
.action-button {
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
#sign-in-form .octicon-mark-github {
|
|
||||||
pointer-events: none;
|
|
||||||
vertical-align: -2px;
|
|
||||||
color: #76201b;
|
|
||||||
}
|
|
||||||
|
|
||||||
#sign-in-form input[type="submit"] {
|
|
||||||
outline: 0;
|
outline: 0;
|
||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
border: dashed 2px #b52e26;
|
border: dashed 2px #b52e26;
|
||||||
|
|
@ -74,9 +68,72 @@ a {
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
font-size: 18pt;
|
font-size: 18pt;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
padding: 3px 5px;
|
||||||
|
cursor: pointer;
|
||||||
|
background: #fefcef;
|
||||||
|
}
|
||||||
|
|
||||||
|
.action-button:active {
|
||||||
|
background: #fff193;
|
||||||
|
}
|
||||||
|
|
||||||
|
form.inline {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type="submit"].inline {
|
||||||
|
-webkit-appearance: none;
|
||||||
|
display: inline;
|
||||||
|
background: transparent;
|
||||||
|
padding: 0;
|
||||||
|
border: 0;
|
||||||
|
font-family: Helvetica, Arial, sans-serif;
|
||||||
|
font-size: 10pt;
|
||||||
|
color: #4183c4;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type="submit"].inline:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type="submit"].inline.destructive {
|
||||||
|
text-decoration: underline;
|
||||||
|
color: #900;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flash {
|
||||||
|
position: absolute;
|
||||||
|
top: 20px;
|
||||||
|
right: 20px;
|
||||||
|
background: rgba(0, 0, 0, 0.75);
|
||||||
|
border-radius: 4px;
|
||||||
|
color: #fff;
|
||||||
|
font-size: 12pt;
|
||||||
|
padding: 10px;
|
||||||
|
transition: opacity ease-in-out 300ms;
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flash.visible {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sign-in-form {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sign-in-form .octicon-mark-github {
|
||||||
|
pointer-events: none;
|
||||||
|
vertical-align: -2px;
|
||||||
|
color: #76201b;
|
||||||
|
z-index: 1;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sign-in-form input[type="submit"] {
|
||||||
padding: 8px 5px 5px 43px;
|
padding: 8px 5px 5px 43px;
|
||||||
margin-left: -44px;
|
margin-left: -44px;
|
||||||
cursor: pointer;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#sign-in-form input[type="submit"]:before {
|
#sign-in-form input[type="submit"]:before {
|
||||||
|
|
@ -111,17 +168,11 @@ a {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
#primary-actions,
|
|
||||||
#primary-actions input[type="submit"] {
|
|
||||||
font-size: 14pt;
|
|
||||||
}
|
|
||||||
|
|
||||||
#primary-actions {
|
#primary-actions {
|
||||||
margin: 2em 0;
|
margin: 2em 0;
|
||||||
}
|
text-align: center;
|
||||||
|
font-size: 14pt;
|
||||||
#send-form {
|
color: #999;
|
||||||
display: inline;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.setting {
|
.setting {
|
||||||
|
|
@ -185,32 +236,3 @@ a {
|
||||||
margin-top: 1em;
|
margin-top: 1em;
|
||||||
padding-top: 1em;
|
padding-top: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type="submit"].destructive {
|
|
||||||
-webkit-appearance: none;
|
|
||||||
display: inline;
|
|
||||||
background: transparent;
|
|
||||||
padding: 0;
|
|
||||||
border: 0;
|
|
||||||
font-family: Helvetica, Arial, sans-serif;
|
|
||||||
font-size: 10pt;
|
|
||||||
text-decoration: underline;
|
|
||||||
color: #900;
|
|
||||||
}
|
|
||||||
|
|
||||||
.flash {
|
|
||||||
position: absolute;
|
|
||||||
top: 20px;
|
|
||||||
right: 20px;
|
|
||||||
background: rgba(0, 0, 0, 0.75);
|
|
||||||
border-radius: 4px;
|
|
||||||
color: #fff;
|
|
||||||
font-size: 12pt;
|
|
||||||
padding: 10px;
|
|
||||||
transition: opacity ease-in-out 300ms;
|
|
||||||
opacity: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.flash.visible {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
<form id="sign-in-form" method="POST" action="{{routeUrl "sign-in"}}">
|
<form id="sign-in-form" method="POST" action="{{routeUrl "sign-in"}}">
|
||||||
<span class="mega-octicon octicon-mark-github"></span>
|
<span class="mega-octicon octicon-mark-github"></span>
|
||||||
<input type="submit" value="Sign In with GitHub">
|
<input type="submit" class="action-button" value="Sign In with GitHub">
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" name="include_private" value="1" checked>
|
<input type="checkbox" name="include_private" value="1" checked>
|
||||||
Include private repositories
|
Include private repositories
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
{{template "flash" .}}
|
{{template "flash" .}}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
<p>
|
<div>
|
||||||
Signed in as
|
Signed in as
|
||||||
<a href="https://github.com/{{.User.Login}}"
|
<a href="https://github.com/{{.User.Login}}"
|
||||||
title="{{.User.Name}}">
|
title="{{.User.Name}}">
|
||||||
|
|
@ -15,16 +15,18 @@
|
||||||
height="20"
|
height="20"
|
||||||
border="0">{{.User.Login}}
|
border="0">{{.User.Login}}
|
||||||
</a>.
|
</a>.
|
||||||
<form method="POST" action="{{routeUrl "sign-out"}}">
|
<form class="inline" method="POST" action="{{routeUrl "sign-out"}}">
|
||||||
<input type="submit" value="Sign Out">
|
<input type="submit" class="inline" value="Sign Out">
|
||||||
</form>
|
</form>
|
||||||
</p>
|
</div>
|
||||||
|
|
||||||
<div id="primary-actions">
|
<div id="primary-actions">
|
||||||
<a href="{{routeUrl "view-digest"}}">View Digest</a>
|
<form class="inline" method="GET" action="{{routeUrl "view-digest"}}">
|
||||||
-
|
<input type="submit" class="action-button" value="View Digest">
|
||||||
<form id="send-form" method="POST" action="{{routeUrl "send-digest"}}">
|
</form>
|
||||||
<input type="submit" value="Email Digest">
|
or
|
||||||
|
<form class="inline" method="POST" action="{{routeUrl "send-digest"}}">
|
||||||
|
<input type="submit" class="action-button" value="Email Digest">
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -129,13 +129,13 @@
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<input type="submit" value="Save Settings">
|
<input type="submit" class="action-button" value="Save Settings">
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<form id="delete-account-form" method="POST" action="{{routeUrl "delete-account"}}" onsubmit="return confirmDeleteAccount()">
|
<form id="delete-account-form" method="POST" action="{{routeUrl "delete-account"}}" onsubmit="return confirmDeleteAccount()">
|
||||||
If you'd like all data that's stored about your GitHub account removed, you can
|
If you'd like all data that's stored about your GitHub account removed, you can
|
||||||
<input type="submit" value="Delete Your Account" class="destructive">.
|
<input type="submit" value="delete your account" class="inline destructive">.
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue