Skip to content

Instantly share code, notes, and snippets.

@jnf
Created July 7, 2017 03:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jnf/7de945ae25f12e28e88aaadbe421a991 to your computer and use it in GitHub Desktop.
Save jnf/7de945ae25f12e28e88aaadbe421a991 to your computer and use it in GitHub Desktop.
main {
background: #111;
height: 100vh;
width: 100vw;
display: flex;
justify-content: center;
align-items: center;
}
.circle {
background: rgb(255, 255, 0);
border-radius: 50%;
font-size: 100px;
height: 40vmin;
width: 40vmin;
display: flex;
justify-content: center;
align-items: center;
transition: all 0.6s ease;
}
.activated {
background: rgb(255, 0, 255);
border-radius: 0;
transform: scale(0.6) rotate(-180deg);
}
@import "variables";
html {
font-size: 16px;
}
body {
background-color: $black;
display: flex;
height: 100vh;
flex-direction: column;
justify-content: center;
}
.instrument {
display: flex;
justify-content: center;
margin: 0 auto;
}
.note {
border: 0.25rem solid currentColor;
cursor: pointer;
font-size: 3rem;
margin: 0 0.25rem;
padding: 0;
transition: all 0.2s ease;
height: $note-box-size;
width: $note-box-size;
// produces .note:hover and .note:focus
&:hover,
&:focus {
font-size: 3.5rem;
outline: none;
}
}
.c {
background-color: #3e181b;
color: #db1d2d;
&:hover,
&:focus {
background-color: #661920;
}
&:active {
background-color: #db1d2d;
}
}
.d { color: #f0421c; background-color: #422018; }
.d:hover, .d:focus { background-color: #6e2819; }
.d:active { background-color: #f0421c; }
.e { color: #fec02d; background-color: #45391b; }
.e:hover, .e:focus { background-color: #735b20; }
.e:active { background-color: #fec02d; }
.f { color: #20d071; background-color: #193c29; }
.f:hover, .f:focus { background-color: #1b613b; }
.f:active { background-color: #20d071; }
.g { color: #1a9ddb; background-color: #18323e; }
.g:hover, .g:focus { background-color: #184d65; }
.g:active { background-color: #1a9ddb; }
.a { color: #a13fad; background-color: #331f35; }
.a:hover, .a:focus { background-color: #4e2753; }
.a:active { background-color: #a13fad; }
.b { color: #f26fd4; background-color: #43293d; }
.b:hover, .b:focus { background-color: #6f3a62; }
.b:active { background-color: #f26fd4; }
$black: #111;
$margins: 0 2rem 2rem;
$pink: rgb(255, 0, 255);
$note-bg-color: $black;
$note-bg-color-alt: $pink;
$note-box-size: 8rem;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment