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

Tinkring around with the buttons feel #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ <h1>Turbo Vision for the 21st century</h1>
<button> Button 3 </button>
</p>
<p>
<a href="https://github.com/tomer/tvision/" class="full-width button"> Fork me on Github </a>
<a href="https://github.com/tomer/tvision/" class="full-width button" target="_blank"> Fork me on Github </a>
</p>
</fieldset>

Expand Down
33 changes: 17 additions & 16 deletions tvision.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
html {
background: #a5a4ce;
font-family: System, monospace;
font-size: 10pt
font-size: 10pt;
}

.window {
Expand Down Expand Up @@ -63,12 +63,17 @@ button,
font-size: inherit;
background: green;
padding: 0 1em;
box-shadow: .5em .5em 3px rgba(0,0,0,.5);
box-shadow: .3em .3em 4px rgba(0,0,0,.4);
position: relative;
transition: .2s all ease-in;
transition: .15s all;
border: 1px outset green;
}

.button:link,
.button:link:hover {
text-decoration: none;
}

button.full-width,
.button.full-width {
display: block;
Expand All @@ -85,22 +90,18 @@ button:before,
position: absolute;
/*background: rgba(255,255,0,.5); /* DEBUG CLICK AREA */
}

button:hover,
.button:active,
.button:focus,
.button:hover {
transform: translate3d(.25em,.25em,10em);
box-shadow: 0 0 0 rgba(0,0,0,.5);
.button:active,
button:active {
box-shadow: 0 0 0 rgba(0,0,0,.3);
background: limegreen;
}

button:hover:before,
.button:hover:before,
button:focus:before,
.button:focus:before {
top: -1em;
left: -1em;
.button,
button,
button:active,
button:hover,
button:focus {
outline: 0;
}

button:first-letter,
Expand Down