fcc-challenges/drum-machine-react/src/DrumPadGrid.css

152 lines
2.8 KiB
CSS

#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 {
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 {
background-color: var(--global-first-color);
}
.metronomeIcon {
/* increasing the third number lightens the black */
color: hsl(0, 0%, 11%);
}
@media (orientation: portrait) {
#drum-pad-grid {
min-width: unset;
min-height: unset;
}
#drum-pad-grid, .selectionMenu {
width: 72vw;
height: 60vw;
}
.selectionMenuItem {
padding: unset;
}
}
@media (orientation: portrait) and (max-device-width: 767px) {
#drum-pad-grid, .selectionMenu {
width: 84vw;
height: 70vw;
}
}
@media (orientation: portrait) and (max-device-width: 750px) {
#drum-pad-grid, .selectionMenu {
width: 72vw;
height: 60vw;
}
}
@media (orientation: landscape) and (max-device-width: 1024px) {
#drum-pad-grid {
min-width: unset;
min-height: unset;
}
#drum-pad-grid, .selectionMenu {
width: 72vh;
height: 60vh;
}
.selectionMenuItem {
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;
}
}