mirror of
https://github.com/TrentSPalmer/fcc-challenges.git
synced 2024-10-31 13:38:45 -07:00
502 lines
8.9 KiB
CSS
502 lines
8.9 KiB
CSS
:root {
|
|
--global-first-color: #756d58;
|
|
--global-second-color: #586075;
|
|
--global-third-color: #607558;
|
|
--global-fourth-color: #6d5875;
|
|
--global-black-color: #333333;
|
|
}
|
|
|
|
body {
|
|
overflow: hidden;
|
|
height: 100vh;
|
|
width: 100%;
|
|
}
|
|
|
|
.tool-tip-class {
|
|
background-color: var(--global-first-color);
|
|
font-size: 2rem;
|
|
font-style: oblique;
|
|
border-color: black !important;
|
|
border-width: 2px !important;
|
|
border-style: solid;
|
|
border-radius: 6px;
|
|
width: unset !important;
|
|
max-width: unset !important;
|
|
text-align: center;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
#test {
|
|
position: absolute;
|
|
}
|
|
|
|
#drum-machine {
|
|
background-color: var(--global-first-color);
|
|
height: 100vh;
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: row;
|
|
}
|
|
|
|
#display {
|
|
background-color: var(--global-second-color);
|
|
margin: auto;
|
|
height: 70vh;
|
|
min-height: 400px;
|
|
width: 80vw;
|
|
border-radius: 1rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
#display-top, #display-bottom {
|
|
flex-basis: 19%;
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
text-align: center;
|
|
font-size: x-large;
|
|
font-style: oblique;
|
|
}
|
|
|
|
#display-top p {
|
|
height: 10px;
|
|
margin-top: -10px;
|
|
}
|
|
|
|
#menuScrollTip {
|
|
padding-top: 20px;
|
|
}
|
|
|
|
#display-middle {
|
|
flex-basis: 62%;
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: row;
|
|
-webkit-user-select: none; /* Safari */
|
|
-ms-user-select: none; /* IE 10+ and Edge */
|
|
user-select: none; /* Standard syntax */
|
|
}
|
|
|
|
#display-middle-left {
|
|
flex-basis: 55%;
|
|
display: flex;
|
|
flex-direction: row;
|
|
}
|
|
|
|
#display-middle-left-b {
|
|
flex-basis: 90%;
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-around;
|
|
}
|
|
|
|
#drum-pad-grid {
|
|
margin: auto;
|
|
background-color: var(--global-third-color);
|
|
border-radius: 1rem;
|
|
width: 54vh;
|
|
height: 45vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-around;
|
|
padding: 0 0 2vh 2vh;
|
|
}
|
|
|
|
.drum-pad-row {
|
|
height: 33%;
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-around;
|
|
}
|
|
|
|
.drum-pad {
|
|
border-radius: 1rem;
|
|
width: 33%;
|
|
background-color: var(--global-fourth-color);
|
|
border: black;
|
|
border-width: 2px;
|
|
border-style: solid;
|
|
margin: 2vh 2vh 0 0;
|
|
text-align: center;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-around;
|
|
font-size: x-large;
|
|
font-style: oblique;
|
|
}
|
|
|
|
.drum-pad:active {
|
|
background-color: var(--global-first-color);
|
|
}
|
|
|
|
.drum-pad > p {
|
|
margin-top: auto;
|
|
margin-bottom: auto;
|
|
}
|
|
|
|
.selectionMenu {
|
|
margin: auto;
|
|
background-color: var(--global-third-color);
|
|
border-radius: 5px;
|
|
width: 54vh;
|
|
height: 45vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
overflow: auto;
|
|
scrollbar-color: var(--global-black-color) var(--global-second-color);
|
|
scrollbar-width: thin;
|
|
padding-top: 10px;
|
|
padding-bottom: 10px;
|
|
direction: rtl;
|
|
}
|
|
|
|
.selectionMenu::-webkit-scrollbar {
|
|
background-color: var(--global-third-color);
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.selectionMenu::-webkit-scrollbar-thumb {
|
|
background-color: var(--global-black-color);
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.selectionMenuItem, .volumeSelectionMenuItem, .metronomeSelectionMenuItem {
|
|
min-height: min-content;
|
|
background-color: var(--global-fourth-color);
|
|
margin: 10px 20px 20px 10px;
|
|
padding: 15px;
|
|
border-radius: 1rem;
|
|
border-width: 2px;
|
|
border-style: solid;
|
|
text-align: center;
|
|
font-style: bold;
|
|
font-size: 1.6rem;
|
|
direction: ltr;
|
|
}
|
|
|
|
.selectionMenuItem:active, .volumeSelectionMenuItem:active, .metronomeSelectionMenuItem:active {
|
|
background-color: var(--global-first-color);
|
|
}
|
|
|
|
#display-middle-right {
|
|
flex-basis: 45%;
|
|
display: flex;
|
|
flex-direction: row;
|
|
}
|
|
|
|
#display-middle-left-a, #display-middle-left-c {
|
|
flex-basis: 5%;
|
|
}
|
|
|
|
#display-middle-right-b, #display-middle-right-c, #display-middle-right-d {
|
|
flex-basis: 12%;
|
|
}
|
|
|
|
#display-middle-right-c {
|
|
min-width: 15px;
|
|
}
|
|
|
|
#display-middle-right-b, #display-middle-right-d {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-around;
|
|
}
|
|
|
|
#display-middle-right-e, #display-middle-right-g {
|
|
flex-basis: 5%;
|
|
}
|
|
|
|
#display-middle-right-e {
|
|
min-width: 50px;
|
|
}
|
|
|
|
#display-middle-right-f {
|
|
flex-basis: 20%;
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-around;
|
|
}
|
|
|
|
.selection {
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
width: 15vh;
|
|
min-width: 110px;
|
|
height: 12vh;
|
|
min-height: 80px;
|
|
background-color: var(--global-fourth-color);
|
|
border-radius: 1rem;
|
|
border-width: 2px;
|
|
border-style: solid;
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-around;
|
|
}
|
|
|
|
.selection:active {
|
|
background-color: var(--global-first-color);
|
|
}
|
|
|
|
.selection > p {
|
|
margin: auto;
|
|
text-align: center;
|
|
font-size: large;
|
|
}
|
|
|
|
#volume-container {
|
|
margin-top: auto;
|
|
margin-bottom: auto;
|
|
height: 300px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-around;
|
|
font-size: 32px;
|
|
}
|
|
|
|
#volume {
|
|
margin-top: 13px;
|
|
margin-bottom: 13px;
|
|
height: 205px;
|
|
width: 4px;
|
|
background: var(--global-black-color);
|
|
border-radius: 4px;
|
|
border: none;
|
|
}
|
|
|
|
#volume > .ui-slider-range {
|
|
background: var(--global-black-color);
|
|
border: none;
|
|
outline: none;
|
|
}
|
|
|
|
#volume > .ui-slider-handle {
|
|
border: none;
|
|
margin-left: -2px;
|
|
margin-bottom: -15px;
|
|
width: 30px;
|
|
height: 30px;
|
|
border-radius: 30px;
|
|
background: var(--global-black-color);
|
|
cursor: pointer;
|
|
outline: none;
|
|
}
|
|
|
|
i.fa-volume-down {
|
|
color: var(--global-black-color);
|
|
margin-left: -5px;
|
|
}
|
|
|
|
i.fa-volume-up {
|
|
color: var(--global-black-color);
|
|
margin-left: -5px;
|
|
}
|
|
|
|
.attachment-full {
|
|
position: absolute;
|
|
right: 0px;
|
|
height: 149px;
|
|
width: 149px;
|
|
}
|
|
|
|
@media (orientation: landscape) and (max-width: 1520px) {
|
|
#display {
|
|
width: 90vw;
|
|
}
|
|
}
|
|
|
|
@media (orientation: landscape) and (max-width: 1258px) {
|
|
#display {
|
|
width: 99vw;
|
|
}
|
|
}
|
|
|
|
@media (orientation: portrait) {
|
|
#display {
|
|
margin: auto;
|
|
height: 90vh;
|
|
width: 95vw;
|
|
min-width: unset;
|
|
min-height: unset;
|
|
}
|
|
|
|
#display-top {
|
|
flex-basis: 12%;
|
|
font-size: x-large;
|
|
}
|
|
|
|
#display-bottom {
|
|
flex-basis: 8%;
|
|
}
|
|
|
|
#display-middle {
|
|
flex-basis: 80%;
|
|
height: 100%;
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: column-reverse;
|
|
justify-content: space-around;
|
|
}
|
|
|
|
#display-middle-left {
|
|
flex-basis: unset;
|
|
}
|
|
|
|
#display-middle-right {
|
|
flex-basis: unset;
|
|
justify-content: space-around;
|
|
width: 80%;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
#select-volume, #display-middle-right-f, #display-middle-right-g, #volumeTip, #menuScrollTip {
|
|
display: none;
|
|
}
|
|
|
|
#display-middle-right-a, #display-middle-right-c, #display-middle-right-e {
|
|
display: none;
|
|
}
|
|
|
|
#display-middle-right-b, #display-middle-right-d {
|
|
flex-basis: unset;
|
|
min-width: unset;
|
|
}
|
|
|
|
#display-middle-right-b, #display-middle-right-d {
|
|
justify-content: space-around;
|
|
}
|
|
|
|
.selection {
|
|
max-height: 80px;
|
|
margin-top: 20px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
#drum-pad-grid {
|
|
min-width: unset;
|
|
min-height: unset;
|
|
}
|
|
|
|
#drum-pad-grid, .selectionMenu {
|
|
width: 72vw;
|
|
height: 60vw;
|
|
}
|
|
|
|
.selectionMenuItem, .volumeSelectionMenuItem, .metronomeSelectionMenuItem {
|
|
padding: unset;
|
|
}
|
|
|
|
.attachment-full {
|
|
height: 99px;
|
|
width: 99px;
|
|
}
|
|
}
|
|
|
|
@media (orientation: portrait) and (max-device-width: 767px) {
|
|
#drum-pad-grid, .selectionMenu {
|
|
width: 84vw;
|
|
height: 70vw;
|
|
}
|
|
}
|
|
|
|
@media (orientation: portrait) and (max-device-width: 750px) {
|
|
#display-top {
|
|
font-size: large;
|
|
}
|
|
|
|
#drum-pad-grid, .selectionMenu {
|
|
width: 72vw;
|
|
height: 60vw;
|
|
}
|
|
|
|
.selection {
|
|
max-height: 40px;
|
|
margin-top: 10px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
#display-middle {
|
|
margin-top: 10px;
|
|
}
|
|
}
|
|
|
|
@media (orientation: landscape) and (max-device-width: 1024px) {
|
|
#display {
|
|
height: 90vh;
|
|
width: 90vw;
|
|
min-height: unset;
|
|
}
|
|
|
|
#display-middle-left {
|
|
flex-basis: 65%;
|
|
}
|
|
|
|
#display-middle-right {
|
|
flex-basis: 35%;
|
|
justify-content: space-around;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
#select-volume, #display-middle-right-f, #display-middle-right-g, #volumeTip, #menuScrollTip {
|
|
display: none;
|
|
}
|
|
|
|
#display-middle-right-a, #display-middle-right-c, #display-middle-right-e {
|
|
display: none;
|
|
}
|
|
|
|
#display-middle-right-b, #display-middle-right-d {
|
|
flex-basis: unset;
|
|
min-width: unset;
|
|
}
|
|
|
|
#drum-pad-grid {
|
|
min-width: unset;
|
|
min-height: unset;
|
|
}
|
|
|
|
#drum-pad-grid, .selectionMenu {
|
|
width: 72vh;
|
|
height: 60vh;
|
|
}
|
|
|
|
.selectionMenuItem, .volumeSelectionMenuItem, .metronomeSelectionMenuItem {
|
|
padding: unset;
|
|
}
|
|
}
|
|
|
|
@media (orientation: landscape) and (max-device-height: 767px) {
|
|
#drum-pad-grid {
|
|
min-width: unset;
|
|
min-height: unset;
|
|
}
|
|
|
|
#drum-pad-grid, .selectionMenu {
|
|
width: 84vh;
|
|
height: 70vh;
|
|
}
|
|
|
|
#display-middle-left {
|
|
flex-basis: 60%;
|
|
}
|
|
|
|
#display-middle-right {
|
|
flex-basis: 40%;
|
|
}
|
|
}
|
|
|
|
@media (orientation: landscape) and (max-height: 400px) {
|
|
#display-top {
|
|
font-size: large;
|
|
}
|
|
|
|
.attachment-full {
|
|
height: 99px;
|
|
width: 99px;
|
|
}
|
|
}
|